Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/shadows/configure @ 4612

Last change on this file since 4612 was 3385, checked in by bensch, 20 years ago

orxonox/trunk: added new include directory for openGL. now it works with the new xorg.

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