Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/textEngine/configure @ 3726

Last change on this file since 3726 was 3707, checked in by bensch, 20 years ago

orxonox/branches/textEngine: now the Font is dynamical. See the fps :)

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