Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/md2_loader/configure @ 4046

Last change on this file since 4046 was 4010, checked in by bensch, 20 years ago

orxonox/trunk: merged the levelloader from lltrunktemp to the trunk. Big thanks to fuzzy to make this so easy for us, and for implementing it in the first place.

  • Property svn:executable set to *
File size: 286.0 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.3-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.3-pre-alpha'
273PACKAGE_STRING='orxonox 0.2.3-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 DOCUMENTATION_TRUE DOCUMENTATION_FALSE DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE GPROF 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.3-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.3-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  --disable-modular-debug compiles in modular-debug mode, that logs
870                          differently on the many modules of orxonox.
871  --enable-sub-projects   also builds the subProjects while make from srcdir
872  --enable-profile        builds orxonox with profiling support
873  --enable-efence         builds orxonox with efence support
874  --enable-documentation  also builds the sDocumentation while make from
875                          srcdir
876
877Optional Packages:
878  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
879  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
880  --without-gtk           Prevents GTK from being loaded
881  --without-gthread       Prevents gThread from being loaded
882  --without-pthread       Prevents pthread from being loaded
883  --without-curl          Prevents libcURL from being loaded
884
885Some influential environment variables:
886  CXX         C++ compiler command
887  CXXFLAGS    C++ compiler flags
888  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
889              nonstandard directory <lib dir>
890  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
891              headers in a nonstandard directory <include dir>
892  CC          C compiler command
893  CFLAGS      C compiler flags
894  CPP         C preprocessor
895
896Use these variables to override the choices made by `configure' or to help
897it to find libraries and programs with nonstandard names/locations.
898
899Report bugs to <orxonox-dev at mail.datacore.ch>.
900_ACEOF
901fi
902
903if test "$ac_init_help" = "recursive"; then
904  # If there are subdirs, report their specific --help.
905  ac_popdir=`pwd`
906  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
907    test -d $ac_dir || continue
908    ac_builddir=.
909
910if test "$ac_dir" != .; then
911  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
912  # A "../" for each directory in $ac_dir_suffix.
913  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
914else
915  ac_dir_suffix= ac_top_builddir=
916fi
917
918case $srcdir in
919  .)  # No --srcdir option.  We are building in place.
920    ac_srcdir=.
921    if test -z "$ac_top_builddir"; then
922       ac_top_srcdir=.
923    else
924       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
925    fi ;;
926  [\\/]* | ?:[\\/]* )  # Absolute path.
927    ac_srcdir=$srcdir$ac_dir_suffix;
928    ac_top_srcdir=$srcdir ;;
929  *) # Relative path.
930    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
931    ac_top_srcdir=$ac_top_builddir$srcdir ;;
932esac
933
934# Do not use `cd foo && pwd` to compute absolute paths, because
935# the directories may not exist.
936case `pwd` in
937.) ac_abs_builddir="$ac_dir";;
938*)
939  case "$ac_dir" in
940  .) ac_abs_builddir=`pwd`;;
941  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
942  *) ac_abs_builddir=`pwd`/"$ac_dir";;
943  esac;;
944esac
945case $ac_abs_builddir in
946.) ac_abs_top_builddir=${ac_top_builddir}.;;
947*)
948  case ${ac_top_builddir}. in
949  .) ac_abs_top_builddir=$ac_abs_builddir;;
950  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
951  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
952  esac;;
953esac
954case $ac_abs_builddir in
955.) ac_abs_srcdir=$ac_srcdir;;
956*)
957  case $ac_srcdir in
958  .) ac_abs_srcdir=$ac_abs_builddir;;
959  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
960  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
961  esac;;
962esac
963case $ac_abs_builddir in
964.) ac_abs_top_srcdir=$ac_top_srcdir;;
965*)
966  case $ac_top_srcdir in
967  .) ac_abs_top_srcdir=$ac_abs_builddir;;
968  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
969  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
970  esac;;
971esac
972
973    cd $ac_dir
974    # Check for guested configure; otherwise get Cygnus style configure.
975    if test -f $ac_srcdir/configure.gnu; then
976      echo
977      $SHELL $ac_srcdir/configure.gnu  --help=recursive
978    elif test -f $ac_srcdir/configure; then
979      echo
980      $SHELL $ac_srcdir/configure  --help=recursive
981    elif test -f $ac_srcdir/configure.ac ||
982           test -f $ac_srcdir/configure.in; then
983      echo
984      $ac_configure --help
985    else
986      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987    fi
988    cd $ac_popdir
989  done
990fi
991
992test -n "$ac_init_help" && exit 0
993if $ac_init_version; then
994  cat <<\_ACEOF
995orxonox configure 0.2.3-pre-alpha
996generated by GNU Autoconf 2.59
997
998Copyright (C) 2003 Free Software Foundation, Inc.
999This configure script is free software; the Free Software Foundation
1000gives unlimited permission to copy, distribute and modify it.
1001_ACEOF
1002  exit 0
1003fi
1004exec 5>config.log
1005cat >&5 <<_ACEOF
1006This file contains any messages produced by compilers while
1007running configure, to aid debugging if configure makes a mistake.
1008
1009It was created by orxonox $as_me 0.2.3-pre-alpha, which was
1010generated by GNU Autoconf 2.59.  Invocation command line was
1011
1012  $ $0 $@
1013
1014_ACEOF
1015{
1016cat <<_ASUNAME
1017## --------- ##
1018## Platform. ##
1019## --------- ##
1020
1021hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1022uname -m = `(uname -m) 2>/dev/null || echo unknown`
1023uname -r = `(uname -r) 2>/dev/null || echo unknown`
1024uname -s = `(uname -s) 2>/dev/null || echo unknown`
1025uname -v = `(uname -v) 2>/dev/null || echo unknown`
1026
1027/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1028/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1029
1030/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1031/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1032/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1033hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1034/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1035/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1036/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1037
1038_ASUNAME
1039
1040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1041for as_dir in $PATH
1042do
1043  IFS=$as_save_IFS
1044  test -z "$as_dir" && as_dir=.
1045  echo "PATH: $as_dir"
1046done
1047
1048} >&5
1049
1050cat >&5 <<_ACEOF
1051
1052
1053## ----------- ##
1054## Core tests. ##
1055## ----------- ##
1056
1057_ACEOF
1058
1059
1060# Keep a trace of the command line.
1061# Strip out --no-create and --no-recursion so they do not pile up.
1062# Strip out --silent because we don't want to record it for future runs.
1063# Also quote any args containing shell meta-characters.
1064# Make two passes to allow for proper duplicate-argument suppression.
1065ac_configure_args=
1066ac_configure_args0=
1067ac_configure_args1=
1068ac_sep=
1069ac_must_keep_next=false
1070for ac_pass in 1 2
1071do
1072  for ac_arg
1073  do
1074    case $ac_arg in
1075    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1076    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077    | -silent | --silent | --silen | --sile | --sil)
1078      continue ;;
1079    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1080      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1081    esac
1082    case $ac_pass in
1083    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1084    2)
1085      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1086      if test $ac_must_keep_next = true; then
1087        ac_must_keep_next=false # Got value, back to normal.
1088      else
1089        case $ac_arg in
1090          *=* | --config-cache | -C | -disable-* | --disable-* \
1091          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1092          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1093          | -with-* | --with-* | -without-* | --without-* | --x)
1094            case "$ac_configure_args0 " in
1095              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1096            esac
1097            ;;
1098          -* ) ac_must_keep_next=true ;;
1099        esac
1100      fi
1101      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1102      # Get rid of the leading space.
1103      ac_sep=" "
1104      ;;
1105    esac
1106  done
1107done
1108$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1109$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1110
1111# When interrupted or exit'd, cleanup temporary files, and complete
1112# config.log.  We remove comments because anyway the quotes in there
1113# would cause problems or look ugly.
1114# WARNING: Be sure not to use single quotes in there, as some shells,
1115# such as our DU 5.0 friend, will then `close' the trap.
1116trap 'exit_status=$?
1117  # Save into config.log some information that might help in debugging.
1118  {
1119    echo
1120
1121    cat <<\_ASBOX
1122## ---------------- ##
1123## Cache variables. ##
1124## ---------------- ##
1125_ASBOX
1126    echo
1127    # The following way of writing the cache mishandles newlines in values,
1128{
1129  (set) 2>&1 |
1130    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1131    *ac_space=\ *)
1132      sed -n \
1133        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1134          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1135      ;;
1136    *)
1137      sed -n \
1138        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139      ;;
1140    esac;
1141}
1142    echo
1143
1144    cat <<\_ASBOX
1145## ----------------- ##
1146## Output variables. ##
1147## ----------------- ##
1148_ASBOX
1149    echo
1150    for ac_var in $ac_subst_vars
1151    do
1152      eval ac_val=$`echo $ac_var`
1153      echo "$ac_var='"'"'$ac_val'"'"'"
1154    done | sort
1155    echo
1156
1157    if test -n "$ac_subst_files"; then
1158      cat <<\_ASBOX
1159## ------------- ##
1160## Output files. ##
1161## ------------- ##
1162_ASBOX
1163      echo
1164      for ac_var in $ac_subst_files
1165      do
1166        eval ac_val=$`echo $ac_var`
1167        echo "$ac_var='"'"'$ac_val'"'"'"
1168      done | sort
1169      echo
1170    fi
1171
1172    if test -s confdefs.h; then
1173      cat <<\_ASBOX
1174## ----------- ##
1175## confdefs.h. ##
1176## ----------- ##
1177_ASBOX
1178      echo
1179      sed "/^$/d" confdefs.h | sort
1180      echo
1181    fi
1182    test "$ac_signal" != 0 &&
1183      echo "$as_me: caught signal $ac_signal"
1184    echo "$as_me: exit $exit_status"
1185  } >&5
1186  rm -f core *.core &&
1187  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1188    exit $exit_status
1189     ' 0
1190for ac_signal in 1 2 13 15; do
1191  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1192done
1193ac_signal=0
1194
1195# confdefs.h avoids OS command line length limits that DEFS can exceed.
1196rm -rf conftest* confdefs.h
1197# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1198echo >confdefs.h
1199
1200# Predefined preprocessor variables.
1201
1202cat >>confdefs.h <<_ACEOF
1203#define PACKAGE_NAME "$PACKAGE_NAME"
1204_ACEOF
1205
1206
1207cat >>confdefs.h <<_ACEOF
1208#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1209_ACEOF
1210
1211
1212cat >>confdefs.h <<_ACEOF
1213#define PACKAGE_VERSION "$PACKAGE_VERSION"
1214_ACEOF
1215
1216
1217cat >>confdefs.h <<_ACEOF
1218#define PACKAGE_STRING "$PACKAGE_STRING"
1219_ACEOF
1220
1221
1222cat >>confdefs.h <<_ACEOF
1223#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1224_ACEOF
1225
1226
1227# Let the site file select an alternate cache file if it wants to.
1228# Prefer explicitly selected file to automatically selected ones.
1229if test -z "$CONFIG_SITE"; then
1230  if test "x$prefix" != xNONE; then
1231    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1232  else
1233    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1234  fi
1235fi
1236for ac_site_file in $CONFIG_SITE; do
1237  if test -r "$ac_site_file"; then
1238    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1239echo "$as_me: loading site script $ac_site_file" >&6;}
1240    sed 's/^/| /' "$ac_site_file" >&5
1241    . "$ac_site_file"
1242  fi
1243done
1244
1245if test -r "$cache_file"; then
1246  # Some versions of bash will fail to source /dev/null (special
1247  # files actually), so we avoid doing that.
1248  if test -f "$cache_file"; then
1249    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1250echo "$as_me: loading cache $cache_file" >&6;}
1251    case $cache_file in
1252      [\\/]* | ?:[\\/]* ) . $cache_file;;
1253      *)                      . ./$cache_file;;
1254    esac
1255  fi
1256else
1257  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1258echo "$as_me: creating cache $cache_file" >&6;}
1259  >$cache_file
1260fi
1261
1262# Check that the precious variables saved in the cache have kept the same
1263# value.
1264ac_cache_corrupted=false
1265for ac_var in `(set) 2>&1 |
1266               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1267  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1268  eval ac_new_set=\$ac_env_${ac_var}_set
1269  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1270  eval ac_new_val="\$ac_env_${ac_var}_value"
1271  case $ac_old_set,$ac_new_set in
1272    set,)
1273      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1274echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1275      ac_cache_corrupted=: ;;
1276    ,set)
1277      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1278echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1279      ac_cache_corrupted=: ;;
1280    ,);;
1281    *)
1282      if test "x$ac_old_val" != "x$ac_new_val"; then
1283        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1284echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1285        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1286echo "$as_me:   former value:  $ac_old_val" >&2;}
1287        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1288echo "$as_me:   current value: $ac_new_val" >&2;}
1289        ac_cache_corrupted=:
1290      fi;;
1291  esac
1292  # Pass precious variables to config.status.
1293  if test "$ac_new_set" = set; then
1294    case $ac_new_val in
1295    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1296      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1297    *) ac_arg=$ac_var=$ac_new_val ;;
1298    esac
1299    case " $ac_configure_args " in
1300      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1301      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1302    esac
1303  fi
1304done
1305if $ac_cache_corrupted; then
1306  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1307echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1308  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1309echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1310   { (exit 1); exit 1; }; }
1311fi
1312
1313ac_ext=c
1314ac_cpp='$CPP $CPPFLAGS'
1315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1317ac_compiler_gnu=$ac_cv_c_compiler_gnu
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346## Detect the canonical host and target build environment.
1347ac_aux_dir=
1348for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1349  if test -f $ac_dir/install-sh; then
1350    ac_aux_dir=$ac_dir
1351    ac_install_sh="$ac_aux_dir/install-sh -c"
1352    break
1353  elif test -f $ac_dir/install.sh; then
1354    ac_aux_dir=$ac_dir
1355    ac_install_sh="$ac_aux_dir/install.sh -c"
1356    break
1357  elif test -f $ac_dir/shtool; then
1358    ac_aux_dir=$ac_dir
1359    ac_install_sh="$ac_aux_dir/shtool install -c"
1360    break
1361  fi
1362done
1363if test -z "$ac_aux_dir"; then
1364  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1365echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1366   { (exit 1); exit 1; }; }
1367fi
1368ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1369ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1370ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1371
1372# Make sure we can run config.sub.
1373$ac_config_sub sun4 >/dev/null 2>&1 ||
1374  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1375echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1376   { (exit 1); exit 1; }; }
1377
1378echo "$as_me:$LINENO: checking build system type" >&5
1379echo $ECHO_N "checking build system type... $ECHO_C" >&6
1380if test "${ac_cv_build+set}" = set; then
1381  echo $ECHO_N "(cached) $ECHO_C" >&6
1382else
1383  ac_cv_build_alias=$build_alias
1384test -z "$ac_cv_build_alias" &&
1385  ac_cv_build_alias=`$ac_config_guess`
1386test -z "$ac_cv_build_alias" &&
1387  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1388echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1389   { (exit 1); exit 1; }; }
1390ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1391  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1392echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1393   { (exit 1); exit 1; }; }
1394
1395fi
1396echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1397echo "${ECHO_T}$ac_cv_build" >&6
1398build=$ac_cv_build
1399build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1400build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1401build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1402
1403
1404echo "$as_me:$LINENO: checking host system type" >&5
1405echo $ECHO_N "checking host system type... $ECHO_C" >&6
1406if test "${ac_cv_host+set}" = set; then
1407  echo $ECHO_N "(cached) $ECHO_C" >&6
1408else
1409  ac_cv_host_alias=$host_alias
1410test -z "$ac_cv_host_alias" &&
1411  ac_cv_host_alias=$ac_cv_build_alias
1412ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1413  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1414echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1415   { (exit 1); exit 1; }; }
1416
1417fi
1418echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1419echo "${ECHO_T}$ac_cv_host" >&6
1420host=$ac_cv_host
1421host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1422host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1423host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1424
1425
1426echo "$as_me:$LINENO: checking target system type" >&5
1427echo $ECHO_N "checking target system type... $ECHO_C" >&6
1428if test "${ac_cv_target+set}" = set; then
1429  echo $ECHO_N "(cached) $ECHO_C" >&6
1430else
1431  ac_cv_target_alias=$target_alias
1432test "x$ac_cv_target_alias" = "x" &&
1433  ac_cv_target_alias=$ac_cv_host_alias
1434ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1435  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1436echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1437   { (exit 1); exit 1; }; }
1438
1439fi
1440echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1441echo "${ECHO_T}$ac_cv_target" >&6
1442target=$ac_cv_target
1443target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1444target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1445target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1446
1447
1448# The aliases save the names the user supplied, while $host etc.
1449# will get canonicalized.
1450test -n "$target_alias" &&
1451  test "$program_prefix$program_suffix$program_transform_name" = \
1452    NONENONEs,x,x, &&
1453  program_prefix=${target_alias}-
1454
1455am__api_version="1.8"
1456# Find a good install program.  We prefer a C program (faster),
1457# so one script is as good as another.  But avoid the broken or
1458# incompatible versions:
1459# SysV /etc/install, /usr/sbin/install
1460# SunOS /usr/etc/install
1461# IRIX /sbin/install
1462# AIX /bin/install
1463# AmigaOS /C/install, which installs bootblocks on floppy discs
1464# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1465# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1466# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1467# OS/2's system install, which has a completely different semantic
1468# ./install, which can be erroneously created by make from ./install.sh.
1469echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1470echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1471if test -z "$INSTALL"; then
1472if test "${ac_cv_path_install+set}" = set; then
1473  echo $ECHO_N "(cached) $ECHO_C" >&6
1474else
1475  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1476for as_dir in $PATH
1477do
1478  IFS=$as_save_IFS
1479  test -z "$as_dir" && as_dir=.
1480  # Account for people who put trailing slashes in PATH elements.
1481case $as_dir/ in
1482  ./ | .// | /cC/* | \
1483  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1484  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1485  /usr/ucb/* ) ;;
1486  *)
1487    # OSF1 and SCO ODT 3.0 have their own names for install.
1488    # Don't use installbsd from OSF since it installs stuff as root
1489    # by default.
1490    for ac_prog in ginstall scoinst install; do
1491      for ac_exec_ext in '' $ac_executable_extensions; do
1492        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1493          if test $ac_prog = install &&
1494            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1495            # AIX install.  It has an incompatible calling convention.
1496            :
1497          elif test $ac_prog = install &&
1498            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1499            # program-specific install script used by HP pwplus--don't use.
1500            :
1501          else
1502            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1503            break 3
1504          fi
1505        fi
1506      done
1507    done
1508    ;;
1509esac
1510done
1511
1512
1513fi
1514  if test "${ac_cv_path_install+set}" = set; then
1515    INSTALL=$ac_cv_path_install
1516  else
1517    # As a last resort, use the slow shell script.  We don't cache a
1518    # path for INSTALL within a source directory, because that will
1519    # break other packages using the cache if that directory is
1520    # removed, or if the path is relative.
1521    INSTALL=$ac_install_sh
1522  fi
1523fi
1524echo "$as_me:$LINENO: result: $INSTALL" >&5
1525echo "${ECHO_T}$INSTALL" >&6
1526
1527# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1528# It thinks the first close brace ends the variable substitution.
1529test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1530
1531test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1532
1533test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1534
1535echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1536echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1537# Just in case
1538sleep 1
1539echo timestamp > conftest.file
1540# Do `set' in a subshell so we don't clobber the current shell's
1541# arguments.  Must try -L first in case configure is actually a
1542# symlink; some systems play weird games with the mod time of symlinks
1543# (eg FreeBSD returns the mod time of the symlink's containing
1544# directory).
1545if (
1546   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1547   if test "$*" = "X"; then
1548      # -L didn't work.
1549      set X `ls -t $srcdir/configure conftest.file`
1550   fi
1551   rm -f conftest.file
1552   if test "$*" != "X $srcdir/configure conftest.file" \
1553      && test "$*" != "X conftest.file $srcdir/configure"; then
1554
1555      # If neither matched, then we have a broken ls.  This can happen
1556      # if, for instance, CONFIG_SHELL is bash and it inherits a
1557      # broken ls alias from the environment.  This has actually
1558      # happened.  Such a system could not be considered "sane".
1559      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1560alias in your environment" >&5
1561echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1562alias in your environment" >&2;}
1563   { (exit 1); exit 1; }; }
1564   fi
1565
1566   test "$2" = conftest.file
1567   )
1568then
1569   # Ok.
1570   :
1571else
1572   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1573Check your system clock" >&5
1574echo "$as_me: error: newly created file is older than distributed files!
1575Check your system clock" >&2;}
1576   { (exit 1); exit 1; }; }
1577fi
1578echo "$as_me:$LINENO: result: yes" >&5
1579echo "${ECHO_T}yes" >&6
1580test "$program_prefix" != NONE &&
1581  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1582# Use a double $ so make ignores it.
1583test "$program_suffix" != NONE &&
1584  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1585# Double any \ or $.  echo might interpret backslashes.
1586# By default was `s,x,x', remove it if useless.
1587cat <<\_ACEOF >conftest.sed
1588s/[\\$]/&&/g;s/;s,x,x,$//
1589_ACEOF
1590program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1591rm conftest.sed
1592
1593# expand $ac_aux_dir to an absolute path
1594am_aux_dir=`cd $ac_aux_dir && pwd`
1595
1596test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1597# Use eval to expand $SHELL
1598if eval "$MISSING --run true"; then
1599  am_missing_run="$MISSING --run "
1600else
1601  am_missing_run=
1602  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1603echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1604fi
1605
1606if mkdir -p -- . 2>/dev/null; then
1607  # Keeping the `.' argument allows $(mkdir_p) to be used without
1608  # argument.  Indeed, we sometimes output rules like
1609  #   $(mkdir_p) $(somedir)
1610  # where $(somedir) is conditionally defined.
1611  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1612  # expensive solution, as it forces Make to start a sub-shell.)
1613  mkdir_p='mkdir -p -- .'
1614else
1615  # On NextStep and OpenStep, the `mkdir' command does not
1616  # recognize any option.  It will interpret all options as
1617  # directories to create, and then abort because `.' already
1618  # exists.
1619  for d in ./-p ./--;
1620  do
1621    test -d $d && rmdir $d
1622  done
1623  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1624  if test -f "$ac_aux_dir/mkinstalldirs"; then
1625    mkdir_p='$(mkinstalldirs)'
1626  else
1627    mkdir_p='$(install_sh) -d'
1628  fi
1629fi
1630
1631for ac_prog in gawk mawk nawk awk
1632do
1633  # Extract the first word of "$ac_prog", so it can be a program name with args.
1634set dummy $ac_prog; ac_word=$2
1635echo "$as_me:$LINENO: checking for $ac_word" >&5
1636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637if test "${ac_cv_prog_AWK+set}" = set; then
1638  echo $ECHO_N "(cached) $ECHO_C" >&6
1639else
1640  if test -n "$AWK"; then
1641  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1642else
1643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644for as_dir in $PATH
1645do
1646  IFS=$as_save_IFS
1647  test -z "$as_dir" && as_dir=.
1648  for ac_exec_ext in '' $ac_executable_extensions; do
1649  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650    ac_cv_prog_AWK="$ac_prog"
1651    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652    break 2
1653  fi
1654done
1655done
1656
1657fi
1658fi
1659AWK=$ac_cv_prog_AWK
1660if test -n "$AWK"; then
1661  echo "$as_me:$LINENO: result: $AWK" >&5
1662echo "${ECHO_T}$AWK" >&6
1663else
1664  echo "$as_me:$LINENO: result: no" >&5
1665echo "${ECHO_T}no" >&6
1666fi
1667
1668  test -n "$AWK" && break
1669done
1670
1671echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1672echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1673set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1674if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1675  echo $ECHO_N "(cached) $ECHO_C" >&6
1676else
1677  cat >conftest.make <<\_ACEOF
1678all:
1679        @echo 'ac_maketemp="$(MAKE)"'
1680_ACEOF
1681# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1682eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1683if test -n "$ac_maketemp"; then
1684  eval ac_cv_prog_make_${ac_make}_set=yes
1685else
1686  eval ac_cv_prog_make_${ac_make}_set=no
1687fi
1688rm -f conftest.make
1689fi
1690if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1691  echo "$as_me:$LINENO: result: yes" >&5
1692echo "${ECHO_T}yes" >&6
1693  SET_MAKE=
1694else
1695  echo "$as_me:$LINENO: result: no" >&5
1696echo "${ECHO_T}no" >&6
1697  SET_MAKE="MAKE=${MAKE-make}"
1698fi
1699
1700rm -rf .tst 2>/dev/null
1701mkdir .tst 2>/dev/null
1702if test -d .tst; then
1703  am__leading_dot=.
1704else
1705  am__leading_dot=_
1706fi
1707rmdir .tst 2>/dev/null
1708
1709# test to see if srcdir already configured
1710if test "`cd $srcdir && pwd`" != "`pwd`" &&
1711   test -f $srcdir/config.status; then
1712  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1713echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1714   { (exit 1); exit 1; }; }
1715fi
1716
1717# test whether we have cygpath
1718if test -z "$CYGPATH_W"; then
1719  if (cygpath --version) >/dev/null 2>/dev/null; then
1720    CYGPATH_W='cygpath -w'
1721  else
1722    CYGPATH_W=echo
1723  fi
1724fi
1725
1726
1727# Define the identity of the package.
1728 PACKAGE='orxonox'
1729 VERSION='0.2.3-pre-alpha'
1730
1731
1732cat >>confdefs.h <<_ACEOF
1733#define PACKAGE "$PACKAGE"
1734_ACEOF
1735
1736
1737cat >>confdefs.h <<_ACEOF
1738#define VERSION "$VERSION"
1739_ACEOF
1740
1741# Some tools Automake needs.
1742
1743ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1744
1745
1746AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1747
1748
1749AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1750
1751
1752AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1753
1754
1755MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1756
1757
1758AMTAR=${AMTAR-"${am_missing_run}tar"}
1759
1760install_sh=${install_sh-"$am_aux_dir/install-sh"}
1761
1762# Installed binaries are usually stripped using `strip' when the user
1763# run `make install-strip'.  However `strip' might not be the right
1764# tool to use in cross-compilation environments, therefore Automake
1765# will honor the `STRIP' environment variable to overrule this program.
1766if test "$cross_compiling" != no; then
1767  if test -n "$ac_tool_prefix"; then
1768  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1769set dummy ${ac_tool_prefix}strip; ac_word=$2
1770echo "$as_me:$LINENO: checking for $ac_word" >&5
1771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772if test "${ac_cv_prog_STRIP+set}" = set; then
1773  echo $ECHO_N "(cached) $ECHO_C" >&6
1774else
1775  if test -n "$STRIP"; then
1776  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1777else
1778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779for as_dir in $PATH
1780do
1781  IFS=$as_save_IFS
1782  test -z "$as_dir" && as_dir=.
1783  for ac_exec_ext in '' $ac_executable_extensions; do
1784  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1786    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1787    break 2
1788  fi
1789done
1790done
1791
1792fi
1793fi
1794STRIP=$ac_cv_prog_STRIP
1795if test -n "$STRIP"; then
1796  echo "$as_me:$LINENO: result: $STRIP" >&5
1797echo "${ECHO_T}$STRIP" >&6
1798else
1799  echo "$as_me:$LINENO: result: no" >&5
1800echo "${ECHO_T}no" >&6
1801fi
1802
1803fi
1804if test -z "$ac_cv_prog_STRIP"; then
1805  ac_ct_STRIP=$STRIP
1806  # Extract the first word of "strip", so it can be a program name with args.
1807set dummy strip; ac_word=$2
1808echo "$as_me:$LINENO: checking for $ac_word" >&5
1809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1811  echo $ECHO_N "(cached) $ECHO_C" >&6
1812else
1813  if test -n "$ac_ct_STRIP"; then
1814  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1815else
1816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817for as_dir in $PATH
1818do
1819  IFS=$as_save_IFS
1820  test -z "$as_dir" && as_dir=.
1821  for ac_exec_ext in '' $ac_executable_extensions; do
1822  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823    ac_cv_prog_ac_ct_STRIP="strip"
1824    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825    break 2
1826  fi
1827done
1828done
1829
1830  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1831fi
1832fi
1833ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1834if test -n "$ac_ct_STRIP"; then
1835  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1836echo "${ECHO_T}$ac_ct_STRIP" >&6
1837else
1838  echo "$as_me:$LINENO: result: no" >&5
1839echo "${ECHO_T}no" >&6
1840fi
1841
1842  STRIP=$ac_ct_STRIP
1843else
1844  STRIP="$ac_cv_prog_STRIP"
1845fi
1846
1847fi
1848INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1849
1850# We need awk for the "check" target.  The system "awk" is bad on
1851# some platforms.
1852
1853
1854
1855
1856
1857          ac_config_headers="$ac_config_headers config.h"
1858
1859
1860#########################
1861## Checks for programs ##
1862#########################
1863ac_ext=cc
1864ac_cpp='$CXXCPP $CPPFLAGS'
1865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1868if test -n "$ac_tool_prefix"; then
1869  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1870  do
1871    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1872set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1873echo "$as_me:$LINENO: checking for $ac_word" >&5
1874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1875if test "${ac_cv_prog_CXX+set}" = set; then
1876  echo $ECHO_N "(cached) $ECHO_C" >&6
1877else
1878  if test -n "$CXX"; then
1879  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1880else
1881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882for as_dir in $PATH
1883do
1884  IFS=$as_save_IFS
1885  test -z "$as_dir" && as_dir=.
1886  for ac_exec_ext in '' $ac_executable_extensions; do
1887  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1889    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890    break 2
1891  fi
1892done
1893done
1894
1895fi
1896fi
1897CXX=$ac_cv_prog_CXX
1898if test -n "$CXX"; then
1899  echo "$as_me:$LINENO: result: $CXX" >&5
1900echo "${ECHO_T}$CXX" >&6
1901else
1902  echo "$as_me:$LINENO: result: no" >&5
1903echo "${ECHO_T}no" >&6
1904fi
1905
1906    test -n "$CXX" && break
1907  done
1908fi
1909if test -z "$CXX"; then
1910  ac_ct_CXX=$CXX
1911  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1912do
1913  # Extract the first word of "$ac_prog", so it can be a program name with args.
1914set dummy $ac_prog; ac_word=$2
1915echo "$as_me:$LINENO: checking for $ac_word" >&5
1916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1917if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1918  echo $ECHO_N "(cached) $ECHO_C" >&6
1919else
1920  if test -n "$ac_ct_CXX"; then
1921  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1922else
1923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924for as_dir in $PATH
1925do
1926  IFS=$as_save_IFS
1927  test -z "$as_dir" && as_dir=.
1928  for ac_exec_ext in '' $ac_executable_extensions; do
1929  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1930    ac_cv_prog_ac_ct_CXX="$ac_prog"
1931    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932    break 2
1933  fi
1934done
1935done
1936
1937fi
1938fi
1939ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1940if test -n "$ac_ct_CXX"; then
1941  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1942echo "${ECHO_T}$ac_ct_CXX" >&6
1943else
1944  echo "$as_me:$LINENO: result: no" >&5
1945echo "${ECHO_T}no" >&6
1946fi
1947
1948  test -n "$ac_ct_CXX" && break
1949done
1950test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1951
1952  CXX=$ac_ct_CXX
1953fi
1954
1955
1956# Provide some information about the compiler.
1957echo "$as_me:$LINENO:" \
1958     "checking for C++ compiler version" >&5
1959ac_compiler=`set X $ac_compile; echo $2`
1960{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1961  (eval $ac_compiler --version </dev/null >&5) 2>&5
1962  ac_status=$?
1963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964  (exit $ac_status); }
1965{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1966  (eval $ac_compiler -v </dev/null >&5) 2>&5
1967  ac_status=$?
1968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969  (exit $ac_status); }
1970{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1971  (eval $ac_compiler -V </dev/null >&5) 2>&5
1972  ac_status=$?
1973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974  (exit $ac_status); }
1975
1976cat >conftest.$ac_ext <<_ACEOF
1977/* confdefs.h.  */
1978_ACEOF
1979cat confdefs.h >>conftest.$ac_ext
1980cat >>conftest.$ac_ext <<_ACEOF
1981/* end confdefs.h.  */
1982
1983int
1984main ()
1985{
1986
1987  ;
1988  return 0;
1989}
1990_ACEOF
1991ac_clean_files_save=$ac_clean_files
1992ac_clean_files="$ac_clean_files a.out a.exe b.out"
1993# Try to create an executable without -o first, disregard a.out.
1994# It will help us diagnose broken compilers, and finding out an intuition
1995# of exeext.
1996echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1997echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1998ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1999if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2000  (eval $ac_link_default) 2>&5
2001  ac_status=$?
2002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003  (exit $ac_status); }; then
2004  # Find the output, starting from the most likely.  This scheme is
2005# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2006# resort.
2007
2008# Be careful to initialize this variable, since it used to be cached.
2009# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2010ac_cv_exeext=
2011# b.out is created by i960 compilers.
2012for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2013do
2014  test -f "$ac_file" || continue
2015  case $ac_file in
2016    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2017        ;;
2018    conftest.$ac_ext )
2019        # This is the source file.
2020        ;;
2021    [ab].out )
2022        # We found the default executable, but exeext='' is most
2023        # certainly right.
2024        break;;
2025    *.* )
2026        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2027        # FIXME: I believe we export ac_cv_exeext for Libtool,
2028        # but it would be cool to find out if it's true.  Does anybody
2029        # maintain Libtool? --akim.
2030        export ac_cv_exeext
2031        break;;
2032    * )
2033        break;;
2034  esac
2035done
2036else
2037  echo "$as_me: failed program was:" >&5
2038sed 's/^/| /' conftest.$ac_ext >&5
2039
2040{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2041See \`config.log' for more details." >&5
2042echo "$as_me: error: C++ compiler cannot create executables
2043See \`config.log' for more details." >&2;}
2044   { (exit 77); exit 77; }; }
2045fi
2046
2047ac_exeext=$ac_cv_exeext
2048echo "$as_me:$LINENO: result: $ac_file" >&5
2049echo "${ECHO_T}$ac_file" >&6
2050
2051# Check the compiler produces executables we can run.  If not, either
2052# the compiler is broken, or we cross compile.
2053echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2054echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2055# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2056# If not cross compiling, check that we can run a simple program.
2057if test "$cross_compiling" != yes; then
2058  if { ac_try='./$ac_file'
2059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060  (eval $ac_try) 2>&5
2061  ac_status=$?
2062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063  (exit $ac_status); }; }; then
2064    cross_compiling=no
2065  else
2066    if test "$cross_compiling" = maybe; then
2067        cross_compiling=yes
2068    else
2069        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2070If you meant to cross compile, use \`--host'.
2071See \`config.log' for more details." >&5
2072echo "$as_me: error: cannot run C++ compiled programs.
2073If you meant to cross compile, use \`--host'.
2074See \`config.log' for more details." >&2;}
2075   { (exit 1); exit 1; }; }
2076    fi
2077  fi
2078fi
2079echo "$as_me:$LINENO: result: yes" >&5
2080echo "${ECHO_T}yes" >&6
2081
2082rm -f a.out a.exe conftest$ac_cv_exeext b.out
2083ac_clean_files=$ac_clean_files_save
2084# Check the compiler produces executables we can run.  If not, either
2085# the compiler is broken, or we cross compile.
2086echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2087echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2088echo "$as_me:$LINENO: result: $cross_compiling" >&5
2089echo "${ECHO_T}$cross_compiling" >&6
2090
2091echo "$as_me:$LINENO: checking for suffix of executables" >&5
2092echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2094  (eval $ac_link) 2>&5
2095  ac_status=$?
2096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097  (exit $ac_status); }; then
2098  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2099# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2100# work properly (i.e., refer to `conftest.exe'), while it won't with
2101# `rm'.
2102for ac_file in conftest.exe conftest conftest.*; do
2103  test -f "$ac_file" || continue
2104  case $ac_file in
2105    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2106    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2107          export ac_cv_exeext
2108          break;;
2109    * ) break;;
2110  esac
2111done
2112else
2113  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2114See \`config.log' for more details." >&5
2115echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2116See \`config.log' for more details." >&2;}
2117   { (exit 1); exit 1; }; }
2118fi
2119
2120rm -f conftest$ac_cv_exeext
2121echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2122echo "${ECHO_T}$ac_cv_exeext" >&6
2123
2124rm -f conftest.$ac_ext
2125EXEEXT=$ac_cv_exeext
2126ac_exeext=$EXEEXT
2127echo "$as_me:$LINENO: checking for suffix of object files" >&5
2128echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2129if test "${ac_cv_objext+set}" = set; then
2130  echo $ECHO_N "(cached) $ECHO_C" >&6
2131else
2132  cat >conftest.$ac_ext <<_ACEOF
2133/* confdefs.h.  */
2134_ACEOF
2135cat confdefs.h >>conftest.$ac_ext
2136cat >>conftest.$ac_ext <<_ACEOF
2137/* end confdefs.h.  */
2138
2139int
2140main ()
2141{
2142
2143  ;
2144  return 0;
2145}
2146_ACEOF
2147rm -f conftest.o conftest.obj
2148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2149  (eval $ac_compile) 2>&5
2150  ac_status=$?
2151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152  (exit $ac_status); }; then
2153  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2154  case $ac_file in
2155    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2156    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2157       break;;
2158  esac
2159done
2160else
2161  echo "$as_me: failed program was:" >&5
2162sed 's/^/| /' conftest.$ac_ext >&5
2163
2164{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2165See \`config.log' for more details." >&5
2166echo "$as_me: error: cannot compute suffix of object files: cannot compile
2167See \`config.log' for more details." >&2;}
2168   { (exit 1); exit 1; }; }
2169fi
2170
2171rm -f conftest.$ac_cv_objext conftest.$ac_ext
2172fi
2173echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2174echo "${ECHO_T}$ac_cv_objext" >&6
2175OBJEXT=$ac_cv_objext
2176ac_objext=$OBJEXT
2177echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2178echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2179if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2180  echo $ECHO_N "(cached) $ECHO_C" >&6
2181else
2182  cat >conftest.$ac_ext <<_ACEOF
2183/* confdefs.h.  */
2184_ACEOF
2185cat confdefs.h >>conftest.$ac_ext
2186cat >>conftest.$ac_ext <<_ACEOF
2187/* end confdefs.h.  */
2188
2189int
2190main ()
2191{
2192#ifndef __GNUC__
2193       choke me
2194#endif
2195
2196  ;
2197  return 0;
2198}
2199_ACEOF
2200rm -f conftest.$ac_objext
2201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2202  (eval $ac_compile) 2>conftest.er1
2203  ac_status=$?
2204  grep -v '^ *+' conftest.er1 >conftest.err
2205  rm -f conftest.er1
2206  cat conftest.err >&5
2207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208  (exit $ac_status); } &&
2209         { ac_try='test -z "$ac_cxx_werror_flag"
2210                         || test ! -s conftest.err'
2211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212  (eval $ac_try) 2>&5
2213  ac_status=$?
2214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215  (exit $ac_status); }; } &&
2216         { ac_try='test -s conftest.$ac_objext'
2217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218  (eval $ac_try) 2>&5
2219  ac_status=$?
2220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221  (exit $ac_status); }; }; then
2222  ac_compiler_gnu=yes
2223else
2224  echo "$as_me: failed program was:" >&5
2225sed 's/^/| /' conftest.$ac_ext >&5
2226
2227ac_compiler_gnu=no
2228fi
2229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2230ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2231
2232fi
2233echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2234echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2235GXX=`test $ac_compiler_gnu = yes && echo yes`
2236ac_test_CXXFLAGS=${CXXFLAGS+set}
2237ac_save_CXXFLAGS=$CXXFLAGS
2238CXXFLAGS="-g"
2239echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2240echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2241if test "${ac_cv_prog_cxx_g+set}" = set; then
2242  echo $ECHO_N "(cached) $ECHO_C" >&6
2243else
2244  cat >conftest.$ac_ext <<_ACEOF
2245/* confdefs.h.  */
2246_ACEOF
2247cat confdefs.h >>conftest.$ac_ext
2248cat >>conftest.$ac_ext <<_ACEOF
2249/* end confdefs.h.  */
2250
2251int
2252main ()
2253{
2254
2255  ;
2256  return 0;
2257}
2258_ACEOF
2259rm -f conftest.$ac_objext
2260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2261  (eval $ac_compile) 2>conftest.er1
2262  ac_status=$?
2263  grep -v '^ *+' conftest.er1 >conftest.err
2264  rm -f conftest.er1
2265  cat conftest.err >&5
2266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267  (exit $ac_status); } &&
2268         { ac_try='test -z "$ac_cxx_werror_flag"
2269                         || test ! -s conftest.err'
2270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271  (eval $ac_try) 2>&5
2272  ac_status=$?
2273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274  (exit $ac_status); }; } &&
2275         { ac_try='test -s conftest.$ac_objext'
2276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277  (eval $ac_try) 2>&5
2278  ac_status=$?
2279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280  (exit $ac_status); }; }; then
2281  ac_cv_prog_cxx_g=yes
2282else
2283  echo "$as_me: failed program was:" >&5
2284sed 's/^/| /' conftest.$ac_ext >&5
2285
2286ac_cv_prog_cxx_g=no
2287fi
2288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2289fi
2290echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2291echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2292if test "$ac_test_CXXFLAGS" = set; then
2293  CXXFLAGS=$ac_save_CXXFLAGS
2294elif test $ac_cv_prog_cxx_g = yes; then
2295  if test "$GXX" = yes; then
2296    CXXFLAGS="-g -O2"
2297  else
2298    CXXFLAGS="-g"
2299  fi
2300else
2301  if test "$GXX" = yes; then
2302    CXXFLAGS="-O2"
2303  else
2304    CXXFLAGS=
2305  fi
2306fi
2307for ac_declaration in \
2308   '' \
2309   'extern "C" void std::exit (int) throw (); using std::exit;' \
2310   'extern "C" void std::exit (int); using std::exit;' \
2311   'extern "C" void exit (int) throw ();' \
2312   'extern "C" void exit (int);' \
2313   'void exit (int);'
2314do
2315  cat >conftest.$ac_ext <<_ACEOF
2316/* confdefs.h.  */
2317_ACEOF
2318cat confdefs.h >>conftest.$ac_ext
2319cat >>conftest.$ac_ext <<_ACEOF
2320/* end confdefs.h.  */
2321$ac_declaration
2322#include <stdlib.h>
2323int
2324main ()
2325{
2326exit (42);
2327  ;
2328  return 0;
2329}
2330_ACEOF
2331rm -f conftest.$ac_objext
2332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2333  (eval $ac_compile) 2>conftest.er1
2334  ac_status=$?
2335  grep -v '^ *+' conftest.er1 >conftest.err
2336  rm -f conftest.er1
2337  cat conftest.err >&5
2338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339  (exit $ac_status); } &&
2340         { ac_try='test -z "$ac_cxx_werror_flag"
2341                         || test ! -s conftest.err'
2342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343  (eval $ac_try) 2>&5
2344  ac_status=$?
2345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346  (exit $ac_status); }; } &&
2347         { ac_try='test -s conftest.$ac_objext'
2348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349  (eval $ac_try) 2>&5
2350  ac_status=$?
2351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352  (exit $ac_status); }; }; then
2353  :
2354else
2355  echo "$as_me: failed program was:" >&5
2356sed 's/^/| /' conftest.$ac_ext >&5
2357
2358continue
2359fi
2360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2361  cat >conftest.$ac_ext <<_ACEOF
2362/* confdefs.h.  */
2363_ACEOF
2364cat confdefs.h >>conftest.$ac_ext
2365cat >>conftest.$ac_ext <<_ACEOF
2366/* end confdefs.h.  */
2367$ac_declaration
2368int
2369main ()
2370{
2371exit (42);
2372  ;
2373  return 0;
2374}
2375_ACEOF
2376rm -f conftest.$ac_objext
2377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2378  (eval $ac_compile) 2>conftest.er1
2379  ac_status=$?
2380  grep -v '^ *+' conftest.er1 >conftest.err
2381  rm -f conftest.er1
2382  cat conftest.err >&5
2383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384  (exit $ac_status); } &&
2385         { ac_try='test -z "$ac_cxx_werror_flag"
2386                         || test ! -s conftest.err'
2387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388  (eval $ac_try) 2>&5
2389  ac_status=$?
2390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391  (exit $ac_status); }; } &&
2392         { ac_try='test -s conftest.$ac_objext'
2393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394  (eval $ac_try) 2>&5
2395  ac_status=$?
2396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397  (exit $ac_status); }; }; then
2398  break
2399else
2400  echo "$as_me: failed program was:" >&5
2401sed 's/^/| /' conftest.$ac_ext >&5
2402
2403fi
2404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2405done
2406rm -f conftest*
2407if test -n "$ac_declaration"; then
2408  echo '#ifdef __cplusplus' >>confdefs.h
2409  echo $ac_declaration      >>confdefs.h
2410  echo '#endif'             >>confdefs.h
2411fi
2412
2413ac_ext=c
2414ac_cpp='$CPP $CPPFLAGS'
2415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2417ac_compiler_gnu=$ac_cv_c_compiler_gnu
2418DEPDIR="${am__leading_dot}deps"
2419
2420          ac_config_commands="$ac_config_commands depfiles"
2421
2422
2423am_make=${MAKE-make}
2424cat > confinc << 'END'
2425am__doit:
2426        @echo done
2427.PHONY: am__doit
2428END
2429# If we don't find an include directive, just comment out the code.
2430echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2431echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2432am__include="#"
2433am__quote=
2434_am_result=none
2435# First try GNU make style include.
2436echo "include confinc" > confmf
2437# We grep out `Entering directory' and `Leaving directory'
2438# messages which can occur if `w' ends up in MAKEFLAGS.
2439# In particular we don't look at `^make:' because GNU make might
2440# be invoked under some other name (usually "gmake"), in which
2441# case it prints its new name instead of `make'.
2442if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2443   am__include=include
2444   am__quote=
2445   _am_result=GNU
2446fi
2447# Now try BSD make style include.
2448if test "$am__include" = "#"; then
2449   echo '.include "confinc"' > confmf
2450   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2451      am__include=.include
2452      am__quote="\""
2453      _am_result=BSD
2454   fi
2455fi
2456
2457
2458echo "$as_me:$LINENO: result: $_am_result" >&5
2459echo "${ECHO_T}$_am_result" >&6
2460rm -f confinc confmf
2461
2462# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2463if test "${enable_dependency_tracking+set}" = set; then
2464  enableval="$enable_dependency_tracking"
2465
2466fi;
2467if test "x$enable_dependency_tracking" != xno; then
2468  am_depcomp="$ac_aux_dir/depcomp"
2469  AMDEPBACKSLASH='\'
2470fi
2471
2472
2473if test "x$enable_dependency_tracking" != xno; then
2474  AMDEP_TRUE=
2475  AMDEP_FALSE='#'
2476else
2477  AMDEP_TRUE='#'
2478  AMDEP_FALSE=
2479fi
2480
2481
2482
2483
2484depcc="$CXX"  am_compiler_list=
2485
2486echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2487echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2488if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2489  echo $ECHO_N "(cached) $ECHO_C" >&6
2490else
2491  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2492  # We make a subdir and do the tests there.  Otherwise we can end up
2493  # making bogus files that we don't know about and never remove.  For
2494  # instance it was reported that on HP-UX the gcc test will end up
2495  # making a dummy file named `D' -- because `-MD' means `put the output
2496  # in D'.
2497  mkdir conftest.dir
2498  # Copy depcomp to subdir because otherwise we won't find it if we're
2499  # using a relative directory.
2500  cp "$am_depcomp" conftest.dir
2501  cd conftest.dir
2502  # We will build objects and dependencies in a subdirectory because
2503  # it helps to detect inapplicable dependency modes.  For instance
2504  # both Tru64's cc and ICC support -MD to output dependencies as a
2505  # side effect of compilation, but ICC will put the dependencies in
2506  # the current directory while Tru64 will put them in the object
2507  # directory.
2508  mkdir sub
2509
2510  am_cv_CXX_dependencies_compiler_type=none
2511  if test "$am_compiler_list" = ""; then
2512     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2513  fi
2514  for depmode in $am_compiler_list; do
2515    # Setup a source with many dependencies, because some compilers
2516    # like to wrap large dependency lists on column 80 (with \), and
2517    # we should not choose a depcomp mode which is confused by this.
2518    #
2519    # We need to recreate these files for each test, as the compiler may
2520    # overwrite some of them when testing with obscure command lines.
2521    # This happens at least with the AIX C compiler.
2522    : > sub/conftest.c
2523    for i in 1 2 3 4 5 6; do
2524      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2525      : > sub/conftst$i.h
2526    done
2527    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2528
2529    case $depmode in
2530    nosideeffect)
2531      # after this tag, mechanisms are not by side-effect, so they'll
2532      # only be used when explicitly requested
2533      if test "x$enable_dependency_tracking" = xyes; then
2534        continue
2535      else
2536        break
2537      fi
2538      ;;
2539    none) break ;;
2540    esac
2541    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2542    # mode.  It turns out that the SunPro C++ compiler does not properly
2543    # handle `-M -o', and we need to detect this.
2544    if depmode=$depmode \
2545       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2546       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2547       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2548         >/dev/null 2>conftest.err &&
2549       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2550       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2551       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2552      # icc doesn't choke on unknown options, it will just issue warnings
2553      # (even with -Werror).  So we grep stderr for any message
2554      # that says an option was ignored.
2555      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2556        am_cv_CXX_dependencies_compiler_type=$depmode
2557        break
2558      fi
2559    fi
2560  done
2561
2562  cd ..
2563  rm -rf conftest.dir
2564else
2565  am_cv_CXX_dependencies_compiler_type=none
2566fi
2567
2568fi
2569echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2570echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2571CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2572
2573
2574
2575if
2576  test "x$enable_dependency_tracking" != xno \
2577  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2578  am__fastdepCXX_TRUE=
2579  am__fastdepCXX_FALSE='#'
2580else
2581  am__fastdepCXX_TRUE='#'
2582  am__fastdepCXX_FALSE=
2583fi
2584
2585
2586ac_ext=c
2587ac_cpp='$CPP $CPPFLAGS'
2588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2590ac_compiler_gnu=$ac_cv_c_compiler_gnu
2591if test -n "$ac_tool_prefix"; then
2592  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2593set dummy ${ac_tool_prefix}gcc; ac_word=$2
2594echo "$as_me:$LINENO: checking for $ac_word" >&5
2595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2596if test "${ac_cv_prog_CC+set}" = set; then
2597  echo $ECHO_N "(cached) $ECHO_C" >&6
2598else
2599  if test -n "$CC"; then
2600  ac_cv_prog_CC="$CC" # Let the user override the test.
2601else
2602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603for as_dir in $PATH
2604do
2605  IFS=$as_save_IFS
2606  test -z "$as_dir" && as_dir=.
2607  for ac_exec_ext in '' $ac_executable_extensions; do
2608  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2609    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2610    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2611    break 2
2612  fi
2613done
2614done
2615
2616fi
2617fi
2618CC=$ac_cv_prog_CC
2619if test -n "$CC"; then
2620  echo "$as_me:$LINENO: result: $CC" >&5
2621echo "${ECHO_T}$CC" >&6
2622else
2623  echo "$as_me:$LINENO: result: no" >&5
2624echo "${ECHO_T}no" >&6
2625fi
2626
2627fi
2628if test -z "$ac_cv_prog_CC"; then
2629  ac_ct_CC=$CC
2630  # Extract the first word of "gcc", so it can be a program name with args.
2631set dummy gcc; ac_word=$2
2632echo "$as_me:$LINENO: checking for $ac_word" >&5
2633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2634if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2635  echo $ECHO_N "(cached) $ECHO_C" >&6
2636else
2637  if test -n "$ac_ct_CC"; then
2638  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2639else
2640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641for as_dir in $PATH
2642do
2643  IFS=$as_save_IFS
2644  test -z "$as_dir" && as_dir=.
2645  for ac_exec_ext in '' $ac_executable_extensions; do
2646  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2647    ac_cv_prog_ac_ct_CC="gcc"
2648    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2649    break 2
2650  fi
2651done
2652done
2653
2654fi
2655fi
2656ac_ct_CC=$ac_cv_prog_ac_ct_CC
2657if test -n "$ac_ct_CC"; then
2658  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2659echo "${ECHO_T}$ac_ct_CC" >&6
2660else
2661  echo "$as_me:$LINENO: result: no" >&5
2662echo "${ECHO_T}no" >&6
2663fi
2664
2665  CC=$ac_ct_CC
2666else
2667  CC="$ac_cv_prog_CC"
2668fi
2669
2670if test -z "$CC"; then
2671  if test -n "$ac_tool_prefix"; then
2672  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2673set dummy ${ac_tool_prefix}cc; ac_word=$2
2674echo "$as_me:$LINENO: checking for $ac_word" >&5
2675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2676if test "${ac_cv_prog_CC+set}" = set; then
2677  echo $ECHO_N "(cached) $ECHO_C" >&6
2678else
2679  if test -n "$CC"; then
2680  ac_cv_prog_CC="$CC" # Let the user override the test.
2681else
2682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683for as_dir in $PATH
2684do
2685  IFS=$as_save_IFS
2686  test -z "$as_dir" && as_dir=.
2687  for ac_exec_ext in '' $ac_executable_extensions; do
2688  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2689    ac_cv_prog_CC="${ac_tool_prefix}cc"
2690    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2691    break 2
2692  fi
2693done
2694done
2695
2696fi
2697fi
2698CC=$ac_cv_prog_CC
2699if test -n "$CC"; then
2700  echo "$as_me:$LINENO: result: $CC" >&5
2701echo "${ECHO_T}$CC" >&6
2702else
2703  echo "$as_me:$LINENO: result: no" >&5
2704echo "${ECHO_T}no" >&6
2705fi
2706
2707fi
2708if test -z "$ac_cv_prog_CC"; then
2709  ac_ct_CC=$CC
2710  # Extract the first word of "cc", so it can be a program name with args.
2711set dummy cc; ac_word=$2
2712echo "$as_me:$LINENO: checking for $ac_word" >&5
2713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2714if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2715  echo $ECHO_N "(cached) $ECHO_C" >&6
2716else
2717  if test -n "$ac_ct_CC"; then
2718  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2719else
2720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721for as_dir in $PATH
2722do
2723  IFS=$as_save_IFS
2724  test -z "$as_dir" && as_dir=.
2725  for ac_exec_ext in '' $ac_executable_extensions; do
2726  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2727    ac_cv_prog_ac_ct_CC="cc"
2728    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2729    break 2
2730  fi
2731done
2732done
2733
2734fi
2735fi
2736ac_ct_CC=$ac_cv_prog_ac_ct_CC
2737if test -n "$ac_ct_CC"; then
2738  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2739echo "${ECHO_T}$ac_ct_CC" >&6
2740else
2741  echo "$as_me:$LINENO: result: no" >&5
2742echo "${ECHO_T}no" >&6
2743fi
2744
2745  CC=$ac_ct_CC
2746else
2747  CC="$ac_cv_prog_CC"
2748fi
2749
2750fi
2751if test -z "$CC"; then
2752  # Extract the first word of "cc", so it can be a program name with args.
2753set dummy cc; ac_word=$2
2754echo "$as_me:$LINENO: checking for $ac_word" >&5
2755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2756if test "${ac_cv_prog_CC+set}" = set; then
2757  echo $ECHO_N "(cached) $ECHO_C" >&6
2758else
2759  if test -n "$CC"; then
2760  ac_cv_prog_CC="$CC" # Let the user override the test.
2761else
2762  ac_prog_rejected=no
2763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764for as_dir in $PATH
2765do
2766  IFS=$as_save_IFS
2767  test -z "$as_dir" && as_dir=.
2768  for ac_exec_ext in '' $ac_executable_extensions; do
2769  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2770    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2771       ac_prog_rejected=yes
2772       continue
2773     fi
2774    ac_cv_prog_CC="cc"
2775    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2776    break 2
2777  fi
2778done
2779done
2780
2781if test $ac_prog_rejected = yes; then
2782  # We found a bogon in the path, so make sure we never use it.
2783  set dummy $ac_cv_prog_CC
2784  shift
2785  if test $# != 0; then
2786    # We chose a different compiler from the bogus one.
2787    # However, it has the same basename, so the bogon will be chosen
2788    # first if we set CC to just the basename; use the full file name.
2789    shift
2790    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2791  fi
2792fi
2793fi
2794fi
2795CC=$ac_cv_prog_CC
2796if test -n "$CC"; then
2797  echo "$as_me:$LINENO: result: $CC" >&5
2798echo "${ECHO_T}$CC" >&6
2799else
2800  echo "$as_me:$LINENO: result: no" >&5
2801echo "${ECHO_T}no" >&6
2802fi
2803
2804fi
2805if test -z "$CC"; then
2806  if test -n "$ac_tool_prefix"; then
2807  for ac_prog in cl
2808  do
2809    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2810set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2811echo "$as_me:$LINENO: checking for $ac_word" >&5
2812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2813if test "${ac_cv_prog_CC+set}" = set; then
2814  echo $ECHO_N "(cached) $ECHO_C" >&6
2815else
2816  if test -n "$CC"; then
2817  ac_cv_prog_CC="$CC" # Let the user override the test.
2818else
2819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820for as_dir in $PATH
2821do
2822  IFS=$as_save_IFS
2823  test -z "$as_dir" && as_dir=.
2824  for ac_exec_ext in '' $ac_executable_extensions; do
2825  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2827    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828    break 2
2829  fi
2830done
2831done
2832
2833fi
2834fi
2835CC=$ac_cv_prog_CC
2836if test -n "$CC"; then
2837  echo "$as_me:$LINENO: result: $CC" >&5
2838echo "${ECHO_T}$CC" >&6
2839else
2840  echo "$as_me:$LINENO: result: no" >&5
2841echo "${ECHO_T}no" >&6
2842fi
2843
2844    test -n "$CC" && break
2845  done
2846fi
2847if test -z "$CC"; then
2848  ac_ct_CC=$CC
2849  for ac_prog in cl
2850do
2851  # Extract the first word of "$ac_prog", so it can be a program name with args.
2852set dummy $ac_prog; ac_word=$2
2853echo "$as_me:$LINENO: checking for $ac_word" >&5
2854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2855if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2856  echo $ECHO_N "(cached) $ECHO_C" >&6
2857else
2858  if test -n "$ac_ct_CC"; then
2859  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2860else
2861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862for as_dir in $PATH
2863do
2864  IFS=$as_save_IFS
2865  test -z "$as_dir" && as_dir=.
2866  for ac_exec_ext in '' $ac_executable_extensions; do
2867  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2868    ac_cv_prog_ac_ct_CC="$ac_prog"
2869    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2870    break 2
2871  fi
2872done
2873done
2874
2875fi
2876fi
2877ac_ct_CC=$ac_cv_prog_ac_ct_CC
2878if test -n "$ac_ct_CC"; then
2879  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2880echo "${ECHO_T}$ac_ct_CC" >&6
2881else
2882  echo "$as_me:$LINENO: result: no" >&5
2883echo "${ECHO_T}no" >&6
2884fi
2885
2886  test -n "$ac_ct_CC" && break
2887done
2888
2889  CC=$ac_ct_CC
2890fi
2891
2892fi
2893
2894
2895test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2896See \`config.log' for more details." >&5
2897echo "$as_me: error: no acceptable C compiler found in \$PATH
2898See \`config.log' for more details." >&2;}
2899   { (exit 1); exit 1; }; }
2900
2901# Provide some information about the compiler.
2902echo "$as_me:$LINENO:" \
2903     "checking for C compiler version" >&5
2904ac_compiler=`set X $ac_compile; echo $2`
2905{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2906  (eval $ac_compiler --version </dev/null >&5) 2>&5
2907  ac_status=$?
2908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909  (exit $ac_status); }
2910{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2911  (eval $ac_compiler -v </dev/null >&5) 2>&5
2912  ac_status=$?
2913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914  (exit $ac_status); }
2915{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2916  (eval $ac_compiler -V </dev/null >&5) 2>&5
2917  ac_status=$?
2918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919  (exit $ac_status); }
2920
2921echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2922echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2923if test "${ac_cv_c_compiler_gnu+set}" = set; then
2924  echo $ECHO_N "(cached) $ECHO_C" >&6
2925else
2926  cat >conftest.$ac_ext <<_ACEOF
2927/* confdefs.h.  */
2928_ACEOF
2929cat confdefs.h >>conftest.$ac_ext
2930cat >>conftest.$ac_ext <<_ACEOF
2931/* end confdefs.h.  */
2932
2933int
2934main ()
2935{
2936#ifndef __GNUC__
2937       choke me
2938#endif
2939
2940  ;
2941  return 0;
2942}
2943_ACEOF
2944rm -f conftest.$ac_objext
2945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2946  (eval $ac_compile) 2>conftest.er1
2947  ac_status=$?
2948  grep -v '^ *+' conftest.er1 >conftest.err
2949  rm -f conftest.er1
2950  cat conftest.err >&5
2951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952  (exit $ac_status); } &&
2953         { ac_try='test -z "$ac_c_werror_flag"
2954                         || test ! -s conftest.err'
2955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2956  (eval $ac_try) 2>&5
2957  ac_status=$?
2958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959  (exit $ac_status); }; } &&
2960         { ac_try='test -s conftest.$ac_objext'
2961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2962  (eval $ac_try) 2>&5
2963  ac_status=$?
2964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965  (exit $ac_status); }; }; then
2966  ac_compiler_gnu=yes
2967else
2968  echo "$as_me: failed program was:" >&5
2969sed 's/^/| /' conftest.$ac_ext >&5
2970
2971ac_compiler_gnu=no
2972fi
2973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2974ac_cv_c_compiler_gnu=$ac_compiler_gnu
2975
2976fi
2977echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2978echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2979GCC=`test $ac_compiler_gnu = yes && echo yes`
2980ac_test_CFLAGS=${CFLAGS+set}
2981ac_save_CFLAGS=$CFLAGS
2982CFLAGS="-g"
2983echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2984echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2985if test "${ac_cv_prog_cc_g+set}" = set; then
2986  echo $ECHO_N "(cached) $ECHO_C" >&6
2987else
2988  cat >conftest.$ac_ext <<_ACEOF
2989/* confdefs.h.  */
2990_ACEOF
2991cat confdefs.h >>conftest.$ac_ext
2992cat >>conftest.$ac_ext <<_ACEOF
2993/* end confdefs.h.  */
2994
2995int
2996main ()
2997{
2998
2999  ;
3000  return 0;
3001}
3002_ACEOF
3003rm -f conftest.$ac_objext
3004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3005  (eval $ac_compile) 2>conftest.er1
3006  ac_status=$?
3007  grep -v '^ *+' conftest.er1 >conftest.err
3008  rm -f conftest.er1
3009  cat conftest.err >&5
3010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011  (exit $ac_status); } &&
3012         { ac_try='test -z "$ac_c_werror_flag"
3013                         || test ! -s conftest.err'
3014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3015  (eval $ac_try) 2>&5
3016  ac_status=$?
3017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018  (exit $ac_status); }; } &&
3019         { ac_try='test -s conftest.$ac_objext'
3020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3021  (eval $ac_try) 2>&5
3022  ac_status=$?
3023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024  (exit $ac_status); }; }; then
3025  ac_cv_prog_cc_g=yes
3026else
3027  echo "$as_me: failed program was:" >&5
3028sed 's/^/| /' conftest.$ac_ext >&5
3029
3030ac_cv_prog_cc_g=no
3031fi
3032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3033fi
3034echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3035echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3036if test "$ac_test_CFLAGS" = set; then
3037  CFLAGS=$ac_save_CFLAGS
3038elif test $ac_cv_prog_cc_g = yes; then
3039  if test "$GCC" = yes; then
3040    CFLAGS="-g -O2"
3041  else
3042    CFLAGS="-g"
3043  fi
3044else
3045  if test "$GCC" = yes; then
3046    CFLAGS="-O2"
3047  else
3048    CFLAGS=
3049  fi
3050fi
3051echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3052echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3053if test "${ac_cv_prog_cc_stdc+set}" = set; then
3054  echo $ECHO_N "(cached) $ECHO_C" >&6
3055else
3056  ac_cv_prog_cc_stdc=no
3057ac_save_CC=$CC
3058cat >conftest.$ac_ext <<_ACEOF
3059/* confdefs.h.  */
3060_ACEOF
3061cat confdefs.h >>conftest.$ac_ext
3062cat >>conftest.$ac_ext <<_ACEOF
3063/* end confdefs.h.  */
3064#include <stdarg.h>
3065#include <stdio.h>
3066#include <sys/types.h>
3067#include <sys/stat.h>
3068/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3069struct buf { int x; };
3070FILE * (*rcsopen) (struct buf *, struct stat *, int);
3071static char *e (p, i)
3072     char **p;
3073     int i;
3074{
3075  return p[i];
3076}
3077static char *f (char * (*g) (char **, int), char **p, ...)
3078{
3079  char *s;
3080  va_list v;
3081  va_start (v,p);
3082  s = g (p, va_arg (v,int));
3083  va_end (v);
3084  return s;
3085}
3086
3087/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3088   function prototypes and stuff, but not '\xHH' hex character constants.
3089   These don't provoke an error unfortunately, instead are silently treated
3090   as 'x'.  The following induces an error, until -std1 is added to get
3091   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3092   array size at least.  It's necessary to write '\x00'==0 to get something
3093   that's true only with -std1.  */
3094int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3095
3096int test (int i, double x);
3097struct s1 {int (*f) (int a);};
3098struct s2 {int (*f) (double a);};
3099int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3100int argc;
3101char **argv;
3102int
3103main ()
3104{
3105return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3106  ;
3107  return 0;
3108}
3109_ACEOF
3110# Don't try gcc -ansi; that turns off useful extensions and
3111# breaks some systems' header files.
3112# AIX                   -qlanglvl=ansi
3113# Ultrix and OSF/1      -std1
3114# HP-UX 10.20 and later -Ae
3115# HP-UX older versions  -Aa -D_HPUX_SOURCE
3116# SVR4                  -Xc -D__EXTENSIONS__
3117for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3118do
3119  CC="$ac_save_CC $ac_arg"
3120  rm -f conftest.$ac_objext
3121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3122  (eval $ac_compile) 2>conftest.er1
3123  ac_status=$?
3124  grep -v '^ *+' conftest.er1 >conftest.err
3125  rm -f conftest.er1
3126  cat conftest.err >&5
3127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128  (exit $ac_status); } &&
3129         { ac_try='test -z "$ac_c_werror_flag"
3130                         || test ! -s conftest.err'
3131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3132  (eval $ac_try) 2>&5
3133  ac_status=$?
3134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135  (exit $ac_status); }; } &&
3136         { ac_try='test -s conftest.$ac_objext'
3137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3138  (eval $ac_try) 2>&5
3139  ac_status=$?
3140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141  (exit $ac_status); }; }; then
3142  ac_cv_prog_cc_stdc=$ac_arg
3143break
3144else
3145  echo "$as_me: failed program was:" >&5
3146sed 's/^/| /' conftest.$ac_ext >&5
3147
3148fi
3149rm -f conftest.err conftest.$ac_objext
3150done
3151rm -f conftest.$ac_ext conftest.$ac_objext
3152CC=$ac_save_CC
3153
3154fi
3155
3156case "x$ac_cv_prog_cc_stdc" in
3157  x|xno)
3158    echo "$as_me:$LINENO: result: none needed" >&5
3159echo "${ECHO_T}none needed" >&6 ;;
3160  *)
3161    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3162echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3163    CC="$CC $ac_cv_prog_cc_stdc" ;;
3164esac
3165
3166# Some people use a C++ compiler to compile C.  Since we use `exit',
3167# in C++ we need to declare it.  In case someone uses the same compiler
3168# for both compiling C and C++ we need to have the C++ compiler decide
3169# the declaration of exit, since it's the most demanding environment.
3170cat >conftest.$ac_ext <<_ACEOF
3171#ifndef __cplusplus
3172  choke me
3173#endif
3174_ACEOF
3175rm -f conftest.$ac_objext
3176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3177  (eval $ac_compile) 2>conftest.er1
3178  ac_status=$?
3179  grep -v '^ *+' conftest.er1 >conftest.err
3180  rm -f conftest.er1
3181  cat conftest.err >&5
3182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183  (exit $ac_status); } &&
3184         { ac_try='test -z "$ac_c_werror_flag"
3185                         || test ! -s conftest.err'
3186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3187  (eval $ac_try) 2>&5
3188  ac_status=$?
3189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190  (exit $ac_status); }; } &&
3191         { ac_try='test -s conftest.$ac_objext'
3192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3193  (eval $ac_try) 2>&5
3194  ac_status=$?
3195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196  (exit $ac_status); }; }; then
3197  for ac_declaration in \
3198   '' \
3199   'extern "C" void std::exit (int) throw (); using std::exit;' \
3200   'extern "C" void std::exit (int); using std::exit;' \
3201   'extern "C" void exit (int) throw ();' \
3202   'extern "C" void exit (int);' \
3203   'void exit (int);'
3204do
3205  cat >conftest.$ac_ext <<_ACEOF
3206/* confdefs.h.  */
3207_ACEOF
3208cat confdefs.h >>conftest.$ac_ext
3209cat >>conftest.$ac_ext <<_ACEOF
3210/* end confdefs.h.  */
3211$ac_declaration
3212#include <stdlib.h>
3213int
3214main ()
3215{
3216exit (42);
3217  ;
3218  return 0;
3219}
3220_ACEOF
3221rm -f conftest.$ac_objext
3222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3223  (eval $ac_compile) 2>conftest.er1
3224  ac_status=$?
3225  grep -v '^ *+' conftest.er1 >conftest.err
3226  rm -f conftest.er1
3227  cat conftest.err >&5
3228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229  (exit $ac_status); } &&
3230         { ac_try='test -z "$ac_c_werror_flag"
3231                         || test ! -s conftest.err'
3232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233  (eval $ac_try) 2>&5
3234  ac_status=$?
3235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236  (exit $ac_status); }; } &&
3237         { ac_try='test -s conftest.$ac_objext'
3238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239  (eval $ac_try) 2>&5
3240  ac_status=$?
3241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242  (exit $ac_status); }; }; then
3243  :
3244else
3245  echo "$as_me: failed program was:" >&5
3246sed 's/^/| /' conftest.$ac_ext >&5
3247
3248continue
3249fi
3250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3251  cat >conftest.$ac_ext <<_ACEOF
3252/* confdefs.h.  */
3253_ACEOF
3254cat confdefs.h >>conftest.$ac_ext
3255cat >>conftest.$ac_ext <<_ACEOF
3256/* end confdefs.h.  */
3257$ac_declaration
3258int
3259main ()
3260{
3261exit (42);
3262  ;
3263  return 0;
3264}
3265_ACEOF
3266rm -f conftest.$ac_objext
3267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3268  (eval $ac_compile) 2>conftest.er1
3269  ac_status=$?
3270  grep -v '^ *+' conftest.er1 >conftest.err
3271  rm -f conftest.er1
3272  cat conftest.err >&5
3273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274  (exit $ac_status); } &&
3275         { ac_try='test -z "$ac_c_werror_flag"
3276                         || test ! -s conftest.err'
3277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3278  (eval $ac_try) 2>&5
3279  ac_status=$?
3280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281  (exit $ac_status); }; } &&
3282         { ac_try='test -s conftest.$ac_objext'
3283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3284  (eval $ac_try) 2>&5
3285  ac_status=$?
3286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287  (exit $ac_status); }; }; then
3288  break
3289else
3290  echo "$as_me: failed program was:" >&5
3291sed 's/^/| /' conftest.$ac_ext >&5
3292
3293fi
3294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3295done
3296rm -f conftest*
3297if test -n "$ac_declaration"; then
3298  echo '#ifdef __cplusplus' >>confdefs.h
3299  echo $ac_declaration      >>confdefs.h
3300  echo '#endif'             >>confdefs.h
3301fi
3302
3303else
3304  echo "$as_me: failed program was:" >&5
3305sed 's/^/| /' conftest.$ac_ext >&5
3306
3307fi
3308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3309ac_ext=c
3310ac_cpp='$CPP $CPPFLAGS'
3311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3313ac_compiler_gnu=$ac_cv_c_compiler_gnu
3314
3315depcc="$CC"   am_compiler_list=
3316
3317echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3318echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3319if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3320  echo $ECHO_N "(cached) $ECHO_C" >&6
3321else
3322  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3323  # We make a subdir and do the tests there.  Otherwise we can end up
3324  # making bogus files that we don't know about and never remove.  For
3325  # instance it was reported that on HP-UX the gcc test will end up
3326  # making a dummy file named `D' -- because `-MD' means `put the output
3327  # in D'.
3328  mkdir conftest.dir
3329  # Copy depcomp to subdir because otherwise we won't find it if we're
3330  # using a relative directory.
3331  cp "$am_depcomp" conftest.dir
3332  cd conftest.dir
3333  # We will build objects and dependencies in a subdirectory because
3334  # it helps to detect inapplicable dependency modes.  For instance
3335  # both Tru64's cc and ICC support -MD to output dependencies as a
3336  # side effect of compilation, but ICC will put the dependencies in
3337  # the current directory while Tru64 will put them in the object
3338  # directory.
3339  mkdir sub
3340
3341  am_cv_CC_dependencies_compiler_type=none
3342  if test "$am_compiler_list" = ""; then
3343     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3344  fi
3345  for depmode in $am_compiler_list; do
3346    # Setup a source with many dependencies, because some compilers
3347    # like to wrap large dependency lists on column 80 (with \), and
3348    # we should not choose a depcomp mode which is confused by this.
3349    #
3350    # We need to recreate these files for each test, as the compiler may
3351    # overwrite some of them when testing with obscure command lines.
3352    # This happens at least with the AIX C compiler.
3353    : > sub/conftest.c
3354    for i in 1 2 3 4 5 6; do
3355      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3356      : > sub/conftst$i.h
3357    done
3358    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3359
3360    case $depmode in
3361    nosideeffect)
3362      # after this tag, mechanisms are not by side-effect, so they'll
3363      # only be used when explicitly requested
3364      if test "x$enable_dependency_tracking" = xyes; then
3365        continue
3366      else
3367        break
3368      fi
3369      ;;
3370    none) break ;;
3371    esac
3372    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3373    # mode.  It turns out that the SunPro C++ compiler does not properly
3374    # handle `-M -o', and we need to detect this.
3375    if depmode=$depmode \
3376       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3377       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3378       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3379         >/dev/null 2>conftest.err &&
3380       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3381       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3382       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3383      # icc doesn't choke on unknown options, it will just issue warnings
3384      # (even with -Werror).  So we grep stderr for any message
3385      # that says an option was ignored.
3386      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3387        am_cv_CC_dependencies_compiler_type=$depmode
3388        break
3389      fi
3390    fi
3391  done
3392
3393  cd ..
3394  rm -rf conftest.dir
3395else
3396  am_cv_CC_dependencies_compiler_type=none
3397fi
3398
3399fi
3400echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3401echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3402CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3403
3404
3405
3406if
3407  test "x$enable_dependency_tracking" != xno \
3408  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3409  am__fastdepCC_TRUE=
3410  am__fastdepCC_FALSE='#'
3411else
3412  am__fastdepCC_TRUE='#'
3413  am__fastdepCC_FALSE=
3414fi
3415
3416
3417
3418ac_ext=c
3419ac_cpp='$CPP $CPPFLAGS'
3420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3422ac_compiler_gnu=$ac_cv_c_compiler_gnu
3423echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3424echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3425# On Suns, sometimes $CPP names a directory.
3426if test -n "$CPP" && test -d "$CPP"; then
3427  CPP=
3428fi
3429if test -z "$CPP"; then
3430  if test "${ac_cv_prog_CPP+set}" = set; then
3431  echo $ECHO_N "(cached) $ECHO_C" >&6
3432else
3433      # Double quotes because CPP needs to be expanded
3434    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3435    do
3436      ac_preproc_ok=false
3437for ac_c_preproc_warn_flag in '' yes
3438do
3439  # Use a header file that comes with gcc, so configuring glibc
3440  # with a fresh cross-compiler works.
3441  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3442  # <limits.h> exists even on freestanding compilers.
3443  # On the NeXT, cc -E runs the code through the compiler's parser,
3444  # not just through cpp. "Syntax error" is here to catch this case.
3445  cat >conftest.$ac_ext <<_ACEOF
3446/* confdefs.h.  */
3447_ACEOF
3448cat confdefs.h >>conftest.$ac_ext
3449cat >>conftest.$ac_ext <<_ACEOF
3450/* end confdefs.h.  */
3451#ifdef __STDC__
3452# include <limits.h>
3453#else
3454# include <assert.h>
3455#endif
3456                     Syntax error
3457_ACEOF
3458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3459  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3460  ac_status=$?
3461  grep -v '^ *+' conftest.er1 >conftest.err
3462  rm -f conftest.er1
3463  cat conftest.err >&5
3464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465  (exit $ac_status); } >/dev/null; then
3466  if test -s conftest.err; then
3467    ac_cpp_err=$ac_c_preproc_warn_flag
3468    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3469  else
3470    ac_cpp_err=
3471  fi
3472else
3473  ac_cpp_err=yes
3474fi
3475if test -z "$ac_cpp_err"; then
3476  :
3477else
3478  echo "$as_me: failed program was:" >&5
3479sed 's/^/| /' conftest.$ac_ext >&5
3480
3481  # Broken: fails on valid input.
3482continue
3483fi
3484rm -f conftest.err conftest.$ac_ext
3485
3486  # OK, works on sane cases.  Now check whether non-existent headers
3487  # can be detected and how.
3488  cat >conftest.$ac_ext <<_ACEOF
3489/* confdefs.h.  */
3490_ACEOF
3491cat confdefs.h >>conftest.$ac_ext
3492cat >>conftest.$ac_ext <<_ACEOF
3493/* end confdefs.h.  */
3494#include <ac_nonexistent.h>
3495_ACEOF
3496if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3497  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3498  ac_status=$?
3499  grep -v '^ *+' conftest.er1 >conftest.err
3500  rm -f conftest.er1
3501  cat conftest.err >&5
3502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503  (exit $ac_status); } >/dev/null; then
3504  if test -s conftest.err; then
3505    ac_cpp_err=$ac_c_preproc_warn_flag
3506    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3507  else
3508    ac_cpp_err=
3509  fi
3510else
3511  ac_cpp_err=yes
3512fi
3513if test -z "$ac_cpp_err"; then
3514  # Broken: success on invalid input.
3515continue
3516else
3517  echo "$as_me: failed program was:" >&5
3518sed 's/^/| /' conftest.$ac_ext >&5
3519
3520  # Passes both tests.
3521ac_preproc_ok=:
3522break
3523fi
3524rm -f conftest.err conftest.$ac_ext
3525
3526done
3527# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3528rm -f conftest.err conftest.$ac_ext
3529if $ac_preproc_ok; then
3530  break
3531fi
3532
3533    done
3534    ac_cv_prog_CPP=$CPP
3535
3536fi
3537  CPP=$ac_cv_prog_CPP
3538else
3539  ac_cv_prog_CPP=$CPP
3540fi
3541echo "$as_me:$LINENO: result: $CPP" >&5
3542echo "${ECHO_T}$CPP" >&6
3543ac_preproc_ok=false
3544for ac_c_preproc_warn_flag in '' yes
3545do
3546  # Use a header file that comes with gcc, so configuring glibc
3547  # with a fresh cross-compiler works.
3548  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3549  # <limits.h> exists even on freestanding compilers.
3550  # On the NeXT, cc -E runs the code through the compiler's parser,
3551  # not just through cpp. "Syntax error" is here to catch this case.
3552  cat >conftest.$ac_ext <<_ACEOF
3553/* confdefs.h.  */
3554_ACEOF
3555cat confdefs.h >>conftest.$ac_ext
3556cat >>conftest.$ac_ext <<_ACEOF
3557/* end confdefs.h.  */
3558#ifdef __STDC__
3559# include <limits.h>
3560#else
3561# include <assert.h>
3562#endif
3563                     Syntax error
3564_ACEOF
3565if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3566  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3567  ac_status=$?
3568  grep -v '^ *+' conftest.er1 >conftest.err
3569  rm -f conftest.er1
3570  cat conftest.err >&5
3571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572  (exit $ac_status); } >/dev/null; then
3573  if test -s conftest.err; then
3574    ac_cpp_err=$ac_c_preproc_warn_flag
3575    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3576  else
3577    ac_cpp_err=
3578  fi
3579else
3580  ac_cpp_err=yes
3581fi
3582if test -z "$ac_cpp_err"; then
3583  :
3584else
3585  echo "$as_me: failed program was:" >&5
3586sed 's/^/| /' conftest.$ac_ext >&5
3587
3588  # Broken: fails on valid input.
3589continue
3590fi
3591rm -f conftest.err conftest.$ac_ext
3592
3593  # OK, works on sane cases.  Now check whether non-existent headers
3594  # can be detected and how.
3595  cat >conftest.$ac_ext <<_ACEOF
3596/* confdefs.h.  */
3597_ACEOF
3598cat confdefs.h >>conftest.$ac_ext
3599cat >>conftest.$ac_ext <<_ACEOF
3600/* end confdefs.h.  */
3601#include <ac_nonexistent.h>
3602_ACEOF
3603if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3604  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3605  ac_status=$?
3606  grep -v '^ *+' conftest.er1 >conftest.err
3607  rm -f conftest.er1
3608  cat conftest.err >&5
3609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610  (exit $ac_status); } >/dev/null; then
3611  if test -s conftest.err; then
3612    ac_cpp_err=$ac_c_preproc_warn_flag
3613    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3614  else
3615    ac_cpp_err=
3616  fi
3617else
3618  ac_cpp_err=yes
3619fi
3620if test -z "$ac_cpp_err"; then
3621  # Broken: success on invalid input.
3622continue
3623else
3624  echo "$as_me: failed program was:" >&5
3625sed 's/^/| /' conftest.$ac_ext >&5
3626
3627  # Passes both tests.
3628ac_preproc_ok=:
3629break
3630fi
3631rm -f conftest.err conftest.$ac_ext
3632
3633done
3634# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3635rm -f conftest.err conftest.$ac_ext
3636if $ac_preproc_ok; then
3637  :
3638else
3639  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3640See \`config.log' for more details." >&5
3641echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3642See \`config.log' for more details." >&2;}
3643   { (exit 1); exit 1; }; }
3644fi
3645
3646ac_ext=c
3647ac_cpp='$CPP $CPPFLAGS'
3648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651
3652
3653echo "$as_me:$LINENO: checking for egrep" >&5
3654echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3655if test "${ac_cv_prog_egrep+set}" = set; then
3656  echo $ECHO_N "(cached) $ECHO_C" >&6
3657else
3658  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3659    then ac_cv_prog_egrep='grep -E'
3660    else ac_cv_prog_egrep='egrep'
3661    fi
3662fi
3663echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3664echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3665 EGREP=$ac_cv_prog_egrep
3666
3667
3668echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3669echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3670if test "${ac_cv_header_stdc+set}" = set; then
3671  echo $ECHO_N "(cached) $ECHO_C" >&6
3672else
3673  cat >conftest.$ac_ext <<_ACEOF
3674/* confdefs.h.  */
3675_ACEOF
3676cat confdefs.h >>conftest.$ac_ext
3677cat >>conftest.$ac_ext <<_ACEOF
3678/* end confdefs.h.  */
3679#include <stdlib.h>
3680#include <stdarg.h>
3681#include <string.h>
3682#include <float.h>
3683
3684int
3685main ()
3686{
3687
3688  ;
3689  return 0;
3690}
3691_ACEOF
3692rm -f conftest.$ac_objext
3693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3694  (eval $ac_compile) 2>conftest.er1
3695  ac_status=$?
3696  grep -v '^ *+' conftest.er1 >conftest.err
3697  rm -f conftest.er1
3698  cat conftest.err >&5
3699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700  (exit $ac_status); } &&
3701         { ac_try='test -z "$ac_c_werror_flag"
3702                         || test ! -s conftest.err'
3703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3704  (eval $ac_try) 2>&5
3705  ac_status=$?
3706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707  (exit $ac_status); }; } &&
3708         { ac_try='test -s conftest.$ac_objext'
3709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710  (eval $ac_try) 2>&5
3711  ac_status=$?
3712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713  (exit $ac_status); }; }; then
3714  ac_cv_header_stdc=yes
3715else
3716  echo "$as_me: failed program was:" >&5
3717sed 's/^/| /' conftest.$ac_ext >&5
3718
3719ac_cv_header_stdc=no
3720fi
3721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3722
3723if test $ac_cv_header_stdc = yes; then
3724  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3725  cat >conftest.$ac_ext <<_ACEOF
3726/* confdefs.h.  */
3727_ACEOF
3728cat confdefs.h >>conftest.$ac_ext
3729cat >>conftest.$ac_ext <<_ACEOF
3730/* end confdefs.h.  */
3731#include <string.h>
3732
3733_ACEOF
3734if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3735  $EGREP "memchr" >/dev/null 2>&1; then
3736  :
3737else
3738  ac_cv_header_stdc=no
3739fi
3740rm -f conftest*
3741
3742fi
3743
3744if test $ac_cv_header_stdc = yes; then
3745  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3746  cat >conftest.$ac_ext <<_ACEOF
3747/* confdefs.h.  */
3748_ACEOF
3749cat confdefs.h >>conftest.$ac_ext
3750cat >>conftest.$ac_ext <<_ACEOF
3751/* end confdefs.h.  */
3752#include <stdlib.h>
3753
3754_ACEOF
3755if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3756  $EGREP "free" >/dev/null 2>&1; then
3757  :
3758else
3759  ac_cv_header_stdc=no
3760fi
3761rm -f conftest*
3762
3763fi
3764
3765if test $ac_cv_header_stdc = yes; then
3766  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3767  if test "$cross_compiling" = yes; then
3768  :
3769else
3770  cat >conftest.$ac_ext <<_ACEOF
3771/* confdefs.h.  */
3772_ACEOF
3773cat confdefs.h >>conftest.$ac_ext
3774cat >>conftest.$ac_ext <<_ACEOF
3775/* end confdefs.h.  */
3776#include <ctype.h>
3777#if ((' ' & 0x0FF) == 0x020)
3778# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3779# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3780#else
3781# define ISLOWER(c) \
3782                   (('a' <= (c) && (c) <= 'i') \
3783                     || ('j' <= (c) && (c) <= 'r') \
3784                     || ('s' <= (c) && (c) <= 'z'))
3785# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3786#endif
3787
3788#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3789int
3790main ()
3791{
3792  int i;
3793  for (i = 0; i < 256; i++)
3794    if (XOR (islower (i), ISLOWER (i))
3795        || toupper (i) != TOUPPER (i))
3796      exit(2);
3797  exit (0);
3798}
3799_ACEOF
3800rm -f conftest$ac_exeext
3801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3802  (eval $ac_link) 2>&5
3803  ac_status=$?
3804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3806  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3807  (eval $ac_try) 2>&5
3808  ac_status=$?
3809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810  (exit $ac_status); }; }; then
3811  :
3812else
3813  echo "$as_me: program exited with status $ac_status" >&5
3814echo "$as_me: failed program was:" >&5
3815sed 's/^/| /' conftest.$ac_ext >&5
3816
3817( exit $ac_status )
3818ac_cv_header_stdc=no
3819fi
3820rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3821fi
3822fi
3823fi
3824echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3825echo "${ECHO_T}$ac_cv_header_stdc" >&6
3826if test $ac_cv_header_stdc = yes; then
3827
3828cat >>confdefs.h <<\_ACEOF
3829#define STDC_HEADERS 1
3830_ACEOF
3831
3832fi
3833
3834
3835##################################
3836## CHECKING  OPTIONAL ARGUMENTS ##
3837##################################
3838
3839#-----------------#
3840# DEBUG-statement #
3841#-----------------#
3842DEBUG=no
3843echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5
3844echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6
3845# Check whether --enable-debug or --disable-debug was given.
3846if test "${enable_debug+set}" = set; then
3847  enableval="$enable_debug"
3848  DEBUG=$enableval
3849fi;
3850
3851if test x$DEBUG = xno; then
3852        echo "no"
3853        echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed."
3854        DEBUG=4
3855elif test x$DEBUG = xyes; then
3856        echo "yes"
3857        echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!."
3858        DEBUG=4
3859else
3860        echo "yes: setting debuglevel to to $DEBUG"
3861fi
3862
3863cat >>confdefs.h <<_ACEOF
3864#define DEBUG $DEBUG
3865_ACEOF
3866
3867
3868
3869
3870#---------------#
3871# Modular Debug #
3872#---------------#
3873MODULAR_DEBUG=yes
3874echo "$as_me:$LINENO: checking if Modular-DEBUG-mode should be ebabled" >&5
3875echo $ECHO_N "checking if Modular-DEBUG-mode should be ebabled... $ECHO_C" >&6
3876# Check whether --enable-modular-debug or --disable-modular-debug was given.
3877if test "${enable_modular_debug+set}" = set; then
3878  enableval="$enable_modular_debug"
3879  MODULAR_DEBUG=$enableval
3880fi;
3881
3882if test x$MODULAR_DEBUG = xno; then
3883        echo "no"
3884elif test x$MODULAR_DEBUG = xyes; then
3885        echo "yes"
3886
3887cat >>confdefs.h <<_ACEOF
3888#define MODULAR_DEBUG 1
3889_ACEOF
3890
3891fi
3892
3893#--------------#
3894# GTK-disabled #
3895#--------------#
3896echo "$as_me:$LINENO: checking if gtk should be enabled" >&5
3897echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6
3898
3899# Check whether --with-gtk or --without-gtk was given.
3900if test "${with_gtk+set}" = set; then
3901  withval="$with_gtk"
3902  def_gtk=no
3903else
3904  def_gtk=yes
3905fi;
3906if test x$def_gtk = xyes; then
3907  echo "yes"
3908fi
3909if test x$def_gtk = xno; then
3910  echo "no"
3911fi
3912
3913#------------------#
3914# gThread-disabled #
3915#------------------#
3916echo "$as_me:$LINENO: checking if gThread should be enabled" >&5
3917echo $ECHO_N "checking if gThread should be enabled... $ECHO_C" >&6
3918
3919# Check whether --with-gthread or --without-gthread was given.
3920if test "${with_gthread+set}" = set; then
3921  withval="$with_gthread"
3922  def_gthread=no
3923else
3924  def_gthread=yes
3925fi;
3926if test x$def_gthread = xyes; then
3927  echo "yes"
3928fi
3929if test x$def_gthread = xno; then
3930  echo "no"
3931fi
3932
3933#------------------#
3934# pthread-disabled #
3935#------------------#
3936echo "$as_me:$LINENO: checking if pthread should be enabled" >&5
3937echo $ECHO_N "checking if pthread should be enabled... $ECHO_C" >&6
3938
3939# Check whether --with-pthread or --without-pthread was given.
3940if test "${with_pthread+set}" = set; then
3941  withval="$with_pthread"
3942  def_pthread=no
3943else
3944  def_pthread=yes
3945fi;
3946if test x$def_pthread = xyes; then
3947  echo "yes"
3948fi
3949if test x$def_pthread = xno; then
3950  echo "no"
3951fi
3952
3953#------------------#
3954# libCurl-disabled #
3955#------------------#
3956echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5
3957echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6
3958
3959# Check whether --with-curl or --without-curl was given.
3960if test "${with_curl+set}" = set; then
3961  withval="$with_curl"
3962  def_curl=no
3963else
3964  def_curl=yes
3965fi;
3966if test x$def_curl = xyes; then
3967  echo "yes"
3968fi
3969if test x$def_curl = xno; then
3970  echo "no"
3971fi
3972
3973#-------------------#
3974# SubProject-enable #
3975#-------------------#
3976def_sub_projects=no
3977echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5
3978echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6
3979# Check whether --enable-sub-projects or --disable-sub-projects was given.
3980if test "${enable_sub_projects+set}" = set; then
3981  enableval="$enable_sub_projects"
3982  def_sub_projects=yes
3983fi;
3984if test x$def_sub_projects = xyes; then
3985  echo "yes"
3986fi
3987if test x$def_sub_projects = xno; then
3988  echo "no"
3989fi
3990
3991
3992if test x$def_sub_projects = xyes; then
3993  SUB_PROJECTS_TRUE=
3994  SUB_PROJECTS_FALSE='#'
3995else
3996  SUB_PROJECTS_TRUE='#'
3997  SUB_PROJECTS_FALSE=
3998fi
3999
4000
4001#-------------------#
4002# Profiling Enabled #
4003#-------------------#
4004def_profiling=no
4005echo "$as_me:$LINENO: checking if Profiling should be enabled" >&5
4006echo $ECHO_N "checking if Profiling should be enabled... $ECHO_C" >&6
4007# Check whether --enable-profile or --disable-profile was given.
4008if test "${enable_profile+set}" = set; then
4009  enableval="$enable_profile"
4010  def_profiling=yes
4011fi;
4012if test x$def_profiling = xyes; then
4013  echo "yes"
4014  CXXFLAGS="$CXXFLAGS -pg"
4015fi
4016if test x$def_profiling = xno; then
4017  echo "no"
4018fi
4019
4020#----------------#
4021# efence Enabled #
4022#----------------#
4023def_efence=no
4024echo "$as_me:$LINENO: checking if efence should be enabled" >&5
4025echo $ECHO_N "checking if efence should be enabled... $ECHO_C" >&6
4026# Check whether --enable-efence or --disable-efence was given.
4027if test "${enable_efence+set}" = set; then
4028  enableval="$enable_efence"
4029  def_efence=yes
4030fi;
4031if test x$def_efence = xyes; then
4032  echo "yes"
4033fi
4034if test x$def_efence = xno; then
4035  echo "no"
4036fi
4037
4038#----------------------#
4039# Documentation-enable #
4040#----------------------#
4041def_documentation=no
4042echo "$as_me:$LINENO: checking if the Documentation should be build by default" >&5
4043echo $ECHO_N "checking if the Documentation should be build by default... $ECHO_C" >&6
4044# Check whether --enable-documentation or --disable-documentation was given.
4045if test "${enable_documentation+set}" = set; then
4046  enableval="$enable_documentation"
4047  def_documentation=yes
4048fi;
4049if test x$def_documentation = xyes; then
4050  echo "yes"
4051fi
4052if test x$def_documentation = xno; then
4053  echo "no"
4054fi
4055
4056
4057if test x$def_documentation = xyes; then
4058  DOCUMENTATION_TRUE=
4059  DOCUMENTATION_FALSE='#'
4060else
4061  DOCUMENTATION_TRUE='#'
4062  DOCUMENTATION_FALSE=
4063fi
4064
4065#######################
4066## PROGRAMM CHECKING ##
4067## 3. party Programs ##
4068#######################
4069
4070#----------------------#
4071# checking for Doxygen #
4072#----------------------#
4073# Extract the first word of "doxygen", so it can be a program name with args.
4074set dummy doxygen; ac_word=$2
4075echo "$as_me:$LINENO: checking for $ac_word" >&5
4076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4077if test "${ac_cv_path_DOXYGEN+set}" = set; then
4078  echo $ECHO_N "(cached) $ECHO_C" >&6
4079else
4080  case $DOXYGEN in
4081  [\\/]* | ?:[\\/]*)
4082  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
4083  ;;
4084  *)
4085  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086for as_dir in $PATH
4087do
4088  IFS=$as_save_IFS
4089  test -z "$as_dir" && as_dir=.
4090  for ac_exec_ext in '' $ac_executable_extensions; do
4091  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4092    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
4093    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4094    break 2
4095  fi
4096done
4097done
4098
4099  ;;
4100esac
4101fi
4102DOXYGEN=$ac_cv_path_DOXYGEN
4103
4104if test -n "$DOXYGEN"; then
4105  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
4106echo "${ECHO_T}$DOXYGEN" >&6
4107else
4108  echo "$as_me:$LINENO: result: no" >&5
4109echo "${ECHO_T}no" >&6
4110fi
4111
4112
4113
4114if test $DOXYGEN; then
4115  DOXYGEN_TRUE=
4116  DOXYGEN_FALSE='#'
4117else
4118  DOXYGEN_TRUE='#'
4119  DOXYGEN_FALSE=
4120fi
4121
4122
4123#--------------------#
4124# checking for gprof #
4125#--------------------#
4126# Extract the first word of "gprof", so it can be a program name with args.
4127set dummy gprof; ac_word=$2
4128echo "$as_me:$LINENO: checking for $ac_word" >&5
4129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4130if test "${ac_cv_path_GPROF+set}" = set; then
4131  echo $ECHO_N "(cached) $ECHO_C" >&6
4132else
4133  case $GPROF in
4134  [\\/]* | ?:[\\/]*)
4135  ac_cv_path_GPROF="$GPROF" # Let the user override the test with a path.
4136  ;;
4137  *)
4138  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139for as_dir in $PATH
4140do
4141  IFS=$as_save_IFS
4142  test -z "$as_dir" && as_dir=.
4143  for ac_exec_ext in '' $ac_executable_extensions; do
4144  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4145    ac_cv_path_GPROF="$as_dir/$ac_word$ac_exec_ext"
4146    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4147    break 2
4148  fi
4149done
4150done
4151
4152  ;;
4153esac
4154fi
4155GPROF=$ac_cv_path_GPROF
4156
4157if test -n "$GPROF"; then
4158  echo "$as_me:$LINENO: result: $GPROF" >&5
4159echo "${ECHO_T}$GPROF" >&6
4160else
4161  echo "$as_me:$LINENO: result: no" >&5
4162echo "${ECHO_T}no" >&6
4163fi
4164
4165
4166#########################
4167## CHECKING FOR SYSTEM ##
4168#########################
4169## here the system is checked, and openGL is included
4170## also checking for SDL on differen Systems
4171
4172echo "$as_me:$LINENO: checking for System" >&5
4173echo $ECHO_N "checking for System... $ECHO_C" >&6
4174## checking for openGL-environment and other sys-specific parameters
4175case "$target" in
4176#---------#
4177# WINDOWS #
4178#---------#
4179  *-*-mingw32*)
4180echo "mingw-WINDOWS detected"
4181
4182CPPFLAGS="-I/usr/include/SDL -I/mingw/include/SDL"
4183
4184    mingw="yes"
4185    MSBITFIELDS="-mms-bitfields"
4186    MWINDOWS="-mwindows"
4187
4188# checking gl header
4189        #done before loop
4190
4191# checking gl header
4192   # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4203                  inttypes.h stdint.h unistd.h
4204do
4205as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4206echo "$as_me:$LINENO: checking for $ac_header" >&5
4207echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4208if eval "test \"\${$as_ac_Header+set}\" = set"; then
4209  echo $ECHO_N "(cached) $ECHO_C" >&6
4210else
4211  cat >conftest.$ac_ext <<_ACEOF
4212/* confdefs.h.  */
4213_ACEOF
4214cat confdefs.h >>conftest.$ac_ext
4215cat >>conftest.$ac_ext <<_ACEOF
4216/* end confdefs.h.  */
4217$ac_includes_default
4218
4219#include <$ac_header>
4220_ACEOF
4221rm -f conftest.$ac_objext
4222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4223  (eval $ac_compile) 2>conftest.er1
4224  ac_status=$?
4225  grep -v '^ *+' conftest.er1 >conftest.err
4226  rm -f conftest.er1
4227  cat conftest.err >&5
4228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229  (exit $ac_status); } &&
4230         { ac_try='test -z "$ac_c_werror_flag"
4231                         || test ! -s conftest.err'
4232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233  (eval $ac_try) 2>&5
4234  ac_status=$?
4235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236  (exit $ac_status); }; } &&
4237         { ac_try='test -s conftest.$ac_objext'
4238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4239  (eval $ac_try) 2>&5
4240  ac_status=$?
4241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242  (exit $ac_status); }; }; then
4243  eval "$as_ac_Header=yes"
4244else
4245  echo "$as_me: failed program was:" >&5
4246sed 's/^/| /' conftest.$ac_ext >&5
4247
4248eval "$as_ac_Header=no"
4249fi
4250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4251fi
4252echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4253echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4254if test `eval echo '${'$as_ac_Header'}'` = yes; then
4255  cat >>confdefs.h <<_ACEOF
4256#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4257_ACEOF
4258
4259fi
4260
4261done
4262
4263
4264
4265for ac_header in GL/gl.h
4266do
4267as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4268if eval "test \"\${$as_ac_Header+set}\" = set"; then
4269  echo "$as_me:$LINENO: checking for $ac_header" >&5
4270echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4271if eval "test \"\${$as_ac_Header+set}\" = set"; then
4272  echo $ECHO_N "(cached) $ECHO_C" >&6
4273fi
4274echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4275echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4276else
4277  # Is the header compilable?
4278echo "$as_me:$LINENO: checking $ac_header usability" >&5
4279echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4280cat >conftest.$ac_ext <<_ACEOF
4281/* confdefs.h.  */
4282_ACEOF
4283cat confdefs.h >>conftest.$ac_ext
4284cat >>conftest.$ac_ext <<_ACEOF
4285/* end confdefs.h.  */
4286$ac_includes_default
4287#include <$ac_header>
4288_ACEOF
4289rm -f conftest.$ac_objext
4290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4291  (eval $ac_compile) 2>conftest.er1
4292  ac_status=$?
4293  grep -v '^ *+' conftest.er1 >conftest.err
4294  rm -f conftest.er1
4295  cat conftest.err >&5
4296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297  (exit $ac_status); } &&
4298         { ac_try='test -z "$ac_c_werror_flag"
4299                         || test ! -s conftest.err'
4300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301  (eval $ac_try) 2>&5
4302  ac_status=$?
4303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304  (exit $ac_status); }; } &&
4305         { ac_try='test -s conftest.$ac_objext'
4306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307  (eval $ac_try) 2>&5
4308  ac_status=$?
4309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310  (exit $ac_status); }; }; then
4311  ac_header_compiler=yes
4312else
4313  echo "$as_me: failed program was:" >&5
4314sed 's/^/| /' conftest.$ac_ext >&5
4315
4316ac_header_compiler=no
4317fi
4318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4319echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4320echo "${ECHO_T}$ac_header_compiler" >&6
4321
4322# Is the header present?
4323echo "$as_me:$LINENO: checking $ac_header presence" >&5
4324echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4325cat >conftest.$ac_ext <<_ACEOF
4326/* confdefs.h.  */
4327_ACEOF
4328cat confdefs.h >>conftest.$ac_ext
4329cat >>conftest.$ac_ext <<_ACEOF
4330/* end confdefs.h.  */
4331#include <$ac_header>
4332_ACEOF
4333if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4334  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4335  ac_status=$?
4336  grep -v '^ *+' conftest.er1 >conftest.err
4337  rm -f conftest.er1
4338  cat conftest.err >&5
4339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340  (exit $ac_status); } >/dev/null; then
4341  if test -s conftest.err; then
4342    ac_cpp_err=$ac_c_preproc_warn_flag
4343    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4344  else
4345    ac_cpp_err=
4346  fi
4347else
4348  ac_cpp_err=yes
4349fi
4350if test -z "$ac_cpp_err"; then
4351  ac_header_preproc=yes
4352else
4353  echo "$as_me: failed program was:" >&5
4354sed 's/^/| /' conftest.$ac_ext >&5
4355
4356  ac_header_preproc=no
4357fi
4358rm -f conftest.err conftest.$ac_ext
4359echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4360echo "${ECHO_T}$ac_header_preproc" >&6
4361
4362# So?  What about this header?
4363case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4364  yes:no: )
4365    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4366echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4367    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4368echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4369    ac_header_preproc=yes
4370    ;;
4371  no:yes:* )
4372    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4373echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4374    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4375echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4376    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4377echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4378    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4379echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4380    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4381echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4382    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4383echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4384    (
4385      cat <<\_ASBOX
4386## ---------------------------------------------- ##
4387## Report this to orxonox-dev at mail.datacore.ch ##
4388## ---------------------------------------------- ##
4389_ASBOX
4390    ) |
4391      sed "s/^/$as_me: WARNING:     /" >&2
4392    ;;
4393esac
4394echo "$as_me:$LINENO: checking for $ac_header" >&5
4395echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4396if eval "test \"\${$as_ac_Header+set}\" = set"; then
4397  echo $ECHO_N "(cached) $ECHO_C" >&6
4398else
4399  eval "$as_ac_Header=\$ac_header_preproc"
4400fi
4401echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4402echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4403
4404fi
4405if test `eval echo '${'$as_ac_Header'}'` = yes; then
4406  cat >>confdefs.h <<_ACEOF
4407#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4408_ACEOF
4409
4410else
4411  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4412echo "$as_me: error: cannot find opengl headers" >&2;}
4413   { (exit 1); exit 1; }; }
4414fi
4415
4416done
4417
4418#   checking for Windows openGl library
4419    echo "$as_me:$LINENO: checking for main in -lopengl32" >&5
4420echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6
4421if test "${ac_cv_lib_opengl32_main+set}" = set; then
4422  echo $ECHO_N "(cached) $ECHO_C" >&6
4423else
4424  ac_check_lib_save_LIBS=$LIBS
4425LIBS="-lopengl32  $LIBS"
4426cat >conftest.$ac_ext <<_ACEOF
4427/* confdefs.h.  */
4428_ACEOF
4429cat confdefs.h >>conftest.$ac_ext
4430cat >>conftest.$ac_ext <<_ACEOF
4431/* end confdefs.h.  */
4432
4433
4434int
4435main ()
4436{
4437main ();
4438  ;
4439  return 0;
4440}
4441_ACEOF
4442rm -f conftest.$ac_objext conftest$ac_exeext
4443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4444  (eval $ac_link) 2>conftest.er1
4445  ac_status=$?
4446  grep -v '^ *+' conftest.er1 >conftest.err
4447  rm -f conftest.er1
4448  cat conftest.err >&5
4449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450  (exit $ac_status); } &&
4451         { ac_try='test -z "$ac_c_werror_flag"
4452                         || test ! -s conftest.err'
4453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454  (eval $ac_try) 2>&5
4455  ac_status=$?
4456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457  (exit $ac_status); }; } &&
4458         { ac_try='test -s conftest$ac_exeext'
4459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460  (eval $ac_try) 2>&5
4461  ac_status=$?
4462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463  (exit $ac_status); }; }; then
4464  ac_cv_lib_opengl32_main=yes
4465else
4466  echo "$as_me: failed program was:" >&5
4467sed 's/^/| /' conftest.$ac_ext >&5
4468
4469ac_cv_lib_opengl32_main=no
4470fi
4471rm -f conftest.err conftest.$ac_objext \
4472      conftest$ac_exeext conftest.$ac_ext
4473LIBS=$ac_check_lib_save_LIBS
4474fi
4475echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5
4476echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6
4477if test $ac_cv_lib_opengl32_main = yes; then
4478  FOUND_opengl32=yes
4479else
4480  "gl/gl.h"
4481fi
4482
4483    if test x$FOUND_opengl32 = xyes ; then
4484        LIBS="$LIBS -lopengl32"
4485    else
4486         echo "------------------"
4487         echo "opengl not found."
4488         echo "please install the opengl package which can be found at http://www.opengl.org"
4489         echo "------------------"
4490         exit -1
4491    fi
4492
4493# cheking for GLU-header
4494
4495for ac_header in GL/glu.h
4496do
4497as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4498if eval "test \"\${$as_ac_Header+set}\" = set"; then
4499  echo "$as_me:$LINENO: checking for $ac_header" >&5
4500echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4501if eval "test \"\${$as_ac_Header+set}\" = set"; then
4502  echo $ECHO_N "(cached) $ECHO_C" >&6
4503fi
4504echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4505echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4506else
4507  # Is the header compilable?
4508echo "$as_me:$LINENO: checking $ac_header usability" >&5
4509echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4510cat >conftest.$ac_ext <<_ACEOF
4511/* confdefs.h.  */
4512_ACEOF
4513cat confdefs.h >>conftest.$ac_ext
4514cat >>conftest.$ac_ext <<_ACEOF
4515/* end confdefs.h.  */
4516$ac_includes_default
4517#include <$ac_header>
4518_ACEOF
4519rm -f conftest.$ac_objext
4520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521  (eval $ac_compile) 2>conftest.er1
4522  ac_status=$?
4523  grep -v '^ *+' conftest.er1 >conftest.err
4524  rm -f conftest.er1
4525  cat conftest.err >&5
4526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527  (exit $ac_status); } &&
4528         { ac_try='test -z "$ac_c_werror_flag"
4529                         || test ! -s conftest.err'
4530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531  (eval $ac_try) 2>&5
4532  ac_status=$?
4533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534  (exit $ac_status); }; } &&
4535         { ac_try='test -s conftest.$ac_objext'
4536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537  (eval $ac_try) 2>&5
4538  ac_status=$?
4539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540  (exit $ac_status); }; }; then
4541  ac_header_compiler=yes
4542else
4543  echo "$as_me: failed program was:" >&5
4544sed 's/^/| /' conftest.$ac_ext >&5
4545
4546ac_header_compiler=no
4547fi
4548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4549echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4550echo "${ECHO_T}$ac_header_compiler" >&6
4551
4552# Is the header present?
4553echo "$as_me:$LINENO: checking $ac_header presence" >&5
4554echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4555cat >conftest.$ac_ext <<_ACEOF
4556/* confdefs.h.  */
4557_ACEOF
4558cat confdefs.h >>conftest.$ac_ext
4559cat >>conftest.$ac_ext <<_ACEOF
4560/* end confdefs.h.  */
4561#include <$ac_header>
4562_ACEOF
4563if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4564  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4565  ac_status=$?
4566  grep -v '^ *+' conftest.er1 >conftest.err
4567  rm -f conftest.er1
4568  cat conftest.err >&5
4569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570  (exit $ac_status); } >/dev/null; then
4571  if test -s conftest.err; then
4572    ac_cpp_err=$ac_c_preproc_warn_flag
4573    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4574  else
4575    ac_cpp_err=
4576  fi
4577else
4578  ac_cpp_err=yes
4579fi
4580if test -z "$ac_cpp_err"; then
4581  ac_header_preproc=yes
4582else
4583  echo "$as_me: failed program was:" >&5
4584sed 's/^/| /' conftest.$ac_ext >&5
4585
4586  ac_header_preproc=no
4587fi
4588rm -f conftest.err conftest.$ac_ext
4589echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4590echo "${ECHO_T}$ac_header_preproc" >&6
4591
4592# So?  What about this header?
4593case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4594  yes:no: )
4595    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4596echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4597    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4598echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4599    ac_header_preproc=yes
4600    ;;
4601  no:yes:* )
4602    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4603echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4604    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4605echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4606    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4607echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4608    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4609echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4610    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4611echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4612    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4613echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4614    (
4615      cat <<\_ASBOX
4616## ---------------------------------------------- ##
4617## Report this to orxonox-dev at mail.datacore.ch ##
4618## ---------------------------------------------- ##
4619_ASBOX
4620    ) |
4621      sed "s/^/$as_me: WARNING:     /" >&2
4622    ;;
4623esac
4624echo "$as_me:$LINENO: checking for $ac_header" >&5
4625echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4626if eval "test \"\${$as_ac_Header+set}\" = set"; then
4627  echo $ECHO_N "(cached) $ECHO_C" >&6
4628else
4629  eval "$as_ac_Header=\$ac_header_preproc"
4630fi
4631echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4632echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4633
4634fi
4635if test `eval echo '${'$as_ac_Header'}'` = yes; then
4636  cat >>confdefs.h <<_ACEOF
4637#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4638_ACEOF
4639
4640else
4641  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4642echo "$as_me: error: cannot find opengl headers" >&2;}
4643   { (exit 1); exit 1; }; }
4644fi
4645
4646done
4647
4648
4649# checking for libGLU
4650    echo "$as_me:$LINENO: checking for main in -lglu32" >&5
4651echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6
4652if test "${ac_cv_lib_glu32_main+set}" = set; then
4653  echo $ECHO_N "(cached) $ECHO_C" >&6
4654else
4655  ac_check_lib_save_LIBS=$LIBS
4656LIBS="-lglu32  $LIBS"
4657cat >conftest.$ac_ext <<_ACEOF
4658/* confdefs.h.  */
4659_ACEOF
4660cat confdefs.h >>conftest.$ac_ext
4661cat >>conftest.$ac_ext <<_ACEOF
4662/* end confdefs.h.  */
4663
4664
4665int
4666main ()
4667{
4668main ();
4669  ;
4670  return 0;
4671}
4672_ACEOF
4673rm -f conftest.$ac_objext conftest$ac_exeext
4674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4675  (eval $ac_link) 2>conftest.er1
4676  ac_status=$?
4677  grep -v '^ *+' conftest.er1 >conftest.err
4678  rm -f conftest.er1
4679  cat conftest.err >&5
4680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681  (exit $ac_status); } &&
4682         { ac_try='test -z "$ac_c_werror_flag"
4683                         || test ! -s conftest.err'
4684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685  (eval $ac_try) 2>&5
4686  ac_status=$?
4687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688  (exit $ac_status); }; } &&
4689         { ac_try='test -s conftest$ac_exeext'
4690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691  (eval $ac_try) 2>&5
4692  ac_status=$?
4693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694  (exit $ac_status); }; }; then
4695  ac_cv_lib_glu32_main=yes
4696else
4697  echo "$as_me: failed program was:" >&5
4698sed 's/^/| /' conftest.$ac_ext >&5
4699
4700ac_cv_lib_glu32_main=no
4701fi
4702rm -f conftest.err conftest.$ac_objext \
4703      conftest$ac_exeext conftest.$ac_ext
4704LIBS=$ac_check_lib_save_LIBS
4705fi
4706echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5
4707echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6
4708if test $ac_cv_lib_glu32_main = yes; then
4709  FOUND_glu32=yes
4710fi
4711
4712    if test x$FOUND_glu32 = xyes ; then
4713        LIBS="$LIBS -lGLU32"
4714    else
4715         echo "------------------"
4716         echo "GLU library not found."
4717         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
4718         echo "------------------"
4719         exit -1
4720    fi
4721
4722# checking for mingw32
4723    echo "$as_me:$LINENO: checking for main in -lmingw32" >&5
4724echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6
4725if test "${ac_cv_lib_mingw32_main+set}" = set; then
4726  echo $ECHO_N "(cached) $ECHO_C" >&6
4727else
4728  ac_check_lib_save_LIBS=$LIBS
4729LIBS="-lmingw32  $LIBS"
4730cat >conftest.$ac_ext <<_ACEOF
4731/* confdefs.h.  */
4732_ACEOF
4733cat confdefs.h >>conftest.$ac_ext
4734cat >>conftest.$ac_ext <<_ACEOF
4735/* end confdefs.h.  */
4736
4737
4738int
4739main ()
4740{
4741main ();
4742  ;
4743  return 0;
4744}
4745_ACEOF
4746rm -f conftest.$ac_objext conftest$ac_exeext
4747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4748  (eval $ac_link) 2>conftest.er1
4749  ac_status=$?
4750  grep -v '^ *+' conftest.er1 >conftest.err
4751  rm -f conftest.er1
4752  cat conftest.err >&5
4753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754  (exit $ac_status); } &&
4755         { ac_try='test -z "$ac_c_werror_flag"
4756                         || test ! -s conftest.err'
4757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758  (eval $ac_try) 2>&5
4759  ac_status=$?
4760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761  (exit $ac_status); }; } &&
4762         { ac_try='test -s conftest$ac_exeext'
4763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764  (eval $ac_try) 2>&5
4765  ac_status=$?
4766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767  (exit $ac_status); }; }; then
4768  ac_cv_lib_mingw32_main=yes
4769else
4770  echo "$as_me: failed program was:" >&5
4771sed 's/^/| /' conftest.$ac_ext >&5
4772
4773ac_cv_lib_mingw32_main=no
4774fi
4775rm -f conftest.err conftest.$ac_objext \
4776      conftest$ac_exeext conftest.$ac_ext
4777LIBS=$ac_check_lib_save_LIBS
4778fi
4779echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5
4780echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6
4781if test $ac_cv_lib_mingw32_main = yes; then
4782  FOUND_mingw32=yes
4783fi
4784
4785    if test x$FOUND_mingw32 = xyes; then
4786        LIBS="$LIBS -lmingw32"
4787    fi
4788# checking for SDL-headers
4789
4790for ac_header in SDL.h
4791do
4792as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4793if eval "test \"\${$as_ac_Header+set}\" = set"; then
4794  echo "$as_me:$LINENO: checking for $ac_header" >&5
4795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4796if eval "test \"\${$as_ac_Header+set}\" = set"; then
4797  echo $ECHO_N "(cached) $ECHO_C" >&6
4798fi
4799echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4800echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4801else
4802  # Is the header compilable?
4803echo "$as_me:$LINENO: checking $ac_header usability" >&5
4804echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4805cat >conftest.$ac_ext <<_ACEOF
4806/* confdefs.h.  */
4807_ACEOF
4808cat confdefs.h >>conftest.$ac_ext
4809cat >>conftest.$ac_ext <<_ACEOF
4810/* end confdefs.h.  */
4811$ac_includes_default
4812#include <$ac_header>
4813_ACEOF
4814rm -f conftest.$ac_objext
4815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4816  (eval $ac_compile) 2>conftest.er1
4817  ac_status=$?
4818  grep -v '^ *+' conftest.er1 >conftest.err
4819  rm -f conftest.er1
4820  cat conftest.err >&5
4821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822  (exit $ac_status); } &&
4823         { ac_try='test -z "$ac_c_werror_flag"
4824                         || test ! -s conftest.err'
4825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826  (eval $ac_try) 2>&5
4827  ac_status=$?
4828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829  (exit $ac_status); }; } &&
4830         { ac_try='test -s conftest.$ac_objext'
4831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832  (eval $ac_try) 2>&5
4833  ac_status=$?
4834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835  (exit $ac_status); }; }; then
4836  ac_header_compiler=yes
4837else
4838  echo "$as_me: failed program was:" >&5
4839sed 's/^/| /' conftest.$ac_ext >&5
4840
4841ac_header_compiler=no
4842fi
4843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4844echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4845echo "${ECHO_T}$ac_header_compiler" >&6
4846
4847# Is the header present?
4848echo "$as_me:$LINENO: checking $ac_header presence" >&5
4849echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4850cat >conftest.$ac_ext <<_ACEOF
4851/* confdefs.h.  */
4852_ACEOF
4853cat confdefs.h >>conftest.$ac_ext
4854cat >>conftest.$ac_ext <<_ACEOF
4855/* end confdefs.h.  */
4856#include <$ac_header>
4857_ACEOF
4858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4859  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4860  ac_status=$?
4861  grep -v '^ *+' conftest.er1 >conftest.err
4862  rm -f conftest.er1
4863  cat conftest.err >&5
4864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865  (exit $ac_status); } >/dev/null; then
4866  if test -s conftest.err; then
4867    ac_cpp_err=$ac_c_preproc_warn_flag
4868    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4869  else
4870    ac_cpp_err=
4871  fi
4872else
4873  ac_cpp_err=yes
4874fi
4875if test -z "$ac_cpp_err"; then
4876  ac_header_preproc=yes
4877else
4878  echo "$as_me: failed program was:" >&5
4879sed 's/^/| /' conftest.$ac_ext >&5
4880
4881  ac_header_preproc=no
4882fi
4883rm -f conftest.err conftest.$ac_ext
4884echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4885echo "${ECHO_T}$ac_header_preproc" >&6
4886
4887# So?  What about this header?
4888case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4889  yes:no: )
4890    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4891echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4892    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4893echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4894    ac_header_preproc=yes
4895    ;;
4896  no:yes:* )
4897    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4898echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4899    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4900echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4901    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4902echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4903    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4904echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4905    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4906echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4907    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4908echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4909    (
4910      cat <<\_ASBOX
4911## ---------------------------------------------- ##
4912## Report this to orxonox-dev at mail.datacore.ch ##
4913## ---------------------------------------------- ##
4914_ASBOX
4915    ) |
4916      sed "s/^/$as_me: WARNING:     /" >&2
4917    ;;
4918esac
4919echo "$as_me:$LINENO: checking for $ac_header" >&5
4920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4921if eval "test \"\${$as_ac_Header+set}\" = set"; then
4922  echo $ECHO_N "(cached) $ECHO_C" >&6
4923else
4924  eval "$as_ac_Header=\$ac_header_preproc"
4925fi
4926echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4927echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4928
4929fi
4930if test `eval echo '${'$as_ac_Header'}'` = yes; then
4931  cat >>confdefs.h <<_ACEOF
4932#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4933_ACEOF
4934
4935else
4936  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
4937echo "$as_me: error: cannot find SDL headers" >&2;}
4938   { (exit 1); exit 1; }; }
4939fi
4940
4941done
4942
4943
4944#checking for libSDL
4945    echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5
4946echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6
4947if test "${ac_cv_lib_sdlmain_main+set}" = set; then
4948  echo $ECHO_N "(cached) $ECHO_C" >&6
4949else
4950  ac_check_lib_save_LIBS=$LIBS
4951LIBS="-lsdlmain  $LIBS"
4952cat >conftest.$ac_ext <<_ACEOF
4953/* confdefs.h.  */
4954_ACEOF
4955cat confdefs.h >>conftest.$ac_ext
4956cat >>conftest.$ac_ext <<_ACEOF
4957/* end confdefs.h.  */
4958
4959
4960int
4961main ()
4962{
4963main ();
4964  ;
4965  return 0;
4966}
4967_ACEOF
4968rm -f conftest.$ac_objext conftest$ac_exeext
4969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4970  (eval $ac_link) 2>conftest.er1
4971  ac_status=$?
4972  grep -v '^ *+' conftest.er1 >conftest.err
4973  rm -f conftest.er1
4974  cat conftest.err >&5
4975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976  (exit $ac_status); } &&
4977         { ac_try='test -z "$ac_c_werror_flag"
4978                         || test ! -s conftest.err'
4979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980  (eval $ac_try) 2>&5
4981  ac_status=$?
4982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983  (exit $ac_status); }; } &&
4984         { ac_try='test -s conftest$ac_exeext'
4985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986  (eval $ac_try) 2>&5
4987  ac_status=$?
4988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989  (exit $ac_status); }; }; then
4990  ac_cv_lib_sdlmain_main=yes
4991else
4992  echo "$as_me: failed program was:" >&5
4993sed 's/^/| /' conftest.$ac_ext >&5
4994
4995ac_cv_lib_sdlmain_main=no
4996fi
4997rm -f conftest.err conftest.$ac_objext \
4998      conftest$ac_exeext conftest.$ac_ext
4999LIBS=$ac_check_lib_save_LIBS
5000fi
5001echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5
5002echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6
5003if test $ac_cv_lib_sdlmain_main = yes; then
5004  FOUND_sdlmain=yes
5005fi
5006
5007    if test x$FOUND_sdlmain = xyes ; then
5008       LIBS="$LIBS -lsdlmain"
5009    else
5010        echo "------------------"
5011        echo "SDL library not found."
5012        echo "please install the SDL library, which can be found at http://www.libsdl.org"
5013        echo "------------------"
5014        exit 1
5015    fi
5016    echo "$as_me:$LINENO: checking for main in -lsdl" >&5
5017echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6
5018if test "${ac_cv_lib_sdl_main+set}" = set; then
5019  echo $ECHO_N "(cached) $ECHO_C" >&6
5020else
5021  ac_check_lib_save_LIBS=$LIBS
5022LIBS="-lsdl  $LIBS"
5023cat >conftest.$ac_ext <<_ACEOF
5024/* confdefs.h.  */
5025_ACEOF
5026cat confdefs.h >>conftest.$ac_ext
5027cat >>conftest.$ac_ext <<_ACEOF
5028/* end confdefs.h.  */
5029
5030
5031int
5032main ()
5033{
5034main ();
5035  ;
5036  return 0;
5037}
5038_ACEOF
5039rm -f conftest.$ac_objext conftest$ac_exeext
5040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5041  (eval $ac_link) 2>conftest.er1
5042  ac_status=$?
5043  grep -v '^ *+' conftest.er1 >conftest.err
5044  rm -f conftest.er1
5045  cat conftest.err >&5
5046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047  (exit $ac_status); } &&
5048         { ac_try='test -z "$ac_c_werror_flag"
5049                         || test ! -s conftest.err'
5050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5051  (eval $ac_try) 2>&5
5052  ac_status=$?
5053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054  (exit $ac_status); }; } &&
5055         { ac_try='test -s conftest$ac_exeext'
5056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5057  (eval $ac_try) 2>&5
5058  ac_status=$?
5059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060  (exit $ac_status); }; }; then
5061  ac_cv_lib_sdl_main=yes
5062else
5063  echo "$as_me: failed program was:" >&5
5064sed 's/^/| /' conftest.$ac_ext >&5
5065
5066ac_cv_lib_sdl_main=no
5067fi
5068rm -f conftest.err conftest.$ac_objext \
5069      conftest$ac_exeext conftest.$ac_ext
5070LIBS=$ac_check_lib_save_LIBS
5071fi
5072echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5
5073echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6
5074if test $ac_cv_lib_sdl_main = yes; then
5075  FOUND_sdl=yes
5076fi
5077
5078    if test x$FOUND_sdl = xyes ; then
5079       LIBS="$LIBS -lsdl"
5080    else
5081        echo "------------------"
5082        echo "SDL library not found."
5083        echo "please install the SDL library, which can be found at http://www.libsdl.org"
5084        echo "------------------"
5085        exit -1
5086    fi
5087
5088    ;;
5089#-------#
5090# LINUX #
5091#-------#
5092 *-*-linux*)
5093echo "Linux detected"
5094
5095 Linux="yes"
5096
5097CPPFLAGS="-I/usr/X11R6/include -I/usr/include/SDL"
5098LDFLAGS="-L/usr/lib/opengl/xorg-x11/lib -L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS"
5099# checking gl header
5100
5101for ac_header in GL/gl.h
5102do
5103as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5104if eval "test \"\${$as_ac_Header+set}\" = set"; then
5105  echo "$as_me:$LINENO: checking for $ac_header" >&5
5106echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5107if eval "test \"\${$as_ac_Header+set}\" = set"; then
5108  echo $ECHO_N "(cached) $ECHO_C" >&6
5109fi
5110echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5111echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5112else
5113  # Is the header compilable?
5114echo "$as_me:$LINENO: checking $ac_header usability" >&5
5115echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5116cat >conftest.$ac_ext <<_ACEOF
5117/* confdefs.h.  */
5118_ACEOF
5119cat confdefs.h >>conftest.$ac_ext
5120cat >>conftest.$ac_ext <<_ACEOF
5121/* end confdefs.h.  */
5122$ac_includes_default
5123#include <$ac_header>
5124_ACEOF
5125rm -f conftest.$ac_objext
5126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5127  (eval $ac_compile) 2>conftest.er1
5128  ac_status=$?
5129  grep -v '^ *+' conftest.er1 >conftest.err
5130  rm -f conftest.er1
5131  cat conftest.err >&5
5132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133  (exit $ac_status); } &&
5134         { ac_try='test -z "$ac_c_werror_flag"
5135                         || test ! -s conftest.err'
5136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137  (eval $ac_try) 2>&5
5138  ac_status=$?
5139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140  (exit $ac_status); }; } &&
5141         { ac_try='test -s conftest.$ac_objext'
5142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5143  (eval $ac_try) 2>&5
5144  ac_status=$?
5145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146  (exit $ac_status); }; }; then
5147  ac_header_compiler=yes
5148else
5149  echo "$as_me: failed program was:" >&5
5150sed 's/^/| /' conftest.$ac_ext >&5
5151
5152ac_header_compiler=no
5153fi
5154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5155echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5156echo "${ECHO_T}$ac_header_compiler" >&6
5157
5158# Is the header present?
5159echo "$as_me:$LINENO: checking $ac_header presence" >&5
5160echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5161cat >conftest.$ac_ext <<_ACEOF
5162/* confdefs.h.  */
5163_ACEOF
5164cat confdefs.h >>conftest.$ac_ext
5165cat >>conftest.$ac_ext <<_ACEOF
5166/* end confdefs.h.  */
5167#include <$ac_header>
5168_ACEOF
5169if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5170  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5171  ac_status=$?
5172  grep -v '^ *+' conftest.er1 >conftest.err
5173  rm -f conftest.er1
5174  cat conftest.err >&5
5175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176  (exit $ac_status); } >/dev/null; then
5177  if test -s conftest.err; then
5178    ac_cpp_err=$ac_c_preproc_warn_flag
5179    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5180  else
5181    ac_cpp_err=
5182  fi
5183else
5184  ac_cpp_err=yes
5185fi
5186if test -z "$ac_cpp_err"; then
5187  ac_header_preproc=yes
5188else
5189  echo "$as_me: failed program was:" >&5
5190sed 's/^/| /' conftest.$ac_ext >&5
5191
5192  ac_header_preproc=no
5193fi
5194rm -f conftest.err conftest.$ac_ext
5195echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5196echo "${ECHO_T}$ac_header_preproc" >&6
5197
5198# So?  What about this header?
5199case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5200  yes:no: )
5201    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5202echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5203    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5204echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5205    ac_header_preproc=yes
5206    ;;
5207  no:yes:* )
5208    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5209echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5210    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5211echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5212    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5213echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5214    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5215echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5216    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5217echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5218    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5219echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5220    (
5221      cat <<\_ASBOX
5222## ---------------------------------------------- ##
5223## Report this to orxonox-dev at mail.datacore.ch ##
5224## ---------------------------------------------- ##
5225_ASBOX
5226    ) |
5227      sed "s/^/$as_me: WARNING:     /" >&2
5228    ;;
5229esac
5230echo "$as_me:$LINENO: checking for $ac_header" >&5
5231echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5232if eval "test \"\${$as_ac_Header+set}\" = set"; then
5233  echo $ECHO_N "(cached) $ECHO_C" >&6
5234else
5235  eval "$as_ac_Header=\$ac_header_preproc"
5236fi
5237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5238echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5239
5240fi
5241if test `eval echo '${'$as_ac_Header'}'` = yes; then
5242  cat >>confdefs.h <<_ACEOF
5243#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5244_ACEOF
5245
5246else
5247  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5248echo "$as_me: error: cannot find opengl headers" >&2;}
5249   { (exit 1); exit 1; }; }
5250fi
5251
5252done
5253
5254
5255#  checking for Unix GL
5256   echo "$as_me:$LINENO: checking for glLoadIdentity in -lGL" >&5
5257echo $ECHO_N "checking for glLoadIdentity in -lGL... $ECHO_C" >&6
5258if test "${ac_cv_lib_GL_glLoadIdentity+set}" = set; then
5259  echo $ECHO_N "(cached) $ECHO_C" >&6
5260else
5261  ac_check_lib_save_LIBS=$LIBS
5262LIBS="-lGL  $LIBS"
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
5270/* Override any gcc2 internal prototype to avoid an error.  */
5271#ifdef __cplusplus
5272extern "C"
5273#endif
5274/* We use char because int might match the return type of a gcc2
5275   builtin and then its argument prototype would still apply.  */
5276char glLoadIdentity ();
5277int
5278main ()
5279{
5280glLoadIdentity ();
5281  ;
5282  return 0;
5283}
5284_ACEOF
5285rm -f conftest.$ac_objext conftest$ac_exeext
5286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5287  (eval $ac_link) 2>conftest.er1
5288  ac_status=$?
5289  grep -v '^ *+' conftest.er1 >conftest.err
5290  rm -f conftest.er1
5291  cat conftest.err >&5
5292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293  (exit $ac_status); } &&
5294         { ac_try='test -z "$ac_c_werror_flag"
5295                         || test ! -s conftest.err'
5296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297  (eval $ac_try) 2>&5
5298  ac_status=$?
5299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300  (exit $ac_status); }; } &&
5301         { ac_try='test -s conftest$ac_exeext'
5302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303  (eval $ac_try) 2>&5
5304  ac_status=$?
5305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306  (exit $ac_status); }; }; then
5307  ac_cv_lib_GL_glLoadIdentity=yes
5308else
5309  echo "$as_me: failed program was:" >&5
5310sed 's/^/| /' conftest.$ac_ext >&5
5311
5312ac_cv_lib_GL_glLoadIdentity=no
5313fi
5314rm -f conftest.err conftest.$ac_objext \
5315      conftest$ac_exeext conftest.$ac_ext
5316LIBS=$ac_check_lib_save_LIBS
5317fi
5318echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glLoadIdentity" >&5
5319echo "${ECHO_T}$ac_cv_lib_GL_glLoadIdentity" >&6
5320if test $ac_cv_lib_GL_glLoadIdentity = yes; then
5321  FOUND_GL=yes
5322fi
5323
5324   if test x$FOUND_GL = xyes ; then
5325     LIBS="$LIBS -lGL"
5326   else
5327         echo "------------------"
5328         echo "opengl not found."
5329         echo "please install the opengl package which can be found at http://www.opengl.org"
5330         echo "------------------"
5331         exit -1
5332   fi
5333
5334# cheking for GLU-header
5335
5336for ac_header in GL/glu.h
5337do
5338as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5339if eval "test \"\${$as_ac_Header+set}\" = set"; then
5340  echo "$as_me:$LINENO: checking for $ac_header" >&5
5341echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5342if eval "test \"\${$as_ac_Header+set}\" = set"; then
5343  echo $ECHO_N "(cached) $ECHO_C" >&6
5344fi
5345echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5346echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5347else
5348  # Is the header compilable?
5349echo "$as_me:$LINENO: checking $ac_header usability" >&5
5350echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5351cat >conftest.$ac_ext <<_ACEOF
5352/* confdefs.h.  */
5353_ACEOF
5354cat confdefs.h >>conftest.$ac_ext
5355cat >>conftest.$ac_ext <<_ACEOF
5356/* end confdefs.h.  */
5357$ac_includes_default
5358#include <$ac_header>
5359_ACEOF
5360rm -f conftest.$ac_objext
5361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5362  (eval $ac_compile) 2>conftest.er1
5363  ac_status=$?
5364  grep -v '^ *+' conftest.er1 >conftest.err
5365  rm -f conftest.er1
5366  cat conftest.err >&5
5367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368  (exit $ac_status); } &&
5369         { ac_try='test -z "$ac_c_werror_flag"
5370                         || test ! -s conftest.err'
5371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372  (eval $ac_try) 2>&5
5373  ac_status=$?
5374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375  (exit $ac_status); }; } &&
5376         { ac_try='test -s conftest.$ac_objext'
5377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5378  (eval $ac_try) 2>&5
5379  ac_status=$?
5380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381  (exit $ac_status); }; }; then
5382  ac_header_compiler=yes
5383else
5384  echo "$as_me: failed program was:" >&5
5385sed 's/^/| /' conftest.$ac_ext >&5
5386
5387ac_header_compiler=no
5388fi
5389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5390echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5391echo "${ECHO_T}$ac_header_compiler" >&6
5392
5393# Is the header present?
5394echo "$as_me:$LINENO: checking $ac_header presence" >&5
5395echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5396cat >conftest.$ac_ext <<_ACEOF
5397/* confdefs.h.  */
5398_ACEOF
5399cat confdefs.h >>conftest.$ac_ext
5400cat >>conftest.$ac_ext <<_ACEOF
5401/* end confdefs.h.  */
5402#include <$ac_header>
5403_ACEOF
5404if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5405  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5406  ac_status=$?
5407  grep -v '^ *+' conftest.er1 >conftest.err
5408  rm -f conftest.er1
5409  cat conftest.err >&5
5410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411  (exit $ac_status); } >/dev/null; then
5412  if test -s conftest.err; then
5413    ac_cpp_err=$ac_c_preproc_warn_flag
5414    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5415  else
5416    ac_cpp_err=
5417  fi
5418else
5419  ac_cpp_err=yes
5420fi
5421if test -z "$ac_cpp_err"; then
5422  ac_header_preproc=yes
5423else
5424  echo "$as_me: failed program was:" >&5
5425sed 's/^/| /' conftest.$ac_ext >&5
5426
5427  ac_header_preproc=no
5428fi
5429rm -f conftest.err conftest.$ac_ext
5430echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5431echo "${ECHO_T}$ac_header_preproc" >&6
5432
5433# So?  What about this header?
5434case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5435  yes:no: )
5436    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5437echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5438    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5439echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5440    ac_header_preproc=yes
5441    ;;
5442  no:yes:* )
5443    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5444echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5445    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5446echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5447    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5448echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5449    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5450echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5451    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5452echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5453    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5454echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5455    (
5456      cat <<\_ASBOX
5457## ---------------------------------------------- ##
5458## Report this to orxonox-dev at mail.datacore.ch ##
5459## ---------------------------------------------- ##
5460_ASBOX
5461    ) |
5462      sed "s/^/$as_me: WARNING:     /" >&2
5463    ;;
5464esac
5465echo "$as_me:$LINENO: checking for $ac_header" >&5
5466echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5467if eval "test \"\${$as_ac_Header+set}\" = set"; then
5468  echo $ECHO_N "(cached) $ECHO_C" >&6
5469else
5470  eval "$as_ac_Header=\$ac_header_preproc"
5471fi
5472echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5473echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5474
5475fi
5476if test `eval echo '${'$as_ac_Header'}'` = yes; then
5477  cat >>confdefs.h <<_ACEOF
5478#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5479_ACEOF
5480
5481else
5482  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5483echo "$as_me: error: cannot find opengl headers" >&2;}
5484   { (exit 1); exit 1; }; }
5485fi
5486
5487done
5488
5489
5490    echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5
5491echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6
5492if test "${ac_cv_lib_GLU_gluProject+set}" = set; then
5493  echo $ECHO_N "(cached) $ECHO_C" >&6
5494else
5495  ac_check_lib_save_LIBS=$LIBS
5496LIBS="-lGLU  $LIBS"
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
5504/* Override any gcc2 internal prototype to avoid an error.  */
5505#ifdef __cplusplus
5506extern "C"
5507#endif
5508/* We use char because int might match the return type of a gcc2
5509   builtin and then its argument prototype would still apply.  */
5510char gluProject ();
5511int
5512main ()
5513{
5514gluProject ();
5515  ;
5516  return 0;
5517}
5518_ACEOF
5519rm -f conftest.$ac_objext conftest$ac_exeext
5520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5521  (eval $ac_link) 2>conftest.er1
5522  ac_status=$?
5523  grep -v '^ *+' conftest.er1 >conftest.err
5524  rm -f conftest.er1
5525  cat conftest.err >&5
5526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527  (exit $ac_status); } &&
5528         { ac_try='test -z "$ac_c_werror_flag"
5529                         || test ! -s conftest.err'
5530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5531  (eval $ac_try) 2>&5
5532  ac_status=$?
5533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534  (exit $ac_status); }; } &&
5535         { ac_try='test -s conftest$ac_exeext'
5536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5537  (eval $ac_try) 2>&5
5538  ac_status=$?
5539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540  (exit $ac_status); }; }; then
5541  ac_cv_lib_GLU_gluProject=yes
5542else
5543  echo "$as_me: failed program was:" >&5
5544sed 's/^/| /' conftest.$ac_ext >&5
5545
5546ac_cv_lib_GLU_gluProject=no
5547fi
5548rm -f conftest.err conftest.$ac_objext \
5549      conftest$ac_exeext conftest.$ac_ext
5550LIBS=$ac_check_lib_save_LIBS
5551fi
5552echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5
5553echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6
5554if test $ac_cv_lib_GLU_gluProject = yes; then
5555  FOUND_GLU=yes
5556fi
5557
5558    if test x$FOUND_GLU = xyes ; then
5559      LIBS="$LIBS -lGLU"
5560    else
5561         echo "------------------"
5562         echo "GLU library not found."
5563         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
5564         echo "------------------"
5565         exit -1
5566    fi
5567
5568# checking for SDL-headers
5569
5570for ac_header in SDL.h
5571do
5572as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5573if eval "test \"\${$as_ac_Header+set}\" = set"; then
5574  echo "$as_me:$LINENO: checking for $ac_header" >&5
5575echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5576if eval "test \"\${$as_ac_Header+set}\" = set"; then
5577  echo $ECHO_N "(cached) $ECHO_C" >&6
5578fi
5579echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5580echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5581else
5582  # Is the header compilable?
5583echo "$as_me:$LINENO: checking $ac_header usability" >&5
5584echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5585cat >conftest.$ac_ext <<_ACEOF
5586/* confdefs.h.  */
5587_ACEOF
5588cat confdefs.h >>conftest.$ac_ext
5589cat >>conftest.$ac_ext <<_ACEOF
5590/* end confdefs.h.  */
5591$ac_includes_default
5592#include <$ac_header>
5593_ACEOF
5594rm -f conftest.$ac_objext
5595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5596  (eval $ac_compile) 2>conftest.er1
5597  ac_status=$?
5598  grep -v '^ *+' conftest.er1 >conftest.err
5599  rm -f conftest.er1
5600  cat conftest.err >&5
5601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602  (exit $ac_status); } &&
5603         { ac_try='test -z "$ac_c_werror_flag"
5604                         || test ! -s conftest.err'
5605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606  (eval $ac_try) 2>&5
5607  ac_status=$?
5608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609  (exit $ac_status); }; } &&
5610         { ac_try='test -s conftest.$ac_objext'
5611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612  (eval $ac_try) 2>&5
5613  ac_status=$?
5614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615  (exit $ac_status); }; }; then
5616  ac_header_compiler=yes
5617else
5618  echo "$as_me: failed program was:" >&5
5619sed 's/^/| /' conftest.$ac_ext >&5
5620
5621ac_header_compiler=no
5622fi
5623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5624echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5625echo "${ECHO_T}$ac_header_compiler" >&6
5626
5627# Is the header present?
5628echo "$as_me:$LINENO: checking $ac_header presence" >&5
5629echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5630cat >conftest.$ac_ext <<_ACEOF
5631/* confdefs.h.  */
5632_ACEOF
5633cat confdefs.h >>conftest.$ac_ext
5634cat >>conftest.$ac_ext <<_ACEOF
5635/* end confdefs.h.  */
5636#include <$ac_header>
5637_ACEOF
5638if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5639  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5640  ac_status=$?
5641  grep -v '^ *+' conftest.er1 >conftest.err
5642  rm -f conftest.er1
5643  cat conftest.err >&5
5644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645  (exit $ac_status); } >/dev/null; then
5646  if test -s conftest.err; then
5647    ac_cpp_err=$ac_c_preproc_warn_flag
5648    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5649  else
5650    ac_cpp_err=
5651  fi
5652else
5653  ac_cpp_err=yes
5654fi
5655if test -z "$ac_cpp_err"; then
5656  ac_header_preproc=yes
5657else
5658  echo "$as_me: failed program was:" >&5
5659sed 's/^/| /' conftest.$ac_ext >&5
5660
5661  ac_header_preproc=no
5662fi
5663rm -f conftest.err conftest.$ac_ext
5664echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5665echo "${ECHO_T}$ac_header_preproc" >&6
5666
5667# So?  What about this header?
5668case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5669  yes:no: )
5670    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5671echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5672    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5673echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5674    ac_header_preproc=yes
5675    ;;
5676  no:yes:* )
5677    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5678echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5679    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5680echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5681    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5682echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5683    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5684echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5685    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5686echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5687    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5688echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5689    (
5690      cat <<\_ASBOX
5691## ---------------------------------------------- ##
5692## Report this to orxonox-dev at mail.datacore.ch ##
5693## ---------------------------------------------- ##
5694_ASBOX
5695    ) |
5696      sed "s/^/$as_me: WARNING:     /" >&2
5697    ;;
5698esac
5699echo "$as_me:$LINENO: checking for $ac_header" >&5
5700echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5701if eval "test \"\${$as_ac_Header+set}\" = set"; then
5702  echo $ECHO_N "(cached) $ECHO_C" >&6
5703else
5704  eval "$as_ac_Header=\$ac_header_preproc"
5705fi
5706echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5707echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5708
5709fi
5710if test `eval echo '${'$as_ac_Header'}'` = yes; then
5711  cat >>confdefs.h <<_ACEOF
5712#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5713_ACEOF
5714
5715else
5716  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
5717echo "$as_me: error: cannot find SDL headers" >&2;}
5718   { (exit 1); exit 1; }; }
5719fi
5720
5721done
5722
5723
5724# checking for SDL-lib
5725    echo "$as_me:$LINENO: checking for main in -lSDL" >&5
5726echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6
5727if test "${ac_cv_lib_SDL_main+set}" = set; then
5728  echo $ECHO_N "(cached) $ECHO_C" >&6
5729else
5730  ac_check_lib_save_LIBS=$LIBS
5731LIBS="-lSDL  $LIBS"
5732cat >conftest.$ac_ext <<_ACEOF
5733/* confdefs.h.  */
5734_ACEOF
5735cat confdefs.h >>conftest.$ac_ext
5736cat >>conftest.$ac_ext <<_ACEOF
5737/* end confdefs.h.  */
5738
5739
5740int
5741main ()
5742{
5743main ();
5744  ;
5745  return 0;
5746}
5747_ACEOF
5748rm -f conftest.$ac_objext conftest$ac_exeext
5749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5750  (eval $ac_link) 2>conftest.er1
5751  ac_status=$?
5752  grep -v '^ *+' conftest.er1 >conftest.err
5753  rm -f conftest.er1
5754  cat conftest.err >&5
5755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756  (exit $ac_status); } &&
5757         { ac_try='test -z "$ac_c_werror_flag"
5758                         || test ! -s conftest.err'
5759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5760  (eval $ac_try) 2>&5
5761  ac_status=$?
5762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763  (exit $ac_status); }; } &&
5764         { ac_try='test -s conftest$ac_exeext'
5765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766  (eval $ac_try) 2>&5
5767  ac_status=$?
5768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769  (exit $ac_status); }; }; then
5770  ac_cv_lib_SDL_main=yes
5771else
5772  echo "$as_me: failed program was:" >&5
5773sed 's/^/| /' conftest.$ac_ext >&5
5774
5775ac_cv_lib_SDL_main=no
5776fi
5777rm -f conftest.err conftest.$ac_objext \
5778      conftest$ac_exeext conftest.$ac_ext
5779LIBS=$ac_check_lib_save_LIBS
5780fi
5781echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5
5782echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6
5783if test $ac_cv_lib_SDL_main = yes; then
5784  FOUND_SDL=yes
5785fi
5786
5787     if test x$FOUND_SDL = xyes ; then
5788       LIBS="$LIBS -lSDL"
5789     else
5790        echo "------------------"
5791        echo "SDL library not found."
5792        echo "please install the SDL library, which can be found at http://www.libsdl.org"
5793        echo "------------------"
5794        exit -1
5795     fi
5796
5797
5798## checking for SDL
5799#    SDL_VERSION=1.2.7
5800#    AM_PATH_SDL($SDL_VERSION,
5801#      :,
5802#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
5803#      )
5804#    CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
5805#    LIBS="$LIBS $SDL_LIBS"
5806    ;;
5807#-----------#
5808# MAC -OS X #
5809#-----------#
5810 *darwin*)
5811 echo "OS X detected"
5812
5813 osX="yes"
5814
5815 CPPFLAGS="-I/sw/include -I/sw/include/SDL $CPPFLAGS"
5816# checking gl header
5817
5818for ac_header in OpenGL/gl.h
5819do
5820as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5821if eval "test \"\${$as_ac_Header+set}\" = set"; then
5822  echo "$as_me:$LINENO: checking for $ac_header" >&5
5823echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5824if eval "test \"\${$as_ac_Header+set}\" = set"; then
5825  echo $ECHO_N "(cached) $ECHO_C" >&6
5826fi
5827echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5828echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5829else
5830  # Is the header compilable?
5831echo "$as_me:$LINENO: checking $ac_header usability" >&5
5832echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5833cat >conftest.$ac_ext <<_ACEOF
5834/* confdefs.h.  */
5835_ACEOF
5836cat confdefs.h >>conftest.$ac_ext
5837cat >>conftest.$ac_ext <<_ACEOF
5838/* end confdefs.h.  */
5839$ac_includes_default
5840#include <$ac_header>
5841_ACEOF
5842rm -f conftest.$ac_objext
5843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5844  (eval $ac_compile) 2>conftest.er1
5845  ac_status=$?
5846  grep -v '^ *+' conftest.er1 >conftest.err
5847  rm -f conftest.er1
5848  cat conftest.err >&5
5849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850  (exit $ac_status); } &&
5851         { ac_try='test -z "$ac_c_werror_flag"
5852                         || test ! -s conftest.err'
5853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5854  (eval $ac_try) 2>&5
5855  ac_status=$?
5856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857  (exit $ac_status); }; } &&
5858         { ac_try='test -s conftest.$ac_objext'
5859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5860  (eval $ac_try) 2>&5
5861  ac_status=$?
5862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863  (exit $ac_status); }; }; then
5864  ac_header_compiler=yes
5865else
5866  echo "$as_me: failed program was:" >&5
5867sed 's/^/| /' conftest.$ac_ext >&5
5868
5869ac_header_compiler=no
5870fi
5871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5872echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5873echo "${ECHO_T}$ac_header_compiler" >&6
5874
5875# Is the header present?
5876echo "$as_me:$LINENO: checking $ac_header presence" >&5
5877echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5878cat >conftest.$ac_ext <<_ACEOF
5879/* confdefs.h.  */
5880_ACEOF
5881cat confdefs.h >>conftest.$ac_ext
5882cat >>conftest.$ac_ext <<_ACEOF
5883/* end confdefs.h.  */
5884#include <$ac_header>
5885_ACEOF
5886if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5887  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5888  ac_status=$?
5889  grep -v '^ *+' conftest.er1 >conftest.err
5890  rm -f conftest.er1
5891  cat conftest.err >&5
5892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893  (exit $ac_status); } >/dev/null; then
5894  if test -s conftest.err; then
5895    ac_cpp_err=$ac_c_preproc_warn_flag
5896    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5897  else
5898    ac_cpp_err=
5899  fi
5900else
5901  ac_cpp_err=yes
5902fi
5903if test -z "$ac_cpp_err"; then
5904  ac_header_preproc=yes
5905else
5906  echo "$as_me: failed program was:" >&5
5907sed 's/^/| /' conftest.$ac_ext >&5
5908
5909  ac_header_preproc=no
5910fi
5911rm -f conftest.err conftest.$ac_ext
5912echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5913echo "${ECHO_T}$ac_header_preproc" >&6
5914
5915# So?  What about this header?
5916case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5917  yes:no: )
5918    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5919echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5920    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5921echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5922    ac_header_preproc=yes
5923    ;;
5924  no:yes:* )
5925    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5926echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5927    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5928echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5929    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5930echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5931    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5932echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5933    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5934echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5935    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5936echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5937    (
5938      cat <<\_ASBOX
5939## ---------------------------------------------- ##
5940## Report this to orxonox-dev at mail.datacore.ch ##
5941## ---------------------------------------------- ##
5942_ASBOX
5943    ) |
5944      sed "s/^/$as_me: WARNING:     /" >&2
5945    ;;
5946esac
5947echo "$as_me:$LINENO: checking for $ac_header" >&5
5948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5949if eval "test \"\${$as_ac_Header+set}\" = set"; then
5950  echo $ECHO_N "(cached) $ECHO_C" >&6
5951else
5952  eval "$as_ac_Header=\$ac_header_preproc"
5953fi
5954echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5955echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5956
5957fi
5958if test `eval echo '${'$as_ac_Header'}'` = yes; then
5959  cat >>confdefs.h <<_ACEOF
5960#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5961_ACEOF
5962
5963else
5964  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5965echo "$as_me: error: cannot find opengl headers" >&2;}
5966   { (exit 1); exit 1; }; }
5967fi
5968
5969done
5970
5971# cheking for GLU-header
5972
5973for ac_header in OpenGL/glu.h
5974do
5975as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5976if eval "test \"\${$as_ac_Header+set}\" = set"; then
5977  echo "$as_me:$LINENO: checking for $ac_header" >&5
5978echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5979if eval "test \"\${$as_ac_Header+set}\" = set"; then
5980  echo $ECHO_N "(cached) $ECHO_C" >&6
5981fi
5982echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5983echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5984else
5985  # Is the header compilable?
5986echo "$as_me:$LINENO: checking $ac_header usability" >&5
5987echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5988cat >conftest.$ac_ext <<_ACEOF
5989/* confdefs.h.  */
5990_ACEOF
5991cat confdefs.h >>conftest.$ac_ext
5992cat >>conftest.$ac_ext <<_ACEOF
5993/* end confdefs.h.  */
5994$ac_includes_default
5995#include <$ac_header>
5996_ACEOF
5997rm -f conftest.$ac_objext
5998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5999  (eval $ac_compile) 2>conftest.er1
6000  ac_status=$?
6001  grep -v '^ *+' conftest.er1 >conftest.err
6002  rm -f conftest.er1
6003  cat conftest.err >&5
6004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005  (exit $ac_status); } &&
6006         { ac_try='test -z "$ac_c_werror_flag"
6007                         || test ! -s conftest.err'
6008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009  (eval $ac_try) 2>&5
6010  ac_status=$?
6011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012  (exit $ac_status); }; } &&
6013         { ac_try='test -s conftest.$ac_objext'
6014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015  (eval $ac_try) 2>&5
6016  ac_status=$?
6017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018  (exit $ac_status); }; }; then
6019  ac_header_compiler=yes
6020else
6021  echo "$as_me: failed program was:" >&5
6022sed 's/^/| /' conftest.$ac_ext >&5
6023
6024ac_header_compiler=no
6025fi
6026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6027echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6028echo "${ECHO_T}$ac_header_compiler" >&6
6029
6030# Is the header present?
6031echo "$as_me:$LINENO: checking $ac_header presence" >&5
6032echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6033cat >conftest.$ac_ext <<_ACEOF
6034/* confdefs.h.  */
6035_ACEOF
6036cat confdefs.h >>conftest.$ac_ext
6037cat >>conftest.$ac_ext <<_ACEOF
6038/* end confdefs.h.  */
6039#include <$ac_header>
6040_ACEOF
6041if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6042  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6043  ac_status=$?
6044  grep -v '^ *+' conftest.er1 >conftest.err
6045  rm -f conftest.er1
6046  cat conftest.err >&5
6047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048  (exit $ac_status); } >/dev/null; then
6049  if test -s conftest.err; then
6050    ac_cpp_err=$ac_c_preproc_warn_flag
6051    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6052  else
6053    ac_cpp_err=
6054  fi
6055else
6056  ac_cpp_err=yes
6057fi
6058if test -z "$ac_cpp_err"; then
6059  ac_header_preproc=yes
6060else
6061  echo "$as_me: failed program was:" >&5
6062sed 's/^/| /' conftest.$ac_ext >&5
6063
6064  ac_header_preproc=no
6065fi
6066rm -f conftest.err conftest.$ac_ext
6067echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6068echo "${ECHO_T}$ac_header_preproc" >&6
6069
6070# So?  What about this header?
6071case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6072  yes:no: )
6073    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6074echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6075    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6076echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6077    ac_header_preproc=yes
6078    ;;
6079  no:yes:* )
6080    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6081echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6082    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6083echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6084    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6085echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6086    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6087echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6088    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6089echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6090    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6091echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6092    (
6093      cat <<\_ASBOX
6094## ---------------------------------------------- ##
6095## Report this to orxonox-dev at mail.datacore.ch ##
6096## ---------------------------------------------- ##
6097_ASBOX
6098    ) |
6099      sed "s/^/$as_me: WARNING:     /" >&2
6100    ;;
6101esac
6102echo "$as_me:$LINENO: checking for $ac_header" >&5
6103echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6104if eval "test \"\${$as_ac_Header+set}\" = set"; then
6105  echo $ECHO_N "(cached) $ECHO_C" >&6
6106else
6107  eval "$as_ac_Header=\$ac_header_preproc"
6108fi
6109echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6110echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6111
6112fi
6113if test `eval echo '${'$as_ac_Header'}'` = yes; then
6114  cat >>confdefs.h <<_ACEOF
6115#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6116_ACEOF
6117
6118else
6119  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
6120echo "$as_me: error: cannot find opengl headers" >&2;}
6121   { (exit 1); exit 1; }; }
6122fi
6123
6124done
6125
6126
6127   LIBS="$LIBS -framework OpenGL"
6128
6129       SDL_CFLAGS=`sdl-config --cflags`
6130       SDL_LIBS=`sdl-config --libs`
6131       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
6132       LIBS="$LIBS $SDL_LIBS"
6133
6134
6135# checking for SDL-headers
6136#    AC_CHECK_HEADERS(SDL/SDL.h ,,
6137#      [AC_MSG_ERROR([cannot find SDL headers]) ])
6138
6139## checking for SDL
6140#    SDL_VERSION=1.2.7
6141#    AM_PATH_SDL($SDL_VERSION,
6142#      :,
6143#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
6144#      )
6145
6146
6147    ;;
6148
6149  *)
6150    ;;
6151esac
6152
6153
6154
6155###################################
6156## CHECKING FOR HEADERS AND LIBS ##
6157###################################
6158
6159#---------#
6160# SDL_ttf #
6161#---------#
6162# checking for SDL_ttf-headers
6163
6164for ac_header in SDL_ttf.h
6165do
6166as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6167if eval "test \"\${$as_ac_Header+set}\" = set"; then
6168  echo "$as_me:$LINENO: checking for $ac_header" >&5
6169echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6170if eval "test \"\${$as_ac_Header+set}\" = set"; then
6171  echo $ECHO_N "(cached) $ECHO_C" >&6
6172fi
6173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6174echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6175else
6176  # Is the header compilable?
6177echo "$as_me:$LINENO: checking $ac_header usability" >&5
6178echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6179cat >conftest.$ac_ext <<_ACEOF
6180/* confdefs.h.  */
6181_ACEOF
6182cat confdefs.h >>conftest.$ac_ext
6183cat >>conftest.$ac_ext <<_ACEOF
6184/* end confdefs.h.  */
6185$ac_includes_default
6186#include <$ac_header>
6187_ACEOF
6188rm -f conftest.$ac_objext
6189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6190  (eval $ac_compile) 2>conftest.er1
6191  ac_status=$?
6192  grep -v '^ *+' conftest.er1 >conftest.err
6193  rm -f conftest.er1
6194  cat conftest.err >&5
6195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196  (exit $ac_status); } &&
6197         { ac_try='test -z "$ac_c_werror_flag"
6198                         || test ! -s conftest.err'
6199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200  (eval $ac_try) 2>&5
6201  ac_status=$?
6202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203  (exit $ac_status); }; } &&
6204         { ac_try='test -s conftest.$ac_objext'
6205  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206  (eval $ac_try) 2>&5
6207  ac_status=$?
6208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209  (exit $ac_status); }; }; then
6210  ac_header_compiler=yes
6211else
6212  echo "$as_me: failed program was:" >&5
6213sed 's/^/| /' conftest.$ac_ext >&5
6214
6215ac_header_compiler=no
6216fi
6217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6218echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6219echo "${ECHO_T}$ac_header_compiler" >&6
6220
6221# Is the header present?
6222echo "$as_me:$LINENO: checking $ac_header presence" >&5
6223echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6224cat >conftest.$ac_ext <<_ACEOF
6225/* confdefs.h.  */
6226_ACEOF
6227cat confdefs.h >>conftest.$ac_ext
6228cat >>conftest.$ac_ext <<_ACEOF
6229/* end confdefs.h.  */
6230#include <$ac_header>
6231_ACEOF
6232if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6233  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6234  ac_status=$?
6235  grep -v '^ *+' conftest.er1 >conftest.err
6236  rm -f conftest.er1
6237  cat conftest.err >&5
6238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239  (exit $ac_status); } >/dev/null; then
6240  if test -s conftest.err; then
6241    ac_cpp_err=$ac_c_preproc_warn_flag
6242    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6243  else
6244    ac_cpp_err=
6245  fi
6246else
6247  ac_cpp_err=yes
6248fi
6249if test -z "$ac_cpp_err"; then
6250  ac_header_preproc=yes
6251else
6252  echo "$as_me: failed program was:" >&5
6253sed 's/^/| /' conftest.$ac_ext >&5
6254
6255  ac_header_preproc=no
6256fi
6257rm -f conftest.err conftest.$ac_ext
6258echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6259echo "${ECHO_T}$ac_header_preproc" >&6
6260
6261# So?  What about this header?
6262case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6263  yes:no: )
6264    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6265echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6266    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6267echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6268    ac_header_preproc=yes
6269    ;;
6270  no:yes:* )
6271    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6272echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6273    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6274echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6275    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6276echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6277    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6278echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6279    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6280echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6281    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6282echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6283    (
6284      cat <<\_ASBOX
6285## ---------------------------------------------- ##
6286## Report this to orxonox-dev at mail.datacore.ch ##
6287## ---------------------------------------------- ##
6288_ASBOX
6289    ) |
6290      sed "s/^/$as_me: WARNING:     /" >&2
6291    ;;
6292esac
6293echo "$as_me:$LINENO: checking for $ac_header" >&5
6294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6295if eval "test \"\${$as_ac_Header+set}\" = set"; then
6296  echo $ECHO_N "(cached) $ECHO_C" >&6
6297else
6298  eval "$as_ac_Header=\$ac_header_preproc"
6299fi
6300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6301echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6302
6303fi
6304if test `eval echo '${'$as_ac_Header'}'` = yes; then
6305  cat >>confdefs.h <<_ACEOF
6306#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6307_ACEOF
6308
6309else
6310  { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5
6311echo "$as_me: error: cannot find SDL_ttf header." >&2;}
6312   { (exit 1); exit 1; }; }
6313fi
6314
6315done
6316
6317#fi
6318# checking for SDL_ttf-lib
6319  echo "$as_me:$LINENO: checking for main in -lSDL_ttf" >&5
6320echo $ECHO_N "checking for main in -lSDL_ttf... $ECHO_C" >&6
6321if test "${ac_cv_lib_SDL_ttf_main+set}" = set; then
6322  echo $ECHO_N "(cached) $ECHO_C" >&6
6323else
6324  ac_check_lib_save_LIBS=$LIBS
6325LIBS="-lSDL_ttf  $LIBS"
6326cat >conftest.$ac_ext <<_ACEOF
6327/* confdefs.h.  */
6328_ACEOF
6329cat confdefs.h >>conftest.$ac_ext
6330cat >>conftest.$ac_ext <<_ACEOF
6331/* end confdefs.h.  */
6332
6333
6334int
6335main ()
6336{
6337main ();
6338  ;
6339  return 0;
6340}
6341_ACEOF
6342rm -f conftest.$ac_objext conftest$ac_exeext
6343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6344  (eval $ac_link) 2>conftest.er1
6345  ac_status=$?
6346  grep -v '^ *+' conftest.er1 >conftest.err
6347  rm -f conftest.er1
6348  cat conftest.err >&5
6349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350  (exit $ac_status); } &&
6351         { ac_try='test -z "$ac_c_werror_flag"
6352                         || test ! -s conftest.err'
6353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354  (eval $ac_try) 2>&5
6355  ac_status=$?
6356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357  (exit $ac_status); }; } &&
6358         { ac_try='test -s conftest$ac_exeext'
6359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360  (eval $ac_try) 2>&5
6361  ac_status=$?
6362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363  (exit $ac_status); }; }; then
6364  ac_cv_lib_SDL_ttf_main=yes
6365else
6366  echo "$as_me: failed program was:" >&5
6367sed 's/^/| /' conftest.$ac_ext >&5
6368
6369ac_cv_lib_SDL_ttf_main=no
6370fi
6371rm -f conftest.err conftest.$ac_objext \
6372      conftest$ac_exeext conftest.$ac_ext
6373LIBS=$ac_check_lib_save_LIBS
6374fi
6375echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_main" >&5
6376echo "${ECHO_T}$ac_cv_lib_SDL_ttf_main" >&6
6377if test $ac_cv_lib_SDL_ttf_main = yes; then
6378  FOUND_SDL_ttf=yes
6379fi
6380
6381     if test x$FOUND_SDL_ttf = xyes ; then
6382       LIBS="$LIBS -lSDL_ttf"
6383     else
6384        echo "------------------"
6385        echo "SDL_ttf library not found."
6386        echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/"
6387        echo "------------------"
6388        exit -1
6389     fi
6390
6391#-----------#
6392# SDL_Image #
6393#-----------#
6394# checking for SDL_image-headers
6395
6396for ac_header in SDL_image.h
6397do
6398as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6399if eval "test \"\${$as_ac_Header+set}\" = set"; then
6400  echo "$as_me:$LINENO: checking for $ac_header" >&5
6401echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6402if eval "test \"\${$as_ac_Header+set}\" = set"; then
6403  echo $ECHO_N "(cached) $ECHO_C" >&6
6404fi
6405echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6406echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6407else
6408  # Is the header compilable?
6409echo "$as_me:$LINENO: checking $ac_header usability" >&5
6410echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6411cat >conftest.$ac_ext <<_ACEOF
6412/* confdefs.h.  */
6413_ACEOF
6414cat confdefs.h >>conftest.$ac_ext
6415cat >>conftest.$ac_ext <<_ACEOF
6416/* end confdefs.h.  */
6417$ac_includes_default
6418#include <$ac_header>
6419_ACEOF
6420rm -f conftest.$ac_objext
6421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6422  (eval $ac_compile) 2>conftest.er1
6423  ac_status=$?
6424  grep -v '^ *+' conftest.er1 >conftest.err
6425  rm -f conftest.er1
6426  cat conftest.err >&5
6427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428  (exit $ac_status); } &&
6429         { ac_try='test -z "$ac_c_werror_flag"
6430                         || test ! -s conftest.err'
6431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432  (eval $ac_try) 2>&5
6433  ac_status=$?
6434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435  (exit $ac_status); }; } &&
6436         { ac_try='test -s conftest.$ac_objext'
6437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438  (eval $ac_try) 2>&5
6439  ac_status=$?
6440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441  (exit $ac_status); }; }; then
6442  ac_header_compiler=yes
6443else
6444  echo "$as_me: failed program was:" >&5
6445sed 's/^/| /' conftest.$ac_ext >&5
6446
6447ac_header_compiler=no
6448fi
6449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6450echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6451echo "${ECHO_T}$ac_header_compiler" >&6
6452
6453# Is the header present?
6454echo "$as_me:$LINENO: checking $ac_header presence" >&5
6455echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6456cat >conftest.$ac_ext <<_ACEOF
6457/* confdefs.h.  */
6458_ACEOF
6459cat confdefs.h >>conftest.$ac_ext
6460cat >>conftest.$ac_ext <<_ACEOF
6461/* end confdefs.h.  */
6462#include <$ac_header>
6463_ACEOF
6464if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6465  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6466  ac_status=$?
6467  grep -v '^ *+' conftest.er1 >conftest.err
6468  rm -f conftest.er1
6469  cat conftest.err >&5
6470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471  (exit $ac_status); } >/dev/null; then
6472  if test -s conftest.err; then
6473    ac_cpp_err=$ac_c_preproc_warn_flag
6474    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6475  else
6476    ac_cpp_err=
6477  fi
6478else
6479  ac_cpp_err=yes
6480fi
6481if test -z "$ac_cpp_err"; then
6482  ac_header_preproc=yes
6483else
6484  echo "$as_me: failed program was:" >&5
6485sed 's/^/| /' conftest.$ac_ext >&5
6486
6487  ac_header_preproc=no
6488fi
6489rm -f conftest.err conftest.$ac_ext
6490echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6491echo "${ECHO_T}$ac_header_preproc" >&6
6492
6493# So?  What about this header?
6494case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6495  yes:no: )
6496    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6497echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6498    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6499echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6500    ac_header_preproc=yes
6501    ;;
6502  no:yes:* )
6503    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6504echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6505    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6506echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6507    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6508echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6509    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6510echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6511    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6512echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6513    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6514echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6515    (
6516      cat <<\_ASBOX
6517## ---------------------------------------------- ##
6518## Report this to orxonox-dev at mail.datacore.ch ##
6519## ---------------------------------------------- ##
6520_ASBOX
6521    ) |
6522      sed "s/^/$as_me: WARNING:     /" >&2
6523    ;;
6524esac
6525echo "$as_me:$LINENO: checking for $ac_header" >&5
6526echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6527if eval "test \"\${$as_ac_Header+set}\" = set"; then
6528  echo $ECHO_N "(cached) $ECHO_C" >&6
6529else
6530  eval "$as_ac_Header=\$ac_header_preproc"
6531fi
6532echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6533echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6534
6535fi
6536if test `eval echo '${'$as_ac_Header'}'` = yes; then
6537  cat >>confdefs.h <<_ACEOF
6538#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6539_ACEOF
6540
6541else
6542  echo "sdl_image header not found."; def_sdl_image=no; exit -1
6543fi
6544
6545done
6546
6547# checking for SDL_image-lib
6548echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5
6549echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6
6550if test "${ac_cv_lib_SDL_image_main+set}" = set; then
6551  echo $ECHO_N "(cached) $ECHO_C" >&6
6552else
6553  ac_check_lib_save_LIBS=$LIBS
6554LIBS="-lSDL_image  $LIBS"
6555cat >conftest.$ac_ext <<_ACEOF
6556/* confdefs.h.  */
6557_ACEOF
6558cat confdefs.h >>conftest.$ac_ext
6559cat >>conftest.$ac_ext <<_ACEOF
6560/* end confdefs.h.  */
6561
6562
6563int
6564main ()
6565{
6566main ();
6567  ;
6568  return 0;
6569}
6570_ACEOF
6571rm -f conftest.$ac_objext conftest$ac_exeext
6572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6573  (eval $ac_link) 2>conftest.er1
6574  ac_status=$?
6575  grep -v '^ *+' conftest.er1 >conftest.err
6576  rm -f conftest.er1
6577  cat conftest.err >&5
6578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579  (exit $ac_status); } &&
6580         { ac_try='test -z "$ac_c_werror_flag"
6581                         || test ! -s conftest.err'
6582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583  (eval $ac_try) 2>&5
6584  ac_status=$?
6585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586  (exit $ac_status); }; } &&
6587         { ac_try='test -s conftest$ac_exeext'
6588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6589  (eval $ac_try) 2>&5
6590  ac_status=$?
6591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592  (exit $ac_status); }; }; then
6593  ac_cv_lib_SDL_image_main=yes
6594else
6595  echo "$as_me: failed program was:" >&5
6596sed 's/^/| /' conftest.$ac_ext >&5
6597
6598ac_cv_lib_SDL_image_main=no
6599fi
6600rm -f conftest.err conftest.$ac_objext \
6601      conftest$ac_exeext conftest.$ac_ext
6602LIBS=$ac_check_lib_save_LIBS
6603fi
6604echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5
6605echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6
6606if test $ac_cv_lib_SDL_image_main = yes; then
6607  FOUND_SDL_image=yes
6608fi
6609
6610   if test x$FOUND_SDL_image = xyes ; then
6611     LIBS="$LIBS -lSDL_image"
6612   else
6613      echo "------------------"
6614      echo "SDL_image library not found."
6615      echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/"
6616      echo "------------------"
6617      exit -1
6618   fi
6619
6620#-----#
6621# GTK #
6622#-----#
6623if test x$def_gtk = xyes; then
6624
6625        #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
6626        echo "$as_me:$LINENO: checking for gtk2.0" >&5
6627echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6
6628        if `pkg-config --exists gtk+-2.0`; then
6629                echo "yes"
6630                have_gtk2=yes
6631                GTK2_LIBS=`pkg-config --libs gtk+-2.0`
6632                GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0`
6633
6634cat >>confdefs.h <<_ACEOF
6635#define HAVE_GTK2 1
6636_ACEOF
6637
6638        else
6639                echo "no"
6640        fi
6641
6642fi
6643
6644
6645
6646
6647if test x$have_gtk2 = xyes; then
6648  HAVE_GTK2_TRUE=
6649  HAVE_GTK2_FALSE='#'
6650else
6651  HAVE_GTK2_TRUE='#'
6652  HAVE_GTK2_FALSE=
6653fi
6654
6655
6656#---------#
6657# gThread #
6658#---------#
6659if test x$def_gthread = xyes; then
6660
6661        echo "$as_me:$LINENO: checking for gthread" >&5
6662echo $ECHO_N "checking for gthread... $ECHO_C" >&6
6663        if `pkg-config --exists gthread-2.0`; then
6664                echo "yes"
6665                have_gthread=yes
6666                GTHREAD_LIBS=`pkg-config --libs gthread-2.0`
6667                GTHREAD_CFLAGS=`pkg-config --cflags gthread-2.0`
6668
6669cat >>confdefs.h <<_ACEOF
6670#define HAVE_GTHREAD 1
6671_ACEOF
6672
6673        else
6674                echo "no"
6675        fi
6676
6677fi
6678
6679
6680
6681
6682if test x$have_gthread = xyes; then
6683  HAVE_GTHREAD_TRUE=
6684  HAVE_GTHREAD_FALSE='#'
6685else
6686  HAVE_GTHREAD_TRUE='#'
6687  HAVE_GTHREAD_FALSE=
6688fi
6689
6690
6691#---------#
6692# libcURL #
6693#---------#
6694if test x$def_curl = xyes; then
6695
6696
6697for ac_header in curl/curl.h
6698do
6699as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6700if eval "test \"\${$as_ac_Header+set}\" = set"; then
6701  echo "$as_me:$LINENO: checking for $ac_header" >&5
6702echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6703if eval "test \"\${$as_ac_Header+set}\" = set"; then
6704  echo $ECHO_N "(cached) $ECHO_C" >&6
6705fi
6706echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6707echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6708else
6709  # Is the header compilable?
6710echo "$as_me:$LINENO: checking $ac_header usability" >&5
6711echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6712cat >conftest.$ac_ext <<_ACEOF
6713/* confdefs.h.  */
6714_ACEOF
6715cat confdefs.h >>conftest.$ac_ext
6716cat >>conftest.$ac_ext <<_ACEOF
6717/* end confdefs.h.  */
6718$ac_includes_default
6719#include <$ac_header>
6720_ACEOF
6721rm -f conftest.$ac_objext
6722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6723  (eval $ac_compile) 2>conftest.er1
6724  ac_status=$?
6725  grep -v '^ *+' conftest.er1 >conftest.err
6726  rm -f conftest.er1
6727  cat conftest.err >&5
6728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729  (exit $ac_status); } &&
6730         { ac_try='test -z "$ac_c_werror_flag"
6731                         || test ! -s conftest.err'
6732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6733  (eval $ac_try) 2>&5
6734  ac_status=$?
6735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736  (exit $ac_status); }; } &&
6737         { ac_try='test -s conftest.$ac_objext'
6738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6739  (eval $ac_try) 2>&5
6740  ac_status=$?
6741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742  (exit $ac_status); }; }; then
6743  ac_header_compiler=yes
6744else
6745  echo "$as_me: failed program was:" >&5
6746sed 's/^/| /' conftest.$ac_ext >&5
6747
6748ac_header_compiler=no
6749fi
6750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6751echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6752echo "${ECHO_T}$ac_header_compiler" >&6
6753
6754# Is the header present?
6755echo "$as_me:$LINENO: checking $ac_header presence" >&5
6756echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6757cat >conftest.$ac_ext <<_ACEOF
6758/* confdefs.h.  */
6759_ACEOF
6760cat confdefs.h >>conftest.$ac_ext
6761cat >>conftest.$ac_ext <<_ACEOF
6762/* end confdefs.h.  */
6763#include <$ac_header>
6764_ACEOF
6765if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6766  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6767  ac_status=$?
6768  grep -v '^ *+' conftest.er1 >conftest.err
6769  rm -f conftest.er1
6770  cat conftest.err >&5
6771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772  (exit $ac_status); } >/dev/null; then
6773  if test -s conftest.err; then
6774    ac_cpp_err=$ac_c_preproc_warn_flag
6775    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6776  else
6777    ac_cpp_err=
6778  fi
6779else
6780  ac_cpp_err=yes
6781fi
6782if test -z "$ac_cpp_err"; then
6783  ac_header_preproc=yes
6784else
6785  echo "$as_me: failed program was:" >&5
6786sed 's/^/| /' conftest.$ac_ext >&5
6787
6788  ac_header_preproc=no
6789fi
6790rm -f conftest.err conftest.$ac_ext
6791echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6792echo "${ECHO_T}$ac_header_preproc" >&6
6793
6794# So?  What about this header?
6795case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6796  yes:no: )
6797    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6798echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6799    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6800echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6801    ac_header_preproc=yes
6802    ;;
6803  no:yes:* )
6804    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6805echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6806    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6807echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6808    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6809echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6810    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6811echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6812    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6813echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6814    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6815echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6816    (
6817      cat <<\_ASBOX
6818## ---------------------------------------------- ##
6819## Report this to orxonox-dev at mail.datacore.ch ##
6820## ---------------------------------------------- ##
6821_ASBOX
6822    ) |
6823      sed "s/^/$as_me: WARNING:     /" >&2
6824    ;;
6825esac
6826echo "$as_me:$LINENO: checking for $ac_header" >&5
6827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6828if eval "test \"\${$as_ac_Header+set}\" = set"; then
6829  echo $ECHO_N "(cached) $ECHO_C" >&6
6830else
6831  eval "$as_ac_Header=\$ac_header_preproc"
6832fi
6833echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6834echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6835
6836fi
6837if test `eval echo '${'$as_ac_Header'}'` = yes; then
6838  cat >>confdefs.h <<_ACEOF
6839#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6840_ACEOF
6841 curlHeader="yes"
6842else
6843  curlHeader="no"
6844fi
6845
6846done
6847
6848 echo "$as_me:$LINENO: checking for main in -lcurl" >&5
6849echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6
6850if test "${ac_cv_lib_curl_main+set}" = set; then
6851  echo $ECHO_N "(cached) $ECHO_C" >&6
6852else
6853  ac_check_lib_save_LIBS=$LIBS
6854LIBS="-lcurl  $LIBS"
6855cat >conftest.$ac_ext <<_ACEOF
6856/* confdefs.h.  */
6857_ACEOF
6858cat confdefs.h >>conftest.$ac_ext
6859cat >>conftest.$ac_ext <<_ACEOF
6860/* end confdefs.h.  */
6861
6862
6863int
6864main ()
6865{
6866main ();
6867  ;
6868  return 0;
6869}
6870_ACEOF
6871rm -f conftest.$ac_objext conftest$ac_exeext
6872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6873  (eval $ac_link) 2>conftest.er1
6874  ac_status=$?
6875  grep -v '^ *+' conftest.er1 >conftest.err
6876  rm -f conftest.er1
6877  cat conftest.err >&5
6878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879  (exit $ac_status); } &&
6880         { ac_try='test -z "$ac_c_werror_flag"
6881                         || test ! -s conftest.err'
6882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883  (eval $ac_try) 2>&5
6884  ac_status=$?
6885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886  (exit $ac_status); }; } &&
6887         { ac_try='test -s conftest$ac_exeext'
6888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889  (eval $ac_try) 2>&5
6890  ac_status=$?
6891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892  (exit $ac_status); }; }; then
6893  ac_cv_lib_curl_main=yes
6894else
6895  echo "$as_me: failed program was:" >&5
6896sed 's/^/| /' conftest.$ac_ext >&5
6897
6898ac_cv_lib_curl_main=no
6899fi
6900rm -f conftest.err conftest.$ac_objext \
6901      conftest$ac_exeext conftest.$ac_ext
6902LIBS=$ac_check_lib_save_LIBS
6903fi
6904echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5
6905echo "${ECHO_T}$ac_cv_lib_curl_main" >&6
6906if test $ac_cv_lib_curl_main = yes; then
6907  FOUND_curl=yes
6908fi
6909
6910 if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then
6911  have_curl=yes
6912  CURL_LIBS=`curl-config --libs`
6913  CURLCFLAGS=`curl-config --cflags`
6914
6915cat >>confdefs.h <<_ACEOF
6916#define HAVE_CURL 1
6917_ACEOF
6918
6919 else
6920  have_curl=no
6921 fi
6922
6923fi
6924
6925
6926
6927
6928if test x$have_curl = xyes; then
6929  HAVE_CURL_TRUE=
6930  HAVE_CURL_FALSE='#'
6931else
6932  HAVE_CURL_TRUE='#'
6933  HAVE_CURL_FALSE=
6934fi
6935
6936
6937#---------#
6938# pthread #
6939#---------#
6940if test x$def_pthread = xyes ; then
6941 if test x$have_gthread = xyes ; then
6942
6943for ac_header in pthread.h
6944do
6945as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6946if eval "test \"\${$as_ac_Header+set}\" = set"; then
6947  echo "$as_me:$LINENO: checking for $ac_header" >&5
6948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6949if eval "test \"\${$as_ac_Header+set}\" = set"; then
6950  echo $ECHO_N "(cached) $ECHO_C" >&6
6951fi
6952echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6953echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6954else
6955  # Is the header compilable?
6956echo "$as_me:$LINENO: checking $ac_header usability" >&5
6957echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6958cat >conftest.$ac_ext <<_ACEOF
6959/* confdefs.h.  */
6960_ACEOF
6961cat confdefs.h >>conftest.$ac_ext
6962cat >>conftest.$ac_ext <<_ACEOF
6963/* end confdefs.h.  */
6964$ac_includes_default
6965#include <$ac_header>
6966_ACEOF
6967rm -f conftest.$ac_objext
6968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6969  (eval $ac_compile) 2>conftest.er1
6970  ac_status=$?
6971  grep -v '^ *+' conftest.er1 >conftest.err
6972  rm -f conftest.er1
6973  cat conftest.err >&5
6974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975  (exit $ac_status); } &&
6976         { ac_try='test -z "$ac_c_werror_flag"
6977                         || test ! -s conftest.err'
6978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979  (eval $ac_try) 2>&5
6980  ac_status=$?
6981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982  (exit $ac_status); }; } &&
6983         { ac_try='test -s conftest.$ac_objext'
6984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985  (eval $ac_try) 2>&5
6986  ac_status=$?
6987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988  (exit $ac_status); }; }; then
6989  ac_header_compiler=yes
6990else
6991  echo "$as_me: failed program was:" >&5
6992sed 's/^/| /' conftest.$ac_ext >&5
6993
6994ac_header_compiler=no
6995fi
6996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6997echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6998echo "${ECHO_T}$ac_header_compiler" >&6
6999
7000# Is the header present?
7001echo "$as_me:$LINENO: checking $ac_header presence" >&5
7002echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7003cat >conftest.$ac_ext <<_ACEOF
7004/* confdefs.h.  */
7005_ACEOF
7006cat confdefs.h >>conftest.$ac_ext
7007cat >>conftest.$ac_ext <<_ACEOF
7008/* end confdefs.h.  */
7009#include <$ac_header>
7010_ACEOF
7011if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7012  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7013  ac_status=$?
7014  grep -v '^ *+' conftest.er1 >conftest.err
7015  rm -f conftest.er1
7016  cat conftest.err >&5
7017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018  (exit $ac_status); } >/dev/null; then
7019  if test -s conftest.err; then
7020    ac_cpp_err=$ac_c_preproc_warn_flag
7021    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7022  else
7023    ac_cpp_err=
7024  fi
7025else
7026  ac_cpp_err=yes
7027fi
7028if test -z "$ac_cpp_err"; then
7029  ac_header_preproc=yes
7030else
7031  echo "$as_me: failed program was:" >&5
7032sed 's/^/| /' conftest.$ac_ext >&5
7033
7034  ac_header_preproc=no
7035fi
7036rm -f conftest.err conftest.$ac_ext
7037echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7038echo "${ECHO_T}$ac_header_preproc" >&6
7039
7040# So?  What about this header?
7041case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7042  yes:no: )
7043    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7044echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7045    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7046echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7047    ac_header_preproc=yes
7048    ;;
7049  no:yes:* )
7050    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7051echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7052    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7053echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7054    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7055echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7056    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7057echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7058    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7059echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7060    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7061echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7062    (
7063      cat <<\_ASBOX
7064## ---------------------------------------------- ##
7065## Report this to orxonox-dev at mail.datacore.ch ##
7066## ---------------------------------------------- ##
7067_ASBOX
7068    ) |
7069      sed "s/^/$as_me: WARNING:     /" >&2
7070    ;;
7071esac
7072echo "$as_me:$LINENO: checking for $ac_header" >&5
7073echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7074if eval "test \"\${$as_ac_Header+set}\" = set"; then
7075  echo $ECHO_N "(cached) $ECHO_C" >&6
7076else
7077  eval "$as_ac_Header=\$ac_header_preproc"
7078fi
7079echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7080echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7081
7082fi
7083if test `eval echo '${'$as_ac_Header'}'` = yes; then
7084  cat >>confdefs.h <<_ACEOF
7085#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7086_ACEOF
7087 pthreadHeader="yes"
7088else
7089  pthreadHeader="no"
7090fi
7091
7092done
7093
7094  echo "$as_me:$LINENO: checking for main in -lpthread" >&5
7095echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
7096if test "${ac_cv_lib_pthread_main+set}" = set; then
7097  echo $ECHO_N "(cached) $ECHO_C" >&6
7098else
7099  ac_check_lib_save_LIBS=$LIBS
7100LIBS="-lpthread  $LIBS"
7101cat >conftest.$ac_ext <<_ACEOF
7102/* confdefs.h.  */
7103_ACEOF
7104cat confdefs.h >>conftest.$ac_ext
7105cat >>conftest.$ac_ext <<_ACEOF
7106/* end confdefs.h.  */
7107
7108
7109int
7110main ()
7111{
7112main ();
7113  ;
7114  return 0;
7115}
7116_ACEOF
7117rm -f conftest.$ac_objext conftest$ac_exeext
7118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7119  (eval $ac_link) 2>conftest.er1
7120  ac_status=$?
7121  grep -v '^ *+' conftest.er1 >conftest.err
7122  rm -f conftest.er1
7123  cat conftest.err >&5
7124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125  (exit $ac_status); } &&
7126         { ac_try='test -z "$ac_c_werror_flag"
7127                         || test ! -s conftest.err'
7128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129  (eval $ac_try) 2>&5
7130  ac_status=$?
7131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132  (exit $ac_status); }; } &&
7133         { ac_try='test -s conftest$ac_exeext'
7134  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7135  (eval $ac_try) 2>&5
7136  ac_status=$?
7137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138  (exit $ac_status); }; }; then
7139  ac_cv_lib_pthread_main=yes
7140else
7141  echo "$as_me: failed program was:" >&5
7142sed 's/^/| /' conftest.$ac_ext >&5
7143
7144ac_cv_lib_pthread_main=no
7145fi
7146rm -f conftest.err conftest.$ac_objext \
7147      conftest$ac_exeext conftest.$ac_ext
7148LIBS=$ac_check_lib_save_LIBS
7149fi
7150echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
7151echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
7152if test $ac_cv_lib_pthread_main = yes; then
7153  FOUND_pthread=yes
7154fi
7155
7156   if test x$FOUND_pthread = xyes ; then
7157      LIBS="$LIBS -lpthread"
7158   fi
7159 fi
7160fi
7161
7162
7163#--------#
7164# efence #
7165#--------#
7166if test x$def_efence = xyes ; then
7167  echo "$as_me:$LINENO: checking for main in -lefence" >&5
7168echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6
7169if test "${ac_cv_lib_efence_main+set}" = set; then
7170  echo $ECHO_N "(cached) $ECHO_C" >&6
7171else
7172  ac_check_lib_save_LIBS=$LIBS
7173LIBS="-lefence  $LIBS"
7174cat >conftest.$ac_ext <<_ACEOF
7175/* confdefs.h.  */
7176_ACEOF
7177cat confdefs.h >>conftest.$ac_ext
7178cat >>conftest.$ac_ext <<_ACEOF
7179/* end confdefs.h.  */
7180
7181
7182int
7183main ()
7184{
7185main ();
7186  ;
7187  return 0;
7188}
7189_ACEOF
7190rm -f conftest.$ac_objext conftest$ac_exeext
7191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7192  (eval $ac_link) 2>conftest.er1
7193  ac_status=$?
7194  grep -v '^ *+' conftest.er1 >conftest.err
7195  rm -f conftest.er1
7196  cat conftest.err >&5
7197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198  (exit $ac_status); } &&
7199         { ac_try='test -z "$ac_c_werror_flag"
7200                         || test ! -s conftest.err'
7201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202  (eval $ac_try) 2>&5
7203  ac_status=$?
7204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205  (exit $ac_status); }; } &&
7206         { ac_try='test -s conftest$ac_exeext'
7207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208  (eval $ac_try) 2>&5
7209  ac_status=$?
7210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211  (exit $ac_status); }; }; then
7212  ac_cv_lib_efence_main=yes
7213else
7214  echo "$as_me: failed program was:" >&5
7215sed 's/^/| /' conftest.$ac_ext >&5
7216
7217ac_cv_lib_efence_main=no
7218fi
7219rm -f conftest.err conftest.$ac_objext \
7220      conftest$ac_exeext conftest.$ac_ext
7221LIBS=$ac_check_lib_save_LIBS
7222fi
7223echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5
7224echo "${ECHO_T}$ac_cv_lib_efence_main" >&6
7225if test $ac_cv_lib_efence_main = yes; then
7226  FOUND_efence=yes
7227fi
7228
7229   if test x$FOUND_efence = xyes ; then
7230      LIBS="$LIBS -lefence"
7231   fi
7232
7233fi
7234
7235# FIXME: Replace `main' with a function in `-lm':
7236
7237echo "$as_me:$LINENO: checking for main in -lm" >&5
7238echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7239if test "${ac_cv_lib_m_main+set}" = set; then
7240  echo $ECHO_N "(cached) $ECHO_C" >&6
7241else
7242  ac_check_lib_save_LIBS=$LIBS
7243LIBS="-lm  $LIBS"
7244cat >conftest.$ac_ext <<_ACEOF
7245/* confdefs.h.  */
7246_ACEOF
7247cat confdefs.h >>conftest.$ac_ext
7248cat >>conftest.$ac_ext <<_ACEOF
7249/* end confdefs.h.  */
7250
7251
7252int
7253main ()
7254{
7255main ();
7256  ;
7257  return 0;
7258}
7259_ACEOF
7260rm -f conftest.$ac_objext conftest$ac_exeext
7261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7262  (eval $ac_link) 2>conftest.er1
7263  ac_status=$?
7264  grep -v '^ *+' conftest.er1 >conftest.err
7265  rm -f conftest.er1
7266  cat conftest.err >&5
7267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268  (exit $ac_status); } &&
7269         { ac_try='test -z "$ac_c_werror_flag"
7270                         || test ! -s conftest.err'
7271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7272  (eval $ac_try) 2>&5
7273  ac_status=$?
7274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275  (exit $ac_status); }; } &&
7276         { ac_try='test -s conftest$ac_exeext'
7277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7278  (eval $ac_try) 2>&5
7279  ac_status=$?
7280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281  (exit $ac_status); }; }; then
7282  ac_cv_lib_m_main=yes
7283else
7284  echo "$as_me: failed program was:" >&5
7285sed 's/^/| /' conftest.$ac_ext >&5
7286
7287ac_cv_lib_m_main=no
7288fi
7289rm -f conftest.err conftest.$ac_objext \
7290      conftest$ac_exeext conftest.$ac_ext
7291LIBS=$ac_check_lib_save_LIBS
7292fi
7293echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7294echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7295if test $ac_cv_lib_m_main = yes; then
7296  cat >>confdefs.h <<_ACEOF
7297#define HAVE_LIBM 1
7298_ACEOF
7299
7300  LIBS="-lm $LIBS"
7301
7302fi
7303
7304
7305
7306# Checks for header files.
7307echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7308echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7309if test "${ac_cv_header_stdc+set}" = set; then
7310  echo $ECHO_N "(cached) $ECHO_C" >&6
7311else
7312  cat >conftest.$ac_ext <<_ACEOF
7313/* confdefs.h.  */
7314_ACEOF
7315cat confdefs.h >>conftest.$ac_ext
7316cat >>conftest.$ac_ext <<_ACEOF
7317/* end confdefs.h.  */
7318#include <stdlib.h>
7319#include <stdarg.h>
7320#include <string.h>
7321#include <float.h>
7322
7323int
7324main ()
7325{
7326
7327  ;
7328  return 0;
7329}
7330_ACEOF
7331rm -f conftest.$ac_objext
7332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7333  (eval $ac_compile) 2>conftest.er1
7334  ac_status=$?
7335  grep -v '^ *+' conftest.er1 >conftest.err
7336  rm -f conftest.er1
7337  cat conftest.err >&5
7338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339  (exit $ac_status); } &&
7340         { ac_try='test -z "$ac_c_werror_flag"
7341                         || test ! -s conftest.err'
7342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7343  (eval $ac_try) 2>&5
7344  ac_status=$?
7345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346  (exit $ac_status); }; } &&
7347         { ac_try='test -s conftest.$ac_objext'
7348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7349  (eval $ac_try) 2>&5
7350  ac_status=$?
7351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352  (exit $ac_status); }; }; then
7353  ac_cv_header_stdc=yes
7354else
7355  echo "$as_me: failed program was:" >&5
7356sed 's/^/| /' conftest.$ac_ext >&5
7357
7358ac_cv_header_stdc=no
7359fi
7360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7361
7362if test $ac_cv_header_stdc = yes; then
7363  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7364  cat >conftest.$ac_ext <<_ACEOF
7365/* confdefs.h.  */
7366_ACEOF
7367cat confdefs.h >>conftest.$ac_ext
7368cat >>conftest.$ac_ext <<_ACEOF
7369/* end confdefs.h.  */
7370#include <string.h>
7371
7372_ACEOF
7373if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7374  $EGREP "memchr" >/dev/null 2>&1; then
7375  :
7376else
7377  ac_cv_header_stdc=no
7378fi
7379rm -f conftest*
7380
7381fi
7382
7383if test $ac_cv_header_stdc = yes; then
7384  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7385  cat >conftest.$ac_ext <<_ACEOF
7386/* confdefs.h.  */
7387_ACEOF
7388cat confdefs.h >>conftest.$ac_ext
7389cat >>conftest.$ac_ext <<_ACEOF
7390/* end confdefs.h.  */
7391#include <stdlib.h>
7392
7393_ACEOF
7394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7395  $EGREP "free" >/dev/null 2>&1; then
7396  :
7397else
7398  ac_cv_header_stdc=no
7399fi
7400rm -f conftest*
7401
7402fi
7403
7404if test $ac_cv_header_stdc = yes; then
7405  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7406  if test "$cross_compiling" = yes; then
7407  :
7408else
7409  cat >conftest.$ac_ext <<_ACEOF
7410/* confdefs.h.  */
7411_ACEOF
7412cat confdefs.h >>conftest.$ac_ext
7413cat >>conftest.$ac_ext <<_ACEOF
7414/* end confdefs.h.  */
7415#include <ctype.h>
7416#if ((' ' & 0x0FF) == 0x020)
7417# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7418# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7419#else
7420# define ISLOWER(c) \
7421                   (('a' <= (c) && (c) <= 'i') \
7422                     || ('j' <= (c) && (c) <= 'r') \
7423                     || ('s' <= (c) && (c) <= 'z'))
7424# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7425#endif
7426
7427#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7428int
7429main ()
7430{
7431  int i;
7432  for (i = 0; i < 256; i++)
7433    if (XOR (islower (i), ISLOWER (i))
7434        || toupper (i) != TOUPPER (i))
7435      exit(2);
7436  exit (0);
7437}
7438_ACEOF
7439rm -f conftest$ac_exeext
7440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7441  (eval $ac_link) 2>&5
7442  ac_status=$?
7443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7446  (eval $ac_try) 2>&5
7447  ac_status=$?
7448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449  (exit $ac_status); }; }; then
7450  :
7451else
7452  echo "$as_me: program exited with status $ac_status" >&5
7453echo "$as_me: failed program was:" >&5
7454sed 's/^/| /' conftest.$ac_ext >&5
7455
7456( exit $ac_status )
7457ac_cv_header_stdc=no
7458fi
7459rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7460fi
7461fi
7462fi
7463echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7464echo "${ECHO_T}$ac_cv_header_stdc" >&6
7465if test $ac_cv_header_stdc = yes; then
7466
7467cat >>confdefs.h <<\_ACEOF
7468#define STDC_HEADERS 1
7469_ACEOF
7470
7471fi
7472
7473
7474
7475for ac_header in stdlib.h string.h
7476do
7477as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7478if eval "test \"\${$as_ac_Header+set}\" = set"; then
7479  echo "$as_me:$LINENO: checking for $ac_header" >&5
7480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7481if eval "test \"\${$as_ac_Header+set}\" = set"; then
7482  echo $ECHO_N "(cached) $ECHO_C" >&6
7483fi
7484echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7485echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7486else
7487  # Is the header compilable?
7488echo "$as_me:$LINENO: checking $ac_header usability" >&5
7489echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7490cat >conftest.$ac_ext <<_ACEOF
7491/* confdefs.h.  */
7492_ACEOF
7493cat confdefs.h >>conftest.$ac_ext
7494cat >>conftest.$ac_ext <<_ACEOF
7495/* end confdefs.h.  */
7496$ac_includes_default
7497#include <$ac_header>
7498_ACEOF
7499rm -f conftest.$ac_objext
7500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7501  (eval $ac_compile) 2>conftest.er1
7502  ac_status=$?
7503  grep -v '^ *+' conftest.er1 >conftest.err
7504  rm -f conftest.er1
7505  cat conftest.err >&5
7506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507  (exit $ac_status); } &&
7508         { ac_try='test -z "$ac_c_werror_flag"
7509                         || test ! -s conftest.err'
7510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7511  (eval $ac_try) 2>&5
7512  ac_status=$?
7513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514  (exit $ac_status); }; } &&
7515         { ac_try='test -s conftest.$ac_objext'
7516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7517  (eval $ac_try) 2>&5
7518  ac_status=$?
7519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520  (exit $ac_status); }; }; then
7521  ac_header_compiler=yes
7522else
7523  echo "$as_me: failed program was:" >&5
7524sed 's/^/| /' conftest.$ac_ext >&5
7525
7526ac_header_compiler=no
7527fi
7528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7529echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7530echo "${ECHO_T}$ac_header_compiler" >&6
7531
7532# Is the header present?
7533echo "$as_me:$LINENO: checking $ac_header presence" >&5
7534echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7535cat >conftest.$ac_ext <<_ACEOF
7536/* confdefs.h.  */
7537_ACEOF
7538cat confdefs.h >>conftest.$ac_ext
7539cat >>conftest.$ac_ext <<_ACEOF
7540/* end confdefs.h.  */
7541#include <$ac_header>
7542_ACEOF
7543if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7544  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7545  ac_status=$?
7546  grep -v '^ *+' conftest.er1 >conftest.err
7547  rm -f conftest.er1
7548  cat conftest.err >&5
7549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550  (exit $ac_status); } >/dev/null; then
7551  if test -s conftest.err; then
7552    ac_cpp_err=$ac_c_preproc_warn_flag
7553    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7554  else
7555    ac_cpp_err=
7556  fi
7557else
7558  ac_cpp_err=yes
7559fi
7560if test -z "$ac_cpp_err"; then
7561  ac_header_preproc=yes
7562else
7563  echo "$as_me: failed program was:" >&5
7564sed 's/^/| /' conftest.$ac_ext >&5
7565
7566  ac_header_preproc=no
7567fi
7568rm -f conftest.err conftest.$ac_ext
7569echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7570echo "${ECHO_T}$ac_header_preproc" >&6
7571
7572# So?  What about this header?
7573case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7574  yes:no: )
7575    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7576echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7577    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7578echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7579    ac_header_preproc=yes
7580    ;;
7581  no:yes:* )
7582    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7583echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7584    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7585echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7586    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7587echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7588    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7589echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7590    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7591echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7592    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7593echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7594    (
7595      cat <<\_ASBOX
7596## ---------------------------------------------- ##
7597## Report this to orxonox-dev at mail.datacore.ch ##
7598## ---------------------------------------------- ##
7599_ASBOX
7600    ) |
7601      sed "s/^/$as_me: WARNING:     /" >&2
7602    ;;
7603esac
7604echo "$as_me:$LINENO: checking for $ac_header" >&5
7605echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7606if eval "test \"\${$as_ac_Header+set}\" = set"; then
7607  echo $ECHO_N "(cached) $ECHO_C" >&6
7608else
7609  eval "$as_ac_Header=\$ac_header_preproc"
7610fi
7611echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7612echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7613
7614fi
7615if test `eval echo '${'$as_ac_Header'}'` = yes; then
7616  cat >>confdefs.h <<_ACEOF
7617#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7618_ACEOF
7619
7620fi
7621
7622done
7623
7624
7625# Checks for typedefs, structures, and compiler characteristics.
7626echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7627echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
7628if test "${ac_cv_header_stdbool_h+set}" = set; then
7629  echo $ECHO_N "(cached) $ECHO_C" >&6
7630else
7631  cat >conftest.$ac_ext <<_ACEOF
7632/* confdefs.h.  */
7633_ACEOF
7634cat confdefs.h >>conftest.$ac_ext
7635cat >>conftest.$ac_ext <<_ACEOF
7636/* end confdefs.h.  */
7637
7638#include <stdbool.h>
7639#ifndef bool
7640# error bool is not defined
7641#endif
7642#ifndef false
7643# error false is not defined
7644#endif
7645#if false
7646# error false is not 0
7647#endif
7648#ifndef true
7649# error true is not defined
7650#endif
7651#if true != 1
7652# error true is not 1
7653#endif
7654#ifndef __bool_true_false_are_defined
7655# error __bool_true_false_are_defined is not defined
7656#endif
7657
7658        struct s { _Bool s: 1; _Bool t; } s;
7659
7660        char a[true == 1 ? 1 : -1];
7661        char b[false == 0 ? 1 : -1];
7662        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7663        char d[(bool) -0.5 == true ? 1 : -1];
7664        bool e = &s;
7665        char f[(_Bool) -0.0 == false ? 1 : -1];
7666        char g[true];
7667        char h[sizeof (_Bool)];
7668        char i[sizeof s.t];
7669
7670int
7671main ()
7672{
7673 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
7674  ;
7675  return 0;
7676}
7677_ACEOF
7678rm -f conftest.$ac_objext
7679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7680  (eval $ac_compile) 2>conftest.er1
7681  ac_status=$?
7682  grep -v '^ *+' conftest.er1 >conftest.err
7683  rm -f conftest.er1
7684  cat conftest.err >&5
7685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686  (exit $ac_status); } &&
7687         { ac_try='test -z "$ac_c_werror_flag"
7688                         || test ! -s conftest.err'
7689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7690  (eval $ac_try) 2>&5
7691  ac_status=$?
7692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693  (exit $ac_status); }; } &&
7694         { ac_try='test -s conftest.$ac_objext'
7695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696  (eval $ac_try) 2>&5
7697  ac_status=$?
7698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699  (exit $ac_status); }; }; then
7700  ac_cv_header_stdbool_h=yes
7701else
7702  echo "$as_me: failed program was:" >&5
7703sed 's/^/| /' conftest.$ac_ext >&5
7704
7705ac_cv_header_stdbool_h=no
7706fi
7707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7708fi
7709echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7710echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
7711echo "$as_me:$LINENO: checking for _Bool" >&5
7712echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
7713if test "${ac_cv_type__Bool+set}" = set; then
7714  echo $ECHO_N "(cached) $ECHO_C" >&6
7715else
7716  cat >conftest.$ac_ext <<_ACEOF
7717/* confdefs.h.  */
7718_ACEOF
7719cat confdefs.h >>conftest.$ac_ext
7720cat >>conftest.$ac_ext <<_ACEOF
7721/* end confdefs.h.  */
7722$ac_includes_default
7723int
7724main ()
7725{
7726if ((_Bool *) 0)
7727  return 0;
7728if (sizeof (_Bool))
7729  return 0;
7730  ;
7731  return 0;
7732}
7733_ACEOF
7734rm -f conftest.$ac_objext
7735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7736  (eval $ac_compile) 2>conftest.er1
7737  ac_status=$?
7738  grep -v '^ *+' conftest.er1 >conftest.err
7739  rm -f conftest.er1
7740  cat conftest.err >&5
7741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742  (exit $ac_status); } &&
7743         { ac_try='test -z "$ac_c_werror_flag"
7744                         || test ! -s conftest.err'
7745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7746  (eval $ac_try) 2>&5
7747  ac_status=$?
7748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749  (exit $ac_status); }; } &&
7750         { ac_try='test -s conftest.$ac_objext'
7751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752  (eval $ac_try) 2>&5
7753  ac_status=$?
7754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755  (exit $ac_status); }; }; then
7756  ac_cv_type__Bool=yes
7757else
7758  echo "$as_me: failed program was:" >&5
7759sed 's/^/| /' conftest.$ac_ext >&5
7760
7761ac_cv_type__Bool=no
7762fi
7763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7764fi
7765echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7766echo "${ECHO_T}$ac_cv_type__Bool" >&6
7767if test $ac_cv_type__Bool = yes; then
7768
7769cat >>confdefs.h <<_ACEOF
7770#define HAVE__BOOL 1
7771_ACEOF
7772
7773
7774fi
7775
7776if test $ac_cv_header_stdbool_h = yes; then
7777
7778cat >>confdefs.h <<\_ACEOF
7779#define HAVE_STDBOOL_H 1
7780_ACEOF
7781
7782fi
7783
7784
7785# Checks for library functions.
7786
7787for ac_header in stdlib.h
7788do
7789as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7790if eval "test \"\${$as_ac_Header+set}\" = set"; then
7791  echo "$as_me:$LINENO: checking for $ac_header" >&5
7792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7793if eval "test \"\${$as_ac_Header+set}\" = set"; then
7794  echo $ECHO_N "(cached) $ECHO_C" >&6
7795fi
7796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7797echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7798else
7799  # Is the header compilable?
7800echo "$as_me:$LINENO: checking $ac_header usability" >&5
7801echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7802cat >conftest.$ac_ext <<_ACEOF
7803/* confdefs.h.  */
7804_ACEOF
7805cat confdefs.h >>conftest.$ac_ext
7806cat >>conftest.$ac_ext <<_ACEOF
7807/* end confdefs.h.  */
7808$ac_includes_default
7809#include <$ac_header>
7810_ACEOF
7811rm -f conftest.$ac_objext
7812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7813  (eval $ac_compile) 2>conftest.er1
7814  ac_status=$?
7815  grep -v '^ *+' conftest.er1 >conftest.err
7816  rm -f conftest.er1
7817  cat conftest.err >&5
7818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819  (exit $ac_status); } &&
7820         { ac_try='test -z "$ac_c_werror_flag"
7821                         || test ! -s conftest.err'
7822  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823  (eval $ac_try) 2>&5
7824  ac_status=$?
7825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826  (exit $ac_status); }; } &&
7827         { ac_try='test -s conftest.$ac_objext'
7828  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829  (eval $ac_try) 2>&5
7830  ac_status=$?
7831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832  (exit $ac_status); }; }; then
7833  ac_header_compiler=yes
7834else
7835  echo "$as_me: failed program was:" >&5
7836sed 's/^/| /' conftest.$ac_ext >&5
7837
7838ac_header_compiler=no
7839fi
7840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7841echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7842echo "${ECHO_T}$ac_header_compiler" >&6
7843
7844# Is the header present?
7845echo "$as_me:$LINENO: checking $ac_header presence" >&5
7846echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7847cat >conftest.$ac_ext <<_ACEOF
7848/* confdefs.h.  */
7849_ACEOF
7850cat confdefs.h >>conftest.$ac_ext
7851cat >>conftest.$ac_ext <<_ACEOF
7852/* end confdefs.h.  */
7853#include <$ac_header>
7854_ACEOF
7855if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7856  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7857  ac_status=$?
7858  grep -v '^ *+' conftest.er1 >conftest.err
7859  rm -f conftest.er1
7860  cat conftest.err >&5
7861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862  (exit $ac_status); } >/dev/null; then
7863  if test -s conftest.err; then
7864    ac_cpp_err=$ac_c_preproc_warn_flag
7865    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7866  else
7867    ac_cpp_err=
7868  fi
7869else
7870  ac_cpp_err=yes
7871fi
7872if test -z "$ac_cpp_err"; then
7873  ac_header_preproc=yes
7874else
7875  echo "$as_me: failed program was:" >&5
7876sed 's/^/| /' conftest.$ac_ext >&5
7877
7878  ac_header_preproc=no
7879fi
7880rm -f conftest.err conftest.$ac_ext
7881echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7882echo "${ECHO_T}$ac_header_preproc" >&6
7883
7884# So?  What about this header?
7885case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7886  yes:no: )
7887    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7888echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7889    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7890echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7891    ac_header_preproc=yes
7892    ;;
7893  no:yes:* )
7894    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7895echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7896    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7897echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7898    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7899echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7900    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7901echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7902    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7903echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7904    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7905echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7906    (
7907      cat <<\_ASBOX
7908## ---------------------------------------------- ##
7909## Report this to orxonox-dev at mail.datacore.ch ##
7910## ---------------------------------------------- ##
7911_ASBOX
7912    ) |
7913      sed "s/^/$as_me: WARNING:     /" >&2
7914    ;;
7915esac
7916echo "$as_me:$LINENO: checking for $ac_header" >&5
7917echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7918if eval "test \"\${$as_ac_Header+set}\" = set"; then
7919  echo $ECHO_N "(cached) $ECHO_C" >&6
7920else
7921  eval "$as_ac_Header=\$ac_header_preproc"
7922fi
7923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7924echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7925
7926fi
7927if test `eval echo '${'$as_ac_Header'}'` = yes; then
7928  cat >>confdefs.h <<_ACEOF
7929#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7930_ACEOF
7931
7932fi
7933
7934done
7935
7936echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7937echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
7938if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
7939  echo $ECHO_N "(cached) $ECHO_C" >&6
7940else
7941  if test "$cross_compiling" = yes; then
7942  ac_cv_func_malloc_0_nonnull=no
7943else
7944  cat >conftest.$ac_ext <<_ACEOF
7945/* confdefs.h.  */
7946_ACEOF
7947cat confdefs.h >>conftest.$ac_ext
7948cat >>conftest.$ac_ext <<_ACEOF
7949/* end confdefs.h.  */
7950#if STDC_HEADERS || HAVE_STDLIB_H
7951# include <stdlib.h>
7952#else
7953char *malloc ();
7954#endif
7955
7956int
7957main ()
7958{
7959exit (malloc (0) ? 0 : 1);
7960  ;
7961  return 0;
7962}
7963_ACEOF
7964rm -f conftest$ac_exeext
7965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7966  (eval $ac_link) 2>&5
7967  ac_status=$?
7968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971  (eval $ac_try) 2>&5
7972  ac_status=$?
7973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974  (exit $ac_status); }; }; then
7975  ac_cv_func_malloc_0_nonnull=yes
7976else
7977  echo "$as_me: program exited with status $ac_status" >&5
7978echo "$as_me: failed program was:" >&5
7979sed 's/^/| /' conftest.$ac_ext >&5
7980
7981( exit $ac_status )
7982ac_cv_func_malloc_0_nonnull=no
7983fi
7984rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7985fi
7986fi
7987echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7988echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
7989if test $ac_cv_func_malloc_0_nonnull = yes; then
7990
7991cat >>confdefs.h <<\_ACEOF
7992#define HAVE_MALLOC 1
7993_ACEOF
7994
7995else
7996  cat >>confdefs.h <<\_ACEOF
7997#define HAVE_MALLOC 0
7998_ACEOF
7999
8000   case $LIBOBJS in
8001    "malloc.$ac_objext"   | \
8002  *" malloc.$ac_objext"   | \
8003    "malloc.$ac_objext "* | \
8004  *" malloc.$ac_objext "* ) ;;
8005  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
8006esac
8007
8008
8009cat >>confdefs.h <<\_ACEOF
8010#define malloc rpl_malloc
8011_ACEOF
8012
8013fi
8014
8015
8016
8017
8018
8019for ac_func in bzero sqrt
8020do
8021as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8022echo "$as_me:$LINENO: checking for $ac_func" >&5
8023echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8024if eval "test \"\${$as_ac_var+set}\" = set"; then
8025  echo $ECHO_N "(cached) $ECHO_C" >&6
8026else
8027  cat >conftest.$ac_ext <<_ACEOF
8028/* confdefs.h.  */
8029_ACEOF
8030cat confdefs.h >>conftest.$ac_ext
8031cat >>conftest.$ac_ext <<_ACEOF
8032/* end confdefs.h.  */
8033/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8034   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8035#define $ac_func innocuous_$ac_func
8036
8037/* System header to define __stub macros and hopefully few prototypes,
8038    which can conflict with char $ac_func (); below.
8039    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8040    <limits.h> exists even on freestanding compilers.  */
8041
8042#ifdef __STDC__
8043# include <limits.h>
8044#else
8045# include <assert.h>
8046#endif
8047
8048#undef $ac_func
8049
8050/* Override any gcc2 internal prototype to avoid an error.  */
8051#ifdef __cplusplus
8052extern "C"
8053{
8054#endif
8055/* We use char because int might match the return type of a gcc2
8056   builtin and then its argument prototype would still apply.  */
8057char $ac_func ();
8058/* The GNU C library defines this for functions which it implements
8059    to always fail with ENOSYS.  Some functions are actually named
8060    something starting with __ and the normal name is an alias.  */
8061#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8062choke me
8063#else
8064char (*f) () = $ac_func;
8065#endif
8066#ifdef __cplusplus
8067}
8068#endif
8069
8070int
8071main ()
8072{
8073return f != $ac_func;
8074  ;
8075  return 0;
8076}
8077_ACEOF
8078rm -f conftest.$ac_objext conftest$ac_exeext
8079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8080  (eval $ac_link) 2>conftest.er1
8081  ac_status=$?
8082  grep -v '^ *+' conftest.er1 >conftest.err
8083  rm -f conftest.er1
8084  cat conftest.err >&5
8085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086  (exit $ac_status); } &&
8087         { ac_try='test -z "$ac_c_werror_flag"
8088                         || test ! -s conftest.err'
8089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8090  (eval $ac_try) 2>&5
8091  ac_status=$?
8092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093  (exit $ac_status); }; } &&
8094         { ac_try='test -s conftest$ac_exeext'
8095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096  (eval $ac_try) 2>&5
8097  ac_status=$?
8098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099  (exit $ac_status); }; }; then
8100  eval "$as_ac_var=yes"
8101else
8102  echo "$as_me: failed program was:" >&5
8103sed 's/^/| /' conftest.$ac_ext >&5
8104
8105eval "$as_ac_var=no"
8106fi
8107rm -f conftest.err conftest.$ac_objext \
8108      conftest$ac_exeext conftest.$ac_ext
8109fi
8110echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8111echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8112if test `eval echo '${'$as_ac_var'}'` = yes; then
8113  cat >>confdefs.h <<_ACEOF
8114#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8115_ACEOF
8116
8117fi
8118done
8119
8120
8121######################
8122## OUTPUT CONFIGURE ##
8123######################
8124                                                                                                    ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/lib/graphics/Makefile src/lib/graphics/importer/Makefile src/lib/gui/Makefile src/lib/gui/console/Makefile src/lib/gui/gui/Makefile src/subprojects/Makefile src/subprojects/testmain/Makefile"
8125
8126
8127cat >confcache <<\_ACEOF
8128# This file is a shell script that caches the results of configure
8129# tests run on this system so they can be shared between configure
8130# scripts and configure runs, see configure's option --config-cache.
8131# It is not useful on other systems.  If it contains results you don't
8132# want to keep, you may remove or edit it.
8133#
8134# config.status only pays attention to the cache file if you give it
8135# the --recheck option to rerun configure.
8136#
8137# `ac_cv_env_foo' variables (set or unset) will be overridden when
8138# loading this file, other *unset* `ac_cv_foo' will be assigned the
8139# following values.
8140
8141_ACEOF
8142
8143# The following way of writing the cache mishandles newlines in values,
8144# but we know of no workaround that is simple, portable, and efficient.
8145# So, don't put newlines in cache variables' values.
8146# Ultrix sh set writes to stderr and can't be redirected directly,
8147# and sets the high bit in the cache file unless we assign to the vars.
8148{
8149  (set) 2>&1 |
8150    case `(ac_space=' '; set | grep ac_space) 2>&1` in
8151    *ac_space=\ *)
8152      # `set' does not quote correctly, so add quotes (double-quote
8153      # substitution turns \\\\ into \\, and sed turns \\ into \).
8154      sed -n \
8155        "s/'/'\\\\''/g;
8156          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8157      ;;
8158    *)
8159      # `set' quotes correctly as required by POSIX, so do not add quotes.
8160      sed -n \
8161        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8162      ;;
8163    esac;
8164} |
8165  sed '
8166     t clear
8167     : clear
8168     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8169     t end
8170     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8171     : end' >>confcache
8172if diff $cache_file confcache >/dev/null 2>&1; then :; else
8173  if test -w $cache_file; then
8174    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8175    cat confcache >$cache_file
8176  else
8177    echo "not updating unwritable cache $cache_file"
8178  fi
8179fi
8180rm -f confcache
8181
8182test "x$prefix" = xNONE && prefix=$ac_default_prefix
8183# Let make expand exec_prefix.
8184test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8185
8186# VPATH may cause trouble with some makes, so we remove $(srcdir),
8187# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8188# trailing colons and then remove the whole line if VPATH becomes empty
8189# (actually we leave an empty line to preserve line numbers).
8190if test "x$srcdir" = x.; then
8191  ac_vpsub='/^[  ]*VPATH[        ]*=/{
8192s/:*\$(srcdir):*/:/;
8193s/:*\${srcdir}:*/:/;
8194s/:*@srcdir@:*/:/;
8195s/^\([^=]*=[     ]*\):*/\1/;
8196s/:*$//;
8197s/^[^=]*=[       ]*$//;
8198}'
8199fi
8200
8201DEFS=-DHAVE_CONFIG_H
8202
8203ac_libobjs=
8204ac_ltlibobjs=
8205for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8206  # 1. Remove the extension, and $U if already installed.
8207  ac_i=`echo "$ac_i" |
8208         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8209  # 2. Add them.
8210  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8211  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8212done
8213LIBOBJS=$ac_libobjs
8214
8215LTLIBOBJS=$ac_ltlibobjs
8216
8217
8218if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8219  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8220Usually this means the macro was only invoked conditionally." >&5
8221echo "$as_me: error: conditional \"AMDEP\" was never defined.
8222Usually this means the macro was only invoked conditionally." >&2;}
8223   { (exit 1); exit 1; }; }
8224fi
8225if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
8226  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
8227Usually this means the macro was only invoked conditionally." >&5
8228echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
8229Usually this means the macro was only invoked conditionally." >&2;}
8230   { (exit 1); exit 1; }; }
8231fi
8232if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8233  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8234Usually this means the macro was only invoked conditionally." >&5
8235echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8236Usually this means the macro was only invoked conditionally." >&2;}
8237   { (exit 1); exit 1; }; }
8238fi
8239if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then
8240  { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined.
8241Usually this means the macro was only invoked conditionally." >&5
8242echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined.
8243Usually this means the macro was only invoked conditionally." >&2;}
8244   { (exit 1); exit 1; }; }
8245fi
8246if test -z "${DOCUMENTATION_TRUE}" && test -z "${DOCUMENTATION_FALSE}"; then
8247  { { echo "$as_me:$LINENO: error: conditional \"DOCUMENTATION\" was never defined.
8248Usually this means the macro was only invoked conditionally." >&5
8249echo "$as_me: error: conditional \"DOCUMENTATION\" 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.3-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.3-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/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
8728  "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;;
8729  "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;;
8730  "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;;
8731  "src/lib/gui/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/console/Makefile" ;;
8732  "src/lib/gui/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/gui/Makefile" ;;
8733  "src/subprojects/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/Makefile" ;;
8734  "src/subprojects/testmain/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/testmain/Makefile" ;;
8735  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8736  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8737  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8738echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8739   { (exit 1); exit 1; }; };;
8740  esac
8741done
8742
8743# If the user did not use the arguments to specify the items to instantiate,
8744# then the envvar interface is used.  Set only those that are not.
8745# We use the long form for the default assignment because of an extremely
8746# bizarre bug on SunOS 4.1.3.
8747if $ac_need_defaults; then
8748  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8749  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8750  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8751fi
8752
8753# Have a temporary directory for convenience.  Make it in the build tree
8754# simply because there is no reason to put it here, and in addition,
8755# creating and moving files from /tmp can sometimes cause problems.
8756# Create a temporary directory, and hook for its removal unless debugging.
8757$debug ||
8758{
8759  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8760  trap '{ (exit 1); exit 1; }' 1 2 13 15
8761}
8762
8763# Create a (secure) tmp directory for tmp files.
8764
8765{
8766  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8767  test -n "$tmp" && test -d "$tmp"
8768}  ||
8769{
8770  tmp=./confstat$$-$RANDOM
8771  (umask 077 && mkdir $tmp)
8772} ||
8773{
8774   echo "$me: cannot create a temporary directory in ." >&2
8775   { (exit 1); exit 1; }
8776}
8777
8778_ACEOF
8779
8780cat >>$CONFIG_STATUS <<_ACEOF
8781
8782#
8783# CONFIG_FILES section.
8784#
8785
8786# No need to generate the scripts if there are no CONFIG_FILES.
8787# This happens for instance when ./config.status config.h
8788if test -n "\$CONFIG_FILES"; then
8789  # Protect against being on the right side of a sed subst in config.status.
8790  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8791   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8792s,@SHELL@,$SHELL,;t t
8793s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8794s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8795s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8796s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8797s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8798s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8799s,@exec_prefix@,$exec_prefix,;t t
8800s,@prefix@,$prefix,;t t
8801s,@program_transform_name@,$program_transform_name,;t t
8802s,@bindir@,$bindir,;t t
8803s,@sbindir@,$sbindir,;t t
8804s,@libexecdir@,$libexecdir,;t t
8805s,@datadir@,$datadir,;t t
8806s,@sysconfdir@,$sysconfdir,;t t
8807s,@sharedstatedir@,$sharedstatedir,;t t
8808s,@localstatedir@,$localstatedir,;t t
8809s,@libdir@,$libdir,;t t
8810s,@includedir@,$includedir,;t t
8811s,@oldincludedir@,$oldincludedir,;t t
8812s,@infodir@,$infodir,;t t
8813s,@mandir@,$mandir,;t t
8814s,@build_alias@,$build_alias,;t t
8815s,@host_alias@,$host_alias,;t t
8816s,@target_alias@,$target_alias,;t t
8817s,@DEFS@,$DEFS,;t t
8818s,@ECHO_C@,$ECHO_C,;t t
8819s,@ECHO_N@,$ECHO_N,;t t
8820s,@ECHO_T@,$ECHO_T,;t t
8821s,@LIBS@,$LIBS,;t t
8822s,@build@,$build,;t t
8823s,@build_cpu@,$build_cpu,;t t
8824s,@build_vendor@,$build_vendor,;t t
8825s,@build_os@,$build_os,;t t
8826s,@host@,$host,;t t
8827s,@host_cpu@,$host_cpu,;t t
8828s,@host_vendor@,$host_vendor,;t t
8829s,@host_os@,$host_os,;t t
8830s,@target@,$target,;t t
8831s,@target_cpu@,$target_cpu,;t t
8832s,@target_vendor@,$target_vendor,;t t
8833s,@target_os@,$target_os,;t t
8834s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8835s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8836s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8837s,@CYGPATH_W@,$CYGPATH_W,;t t
8838s,@PACKAGE@,$PACKAGE,;t t
8839s,@VERSION@,$VERSION,;t t
8840s,@ACLOCAL@,$ACLOCAL,;t t
8841s,@AUTOCONF@,$AUTOCONF,;t t
8842s,@AUTOMAKE@,$AUTOMAKE,;t t
8843s,@AUTOHEADER@,$AUTOHEADER,;t t
8844s,@MAKEINFO@,$MAKEINFO,;t t
8845s,@AMTAR@,$AMTAR,;t t
8846s,@install_sh@,$install_sh,;t t
8847s,@STRIP@,$STRIP,;t t
8848s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8849s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8850s,@mkdir_p@,$mkdir_p,;t t
8851s,@AWK@,$AWK,;t t
8852s,@SET_MAKE@,$SET_MAKE,;t t
8853s,@am__leading_dot@,$am__leading_dot,;t t
8854s,@CXX@,$CXX,;t t
8855s,@CXXFLAGS@,$CXXFLAGS,;t t
8856s,@LDFLAGS@,$LDFLAGS,;t t
8857s,@CPPFLAGS@,$CPPFLAGS,;t t
8858s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8859s,@EXEEXT@,$EXEEXT,;t t
8860s,@OBJEXT@,$OBJEXT,;t t
8861s,@DEPDIR@,$DEPDIR,;t t
8862s,@am__include@,$am__include,;t t
8863s,@am__quote@,$am__quote,;t t
8864s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8865s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8866s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
8867s,@CXXDEPMODE@,$CXXDEPMODE,;t t
8868s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
8869s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
8870s,@CC@,$CC,;t t
8871s,@CFLAGS@,$CFLAGS,;t t
8872s,@ac_ct_CC@,$ac_ct_CC,;t t
8873s,@CCDEPMODE@,$CCDEPMODE,;t t
8874s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
8875s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
8876s,@CPP@,$CPP,;t t
8877s,@EGREP@,$EGREP,;t t
8878s,@DEBUG@,$DEBUG,;t t
8879s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t
8880s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t
8881s,@DOCUMENTATION_TRUE@,$DOCUMENTATION_TRUE,;t t
8882s,@DOCUMENTATION_FALSE@,$DOCUMENTATION_FALSE,;t t
8883s,@DOXYGEN@,$DOXYGEN,;t t
8884s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t
8885s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t
8886s,@GPROF@,$GPROF,;t t
8887s,@MSBITFIELDS@,$MSBITFIELDS,;t t
8888s,@GTK2_LIBS@,$GTK2_LIBS,;t t
8889s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
8890s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t
8891s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t
8892s,@GTHREAD_LIBS@,$GTHREAD_LIBS,;t t
8893s,@GTHREAD_CFLAGS@,$GTHREAD_CFLAGS,;t t
8894s,@HAVE_GTHREAD_TRUE@,$HAVE_GTHREAD_TRUE,;t t
8895s,@HAVE_GTHREAD_FALSE@,$HAVE_GTHREAD_FALSE,;t t
8896s,@CURL_LIBS@,$CURL_LIBS,;t t
8897s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t
8898s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t
8899s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t
8900s,@LIBOBJS@,$LIBOBJS,;t t
8901s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8902CEOF
8903
8904_ACEOF
8905
8906  cat >>$CONFIG_STATUS <<\_ACEOF
8907  # Split the substitutions into bite-sized pieces for seds with
8908  # small command number limits, like on Digital OSF/1 and HP-UX.
8909  ac_max_sed_lines=48
8910  ac_sed_frag=1 # Number of current file.
8911  ac_beg=1 # First line for current file.
8912  ac_end=$ac_max_sed_lines # Line after last line for current file.
8913  ac_more_lines=:
8914  ac_sed_cmds=
8915  while $ac_more_lines; do
8916    if test $ac_beg -gt 1; then
8917      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8918    else
8919      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8920    fi
8921    if test ! -s $tmp/subs.frag; then
8922      ac_more_lines=false
8923    else
8924      # The purpose of the label and of the branching condition is to
8925      # speed up the sed processing (if there are no `@' at all, there
8926      # is no need to browse any of the substitutions).
8927      # These are the two extra sed commands mentioned above.
8928      (echo ':t
8929  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8930      if test -z "$ac_sed_cmds"; then
8931        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8932      else
8933        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8934      fi
8935      ac_sed_frag=`expr $ac_sed_frag + 1`
8936      ac_beg=$ac_end
8937      ac_end=`expr $ac_end + $ac_max_sed_lines`
8938    fi
8939  done
8940  if test -z "$ac_sed_cmds"; then
8941    ac_sed_cmds=cat
8942  fi
8943fi # test -n "$CONFIG_FILES"
8944
8945_ACEOF
8946cat >>$CONFIG_STATUS <<\_ACEOF
8947for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8948  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8949  case $ac_file in
8950  - | *:- | *:-:* ) # input from stdin
8951        cat >$tmp/stdin
8952        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8953        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8954  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8955        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8956  * )   ac_file_in=$ac_file.in ;;
8957  esac
8958
8959  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8960  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8961$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8962         X"$ac_file" : 'X\(//\)[^/]' \| \
8963         X"$ac_file" : 'X\(//\)$' \| \
8964         X"$ac_file" : 'X\(/\)' \| \
8965         .     : '\(.\)' 2>/dev/null ||
8966echo X"$ac_file" |
8967    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8968          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8969          /^X\(\/\/\)$/{ s//\1/; q; }
8970          /^X\(\/\).*/{ s//\1/; q; }
8971          s/.*/./; q'`
8972  { if $as_mkdir_p; then
8973    mkdir -p "$ac_dir"
8974  else
8975    as_dir="$ac_dir"
8976    as_dirs=
8977    while test ! -d "$as_dir"; do
8978      as_dirs="$as_dir $as_dirs"
8979      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8980$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8981         X"$as_dir" : 'X\(//\)[^/]' \| \
8982         X"$as_dir" : 'X\(//\)$' \| \
8983         X"$as_dir" : 'X\(/\)' \| \
8984         .     : '\(.\)' 2>/dev/null ||
8985echo X"$as_dir" |
8986    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8987          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8988          /^X\(\/\/\)$/{ s//\1/; q; }
8989          /^X\(\/\).*/{ s//\1/; q; }
8990          s/.*/./; q'`
8991    done
8992    test ! -n "$as_dirs" || mkdir $as_dirs
8993  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8994echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8995   { (exit 1); exit 1; }; }; }
8996
8997  ac_builddir=.
8998
8999if test "$ac_dir" != .; then
9000  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9001  # A "../" for each directory in $ac_dir_suffix.
9002  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9003else
9004  ac_dir_suffix= ac_top_builddir=
9005fi
9006
9007case $srcdir in
9008  .)  # No --srcdir option.  We are building in place.
9009    ac_srcdir=.
9010    if test -z "$ac_top_builddir"; then
9011       ac_top_srcdir=.
9012    else
9013       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9014    fi ;;
9015  [\\/]* | ?:[\\/]* )  # Absolute path.
9016    ac_srcdir=$srcdir$ac_dir_suffix;
9017    ac_top_srcdir=$srcdir ;;
9018  *) # Relative path.
9019    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9020    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9021esac
9022
9023# Do not use `cd foo && pwd` to compute absolute paths, because
9024# the directories may not exist.
9025case `pwd` in
9026.) ac_abs_builddir="$ac_dir";;
9027*)
9028  case "$ac_dir" in
9029  .) ac_abs_builddir=`pwd`;;
9030  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9031  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9032  esac;;
9033esac
9034case $ac_abs_builddir in
9035.) ac_abs_top_builddir=${ac_top_builddir}.;;
9036*)
9037  case ${ac_top_builddir}. in
9038  .) ac_abs_top_builddir=$ac_abs_builddir;;
9039  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9040  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9041  esac;;
9042esac
9043case $ac_abs_builddir in
9044.) ac_abs_srcdir=$ac_srcdir;;
9045*)
9046  case $ac_srcdir in
9047  .) ac_abs_srcdir=$ac_abs_builddir;;
9048  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9049  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9050  esac;;
9051esac
9052case $ac_abs_builddir in
9053.) ac_abs_top_srcdir=$ac_top_srcdir;;
9054*)
9055  case $ac_top_srcdir in
9056  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9057  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9058  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9059  esac;;
9060esac
9061
9062
9063  case $INSTALL in
9064  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9065  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9066  esac
9067
9068  if test x"$ac_file" != x-; then
9069    { echo "$as_me:$LINENO: creating $ac_file" >&5
9070echo "$as_me: creating $ac_file" >&6;}
9071    rm -f "$ac_file"
9072  fi
9073  # Let's still pretend it is `configure' which instantiates (i.e., don't
9074  # use $as_me), people would be surprised to read:
9075  #    /* config.h.  Generated by config.status.  */
9076  if test x"$ac_file" = x-; then
9077    configure_input=
9078  else
9079    configure_input="$ac_file.  "
9080  fi
9081  configure_input=$configure_input"Generated from `echo $ac_file_in |
9082                                     sed 's,.*/,,'` by configure."
9083
9084  # First look for the input files in the build tree, otherwise in the
9085  # src tree.
9086  ac_file_inputs=`IFS=:
9087    for f in $ac_file_in; do
9088      case $f in
9089      -) echo $tmp/stdin ;;
9090      [\\/$]*)
9091         # Absolute (can't be DOS-style, as IFS=:)
9092         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9093echo "$as_me: error: cannot find input file: $f" >&2;}
9094   { (exit 1); exit 1; }; }
9095         echo "$f";;
9096      *) # Relative
9097         if test -f "$f"; then
9098           # Build tree
9099           echo "$f"
9100         elif test -f "$srcdir/$f"; then
9101           # Source tree
9102           echo "$srcdir/$f"
9103         else
9104           # /dev/null tree
9105           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9106echo "$as_me: error: cannot find input file: $f" >&2;}
9107   { (exit 1); exit 1; }; }
9108         fi;;
9109      esac
9110    done` || { (exit 1); exit 1; }
9111_ACEOF
9112cat >>$CONFIG_STATUS <<_ACEOF
9113  sed "$ac_vpsub
9114$extrasub
9115_ACEOF
9116cat >>$CONFIG_STATUS <<\_ACEOF
9117:t
9118/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9119s,@configure_input@,$configure_input,;t t
9120s,@srcdir@,$ac_srcdir,;t t
9121s,@abs_srcdir@,$ac_abs_srcdir,;t t
9122s,@top_srcdir@,$ac_top_srcdir,;t t
9123s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9124s,@builddir@,$ac_builddir,;t t
9125s,@abs_builddir@,$ac_abs_builddir,;t t
9126s,@top_builddir@,$ac_top_builddir,;t t
9127s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9128s,@INSTALL@,$ac_INSTALL,;t t
9129" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9130  rm -f $tmp/stdin
9131  if test x"$ac_file" != x-; then
9132    mv $tmp/out $ac_file
9133  else
9134    cat $tmp/out
9135    rm -f $tmp/out
9136  fi
9137
9138done
9139_ACEOF
9140cat >>$CONFIG_STATUS <<\_ACEOF
9141
9142#
9143# CONFIG_HEADER section.
9144#
9145
9146# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9147# NAME is the cpp macro being defined and VALUE is the value it is being given.
9148#
9149# ac_d sets the value in "#define NAME VALUE" lines.
9150ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
9151ac_dB='[         ].*$,\1#\2'
9152ac_dC=' '
9153ac_dD=',;t'
9154# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9155ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9156ac_uB='$,\1#\2define\3'
9157ac_uC=' '
9158ac_uD=',;t'
9159
9160for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9161  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9162  case $ac_file in
9163  - | *:- | *:-:* ) # input from stdin
9164        cat >$tmp/stdin
9165        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9166        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9167  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9168        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9169  * )   ac_file_in=$ac_file.in ;;
9170  esac
9171
9172  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9173echo "$as_me: creating $ac_file" >&6;}
9174
9175  # First look for the input files in the build tree, otherwise in the
9176  # src tree.
9177  ac_file_inputs=`IFS=:
9178    for f in $ac_file_in; do
9179      case $f in
9180      -) echo $tmp/stdin ;;
9181      [\\/$]*)
9182         # Absolute (can't be DOS-style, as IFS=:)
9183         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9184echo "$as_me: error: cannot find input file: $f" >&2;}
9185   { (exit 1); exit 1; }; }
9186         # Do quote $f, to prevent DOS paths from being IFS'd.
9187         echo "$f";;
9188      *) # Relative
9189         if test -f "$f"; then
9190           # Build tree
9191           echo "$f"
9192         elif test -f "$srcdir/$f"; then
9193           # Source tree
9194           echo "$srcdir/$f"
9195         else
9196           # /dev/null tree
9197           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9198echo "$as_me: error: cannot find input file: $f" >&2;}
9199   { (exit 1); exit 1; }; }
9200         fi;;
9201      esac
9202    done` || { (exit 1); exit 1; }
9203  # Remove the trailing spaces.
9204  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
9205
9206_ACEOF
9207
9208# Transform confdefs.h into two sed scripts, `conftest.defines' and
9209# `conftest.undefs', that substitutes the proper values into
9210# config.h.in to produce config.h.  The first handles `#define'
9211# templates, and the second `#undef' templates.
9212# And first: Protect against being on the right side of a sed subst in
9213# config.status.  Protect against being in an unquoted here document
9214# in config.status.
9215rm -f conftest.defines conftest.undefs
9216# Using a here document instead of a string reduces the quoting nightmare.
9217# Putting comments in sed scripts is not portable.
9218#
9219# `end' is used to avoid that the second main sed command (meant for
9220# 0-ary CPP macros) applies to n-ary macro definitions.
9221# See the Autoconf documentation for `clear'.
9222cat >confdef2sed.sed <<\_ACEOF
9223s/[\\&,]/\\&/g
9224s,[\\$`],\\&,g
9225t clear
9226: clear
9227s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9228t end
9229s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9230: end
9231_ACEOF
9232# If some macros were called several times there might be several times
9233# the same #defines, which is useless.  Nevertheless, we may not want to
9234# sort them, since we want the *last* AC-DEFINE to be honored.
9235uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9236sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9237rm -f confdef2sed.sed
9238
9239# This sed command replaces #undef with comments.  This is necessary, for
9240# example, in the case of _POSIX_SOURCE, which is predefined and required
9241# on some systems where configure will not decide to define it.
9242cat >>conftest.undefs <<\_ACEOF
9243s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9244_ACEOF
9245
9246# Break up conftest.defines because some shells have a limit on the size
9247# of here documents, and old seds have small limits too (100 cmds).
9248echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9249echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9250echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9251echo '  :' >>$CONFIG_STATUS
9252rm -f conftest.tail
9253while grep . conftest.defines >/dev/null
9254do
9255  # Write a limited-size here document to $tmp/defines.sed.
9256  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9257  # Speed up: don't consider the non `#define' lines.
9258  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
9259  # Work around the forget-to-reset-the-flag bug.
9260  echo 't clr' >>$CONFIG_STATUS
9261  echo ': clr' >>$CONFIG_STATUS
9262  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9263  echo 'CEOF
9264  sed -f $tmp/defines.sed $tmp/in >$tmp/out
9265  rm -f $tmp/in
9266  mv $tmp/out $tmp/in
9267' >>$CONFIG_STATUS
9268  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9269  rm -f conftest.defines
9270  mv conftest.tail conftest.defines
9271done
9272rm -f conftest.defines
9273echo '  fi # grep' >>$CONFIG_STATUS
9274echo >>$CONFIG_STATUS
9275
9276# Break up conftest.undefs because some shells have a limit on the size
9277# of here documents, and old seds have small limits too (100 cmds).
9278echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
9279rm -f conftest.tail
9280while grep . conftest.undefs >/dev/null
9281do
9282  # Write a limited-size here document to $tmp/undefs.sed.
9283  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9284  # Speed up: don't consider the non `#undef'
9285  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
9286  # Work around the forget-to-reset-the-flag bug.
9287  echo 't clr' >>$CONFIG_STATUS
9288  echo ': clr' >>$CONFIG_STATUS
9289  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9290  echo 'CEOF
9291  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9292  rm -f $tmp/in
9293  mv $tmp/out $tmp/in
9294' >>$CONFIG_STATUS
9295  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9296  rm -f conftest.undefs
9297  mv conftest.tail conftest.undefs
9298done
9299rm -f conftest.undefs
9300
9301cat >>$CONFIG_STATUS <<\_ACEOF
9302  # Let's still pretend it is `configure' which instantiates (i.e., don't
9303  # use $as_me), people would be surprised to read:
9304  #    /* config.h.  Generated by config.status.  */
9305  if test x"$ac_file" = x-; then
9306    echo "/* Generated by configure.  */" >$tmp/config.h
9307  else
9308    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
9309  fi
9310  cat $tmp/in >>$tmp/config.h
9311  rm -f $tmp/in
9312  if test x"$ac_file" != x-; then
9313    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9314      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9315echo "$as_me: $ac_file is unchanged" >&6;}
9316    else
9317      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9318$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9319         X"$ac_file" : 'X\(//\)[^/]' \| \
9320         X"$ac_file" : 'X\(//\)$' \| \
9321         X"$ac_file" : 'X\(/\)' \| \
9322         .     : '\(.\)' 2>/dev/null ||
9323echo X"$ac_file" |
9324    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9325          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9326          /^X\(\/\/\)$/{ s//\1/; q; }
9327          /^X\(\/\).*/{ s//\1/; q; }
9328          s/.*/./; q'`
9329      { if $as_mkdir_p; then
9330    mkdir -p "$ac_dir"
9331  else
9332    as_dir="$ac_dir"
9333    as_dirs=
9334    while test ! -d "$as_dir"; do
9335      as_dirs="$as_dir $as_dirs"
9336      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9337$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9338         X"$as_dir" : 'X\(//\)[^/]' \| \
9339         X"$as_dir" : 'X\(//\)$' \| \
9340         X"$as_dir" : 'X\(/\)' \| \
9341         .     : '\(.\)' 2>/dev/null ||
9342echo X"$as_dir" |
9343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9344          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9345          /^X\(\/\/\)$/{ s//\1/; q; }
9346          /^X\(\/\).*/{ s//\1/; q; }
9347          s/.*/./; q'`
9348    done
9349    test ! -n "$as_dirs" || mkdir $as_dirs
9350  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9351echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9352   { (exit 1); exit 1; }; }; }
9353
9354      rm -f $ac_file
9355      mv $tmp/config.h $ac_file
9356    fi
9357  else
9358    cat $tmp/config.h
9359    rm -f $tmp/config.h
9360  fi
9361# Compute $ac_file's index in $config_headers.
9362_am_stamp_count=1
9363for _am_header in $config_headers :; do
9364  case $_am_header in
9365    $ac_file | $ac_file:* )
9366      break ;;
9367    * )
9368      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9369  esac
9370done
9371echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
9372$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9373         X$ac_file : 'X\(//\)[^/]' \| \
9374         X$ac_file : 'X\(//\)$' \| \
9375         X$ac_file : 'X\(/\)' \| \
9376         .     : '\(.\)' 2>/dev/null ||
9377echo X$ac_file |
9378    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9379          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9380          /^X\(\/\/\)$/{ s//\1/; q; }
9381          /^X\(\/\).*/{ s//\1/; q; }
9382          s/.*/./; q'`/stamp-h$_am_stamp_count
9383done
9384_ACEOF
9385cat >>$CONFIG_STATUS <<\_ACEOF
9386
9387#
9388# CONFIG_COMMANDS section.
9389#
9390for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9391  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9392  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9393  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9394$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9395         X"$ac_dest" : 'X\(//\)[^/]' \| \
9396         X"$ac_dest" : 'X\(//\)$' \| \
9397         X"$ac_dest" : 'X\(/\)' \| \
9398         .     : '\(.\)' 2>/dev/null ||
9399echo X"$ac_dest" |
9400    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9401          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9402          /^X\(\/\/\)$/{ s//\1/; q; }
9403          /^X\(\/\).*/{ s//\1/; q; }
9404          s/.*/./; q'`
9405  { if $as_mkdir_p; then
9406    mkdir -p "$ac_dir"
9407  else
9408    as_dir="$ac_dir"
9409    as_dirs=
9410    while test ! -d "$as_dir"; do
9411      as_dirs="$as_dir $as_dirs"
9412      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9413$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9414         X"$as_dir" : 'X\(//\)[^/]' \| \
9415         X"$as_dir" : 'X\(//\)$' \| \
9416         X"$as_dir" : 'X\(/\)' \| \
9417         .     : '\(.\)' 2>/dev/null ||
9418echo X"$as_dir" |
9419    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9420          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9421          /^X\(\/\/\)$/{ s//\1/; q; }
9422          /^X\(\/\).*/{ s//\1/; q; }
9423          s/.*/./; q'`
9424    done
9425    test ! -n "$as_dirs" || mkdir $as_dirs
9426  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9427echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9428   { (exit 1); exit 1; }; }; }
9429
9430  ac_builddir=.
9431
9432if test "$ac_dir" != .; then
9433  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9434  # A "../" for each directory in $ac_dir_suffix.
9435  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9436else
9437  ac_dir_suffix= ac_top_builddir=
9438fi
9439
9440case $srcdir in
9441  .)  # No --srcdir option.  We are building in place.
9442    ac_srcdir=.
9443    if test -z "$ac_top_builddir"; then
9444       ac_top_srcdir=.
9445    else
9446       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9447    fi ;;
9448  [\\/]* | ?:[\\/]* )  # Absolute path.
9449    ac_srcdir=$srcdir$ac_dir_suffix;
9450    ac_top_srcdir=$srcdir ;;
9451  *) # Relative path.
9452    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9453    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9454esac
9455
9456# Do not use `cd foo && pwd` to compute absolute paths, because
9457# the directories may not exist.
9458case `pwd` in
9459.) ac_abs_builddir="$ac_dir";;
9460*)
9461  case "$ac_dir" in
9462  .) ac_abs_builddir=`pwd`;;
9463  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9464  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9465  esac;;
9466esac
9467case $ac_abs_builddir in
9468.) ac_abs_top_builddir=${ac_top_builddir}.;;
9469*)
9470  case ${ac_top_builddir}. in
9471  .) ac_abs_top_builddir=$ac_abs_builddir;;
9472  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9473  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9474  esac;;
9475esac
9476case $ac_abs_builddir in
9477.) ac_abs_srcdir=$ac_srcdir;;
9478*)
9479  case $ac_srcdir in
9480  .) ac_abs_srcdir=$ac_abs_builddir;;
9481  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9482  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9483  esac;;
9484esac
9485case $ac_abs_builddir in
9486.) ac_abs_top_srcdir=$ac_top_srcdir;;
9487*)
9488  case $ac_top_srcdir in
9489  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9490  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9491  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9492  esac;;
9493esac
9494
9495
9496  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9497echo "$as_me: executing $ac_dest commands" >&6;}
9498  case $ac_dest in
9499    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9500  # Strip MF so we end up with the name of the file.
9501  mf=`echo "$mf" | sed -e 's/:.*$//'`
9502  # Check whether this is an Automake generated Makefile or not.
9503  # We used to match only the files named `Makefile.in', but
9504  # some people rename them; so instead we look at the file content.
9505  # Grep'ing the first line is not enough: some people post-process
9506  # each Makefile.in and add a new line on top of each file to say so.
9507  # So let's grep whole file.
9508  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9509    dirpart=`(dirname "$mf") 2>/dev/null ||
9510$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9511         X"$mf" : 'X\(//\)[^/]' \| \
9512         X"$mf" : 'X\(//\)$' \| \
9513         X"$mf" : 'X\(/\)' \| \
9514         .     : '\(.\)' 2>/dev/null ||
9515echo X"$mf" |
9516    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9517          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9518          /^X\(\/\/\)$/{ s//\1/; q; }
9519          /^X\(\/\).*/{ s//\1/; q; }
9520          s/.*/./; q'`
9521  else
9522    continue
9523  fi
9524  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
9525  # Extract the definition of DEP_FILES from the Makefile without
9526  # running `make'.
9527  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9528  test -z "$DEPDIR" && continue
9529  # When using ansi2knr, U may be empty or an underscore; expand it
9530  U=`sed -n -e '/^U = / s///p' < "$mf"`
9531  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9532  # We invoke sed twice because it is the simplest approach to
9533  # changing $(DEPDIR) to its actual value in the expansion.
9534  for file in `sed -n -e '
9535    /^DEP_FILES = .*\\\\$/ {
9536      s/^DEP_FILES = //
9537      :loop
9538        s/\\\\$//
9539        p
9540        n
9541        /\\\\$/ b loop
9542      p
9543    }
9544    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9545       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9546    # Make sure the directory exists.
9547    test -f "$dirpart/$file" && continue
9548    fdir=`(dirname "$file") 2>/dev/null ||
9549$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9550         X"$file" : 'X\(//\)[^/]' \| \
9551         X"$file" : 'X\(//\)$' \| \
9552         X"$file" : 'X\(/\)' \| \
9553         .     : '\(.\)' 2>/dev/null ||
9554echo X"$file" |
9555    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9556          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9557          /^X\(\/\/\)$/{ s//\1/; q; }
9558          /^X\(\/\).*/{ s//\1/; q; }
9559          s/.*/./; q'`
9560    { if $as_mkdir_p; then
9561    mkdir -p $dirpart/$fdir
9562  else
9563    as_dir=$dirpart/$fdir
9564    as_dirs=
9565    while test ! -d "$as_dir"; do
9566      as_dirs="$as_dir $as_dirs"
9567      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9568$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9569         X"$as_dir" : 'X\(//\)[^/]' \| \
9570         X"$as_dir" : 'X\(//\)$' \| \
9571         X"$as_dir" : 'X\(/\)' \| \
9572         .     : '\(.\)' 2>/dev/null ||
9573echo X"$as_dir" |
9574    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9575          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9576          /^X\(\/\/\)$/{ s//\1/; q; }
9577          /^X\(\/\).*/{ s//\1/; q; }
9578          s/.*/./; q'`
9579    done
9580    test ! -n "$as_dirs" || mkdir $as_dirs
9581  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9582echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9583   { (exit 1); exit 1; }; }; }
9584
9585    # echo "creating $dirpart/$file"
9586    echo '# dummy' > "$dirpart/$file"
9587  done
9588done
9589 ;;
9590  esac
9591done
9592_ACEOF
9593
9594cat >>$CONFIG_STATUS <<\_ACEOF
9595
9596{ (exit 0); exit 0; }
9597_ACEOF
9598chmod +x $CONFIG_STATUS
9599ac_clean_files=$ac_clean_files_save
9600
9601
9602# configure is writing to config.log, and then calls config.status.
9603# config.status does its own redirection, appending to config.log.
9604# Unfortunately, on DOS this fails, as config.log is still kept open
9605# by configure, so config.status won't be able to write to it; its
9606# output is simply discarded.  So we exec the FD to /dev/null,
9607# effectively closing config.log, so it can be properly (re)opened and
9608# appended to by config.status.  When coming back to configure, we
9609# need to make the FD available again.
9610if test "$no_create" != yes; then
9611  ac_cs_success=:
9612  ac_config_status_args=
9613  test "$silent" = yes &&
9614    ac_config_status_args="$ac_config_status_args --quiet"
9615  exec 5>/dev/null
9616  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9617  exec 5>>config.log
9618  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9619  # would make configure fail if this is the last instruction.
9620  $ac_cs_success || { (exit 1); exit 1; }
9621fi
9622
Note: See TracBrowser for help on using the repository browser.