Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/particle_system/configure @ 3892

Last change on this file since 3892 was 3377, checked in by bensch, 20 years ago

orxonox/trunk: Compiling-performance-update: SubPrjects will only be build on demand, by either compiling them inside their folders, or by
./configure —enable-sub-projects

  • Property svn:executable set to *
File size: 269.3 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/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 main in -lGL" >&5
5066echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
5067if test "${ac_cv_lib_GL_main+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
5080int
5081main ()
5082{
5083main ();
5084  ;
5085  return 0;
5086}
5087_ACEOF
5088rm -f conftest.$ac_objext conftest$ac_exeext
5089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5090  (eval $ac_link) 2>conftest.er1
5091  ac_status=$?
5092  grep -v '^ *+' conftest.er1 >conftest.err
5093  rm -f conftest.er1
5094  cat conftest.err >&5
5095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096  (exit $ac_status); } &&
5097         { ac_try='test -z "$ac_c_werror_flag"
5098                         || test ! -s conftest.err'
5099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100  (eval $ac_try) 2>&5
5101  ac_status=$?
5102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103  (exit $ac_status); }; } &&
5104         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
5110  ac_cv_lib_GL_main=yes
5111else
5112  echo "$as_me: failed program was:" >&5
5113sed 's/^/| /' conftest.$ac_ext >&5
5114
5115ac_cv_lib_GL_main=no
5116fi
5117rm -f conftest.err conftest.$ac_objext \
5118      conftest$ac_exeext conftest.$ac_ext
5119LIBS=$ac_check_lib_save_LIBS
5120fi
5121echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
5122echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
5123if test $ac_cv_lib_GL_main = yes; then
5124  FOUND_GL=yes
5125fi
5126
5127   if test "$FOUND_GL" = "yes" ; then
5128     LIBS="$LIBS -lGL"
5129   else
5130         echo "------------------"
5131         echo "opengl not found."
5132         echo "please install the opengl package which can be found at http://www.opengl.org"
5133         echo "------------------"
5134         exit -1
5135   fi
5136
5137# cheking for GLU-header
5138
5139for ac_header in GL/glu.h
5140do
5141as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5142if eval "test \"\${$as_ac_Header+set}\" = set"; then
5143  echo "$as_me:$LINENO: checking for $ac_header" >&5
5144echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5145if eval "test \"\${$as_ac_Header+set}\" = set"; then
5146  echo $ECHO_N "(cached) $ECHO_C" >&6
5147fi
5148echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5149echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5150else
5151  # Is the header compilable?
5152echo "$as_me:$LINENO: checking $ac_header usability" >&5
5153echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5154cat >conftest.$ac_ext <<_ACEOF
5155/* confdefs.h.  */
5156_ACEOF
5157cat confdefs.h >>conftest.$ac_ext
5158cat >>conftest.$ac_ext <<_ACEOF
5159/* end confdefs.h.  */
5160$ac_includes_default
5161#include <$ac_header>
5162_ACEOF
5163rm -f conftest.$ac_objext
5164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5165  (eval $ac_compile) 2>conftest.er1
5166  ac_status=$?
5167  grep -v '^ *+' conftest.er1 >conftest.err
5168  rm -f conftest.er1
5169  cat conftest.err >&5
5170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171  (exit $ac_status); } &&
5172         { ac_try='test -z "$ac_c_werror_flag"
5173                         || test ! -s conftest.err'
5174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175  (eval $ac_try) 2>&5
5176  ac_status=$?
5177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178  (exit $ac_status); }; } &&
5179         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5185  ac_header_compiler=yes
5186else
5187  echo "$as_me: failed program was:" >&5
5188sed 's/^/| /' conftest.$ac_ext >&5
5189
5190ac_header_compiler=no
5191fi
5192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5193echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5194echo "${ECHO_T}$ac_header_compiler" >&6
5195
5196# Is the header present?
5197echo "$as_me:$LINENO: checking $ac_header presence" >&5
5198echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5199cat >conftest.$ac_ext <<_ACEOF
5200/* confdefs.h.  */
5201_ACEOF
5202cat confdefs.h >>conftest.$ac_ext
5203cat >>conftest.$ac_ext <<_ACEOF
5204/* end confdefs.h.  */
5205#include <$ac_header>
5206_ACEOF
5207if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5208  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5209  ac_status=$?
5210  grep -v '^ *+' conftest.er1 >conftest.err
5211  rm -f conftest.er1
5212  cat conftest.err >&5
5213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214  (exit $ac_status); } >/dev/null; then
5215  if test -s conftest.err; then
5216    ac_cpp_err=$ac_c_preproc_warn_flag
5217    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5218  else
5219    ac_cpp_err=
5220  fi
5221else
5222  ac_cpp_err=yes
5223fi
5224if test -z "$ac_cpp_err"; then
5225  ac_header_preproc=yes
5226else
5227  echo "$as_me: failed program was:" >&5
5228sed 's/^/| /' conftest.$ac_ext >&5
5229
5230  ac_header_preproc=no
5231fi
5232rm -f conftest.err conftest.$ac_ext
5233echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5234echo "${ECHO_T}$ac_header_preproc" >&6
5235
5236# So?  What about this header?
5237case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5238  yes:no: )
5239    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5240echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5241    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5242echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5243    ac_header_preproc=yes
5244    ;;
5245  no:yes:* )
5246    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5247echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5248    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5249echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5250    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5251echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5252    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5253echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5254    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5255echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5256    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5257echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5258    (
5259      cat <<\_ASBOX
5260## ---------------------------------------------- ##
5261## Report this to orxonox-dev at mail.datacore.ch ##
5262## ---------------------------------------------- ##
5263_ASBOX
5264    ) |
5265      sed "s/^/$as_me: WARNING:     /" >&2
5266    ;;
5267esac
5268echo "$as_me:$LINENO: checking for $ac_header" >&5
5269echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5270if eval "test \"\${$as_ac_Header+set}\" = set"; then
5271  echo $ECHO_N "(cached) $ECHO_C" >&6
5272else
5273  eval "$as_ac_Header=\$ac_header_preproc"
5274fi
5275echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5276echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5277
5278fi
5279if test `eval echo '${'$as_ac_Header'}'` = yes; then
5280  cat >>confdefs.h <<_ACEOF
5281#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5282_ACEOF
5283
5284else
5285  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5286echo "$as_me: error: cannot find opengl headers" >&2;}
5287   { (exit 1); exit 1; }; }
5288fi
5289
5290done
5291
5292
5293    echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5
5294echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6
5295if test "${ac_cv_lib_GLU_gluProject+set}" = set; then
5296  echo $ECHO_N "(cached) $ECHO_C" >&6
5297else
5298  ac_check_lib_save_LIBS=$LIBS
5299LIBS="-lGLU  $LIBS"
5300cat >conftest.$ac_ext <<_ACEOF
5301/* confdefs.h.  */
5302_ACEOF
5303cat confdefs.h >>conftest.$ac_ext
5304cat >>conftest.$ac_ext <<_ACEOF
5305/* end confdefs.h.  */
5306
5307/* Override any gcc2 internal prototype to avoid an error.  */
5308#ifdef __cplusplus
5309extern "C"
5310#endif
5311/* We use char because int might match the return type of a gcc2
5312   builtin and then its argument prototype would still apply.  */
5313char gluProject ();
5314int
5315main ()
5316{
5317gluProject ();
5318  ;
5319  return 0;
5320}
5321_ACEOF
5322rm -f conftest.$ac_objext conftest$ac_exeext
5323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5324  (eval $ac_link) 2>conftest.er1
5325  ac_status=$?
5326  grep -v '^ *+' conftest.er1 >conftest.err
5327  rm -f conftest.er1
5328  cat conftest.err >&5
5329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330  (exit $ac_status); } &&
5331         { ac_try='test -z "$ac_c_werror_flag"
5332                         || test ! -s conftest.err'
5333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334  (eval $ac_try) 2>&5
5335  ac_status=$?
5336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337  (exit $ac_status); }; } &&
5338         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
5344  ac_cv_lib_GLU_gluProject=yes
5345else
5346  echo "$as_me: failed program was:" >&5
5347sed 's/^/| /' conftest.$ac_ext >&5
5348
5349ac_cv_lib_GLU_gluProject=no
5350fi
5351rm -f conftest.err conftest.$ac_objext \
5352      conftest$ac_exeext conftest.$ac_ext
5353LIBS=$ac_check_lib_save_LIBS
5354fi
5355echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5
5356echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6
5357if test $ac_cv_lib_GLU_gluProject = yes; then
5358  FOUND_GLU=yes
5359fi
5360
5361    if test "$FOUND_GLU" = "yes" ; then
5362      LIBS="$LIBS -lGLU"
5363    else
5364         echo "------------------"
5365         echo "GLU library not found."
5366         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
5367         echo "------------------"
5368         exit -1
5369    fi
5370
5371# checking for SDL-headers
5372
5373for ac_header in SDL/SDL.h
5374do
5375as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5376if eval "test \"\${$as_ac_Header+set}\" = set"; then
5377  echo "$as_me:$LINENO: checking for $ac_header" >&5
5378echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5379if eval "test \"\${$as_ac_Header+set}\" = set"; then
5380  echo $ECHO_N "(cached) $ECHO_C" >&6
5381fi
5382echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5383echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5384else
5385  # Is the header compilable?
5386echo "$as_me:$LINENO: checking $ac_header usability" >&5
5387echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5388cat >conftest.$ac_ext <<_ACEOF
5389/* confdefs.h.  */
5390_ACEOF
5391cat confdefs.h >>conftest.$ac_ext
5392cat >>conftest.$ac_ext <<_ACEOF
5393/* end confdefs.h.  */
5394$ac_includes_default
5395#include <$ac_header>
5396_ACEOF
5397rm -f conftest.$ac_objext
5398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5399  (eval $ac_compile) 2>conftest.er1
5400  ac_status=$?
5401  grep -v '^ *+' conftest.er1 >conftest.err
5402  rm -f conftest.er1
5403  cat conftest.err >&5
5404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405  (exit $ac_status); } &&
5406         { ac_try='test -z "$ac_c_werror_flag"
5407                         || test ! -s conftest.err'
5408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409  (eval $ac_try) 2>&5
5410  ac_status=$?
5411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412  (exit $ac_status); }; } &&
5413         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5419  ac_header_compiler=yes
5420else
5421  echo "$as_me: failed program was:" >&5
5422sed 's/^/| /' conftest.$ac_ext >&5
5423
5424ac_header_compiler=no
5425fi
5426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5427echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5428echo "${ECHO_T}$ac_header_compiler" >&6
5429
5430# Is the header present?
5431echo "$as_me:$LINENO: checking $ac_header presence" >&5
5432echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5433cat >conftest.$ac_ext <<_ACEOF
5434/* confdefs.h.  */
5435_ACEOF
5436cat confdefs.h >>conftest.$ac_ext
5437cat >>conftest.$ac_ext <<_ACEOF
5438/* end confdefs.h.  */
5439#include <$ac_header>
5440_ACEOF
5441if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5442  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5443  ac_status=$?
5444  grep -v '^ *+' conftest.er1 >conftest.err
5445  rm -f conftest.er1
5446  cat conftest.err >&5
5447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448  (exit $ac_status); } >/dev/null; then
5449  if test -s conftest.err; then
5450    ac_cpp_err=$ac_c_preproc_warn_flag
5451    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5452  else
5453    ac_cpp_err=
5454  fi
5455else
5456  ac_cpp_err=yes
5457fi
5458if test -z "$ac_cpp_err"; then
5459  ac_header_preproc=yes
5460else
5461  echo "$as_me: failed program was:" >&5
5462sed 's/^/| /' conftest.$ac_ext >&5
5463
5464  ac_header_preproc=no
5465fi
5466rm -f conftest.err conftest.$ac_ext
5467echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5468echo "${ECHO_T}$ac_header_preproc" >&6
5469
5470# So?  What about this header?
5471case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5472  yes:no: )
5473    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5474echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5475    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5476echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5477    ac_header_preproc=yes
5478    ;;
5479  no:yes:* )
5480    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5481echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5482    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5483echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5484    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5485echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5486    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5487echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5488    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5489echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5490    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5491echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5492    (
5493      cat <<\_ASBOX
5494## ---------------------------------------------- ##
5495## Report this to orxonox-dev at mail.datacore.ch ##
5496## ---------------------------------------------- ##
5497_ASBOX
5498    ) |
5499      sed "s/^/$as_me: WARNING:     /" >&2
5500    ;;
5501esac
5502echo "$as_me:$LINENO: checking for $ac_header" >&5
5503echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5504if eval "test \"\${$as_ac_Header+set}\" = set"; then
5505  echo $ECHO_N "(cached) $ECHO_C" >&6
5506else
5507  eval "$as_ac_Header=\$ac_header_preproc"
5508fi
5509echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5510echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5511
5512fi
5513if test `eval echo '${'$as_ac_Header'}'` = yes; then
5514  cat >>confdefs.h <<_ACEOF
5515#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5516_ACEOF
5517
5518else
5519  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
5520echo "$as_me: error: cannot find SDL headers" >&2;}
5521   { (exit 1); exit 1; }; }
5522fi
5523
5524done
5525
5526
5527# checking for SDL-lib
5528    echo "$as_me:$LINENO: checking for main in -lSDL" >&5
5529echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6
5530if test "${ac_cv_lib_SDL_main+set}" = set; then
5531  echo $ECHO_N "(cached) $ECHO_C" >&6
5532else
5533  ac_check_lib_save_LIBS=$LIBS
5534LIBS="-lSDL  $LIBS"
5535cat >conftest.$ac_ext <<_ACEOF
5536/* confdefs.h.  */
5537_ACEOF
5538cat confdefs.h >>conftest.$ac_ext
5539cat >>conftest.$ac_ext <<_ACEOF
5540/* end confdefs.h.  */
5541
5542
5543int
5544main ()
5545{
5546main ();
5547  ;
5548  return 0;
5549}
5550_ACEOF
5551rm -f conftest.$ac_objext conftest$ac_exeext
5552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5553  (eval $ac_link) 2>conftest.er1
5554  ac_status=$?
5555  grep -v '^ *+' conftest.er1 >conftest.err
5556  rm -f conftest.er1
5557  cat conftest.err >&5
5558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559  (exit $ac_status); } &&
5560         { ac_try='test -z "$ac_c_werror_flag"
5561                         || test ! -s conftest.err'
5562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5563  (eval $ac_try) 2>&5
5564  ac_status=$?
5565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566  (exit $ac_status); }; } &&
5567         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
5573  ac_cv_lib_SDL_main=yes
5574else
5575  echo "$as_me: failed program was:" >&5
5576sed 's/^/| /' conftest.$ac_ext >&5
5577
5578ac_cv_lib_SDL_main=no
5579fi
5580rm -f conftest.err conftest.$ac_objext \
5581      conftest$ac_exeext conftest.$ac_ext
5582LIBS=$ac_check_lib_save_LIBS
5583fi
5584echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5
5585echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6
5586if test $ac_cv_lib_SDL_main = yes; then
5587  FOUND_SDL=yes
5588fi
5589
5590     if test "$FOUND_SDL" = "yes" ; then
5591       LIBS="$LIBS -lSDL"
5592     else
5593        echo "------------------"
5594        echo "SDL library not found."
5595        echo "please install the SDL library, which can be found at http://www.libsdl.org"
5596        echo "------------------"
5597        exit -1
5598     fi
5599
5600
5601## checking for SDL
5602#    SDL_VERSION=1.2.7
5603#    AM_PATH_SDL($SDL_VERSION,
5604#      :,
5605#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
5606#      )
5607#    CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
5608#    LIBS="$LIBS $SDL_LIBS"
5609    ;;
5610
5611### OS X ###
5612 *darwin*)
5613echo "OS X detected"
5614
5615 osX="yes"
5616
5617 CPPFLAGS="-I/sw/include $CPPFLAGS"
5618# checking gl header
5619
5620for ac_header in OpenGL/gl.h
5621do
5622as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5623if eval "test \"\${$as_ac_Header+set}\" = set"; then
5624  echo "$as_me:$LINENO: checking for $ac_header" >&5
5625echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5626if eval "test \"\${$as_ac_Header+set}\" = set"; then
5627  echo $ECHO_N "(cached) $ECHO_C" >&6
5628fi
5629echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5630echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5631else
5632  # Is the header compilable?
5633echo "$as_me:$LINENO: checking $ac_header usability" >&5
5634echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5635cat >conftest.$ac_ext <<_ACEOF
5636/* confdefs.h.  */
5637_ACEOF
5638cat confdefs.h >>conftest.$ac_ext
5639cat >>conftest.$ac_ext <<_ACEOF
5640/* end confdefs.h.  */
5641$ac_includes_default
5642#include <$ac_header>
5643_ACEOF
5644rm -f conftest.$ac_objext
5645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5646  (eval $ac_compile) 2>conftest.er1
5647  ac_status=$?
5648  grep -v '^ *+' conftest.er1 >conftest.err
5649  rm -f conftest.er1
5650  cat conftest.err >&5
5651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652  (exit $ac_status); } &&
5653         { ac_try='test -z "$ac_c_werror_flag"
5654                         || test ! -s conftest.err'
5655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656  (eval $ac_try) 2>&5
5657  ac_status=$?
5658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659  (exit $ac_status); }; } &&
5660         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5666  ac_header_compiler=yes
5667else
5668  echo "$as_me: failed program was:" >&5
5669sed 's/^/| /' conftest.$ac_ext >&5
5670
5671ac_header_compiler=no
5672fi
5673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5674echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5675echo "${ECHO_T}$ac_header_compiler" >&6
5676
5677# Is the header present?
5678echo "$as_me:$LINENO: checking $ac_header presence" >&5
5679echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5680cat >conftest.$ac_ext <<_ACEOF
5681/* confdefs.h.  */
5682_ACEOF
5683cat confdefs.h >>conftest.$ac_ext
5684cat >>conftest.$ac_ext <<_ACEOF
5685/* end confdefs.h.  */
5686#include <$ac_header>
5687_ACEOF
5688if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5689  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5690  ac_status=$?
5691  grep -v '^ *+' conftest.er1 >conftest.err
5692  rm -f conftest.er1
5693  cat conftest.err >&5
5694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695  (exit $ac_status); } >/dev/null; then
5696  if test -s conftest.err; then
5697    ac_cpp_err=$ac_c_preproc_warn_flag
5698    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5699  else
5700    ac_cpp_err=
5701  fi
5702else
5703  ac_cpp_err=yes
5704fi
5705if test -z "$ac_cpp_err"; then
5706  ac_header_preproc=yes
5707else
5708  echo "$as_me: failed program was:" >&5
5709sed 's/^/| /' conftest.$ac_ext >&5
5710
5711  ac_header_preproc=no
5712fi
5713rm -f conftest.err conftest.$ac_ext
5714echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5715echo "${ECHO_T}$ac_header_preproc" >&6
5716
5717# So?  What about this header?
5718case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5719  yes:no: )
5720    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5721echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5722    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5723echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5724    ac_header_preproc=yes
5725    ;;
5726  no:yes:* )
5727    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5728echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5729    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5730echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5731    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5732echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5733    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5734echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5735    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5736echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5737    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5738echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5739    (
5740      cat <<\_ASBOX
5741## ---------------------------------------------- ##
5742## Report this to orxonox-dev at mail.datacore.ch ##
5743## ---------------------------------------------- ##
5744_ASBOX
5745    ) |
5746      sed "s/^/$as_me: WARNING:     /" >&2
5747    ;;
5748esac
5749echo "$as_me:$LINENO: checking for $ac_header" >&5
5750echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5751if eval "test \"\${$as_ac_Header+set}\" = set"; then
5752  echo $ECHO_N "(cached) $ECHO_C" >&6
5753else
5754  eval "$as_ac_Header=\$ac_header_preproc"
5755fi
5756echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5757echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5758
5759fi
5760if test `eval echo '${'$as_ac_Header'}'` = yes; then
5761  cat >>confdefs.h <<_ACEOF
5762#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5763_ACEOF
5764
5765else
5766  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5767echo "$as_me: error: cannot find opengl headers" >&2;}
5768   { (exit 1); exit 1; }; }
5769fi
5770
5771done
5772
5773# cheking for GLU-header
5774
5775for ac_header in OpenGL/glu.h
5776do
5777as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5778if eval "test \"\${$as_ac_Header+set}\" = set"; then
5779  echo "$as_me:$LINENO: checking for $ac_header" >&5
5780echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5781if eval "test \"\${$as_ac_Header+set}\" = set"; then
5782  echo $ECHO_N "(cached) $ECHO_C" >&6
5783fi
5784echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5785echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5786else
5787  # Is the header compilable?
5788echo "$as_me:$LINENO: checking $ac_header usability" >&5
5789echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5790cat >conftest.$ac_ext <<_ACEOF
5791/* confdefs.h.  */
5792_ACEOF
5793cat confdefs.h >>conftest.$ac_ext
5794cat >>conftest.$ac_ext <<_ACEOF
5795/* end confdefs.h.  */
5796$ac_includes_default
5797#include <$ac_header>
5798_ACEOF
5799rm -f conftest.$ac_objext
5800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5801  (eval $ac_compile) 2>conftest.er1
5802  ac_status=$?
5803  grep -v '^ *+' conftest.er1 >conftest.err
5804  rm -f conftest.er1
5805  cat conftest.err >&5
5806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807  (exit $ac_status); } &&
5808         { ac_try='test -z "$ac_c_werror_flag"
5809                         || test ! -s conftest.err'
5810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811  (eval $ac_try) 2>&5
5812  ac_status=$?
5813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814  (exit $ac_status); }; } &&
5815         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5821  ac_header_compiler=yes
5822else
5823  echo "$as_me: failed program was:" >&5
5824sed 's/^/| /' conftest.$ac_ext >&5
5825
5826ac_header_compiler=no
5827fi
5828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5829echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5830echo "${ECHO_T}$ac_header_compiler" >&6
5831
5832# Is the header present?
5833echo "$as_me:$LINENO: checking $ac_header presence" >&5
5834echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5835cat >conftest.$ac_ext <<_ACEOF
5836/* confdefs.h.  */
5837_ACEOF
5838cat confdefs.h >>conftest.$ac_ext
5839cat >>conftest.$ac_ext <<_ACEOF
5840/* end confdefs.h.  */
5841#include <$ac_header>
5842_ACEOF
5843if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5844  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5845  ac_status=$?
5846  grep -v '^ *+' conftest.er1 >conftest.err
5847  rm -f conftest.er1
5848  cat conftest.err >&5
5849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850  (exit $ac_status); } >/dev/null; then
5851  if test -s conftest.err; then
5852    ac_cpp_err=$ac_c_preproc_warn_flag
5853    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5854  else
5855    ac_cpp_err=
5856  fi
5857else
5858  ac_cpp_err=yes
5859fi
5860if test -z "$ac_cpp_err"; then
5861  ac_header_preproc=yes
5862else
5863  echo "$as_me: failed program was:" >&5
5864sed 's/^/| /' conftest.$ac_ext >&5
5865
5866  ac_header_preproc=no
5867fi
5868rm -f conftest.err conftest.$ac_ext
5869echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5870echo "${ECHO_T}$ac_header_preproc" >&6
5871
5872# So?  What about this header?
5873case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5874  yes:no: )
5875    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5876echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5877    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5878echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5879    ac_header_preproc=yes
5880    ;;
5881  no:yes:* )
5882    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5883echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5884    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5885echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5886    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5887echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5888    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5889echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5890    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5891echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5892    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5893echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5894    (
5895      cat <<\_ASBOX
5896## ---------------------------------------------- ##
5897## Report this to orxonox-dev at mail.datacore.ch ##
5898## ---------------------------------------------- ##
5899_ASBOX
5900    ) |
5901      sed "s/^/$as_me: WARNING:     /" >&2
5902    ;;
5903esac
5904echo "$as_me:$LINENO: checking for $ac_header" >&5
5905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5906if eval "test \"\${$as_ac_Header+set}\" = set"; then
5907  echo $ECHO_N "(cached) $ECHO_C" >&6
5908else
5909  eval "$as_ac_Header=\$ac_header_preproc"
5910fi
5911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5912echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5913
5914fi
5915if test `eval echo '${'$as_ac_Header'}'` = yes; then
5916  cat >>confdefs.h <<_ACEOF
5917#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5918_ACEOF
5919
5920else
5921  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5922echo "$as_me: error: cannot find opengl headers" >&2;}
5923   { (exit 1); exit 1; }; }
5924fi
5925
5926done
5927
5928
5929   LIBS="$LIBS -framework OpenGL"
5930
5931# checking for SDL-headers
5932#    AC_CHECK_HEADERS(SDL/SDL.h ,,
5933#      [AC_MSG_ERROR([cannot find SDL headers]) ])
5934
5935## checking for SDL
5936#    SDL_VERSION=1.2.7
5937#    AM_PATH_SDL($SDL_VERSION,
5938#      :,
5939#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
5940#      )
5941
5942       SDL_CFLAGS=`sdl-config --cflags`
5943       SDL_LIBS=`sdl-config --libs`
5944       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
5945       LIBS="$LIBS $SDL_LIBS"
5946
5947    ;;
5948
5949  *)
5950    ;;
5951esac
5952
5953
5954
5955## check for SDL_Image
5956if test "$def_sdl_image" = "yes"; then
5957# checking for SDL_image-headers
5958
5959for ac_header in SDL/SDL_image.h
5960do
5961as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5962if eval "test \"\${$as_ac_Header+set}\" = set"; then
5963  echo "$as_me:$LINENO: checking for $ac_header" >&5
5964echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5965if eval "test \"\${$as_ac_Header+set}\" = set"; then
5966  echo $ECHO_N "(cached) $ECHO_C" >&6
5967fi
5968echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5969echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5970else
5971  # Is the header compilable?
5972echo "$as_me:$LINENO: checking $ac_header usability" >&5
5973echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5974cat >conftest.$ac_ext <<_ACEOF
5975/* confdefs.h.  */
5976_ACEOF
5977cat confdefs.h >>conftest.$ac_ext
5978cat >>conftest.$ac_ext <<_ACEOF
5979/* end confdefs.h.  */
5980$ac_includes_default
5981#include <$ac_header>
5982_ACEOF
5983rm -f conftest.$ac_objext
5984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5985  (eval $ac_compile) 2>conftest.er1
5986  ac_status=$?
5987  grep -v '^ *+' conftest.er1 >conftest.err
5988  rm -f conftest.er1
5989  cat conftest.err >&5
5990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991  (exit $ac_status); } &&
5992         { ac_try='test -z "$ac_c_werror_flag"
5993                         || test ! -s conftest.err'
5994  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995  (eval $ac_try) 2>&5
5996  ac_status=$?
5997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998  (exit $ac_status); }; } &&
5999         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6005  ac_header_compiler=yes
6006else
6007  echo "$as_me: failed program was:" >&5
6008sed 's/^/| /' conftest.$ac_ext >&5
6009
6010ac_header_compiler=no
6011fi
6012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6013echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6014echo "${ECHO_T}$ac_header_compiler" >&6
6015
6016# Is the header present?
6017echo "$as_me:$LINENO: checking $ac_header presence" >&5
6018echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6019cat >conftest.$ac_ext <<_ACEOF
6020/* confdefs.h.  */
6021_ACEOF
6022cat confdefs.h >>conftest.$ac_ext
6023cat >>conftest.$ac_ext <<_ACEOF
6024/* end confdefs.h.  */
6025#include <$ac_header>
6026_ACEOF
6027if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6028  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6029  ac_status=$?
6030  grep -v '^ *+' conftest.er1 >conftest.err
6031  rm -f conftest.er1
6032  cat conftest.err >&5
6033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034  (exit $ac_status); } >/dev/null; then
6035  if test -s conftest.err; then
6036    ac_cpp_err=$ac_c_preproc_warn_flag
6037    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6038  else
6039    ac_cpp_err=
6040  fi
6041else
6042  ac_cpp_err=yes
6043fi
6044if test -z "$ac_cpp_err"; then
6045  ac_header_preproc=yes
6046else
6047  echo "$as_me: failed program was:" >&5
6048sed 's/^/| /' conftest.$ac_ext >&5
6049
6050  ac_header_preproc=no
6051fi
6052rm -f conftest.err conftest.$ac_ext
6053echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6054echo "${ECHO_T}$ac_header_preproc" >&6
6055
6056# So?  What about this header?
6057case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6058  yes:no: )
6059    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6060echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6061    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6062echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6063    ac_header_preproc=yes
6064    ;;
6065  no:yes:* )
6066    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6067echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6068    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6069echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6070    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6071echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6072    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6073echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6074    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6075echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6076    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6077echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6078    (
6079      cat <<\_ASBOX
6080## ---------------------------------------------- ##
6081## Report this to orxonox-dev at mail.datacore.ch ##
6082## ---------------------------------------------- ##
6083_ASBOX
6084    ) |
6085      sed "s/^/$as_me: WARNING:     /" >&2
6086    ;;
6087esac
6088echo "$as_me:$LINENO: checking for $ac_header" >&5
6089echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6090if eval "test \"\${$as_ac_Header+set}\" = set"; then
6091  echo $ECHO_N "(cached) $ECHO_C" >&6
6092else
6093  eval "$as_ac_Header=\$ac_header_preproc"
6094fi
6095echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6096echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6097
6098fi
6099if test `eval echo '${'$as_ac_Header'}'` = yes; then
6100  cat >>confdefs.h <<_ACEOF
6101#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6102_ACEOF
6103
6104else
6105  echo "sdl_image not found. falling back to other options"; def_sdl_image=no
6106fi
6107
6108done
6109
6110fi
6111if test "$def_sdl_image" = "yes"; then
6112# checking for SDL_image-lib
6113  echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5
6114echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6
6115if test "${ac_cv_lib_SDL_image_main+set}" = set; then
6116  echo $ECHO_N "(cached) $ECHO_C" >&6
6117else
6118  ac_check_lib_save_LIBS=$LIBS
6119LIBS="-lSDL_image  $LIBS"
6120cat >conftest.$ac_ext <<_ACEOF
6121/* confdefs.h.  */
6122_ACEOF
6123cat confdefs.h >>conftest.$ac_ext
6124cat >>conftest.$ac_ext <<_ACEOF
6125/* end confdefs.h.  */
6126
6127
6128int
6129main ()
6130{
6131main ();
6132  ;
6133  return 0;
6134}
6135_ACEOF
6136rm -f conftest.$ac_objext conftest$ac_exeext
6137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6138  (eval $ac_link) 2>conftest.er1
6139  ac_status=$?
6140  grep -v '^ *+' conftest.er1 >conftest.err
6141  rm -f conftest.er1
6142  cat conftest.err >&5
6143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144  (exit $ac_status); } &&
6145         { ac_try='test -z "$ac_c_werror_flag"
6146                         || test ! -s conftest.err'
6147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148  (eval $ac_try) 2>&5
6149  ac_status=$?
6150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151  (exit $ac_status); }; } &&
6152         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6158  ac_cv_lib_SDL_image_main=yes
6159else
6160  echo "$as_me: failed program was:" >&5
6161sed 's/^/| /' conftest.$ac_ext >&5
6162
6163ac_cv_lib_SDL_image_main=no
6164fi
6165rm -f conftest.err conftest.$ac_objext \
6166      conftest$ac_exeext conftest.$ac_ext
6167LIBS=$ac_check_lib_save_LIBS
6168fi
6169echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5
6170echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6
6171if test $ac_cv_lib_SDL_image_main = yes; then
6172  FOUND_SDL_image=yes
6173fi
6174
6175     if test "$FOUND_SDL_image" = "yes" ; then
6176       LIBS="$LIBS -lSDL_image"
6177     else
6178        echo "------------------"
6179        echo "SDL_image library not found."
6180        echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/"
6181        echo "------------------"
6182        exit -1
6183     fi
6184fi
6185
6186
6187if test "$def_sdl_image" = "no"; then
6188 ## checking for libjpeg
6189
6190for ac_header in jpeglib.h
6191do
6192as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6193if eval "test \"\${$as_ac_Header+set}\" = set"; then
6194  echo "$as_me:$LINENO: checking for $ac_header" >&5
6195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6196if eval "test \"\${$as_ac_Header+set}\" = set"; then
6197  echo $ECHO_N "(cached) $ECHO_C" >&6
6198fi
6199echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6200echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6201else
6202  # Is the header compilable?
6203echo "$as_me:$LINENO: checking $ac_header usability" >&5
6204echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6205cat >conftest.$ac_ext <<_ACEOF
6206/* confdefs.h.  */
6207_ACEOF
6208cat confdefs.h >>conftest.$ac_ext
6209cat >>conftest.$ac_ext <<_ACEOF
6210/* end confdefs.h.  */
6211$ac_includes_default
6212#include <$ac_header>
6213_ACEOF
6214rm -f conftest.$ac_objext
6215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6216  (eval $ac_compile) 2>conftest.er1
6217  ac_status=$?
6218  grep -v '^ *+' conftest.er1 >conftest.err
6219  rm -f conftest.er1
6220  cat conftest.err >&5
6221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222  (exit $ac_status); } &&
6223         { ac_try='test -z "$ac_c_werror_flag"
6224                         || test ! -s conftest.err'
6225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6226  (eval $ac_try) 2>&5
6227  ac_status=$?
6228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229  (exit $ac_status); }; } &&
6230         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6236  ac_header_compiler=yes
6237else
6238  echo "$as_me: failed program was:" >&5
6239sed 's/^/| /' conftest.$ac_ext >&5
6240
6241ac_header_compiler=no
6242fi
6243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6244echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6245echo "${ECHO_T}$ac_header_compiler" >&6
6246
6247# Is the header present?
6248echo "$as_me:$LINENO: checking $ac_header presence" >&5
6249echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6250cat >conftest.$ac_ext <<_ACEOF
6251/* confdefs.h.  */
6252_ACEOF
6253cat confdefs.h >>conftest.$ac_ext
6254cat >>conftest.$ac_ext <<_ACEOF
6255/* end confdefs.h.  */
6256#include <$ac_header>
6257_ACEOF
6258if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6259  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6260  ac_status=$?
6261  grep -v '^ *+' conftest.er1 >conftest.err
6262  rm -f conftest.er1
6263  cat conftest.err >&5
6264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265  (exit $ac_status); } >/dev/null; then
6266  if test -s conftest.err; then
6267    ac_cpp_err=$ac_c_preproc_warn_flag
6268    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6269  else
6270    ac_cpp_err=
6271  fi
6272else
6273  ac_cpp_err=yes
6274fi
6275if test -z "$ac_cpp_err"; then
6276  ac_header_preproc=yes
6277else
6278  echo "$as_me: failed program was:" >&5
6279sed 's/^/| /' conftest.$ac_ext >&5
6280
6281  ac_header_preproc=no
6282fi
6283rm -f conftest.err conftest.$ac_ext
6284echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6285echo "${ECHO_T}$ac_header_preproc" >&6
6286
6287# So?  What about this header?
6288case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6289  yes:no: )
6290    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6291echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6292    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6293echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6294    ac_header_preproc=yes
6295    ;;
6296  no:yes:* )
6297    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6298echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6299    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6300echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6301    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6302echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6303    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6304echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6305    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6306echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6307    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6308echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6309    (
6310      cat <<\_ASBOX
6311## ---------------------------------------------- ##
6312## Report this to orxonox-dev at mail.datacore.ch ##
6313## ---------------------------------------------- ##
6314_ASBOX
6315    ) |
6316      sed "s/^/$as_me: WARNING:     /" >&2
6317    ;;
6318esac
6319echo "$as_me:$LINENO: checking for $ac_header" >&5
6320echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6321if eval "test \"\${$as_ac_Header+set}\" = set"; then
6322  echo $ECHO_N "(cached) $ECHO_C" >&6
6323else
6324  eval "$as_ac_Header=\$ac_header_preproc"
6325fi
6326echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6327echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6328
6329fi
6330if test `eval echo '${'$as_ac_Header'}'` = yes; then
6331  cat >>confdefs.h <<_ACEOF
6332#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6333_ACEOF
6334 jpegHeader="yes"
6335else
6336  jpegHeader="no"
6337fi
6338
6339done
6340
6341 if test $jpegHeader = "no"; then
6342        echo " not including jpeg."
6343 else
6344  echo "$as_me:$LINENO: checking for main in -ljpeg" >&5
6345echo $ECHO_N "checking for main in -ljpeg... $ECHO_C" >&6
6346if test "${ac_cv_lib_jpeg_main+set}" = set; then
6347  echo $ECHO_N "(cached) $ECHO_C" >&6
6348else
6349  ac_check_lib_save_LIBS=$LIBS
6350LIBS="-ljpeg  $LIBS"
6351cat >conftest.$ac_ext <<_ACEOF
6352/* confdefs.h.  */
6353_ACEOF
6354cat confdefs.h >>conftest.$ac_ext
6355cat >>conftest.$ac_ext <<_ACEOF
6356/* end confdefs.h.  */
6357
6358
6359int
6360main ()
6361{
6362main ();
6363  ;
6364  return 0;
6365}
6366_ACEOF
6367rm -f conftest.$ac_objext conftest$ac_exeext
6368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6369  (eval $ac_link) 2>conftest.er1
6370  ac_status=$?
6371  grep -v '^ *+' conftest.er1 >conftest.err
6372  rm -f conftest.er1
6373  cat conftest.err >&5
6374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375  (exit $ac_status); } &&
6376         { ac_try='test -z "$ac_c_werror_flag"
6377                         || test ! -s conftest.err'
6378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379  (eval $ac_try) 2>&5
6380  ac_status=$?
6381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382  (exit $ac_status); }; } &&
6383         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6389  ac_cv_lib_jpeg_main=yes
6390else
6391  echo "$as_me: failed program was:" >&5
6392sed 's/^/| /' conftest.$ac_ext >&5
6393
6394ac_cv_lib_jpeg_main=no
6395fi
6396rm -f conftest.err conftest.$ac_objext \
6397      conftest$ac_exeext conftest.$ac_ext
6398LIBS=$ac_check_lib_save_LIBS
6399fi
6400echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_main" >&5
6401echo "${ECHO_T}$ac_cv_lib_jpeg_main" >&6
6402if test $ac_cv_lib_jpeg_main = yes; then
6403  FOUND_jpeg=yes
6404fi
6405
6406    if test "$FOUND_jpeg" = "yes" ; then
6407      LIBS="$LIBS -ljpeg"
6408    else
6409         echo "------------------"
6410         echo "jpeg library not found."
6411         echo "please install the jpeg library from the Independent JPEG Group, which can be found at http://www.ijg.org"
6412         echo "------------------"
6413         exit -1
6414    fi
6415 fi
6416
6417 ## checking for libpng
6418
6419for ac_header in png.h
6420do
6421as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6422if eval "test \"\${$as_ac_Header+set}\" = set"; then
6423  echo "$as_me:$LINENO: checking for $ac_header" >&5
6424echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6425if eval "test \"\${$as_ac_Header+set}\" = set"; then
6426  echo $ECHO_N "(cached) $ECHO_C" >&6
6427fi
6428echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6429echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6430else
6431  # Is the header compilable?
6432echo "$as_me:$LINENO: checking $ac_header usability" >&5
6433echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6434cat >conftest.$ac_ext <<_ACEOF
6435/* confdefs.h.  */
6436_ACEOF
6437cat confdefs.h >>conftest.$ac_ext
6438cat >>conftest.$ac_ext <<_ACEOF
6439/* end confdefs.h.  */
6440$ac_includes_default
6441#include <$ac_header>
6442_ACEOF
6443rm -f conftest.$ac_objext
6444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6445  (eval $ac_compile) 2>conftest.er1
6446  ac_status=$?
6447  grep -v '^ *+' conftest.er1 >conftest.err
6448  rm -f conftest.er1
6449  cat conftest.err >&5
6450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451  (exit $ac_status); } &&
6452         { ac_try='test -z "$ac_c_werror_flag"
6453                         || test ! -s conftest.err'
6454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6455  (eval $ac_try) 2>&5
6456  ac_status=$?
6457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458  (exit $ac_status); }; } &&
6459         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6465  ac_header_compiler=yes
6466else
6467  echo "$as_me: failed program was:" >&5
6468sed 's/^/| /' conftest.$ac_ext >&5
6469
6470ac_header_compiler=no
6471fi
6472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6473echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6474echo "${ECHO_T}$ac_header_compiler" >&6
6475
6476# Is the header present?
6477echo "$as_me:$LINENO: checking $ac_header presence" >&5
6478echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6479cat >conftest.$ac_ext <<_ACEOF
6480/* confdefs.h.  */
6481_ACEOF
6482cat confdefs.h >>conftest.$ac_ext
6483cat >>conftest.$ac_ext <<_ACEOF
6484/* end confdefs.h.  */
6485#include <$ac_header>
6486_ACEOF
6487if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6488  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6489  ac_status=$?
6490  grep -v '^ *+' conftest.er1 >conftest.err
6491  rm -f conftest.er1
6492  cat conftest.err >&5
6493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494  (exit $ac_status); } >/dev/null; then
6495  if test -s conftest.err; then
6496    ac_cpp_err=$ac_c_preproc_warn_flag
6497    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6498  else
6499    ac_cpp_err=
6500  fi
6501else
6502  ac_cpp_err=yes
6503fi
6504if test -z "$ac_cpp_err"; then
6505  ac_header_preproc=yes
6506else
6507  echo "$as_me: failed program was:" >&5
6508sed 's/^/| /' conftest.$ac_ext >&5
6509
6510  ac_header_preproc=no
6511fi
6512rm -f conftest.err conftest.$ac_ext
6513echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6514echo "${ECHO_T}$ac_header_preproc" >&6
6515
6516# So?  What about this header?
6517case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6518  yes:no: )
6519    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6520echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6521    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6522echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6523    ac_header_preproc=yes
6524    ;;
6525  no:yes:* )
6526    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6527echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6528    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6529echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6530    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6531echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6532    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6533echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6534    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6535echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6536    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6537echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6538    (
6539      cat <<\_ASBOX
6540## ---------------------------------------------- ##
6541## Report this to orxonox-dev at mail.datacore.ch ##
6542## ---------------------------------------------- ##
6543_ASBOX
6544    ) |
6545      sed "s/^/$as_me: WARNING:     /" >&2
6546    ;;
6547esac
6548echo "$as_me:$LINENO: checking for $ac_header" >&5
6549echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6550if eval "test \"\${$as_ac_Header+set}\" = set"; then
6551  echo $ECHO_N "(cached) $ECHO_C" >&6
6552else
6553  eval "$as_ac_Header=\$ac_header_preproc"
6554fi
6555echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6556echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6557
6558fi
6559if test `eval echo '${'$as_ac_Header'}'` = yes; then
6560  cat >>confdefs.h <<_ACEOF
6561#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6562_ACEOF
6563 pngHeader="yes"
6564else
6565  pngHeader="no"
6566fi
6567
6568done
6569
6570 if test $pngHeader = "no"; then
6571        echo " not including png."
6572 else
6573  echo "$as_me:$LINENO: checking for main in -lpng" >&5
6574echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
6575if test "${ac_cv_lib_png_main+set}" = set; then
6576  echo $ECHO_N "(cached) $ECHO_C" >&6
6577else
6578  ac_check_lib_save_LIBS=$LIBS
6579LIBS="-lpng  $LIBS"
6580cat >conftest.$ac_ext <<_ACEOF
6581/* confdefs.h.  */
6582_ACEOF
6583cat confdefs.h >>conftest.$ac_ext
6584cat >>conftest.$ac_ext <<_ACEOF
6585/* end confdefs.h.  */
6586
6587
6588int
6589main ()
6590{
6591main ();
6592  ;
6593  return 0;
6594}
6595_ACEOF
6596rm -f conftest.$ac_objext conftest$ac_exeext
6597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6598  (eval $ac_link) 2>conftest.er1
6599  ac_status=$?
6600  grep -v '^ *+' conftest.er1 >conftest.err
6601  rm -f conftest.er1
6602  cat conftest.err >&5
6603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604  (exit $ac_status); } &&
6605         { ac_try='test -z "$ac_c_werror_flag"
6606                         || test ! -s conftest.err'
6607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608  (eval $ac_try) 2>&5
6609  ac_status=$?
6610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611  (exit $ac_status); }; } &&
6612         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6618  ac_cv_lib_png_main=yes
6619else
6620  echo "$as_me: failed program was:" >&5
6621sed 's/^/| /' conftest.$ac_ext >&5
6622
6623ac_cv_lib_png_main=no
6624fi
6625rm -f conftest.err conftest.$ac_objext \
6626      conftest$ac_exeext conftest.$ac_ext
6627LIBS=$ac_check_lib_save_LIBS
6628fi
6629echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
6630echo "${ECHO_T}$ac_cv_lib_png_main" >&6
6631if test $ac_cv_lib_png_main = yes; then
6632  FOUND_png=yes
6633fi
6634
6635    if test "$FOUND_png" = "yes" ; then
6636      LIBS="$LIBS -lpng"
6637    else
6638         echo "------------------"
6639         echo "png library not found."
6640         echo "please install the png library, which can be found at http://libpng.org/pub/png/libpng.html"
6641         echo "------------------"
6642         exit -1
6643    fi
6644 fi
6645fi
6646
6647## checking for GTK
6648if test "$def_gtk" = yes; then
6649
6650        #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
6651        echo "$as_me:$LINENO: checking for gtk2.0" >&5
6652echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6
6653        if `pkg-config --exists gtk+-2.0`; then
6654                echo "yes"
6655                have_gtk2=yes
6656                GTK2_LIBS=`pkg-config --libs gtk+-2.0`
6657                GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0`
6658
6659cat >>confdefs.h <<_ACEOF
6660#define HAVE_GTK2 1
6661_ACEOF
6662
6663        else
6664                echo "no"
6665        fi
6666
6667fi
6668
6669
6670
6671
6672if test x$have_gtk2 = xyes; then
6673  HAVE_GTK2_TRUE=
6674  HAVE_GTK2_FALSE='#'
6675else
6676  HAVE_GTK2_TRUE='#'
6677  HAVE_GTK2_FALSE=
6678fi
6679
6680
6681
6682
6683#checking for pthread libs
6684# AC_CHECK_LIB([pthread], [main], FOUND_pthread=yes)
6685# if test "$FOUND_pthread" = "yes" ; then
6686#    LIBS="$LIBS -lpthread"
6687# fi
6688
6689
6690# FIXME: Replace `main' with a function in `-lm':
6691
6692echo "$as_me:$LINENO: checking for main in -lm" >&5
6693echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
6694if test "${ac_cv_lib_m_main+set}" = set; then
6695  echo $ECHO_N "(cached) $ECHO_C" >&6
6696else
6697  ac_check_lib_save_LIBS=$LIBS
6698LIBS="-lm  $LIBS"
6699cat >conftest.$ac_ext <<_ACEOF
6700/* confdefs.h.  */
6701_ACEOF
6702cat confdefs.h >>conftest.$ac_ext
6703cat >>conftest.$ac_ext <<_ACEOF
6704/* end confdefs.h.  */
6705
6706
6707int
6708main ()
6709{
6710main ();
6711  ;
6712  return 0;
6713}
6714_ACEOF
6715rm -f conftest.$ac_objext conftest$ac_exeext
6716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6717  (eval $ac_link) 2>conftest.er1
6718  ac_status=$?
6719  grep -v '^ *+' conftest.er1 >conftest.err
6720  rm -f conftest.er1
6721  cat conftest.err >&5
6722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723  (exit $ac_status); } &&
6724         { ac_try='test -z "$ac_c_werror_flag"
6725                         || test ! -s conftest.err'
6726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6727  (eval $ac_try) 2>&5
6728  ac_status=$?
6729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730  (exit $ac_status); }; } &&
6731         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6737  ac_cv_lib_m_main=yes
6738else
6739  echo "$as_me: failed program was:" >&5
6740sed 's/^/| /' conftest.$ac_ext >&5
6741
6742ac_cv_lib_m_main=no
6743fi
6744rm -f conftest.err conftest.$ac_objext \
6745      conftest$ac_exeext conftest.$ac_ext
6746LIBS=$ac_check_lib_save_LIBS
6747fi
6748echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6749echo "${ECHO_T}$ac_cv_lib_m_main" >&6
6750if test $ac_cv_lib_m_main = yes; then
6751  cat >>confdefs.h <<_ACEOF
6752#define HAVE_LIBM 1
6753_ACEOF
6754
6755  LIBS="-lm $LIBS"
6756
6757fi
6758
6759
6760
6761# Checks for header files.
6762echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6763echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6764if test "${ac_cv_header_stdc+set}" = set; then
6765  echo $ECHO_N "(cached) $ECHO_C" >&6
6766else
6767  cat >conftest.$ac_ext <<_ACEOF
6768/* confdefs.h.  */
6769_ACEOF
6770cat confdefs.h >>conftest.$ac_ext
6771cat >>conftest.$ac_ext <<_ACEOF
6772/* end confdefs.h.  */
6773#include <stdlib.h>
6774#include <stdarg.h>
6775#include <string.h>
6776#include <float.h>
6777
6778int
6779main ()
6780{
6781
6782  ;
6783  return 0;
6784}
6785_ACEOF
6786rm -f conftest.$ac_objext
6787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6788  (eval $ac_compile) 2>conftest.er1
6789  ac_status=$?
6790  grep -v '^ *+' conftest.er1 >conftest.err
6791  rm -f conftest.er1
6792  cat conftest.err >&5
6793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794  (exit $ac_status); } &&
6795         { ac_try='test -z "$ac_c_werror_flag"
6796                         || test ! -s conftest.err'
6797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6798  (eval $ac_try) 2>&5
6799  ac_status=$?
6800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801  (exit $ac_status); }; } &&
6802         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6808  ac_cv_header_stdc=yes
6809else
6810  echo "$as_me: failed program was:" >&5
6811sed 's/^/| /' conftest.$ac_ext >&5
6812
6813ac_cv_header_stdc=no
6814fi
6815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6816
6817if test $ac_cv_header_stdc = yes; then
6818  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6819  cat >conftest.$ac_ext <<_ACEOF
6820/* confdefs.h.  */
6821_ACEOF
6822cat confdefs.h >>conftest.$ac_ext
6823cat >>conftest.$ac_ext <<_ACEOF
6824/* end confdefs.h.  */
6825#include <string.h>
6826
6827_ACEOF
6828if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6829  $EGREP "memchr" >/dev/null 2>&1; then
6830  :
6831else
6832  ac_cv_header_stdc=no
6833fi
6834rm -f conftest*
6835
6836fi
6837
6838if test $ac_cv_header_stdc = yes; then
6839  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6840  cat >conftest.$ac_ext <<_ACEOF
6841/* confdefs.h.  */
6842_ACEOF
6843cat confdefs.h >>conftest.$ac_ext
6844cat >>conftest.$ac_ext <<_ACEOF
6845/* end confdefs.h.  */
6846#include <stdlib.h>
6847
6848_ACEOF
6849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6850  $EGREP "free" >/dev/null 2>&1; then
6851  :
6852else
6853  ac_cv_header_stdc=no
6854fi
6855rm -f conftest*
6856
6857fi
6858
6859if test $ac_cv_header_stdc = yes; then
6860  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6861  if test "$cross_compiling" = yes; then
6862  :
6863else
6864  cat >conftest.$ac_ext <<_ACEOF
6865/* confdefs.h.  */
6866_ACEOF
6867cat confdefs.h >>conftest.$ac_ext
6868cat >>conftest.$ac_ext <<_ACEOF
6869/* end confdefs.h.  */
6870#include <ctype.h>
6871#if ((' ' & 0x0FF) == 0x020)
6872# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6873# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6874#else
6875# define ISLOWER(c) \
6876                   (('a' <= (c) && (c) <= 'i') \
6877                     || ('j' <= (c) && (c) <= 'r') \
6878                     || ('s' <= (c) && (c) <= 'z'))
6879# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6880#endif
6881
6882#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6883int
6884main ()
6885{
6886  int i;
6887  for (i = 0; i < 256; i++)
6888    if (XOR (islower (i), ISLOWER (i))
6889        || toupper (i) != TOUPPER (i))
6890      exit(2);
6891  exit (0);
6892}
6893_ACEOF
6894rm -f conftest$ac_exeext
6895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6896  (eval $ac_link) 2>&5
6897  ac_status=$?
6898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901  (eval $ac_try) 2>&5
6902  ac_status=$?
6903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904  (exit $ac_status); }; }; then
6905  :
6906else
6907  echo "$as_me: program exited with status $ac_status" >&5
6908echo "$as_me: failed program was:" >&5
6909sed 's/^/| /' conftest.$ac_ext >&5
6910
6911( exit $ac_status )
6912ac_cv_header_stdc=no
6913fi
6914rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6915fi
6916fi
6917fi
6918echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6919echo "${ECHO_T}$ac_cv_header_stdc" >&6
6920if test $ac_cv_header_stdc = yes; then
6921
6922cat >>confdefs.h <<\_ACEOF
6923#define STDC_HEADERS 1
6924_ACEOF
6925
6926fi
6927
6928
6929
6930for ac_header in stdlib.h string.h
6931do
6932as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6933if eval "test \"\${$as_ac_Header+set}\" = set"; then
6934  echo "$as_me:$LINENO: checking for $ac_header" >&5
6935echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6936if eval "test \"\${$as_ac_Header+set}\" = set"; then
6937  echo $ECHO_N "(cached) $ECHO_C" >&6
6938fi
6939echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6940echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6941else
6942  # Is the header compilable?
6943echo "$as_me:$LINENO: checking $ac_header usability" >&5
6944echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6945cat >conftest.$ac_ext <<_ACEOF
6946/* confdefs.h.  */
6947_ACEOF
6948cat confdefs.h >>conftest.$ac_ext
6949cat >>conftest.$ac_ext <<_ACEOF
6950/* end confdefs.h.  */
6951$ac_includes_default
6952#include <$ac_header>
6953_ACEOF
6954rm -f conftest.$ac_objext
6955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6956  (eval $ac_compile) 2>conftest.er1
6957  ac_status=$?
6958  grep -v '^ *+' conftest.er1 >conftest.err
6959  rm -f conftest.er1
6960  cat conftest.err >&5
6961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962  (exit $ac_status); } &&
6963         { ac_try='test -z "$ac_c_werror_flag"
6964                         || test ! -s conftest.err'
6965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6966  (eval $ac_try) 2>&5
6967  ac_status=$?
6968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969  (exit $ac_status); }; } &&
6970         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6976  ac_header_compiler=yes
6977else
6978  echo "$as_me: failed program was:" >&5
6979sed 's/^/| /' conftest.$ac_ext >&5
6980
6981ac_header_compiler=no
6982fi
6983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6984echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6985echo "${ECHO_T}$ac_header_compiler" >&6
6986
6987# Is the header present?
6988echo "$as_me:$LINENO: checking $ac_header presence" >&5
6989echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6990cat >conftest.$ac_ext <<_ACEOF
6991/* confdefs.h.  */
6992_ACEOF
6993cat confdefs.h >>conftest.$ac_ext
6994cat >>conftest.$ac_ext <<_ACEOF
6995/* end confdefs.h.  */
6996#include <$ac_header>
6997_ACEOF
6998if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6999  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7000  ac_status=$?
7001  grep -v '^ *+' conftest.er1 >conftest.err
7002  rm -f conftest.er1
7003  cat conftest.err >&5
7004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005  (exit $ac_status); } >/dev/null; then
7006  if test -s conftest.err; then
7007    ac_cpp_err=$ac_c_preproc_warn_flag
7008    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7009  else
7010    ac_cpp_err=
7011  fi
7012else
7013  ac_cpp_err=yes
7014fi
7015if test -z "$ac_cpp_err"; then
7016  ac_header_preproc=yes
7017else
7018  echo "$as_me: failed program was:" >&5
7019sed 's/^/| /' conftest.$ac_ext >&5
7020
7021  ac_header_preproc=no
7022fi
7023rm -f conftest.err conftest.$ac_ext
7024echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7025echo "${ECHO_T}$ac_header_preproc" >&6
7026
7027# So?  What about this header?
7028case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7029  yes:no: )
7030    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7031echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7032    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7033echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7034    ac_header_preproc=yes
7035    ;;
7036  no:yes:* )
7037    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7038echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7039    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7040echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7041    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7042echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7043    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7044echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7045    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7046echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7047    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7048echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7049    (
7050      cat <<\_ASBOX
7051## ---------------------------------------------- ##
7052## Report this to orxonox-dev at mail.datacore.ch ##
7053## ---------------------------------------------- ##
7054_ASBOX
7055    ) |
7056      sed "s/^/$as_me: WARNING:     /" >&2
7057    ;;
7058esac
7059echo "$as_me:$LINENO: checking for $ac_header" >&5
7060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7061if eval "test \"\${$as_ac_Header+set}\" = set"; then
7062  echo $ECHO_N "(cached) $ECHO_C" >&6
7063else
7064  eval "$as_ac_Header=\$ac_header_preproc"
7065fi
7066echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7067echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7068
7069fi
7070if test `eval echo '${'$as_ac_Header'}'` = yes; then
7071  cat >>confdefs.h <<_ACEOF
7072#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7073_ACEOF
7074
7075fi
7076
7077done
7078
7079
7080# Checks for typedefs, structures, and compiler characteristics.
7081echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7082echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
7083if test "${ac_cv_header_stdbool_h+set}" = set; then
7084  echo $ECHO_N "(cached) $ECHO_C" >&6
7085else
7086  cat >conftest.$ac_ext <<_ACEOF
7087/* confdefs.h.  */
7088_ACEOF
7089cat confdefs.h >>conftest.$ac_ext
7090cat >>conftest.$ac_ext <<_ACEOF
7091/* end confdefs.h.  */
7092
7093#include <stdbool.h>
7094#ifndef bool
7095# error bool is not defined
7096#endif
7097#ifndef false
7098# error false is not defined
7099#endif
7100#if false
7101# error false is not 0
7102#endif
7103#ifndef true
7104# error true is not defined
7105#endif
7106#if true != 1
7107# error true is not 1
7108#endif
7109#ifndef __bool_true_false_are_defined
7110# error __bool_true_false_are_defined is not defined
7111#endif
7112
7113        struct s { _Bool s: 1; _Bool t; } s;
7114
7115        char a[true == 1 ? 1 : -1];
7116        char b[false == 0 ? 1 : -1];
7117        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7118        char d[(bool) -0.5 == true ? 1 : -1];
7119        bool e = &s;
7120        char f[(_Bool) -0.0 == false ? 1 : -1];
7121        char g[true];
7122        char h[sizeof (_Bool)];
7123        char i[sizeof s.t];
7124
7125int
7126main ()
7127{
7128 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
7129  ;
7130  return 0;
7131}
7132_ACEOF
7133rm -f conftest.$ac_objext
7134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7135  (eval $ac_compile) 2>conftest.er1
7136  ac_status=$?
7137  grep -v '^ *+' conftest.er1 >conftest.err
7138  rm -f conftest.er1
7139  cat conftest.err >&5
7140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141  (exit $ac_status); } &&
7142         { ac_try='test -z "$ac_c_werror_flag"
7143                         || test ! -s conftest.err'
7144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7145  (eval $ac_try) 2>&5
7146  ac_status=$?
7147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148  (exit $ac_status); }; } &&
7149         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7155  ac_cv_header_stdbool_h=yes
7156else
7157  echo "$as_me: failed program was:" >&5
7158sed 's/^/| /' conftest.$ac_ext >&5
7159
7160ac_cv_header_stdbool_h=no
7161fi
7162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7163fi
7164echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7165echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
7166echo "$as_me:$LINENO: checking for _Bool" >&5
7167echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
7168if test "${ac_cv_type__Bool+set}" = set; then
7169  echo $ECHO_N "(cached) $ECHO_C" >&6
7170else
7171  cat >conftest.$ac_ext <<_ACEOF
7172/* confdefs.h.  */
7173_ACEOF
7174cat confdefs.h >>conftest.$ac_ext
7175cat >>conftest.$ac_ext <<_ACEOF
7176/* end confdefs.h.  */
7177$ac_includes_default
7178int
7179main ()
7180{
7181if ((_Bool *) 0)
7182  return 0;
7183if (sizeof (_Bool))
7184  return 0;
7185  ;
7186  return 0;
7187}
7188_ACEOF
7189rm -f conftest.$ac_objext
7190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7191  (eval $ac_compile) 2>conftest.er1
7192  ac_status=$?
7193  grep -v '^ *+' conftest.er1 >conftest.err
7194  rm -f conftest.er1
7195  cat conftest.err >&5
7196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197  (exit $ac_status); } &&
7198         { ac_try='test -z "$ac_c_werror_flag"
7199                         || test ! -s conftest.err'
7200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201  (eval $ac_try) 2>&5
7202  ac_status=$?
7203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204  (exit $ac_status); }; } &&
7205         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7211  ac_cv_type__Bool=yes
7212else
7213  echo "$as_me: failed program was:" >&5
7214sed 's/^/| /' conftest.$ac_ext >&5
7215
7216ac_cv_type__Bool=no
7217fi
7218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7219fi
7220echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7221echo "${ECHO_T}$ac_cv_type__Bool" >&6
7222if test $ac_cv_type__Bool = yes; then
7223
7224cat >>confdefs.h <<_ACEOF
7225#define HAVE__BOOL 1
7226_ACEOF
7227
7228
7229fi
7230
7231if test $ac_cv_header_stdbool_h = yes; then
7232
7233cat >>confdefs.h <<\_ACEOF
7234#define HAVE_STDBOOL_H 1
7235_ACEOF
7236
7237fi
7238
7239
7240# Checks for library functions.
7241
7242for ac_header in stdlib.h
7243do
7244as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7245if eval "test \"\${$as_ac_Header+set}\" = set"; then
7246  echo "$as_me:$LINENO: checking for $ac_header" >&5
7247echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7248if eval "test \"\${$as_ac_Header+set}\" = set"; then
7249  echo $ECHO_N "(cached) $ECHO_C" >&6
7250fi
7251echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7252echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7253else
7254  # Is the header compilable?
7255echo "$as_me:$LINENO: checking $ac_header usability" >&5
7256echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7257cat >conftest.$ac_ext <<_ACEOF
7258/* confdefs.h.  */
7259_ACEOF
7260cat confdefs.h >>conftest.$ac_ext
7261cat >>conftest.$ac_ext <<_ACEOF
7262/* end confdefs.h.  */
7263$ac_includes_default
7264#include <$ac_header>
7265_ACEOF
7266rm -f conftest.$ac_objext
7267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7268  (eval $ac_compile) 2>conftest.er1
7269  ac_status=$?
7270  grep -v '^ *+' conftest.er1 >conftest.err
7271  rm -f conftest.er1
7272  cat conftest.err >&5
7273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274  (exit $ac_status); } &&
7275         { ac_try='test -z "$ac_c_werror_flag"
7276                         || test ! -s conftest.err'
7277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7278  (eval $ac_try) 2>&5
7279  ac_status=$?
7280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281  (exit $ac_status); }; } &&
7282         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7288  ac_header_compiler=yes
7289else
7290  echo "$as_me: failed program was:" >&5
7291sed 's/^/| /' conftest.$ac_ext >&5
7292
7293ac_header_compiler=no
7294fi
7295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7296echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7297echo "${ECHO_T}$ac_header_compiler" >&6
7298
7299# Is the header present?
7300echo "$as_me:$LINENO: checking $ac_header presence" >&5
7301echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7302cat >conftest.$ac_ext <<_ACEOF
7303/* confdefs.h.  */
7304_ACEOF
7305cat confdefs.h >>conftest.$ac_ext
7306cat >>conftest.$ac_ext <<_ACEOF
7307/* end confdefs.h.  */
7308#include <$ac_header>
7309_ACEOF
7310if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7311  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7312  ac_status=$?
7313  grep -v '^ *+' conftest.er1 >conftest.err
7314  rm -f conftest.er1
7315  cat conftest.err >&5
7316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317  (exit $ac_status); } >/dev/null; then
7318  if test -s conftest.err; then
7319    ac_cpp_err=$ac_c_preproc_warn_flag
7320    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7321  else
7322    ac_cpp_err=
7323  fi
7324else
7325  ac_cpp_err=yes
7326fi
7327if test -z "$ac_cpp_err"; then
7328  ac_header_preproc=yes
7329else
7330  echo "$as_me: failed program was:" >&5
7331sed 's/^/| /' conftest.$ac_ext >&5
7332
7333  ac_header_preproc=no
7334fi
7335rm -f conftest.err conftest.$ac_ext
7336echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7337echo "${ECHO_T}$ac_header_preproc" >&6
7338
7339# So?  What about this header?
7340case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7341  yes:no: )
7342    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7343echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7344    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7345echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7346    ac_header_preproc=yes
7347    ;;
7348  no:yes:* )
7349    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7350echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7351    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7352echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7353    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7354echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7355    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7356echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7357    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7358echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7359    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7360echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7361    (
7362      cat <<\_ASBOX
7363## ---------------------------------------------- ##
7364## Report this to orxonox-dev at mail.datacore.ch ##
7365## ---------------------------------------------- ##
7366_ASBOX
7367    ) |
7368      sed "s/^/$as_me: WARNING:     /" >&2
7369    ;;
7370esac
7371echo "$as_me:$LINENO: checking for $ac_header" >&5
7372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7373if eval "test \"\${$as_ac_Header+set}\" = set"; then
7374  echo $ECHO_N "(cached) $ECHO_C" >&6
7375else
7376  eval "$as_ac_Header=\$ac_header_preproc"
7377fi
7378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7379echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7380
7381fi
7382if test `eval echo '${'$as_ac_Header'}'` = yes; then
7383  cat >>confdefs.h <<_ACEOF
7384#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7385_ACEOF
7386
7387fi
7388
7389done
7390
7391echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7392echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
7393if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
7394  echo $ECHO_N "(cached) $ECHO_C" >&6
7395else
7396  if test "$cross_compiling" = yes; then
7397  ac_cv_func_malloc_0_nonnull=no
7398else
7399  cat >conftest.$ac_ext <<_ACEOF
7400/* confdefs.h.  */
7401_ACEOF
7402cat confdefs.h >>conftest.$ac_ext
7403cat >>conftest.$ac_ext <<_ACEOF
7404/* end confdefs.h.  */
7405#if STDC_HEADERS || HAVE_STDLIB_H
7406# include <stdlib.h>
7407#else
7408char *malloc ();
7409#endif
7410
7411int
7412main ()
7413{
7414exit (malloc (0) ? 0 : 1);
7415  ;
7416  return 0;
7417}
7418_ACEOF
7419rm -f conftest$ac_exeext
7420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7421  (eval $ac_link) 2>&5
7422  ac_status=$?
7423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7426  (eval $ac_try) 2>&5
7427  ac_status=$?
7428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429  (exit $ac_status); }; }; then
7430  ac_cv_func_malloc_0_nonnull=yes
7431else
7432  echo "$as_me: program exited with status $ac_status" >&5
7433echo "$as_me: failed program was:" >&5
7434sed 's/^/| /' conftest.$ac_ext >&5
7435
7436( exit $ac_status )
7437ac_cv_func_malloc_0_nonnull=no
7438fi
7439rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7440fi
7441fi
7442echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7443echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
7444if test $ac_cv_func_malloc_0_nonnull = yes; then
7445
7446cat >>confdefs.h <<\_ACEOF
7447#define HAVE_MALLOC 1
7448_ACEOF
7449
7450else
7451  cat >>confdefs.h <<\_ACEOF
7452#define HAVE_MALLOC 0
7453_ACEOF
7454
7455   case $LIBOBJS in
7456    "malloc.$ac_objext"   | \
7457  *" malloc.$ac_objext"   | \
7458    "malloc.$ac_objext "* | \
7459  *" malloc.$ac_objext "* ) ;;
7460  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
7461esac
7462
7463
7464cat >>confdefs.h <<\_ACEOF
7465#define malloc rpl_malloc
7466_ACEOF
7467
7468fi
7469
7470
7471
7472
7473
7474for ac_func in bzero sqrt
7475do
7476as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7477echo "$as_me:$LINENO: checking for $ac_func" >&5
7478echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7479if eval "test \"\${$as_ac_var+set}\" = set"; then
7480  echo $ECHO_N "(cached) $ECHO_C" >&6
7481else
7482  cat >conftest.$ac_ext <<_ACEOF
7483/* confdefs.h.  */
7484_ACEOF
7485cat confdefs.h >>conftest.$ac_ext
7486cat >>conftest.$ac_ext <<_ACEOF
7487/* end confdefs.h.  */
7488/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7489   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7490#define $ac_func innocuous_$ac_func
7491
7492/* System header to define __stub macros and hopefully few prototypes,
7493    which can conflict with char $ac_func (); below.
7494    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7495    <limits.h> exists even on freestanding compilers.  */
7496
7497#ifdef __STDC__
7498# include <limits.h>
7499#else
7500# include <assert.h>
7501#endif
7502
7503#undef $ac_func
7504
7505/* Override any gcc2 internal prototype to avoid an error.  */
7506#ifdef __cplusplus
7507extern "C"
7508{
7509#endif
7510/* We use char because int might match the return type of a gcc2
7511   builtin and then its argument prototype would still apply.  */
7512char $ac_func ();
7513/* The GNU C library defines this for functions which it implements
7514    to always fail with ENOSYS.  Some functions are actually named
7515    something starting with __ and the normal name is an alias.  */
7516#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7517choke me
7518#else
7519char (*f) () = $ac_func;
7520#endif
7521#ifdef __cplusplus
7522}
7523#endif
7524
7525int
7526main ()
7527{
7528return f != $ac_func;
7529  ;
7530  return 0;
7531}
7532_ACEOF
7533rm -f conftest.$ac_objext conftest$ac_exeext
7534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7535  (eval $ac_link) 2>conftest.er1
7536  ac_status=$?
7537  grep -v '^ *+' conftest.er1 >conftest.err
7538  rm -f conftest.er1
7539  cat conftest.err >&5
7540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541  (exit $ac_status); } &&
7542         { ac_try='test -z "$ac_c_werror_flag"
7543                         || test ! -s conftest.err'
7544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7545  (eval $ac_try) 2>&5
7546  ac_status=$?
7547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548  (exit $ac_status); }; } &&
7549         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
7555  eval "$as_ac_var=yes"
7556else
7557  echo "$as_me: failed program was:" >&5
7558sed 's/^/| /' conftest.$ac_ext >&5
7559
7560eval "$as_ac_var=no"
7561fi
7562rm -f conftest.err conftest.$ac_objext \
7563      conftest$ac_exeext conftest.$ac_ext
7564fi
7565echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7566echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7567if test `eval echo '${'$as_ac_var'}'` = yes; then
7568  cat >>confdefs.h <<_ACEOF
7569#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7570_ACEOF
7571
7572fi
7573done
7574
7575
7576                                                  ac_config_files="$ac_config_files Makefile src/Makefile src/importer/Makefile src/console/Makefile src/gui/Makefile"
7577
7578
7579cat >confcache <<\_ACEOF
7580# This file is a shell script that caches the results of configure
7581# tests run on this system so they can be shared between configure
7582# scripts and configure runs, see configure's option --config-cache.
7583# It is not useful on other systems.  If it contains results you don't
7584# want to keep, you may remove or edit it.
7585#
7586# config.status only pays attention to the cache file if you give it
7587# the --recheck option to rerun configure.
7588#
7589# `ac_cv_env_foo' variables (set or unset) will be overridden when
7590# loading this file, other *unset* `ac_cv_foo' will be assigned the
7591# following values.
7592
7593_ACEOF
7594
7595# The following way of writing the cache mishandles newlines in values,
7596# but we know of no workaround that is simple, portable, and efficient.
7597# So, don't put newlines in cache variables' values.
7598# Ultrix sh set writes to stderr and can't be redirected directly,
7599# and sets the high bit in the cache file unless we assign to the vars.
7600{
7601  (set) 2>&1 |
7602    case `(ac_space=' '; set | grep ac_space) 2>&1` in
7603    *ac_space=\ *)
7604      # `set' does not quote correctly, so add quotes (double-quote
7605      # substitution turns \\\\ into \\, and sed turns \\ into \).
7606      sed -n \
7607        "s/'/'\\\\''/g;
7608          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7609      ;;
7610    *)
7611      # `set' quotes correctly as required by POSIX, so do not add quotes.
7612      sed -n \
7613        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7614      ;;
7615    esac;
7616} |
7617  sed '
7618     t clear
7619     : clear
7620     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7621     t end
7622     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7623     : end' >>confcache
7624if diff $cache_file confcache >/dev/null 2>&1; then :; else
7625  if test -w $cache_file; then
7626    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7627    cat confcache >$cache_file
7628  else
7629    echo "not updating unwritable cache $cache_file"
7630  fi
7631fi
7632rm -f confcache
7633
7634test "x$prefix" = xNONE && prefix=$ac_default_prefix
7635# Let make expand exec_prefix.
7636test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7637
7638# VPATH may cause trouble with some makes, so we remove $(srcdir),
7639# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7640# trailing colons and then remove the whole line if VPATH becomes empty
7641# (actually we leave an empty line to preserve line numbers).
7642if test "x$srcdir" = x.; then
7643  ac_vpsub='/^[  ]*VPATH[        ]*=/{
7644s/:*\$(srcdir):*/:/;
7645s/:*\${srcdir}:*/:/;
7646s/:*@srcdir@:*/:/;
7647s/^\([^=]*=[     ]*\):*/\1/;
7648s/:*$//;
7649s/^[^=]*=[       ]*$//;
7650}'
7651fi
7652
7653DEFS=-DHAVE_CONFIG_H
7654
7655ac_libobjs=
7656ac_ltlibobjs=
7657for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7658  # 1. Remove the extension, and $U if already installed.
7659  ac_i=`echo "$ac_i" |
7660         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7661  # 2. Add them.
7662  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7663  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7664done
7665LIBOBJS=$ac_libobjs
7666
7667LTLIBOBJS=$ac_ltlibobjs
7668
7669
7670if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7671  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7672Usually this means the macro was only invoked conditionally." >&5
7673echo "$as_me: error: conditional \"AMDEP\" was never defined.
7674Usually this means the macro was only invoked conditionally." >&2;}
7675   { (exit 1); exit 1; }; }
7676fi
7677if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7678  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
7679Usually this means the macro was only invoked conditionally." >&5
7680echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
7681Usually this means the macro was only invoked conditionally." >&2;}
7682   { (exit 1); exit 1; }; }
7683fi
7684if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7685  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7686Usually this means the macro was only invoked conditionally." >&5
7687echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7688Usually this means the macro was only invoked conditionally." >&2;}
7689   { (exit 1); exit 1; }; }
7690fi
7691if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then
7692  { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined.
7693Usually this means the macro was only invoked conditionally." >&5
7694echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined.
7695Usually this means the macro was only invoked conditionally." >&2;}
7696   { (exit 1); exit 1; }; }
7697fi
7698if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
7699  { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined.
7700Usually this means the macro was only invoked conditionally." >&5
7701echo "$as_me: error: conditional \"DOXYGEN\" was never defined.
7702Usually this means the macro was only invoked conditionally." >&2;}
7703   { (exit 1); exit 1; }; }
7704fi
7705if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then
7706  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined.
7707Usually this means the macro was only invoked conditionally." >&5
7708echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined.
7709Usually this means the macro was only invoked conditionally." >&2;}
7710   { (exit 1); exit 1; }; }
7711fi
7712
7713: ${CONFIG_STATUS=./config.status}
7714ac_clean_files_save=$ac_clean_files
7715ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7716{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7717echo "$as_me: creating $CONFIG_STATUS" >&6;}
7718cat >$CONFIG_STATUS <<_ACEOF
7719#! $SHELL
7720# Generated by $as_me.
7721# Run this file to recreate the current configuration.
7722# Compiler output produced by configure, useful for debugging
7723# configure, is in config.log if it exists.
7724
7725debug=false
7726ac_cs_recheck=false
7727ac_cs_silent=false
7728SHELL=\${CONFIG_SHELL-$SHELL}
7729_ACEOF
7730
7731cat >>$CONFIG_STATUS <<\_ACEOF
7732## --------------------- ##
7733## M4sh Initialization.  ##
7734## --------------------- ##
7735
7736# Be Bourne compatible
7737if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7738  emulate sh
7739  NULLCMD=:
7740  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7741  # is contrary to our usage.  Disable this feature.
7742  alias -g '${1+"$@"}'='"$@"'
7743elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7744  set -o posix
7745fi
7746DUALCASE=1; export DUALCASE # for MKS sh
7747
7748# Support unset when possible.
7749if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7750  as_unset=unset
7751else
7752  as_unset=false
7753fi
7754
7755
7756# Work around bugs in pre-3.0 UWIN ksh.
7757$as_unset ENV MAIL MAILPATH
7758PS1='$ '
7759PS2='> '
7760PS4='+ '
7761
7762# NLS nuisances.
7763for as_var in \
7764  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7765  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7766  LC_TELEPHONE LC_TIME
7767do
7768  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7769    eval $as_var=C; export $as_var
7770  else
7771    $as_unset $as_var
7772  fi
7773done
7774
7775# Required to use basename.
7776if expr a : '\(a\)' >/dev/null 2>&1; then
7777  as_expr=expr
7778else
7779  as_expr=false
7780fi
7781
7782if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7783  as_basename=basename
7784else
7785  as_basename=false
7786fi
7787
7788
7789# Name of the executable.
7790as_me=`$as_basename "$0" ||
7791$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7792         X"$0" : 'X\(//\)$' \| \
7793         X"$0" : 'X\(/\)$' \| \
7794         .     : '\(.\)' 2>/dev/null ||
7795echo X/"$0" |
7796    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7797          /^X\/\(\/\/\)$/{ s//\1/; q; }
7798          /^X\/\(\/\).*/{ s//\1/; q; }
7799          s/.*/./; q'`
7800
7801
7802# PATH needs CR, and LINENO needs CR and PATH.
7803# Avoid depending upon Character Ranges.
7804as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7805as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7806as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7807as_cr_digits='0123456789'
7808as_cr_alnum=$as_cr_Letters$as_cr_digits
7809
7810# The user is always right.
7811if test "${PATH_SEPARATOR+set}" != set; then
7812  echo "#! /bin/sh" >conf$$.sh
7813  echo  "exit 0"   >>conf$$.sh
7814  chmod +x conf$$.sh
7815  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7816    PATH_SEPARATOR=';'
7817  else
7818    PATH_SEPARATOR=:
7819  fi
7820  rm -f conf$$.sh
7821fi
7822
7823
7824  as_lineno_1=$LINENO
7825  as_lineno_2=$LINENO
7826  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7827  test "x$as_lineno_1" != "x$as_lineno_2" &&
7828  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
7829  # Find who we are.  Look in the path if we contain no path at all
7830  # relative or not.
7831  case $0 in
7832    *[\\/]* ) as_myself=$0 ;;
7833    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834for as_dir in $PATH
7835do
7836  IFS=$as_save_IFS
7837  test -z "$as_dir" && as_dir=.
7838  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7839done
7840
7841       ;;
7842  esac
7843  # We did not find ourselves, most probably we were run as `sh COMMAND'
7844  # in which case we are not to be found in the path.
7845  if test "x$as_myself" = x; then
7846    as_myself=$0
7847  fi
7848  if test ! -f "$as_myself"; then
7849    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7850echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7851   { (exit 1); exit 1; }; }
7852  fi
7853  case $CONFIG_SHELL in
7854  '')
7855    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7857do
7858  IFS=$as_save_IFS
7859  test -z "$as_dir" && as_dir=.
7860  for as_base in sh bash ksh sh5; do
7861         case $as_dir in
7862         /*)
7863           if ("$as_dir/$as_base" -c '
7864  as_lineno_1=$LINENO
7865  as_lineno_2=$LINENO
7866  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7867  test "x$as_lineno_1" != "x$as_lineno_2" &&
7868  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
7869             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7870             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7871             CONFIG_SHELL=$as_dir/$as_base
7872             export CONFIG_SHELL
7873             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7874           fi;;
7875         esac
7876       done
7877done
7878;;
7879  esac
7880
7881  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7882  # uniformly replaced by the line number.  The first 'sed' inserts a
7883  # line-number line before each line; the second 'sed' does the real
7884  # work.  The second script uses 'N' to pair each line-number line
7885  # with the numbered line, and appends trailing '-' during
7886  # substitution so that $LINENO is not a special case at line end.
7887  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7888  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
7889  sed '=' <$as_myself |
7890    sed '
7891      N
7892      s,$,-,
7893      : loop
7894      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7895      t loop
7896      s,-$,,
7897      s,^['$as_cr_digits']*\n,,
7898    ' >$as_me.lineno &&
7899  chmod +x $as_me.lineno ||
7900    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7901echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7902   { (exit 1); exit 1; }; }
7903
7904  # Don't try to exec as it changes $[0], causing all sort of problems
7905  # (the dirname of $[0] is not the place where we might find the
7906  # original and so on.  Autoconf is especially sensible to this).
7907  . ./$as_me.lineno
7908  # Exit status is that of the last command.
7909  exit
7910}
7911
7912
7913case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7914  *c*,-n*) ECHO_N= ECHO_C='
7915' ECHO_T='      ' ;;
7916  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7917  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
7918esac
7919
7920if expr a : '\(a\)' >/dev/null 2>&1; then
7921  as_expr=expr
7922else
7923  as_expr=false
7924fi
7925
7926rm -f conf$$ conf$$.exe conf$$.file
7927echo >conf$$.file
7928if ln -s conf$$.file conf$$ 2>/dev/null; then
7929  # We could just check for DJGPP; but this test a) works b) is more generic
7930  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7931  if test -f conf$$.exe; then
7932    # Don't use ln at all; we don't have any links
7933    as_ln_s='cp -p'
7934  else
7935    as_ln_s='ln -s'
7936  fi
7937elif ln conf$$.file conf$$ 2>/dev/null; then
7938  as_ln_s=ln
7939else
7940  as_ln_s='cp -p'
7941fi
7942rm -f conf$$ conf$$.exe conf$$.file
7943
7944if mkdir -p . 2>/dev/null; then
7945  as_mkdir_p=:
7946else
7947  test -d ./-p && rmdir ./-p
7948  as_mkdir_p=false
7949fi
7950
7951as_executable_p="test -f"
7952
7953# Sed expression to map a string onto a valid CPP name.
7954as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7955
7956# Sed expression to map a string onto a valid variable name.
7957as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7958
7959
7960# IFS
7961# We need space, tab and new line, in precisely that order.
7962as_nl='
7963'
7964IFS="   $as_nl"
7965
7966# CDPATH.
7967$as_unset CDPATH
7968
7969exec 6>&1
7970
7971# Open the log real soon, to keep \$[0] and so on meaningful, and to
7972# report actual input values of CONFIG_FILES etc. instead of their
7973# values after options handling.  Logging --version etc. is OK.
7974exec 5>>config.log
7975{
7976  echo
7977  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7978## Running $as_me. ##
7979_ASBOX
7980} >&5
7981cat >&5 <<_CSEOF
7982
7983This file was extended by orxonox $as_me 0.2.1-pre-alpha, which was
7984generated by GNU Autoconf 2.59.  Invocation command line was
7985
7986  CONFIG_FILES    = $CONFIG_FILES
7987  CONFIG_HEADERS  = $CONFIG_HEADERS
7988  CONFIG_LINKS    = $CONFIG_LINKS
7989  CONFIG_COMMANDS = $CONFIG_COMMANDS
7990  $ $0 $@
7991
7992_CSEOF
7993echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7994echo >&5
7995_ACEOF
7996
7997# Files that config.status was made for.
7998if test -n "$ac_config_files"; then
7999  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8000fi
8001
8002if test -n "$ac_config_headers"; then
8003  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8004fi
8005
8006if test -n "$ac_config_links"; then
8007  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8008fi
8009
8010if test -n "$ac_config_commands"; then
8011  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8012fi
8013
8014cat >>$CONFIG_STATUS <<\_ACEOF
8015
8016ac_cs_usage="\
8017\`$as_me' instantiates files from templates according to the
8018current configuration.
8019
8020Usage: $0 [OPTIONS] [FILE]...
8021
8022  -h, --help       print this help, then exit
8023  -V, --version    print version number, then exit
8024  -q, --quiet      do not print progress messages
8025  -d, --debug      don't remove temporary files
8026      --recheck    update $as_me by reconfiguring in the same conditions
8027  --file=FILE[:TEMPLATE]
8028                   instantiate the configuration file FILE
8029  --header=FILE[:TEMPLATE]
8030                   instantiate the configuration header FILE
8031
8032Configuration files:
8033$config_files
8034
8035Configuration headers:
8036$config_headers
8037
8038Configuration commands:
8039$config_commands
8040
8041Report bugs to <bug-autoconf@gnu.org>."
8042_ACEOF
8043
8044cat >>$CONFIG_STATUS <<_ACEOF
8045ac_cs_version="\\
8046orxonox config.status 0.2.1-pre-alpha
8047configured by $0, generated by GNU Autoconf 2.59,
8048  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8049
8050Copyright (C) 2003 Free Software Foundation, Inc.
8051This config.status script is free software; the Free Software Foundation
8052gives unlimited permission to copy, distribute and modify it."
8053srcdir=$srcdir
8054INSTALL="$INSTALL"
8055_ACEOF
8056
8057cat >>$CONFIG_STATUS <<\_ACEOF
8058# If no file are specified by the user, then we need to provide default
8059# value.  By we need to know if files were specified by the user.
8060ac_need_defaults=:
8061while test $# != 0
8062do
8063  case $1 in
8064  --*=*)
8065    ac_option=`expr "x$1" : 'x\([^=]*\)='`
8066    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8067    ac_shift=:
8068    ;;
8069  -*)
8070    ac_option=$1
8071    ac_optarg=$2
8072    ac_shift=shift
8073    ;;
8074  *) # This is not an option, so the user has probably given explicit
8075     # arguments.
8076     ac_option=$1
8077     ac_need_defaults=false;;
8078  esac
8079
8080  case $ac_option in
8081  # Handling of the options.
8082_ACEOF
8083cat >>$CONFIG_STATUS <<\_ACEOF
8084  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8085    ac_cs_recheck=: ;;
8086  --version | --vers* | -V )
8087    echo "$ac_cs_version"; exit 0 ;;
8088  --he | --h)
8089    # Conflict between --help and --header
8090    { { echo "$as_me:$LINENO: error: ambiguous option: $1
8091Try \`$0 --help' for more information." >&5
8092echo "$as_me: error: ambiguous option: $1
8093Try \`$0 --help' for more information." >&2;}
8094   { (exit 1); exit 1; }; };;
8095  --help | --hel | -h )
8096    echo "$ac_cs_usage"; exit 0 ;;
8097  --debug | --d* | -d )
8098    debug=: ;;
8099  --file | --fil | --fi | --f )
8100    $ac_shift
8101    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8102    ac_need_defaults=false;;
8103  --header | --heade | --head | --hea )
8104    $ac_shift
8105    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8106    ac_need_defaults=false;;
8107  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8108  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8109    ac_cs_silent=: ;;
8110
8111  # This is an error.
8112  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8113Try \`$0 --help' for more information." >&5
8114echo "$as_me: error: unrecognized option: $1
8115Try \`$0 --help' for more information." >&2;}
8116   { (exit 1); exit 1; }; } ;;
8117
8118  *) ac_config_targets="$ac_config_targets $1" ;;
8119
8120  esac
8121  shift
8122done
8123
8124ac_configure_extra_args=
8125
8126if $ac_cs_silent; then
8127  exec 6>/dev/null
8128  ac_configure_extra_args="$ac_configure_extra_args --silent"
8129fi
8130
8131_ACEOF
8132cat >>$CONFIG_STATUS <<_ACEOF
8133if \$ac_cs_recheck; then
8134  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8135  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8136fi
8137
8138_ACEOF
8139
8140cat >>$CONFIG_STATUS <<_ACEOF
8141#
8142# INIT-COMMANDS section.
8143#
8144
8145AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8146
8147_ACEOF
8148
8149
8150
8151cat >>$CONFIG_STATUS <<\_ACEOF
8152for ac_config_target in $ac_config_targets
8153do
8154  case "$ac_config_target" in
8155  # Handling of arguments.
8156  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8157  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8158  "src/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/importer/Makefile" ;;
8159  "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
8160  "src/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gui/Makefile" ;;
8161  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8162  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8163  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8164echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8165   { (exit 1); exit 1; }; };;
8166  esac
8167done
8168
8169# If the user did not use the arguments to specify the items to instantiate,
8170# then the envvar interface is used.  Set only those that are not.
8171# We use the long form for the default assignment because of an extremely
8172# bizarre bug on SunOS 4.1.3.
8173if $ac_need_defaults; then
8174  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8175  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8176  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8177fi
8178
8179# Have a temporary directory for convenience.  Make it in the build tree
8180# simply because there is no reason to put it here, and in addition,
8181# creating and moving files from /tmp can sometimes cause problems.
8182# Create a temporary directory, and hook for its removal unless debugging.
8183$debug ||
8184{
8185  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8186  trap '{ (exit 1); exit 1; }' 1 2 13 15
8187}
8188
8189# Create a (secure) tmp directory for tmp files.
8190
8191{
8192  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8193  test -n "$tmp" && test -d "$tmp"
8194}  ||
8195{
8196  tmp=./confstat$$-$RANDOM
8197  (umask 077 && mkdir $tmp)
8198} ||
8199{
8200   echo "$me: cannot create a temporary directory in ." >&2
8201   { (exit 1); exit 1; }
8202}
8203
8204_ACEOF
8205
8206cat >>$CONFIG_STATUS <<_ACEOF
8207
8208#
8209# CONFIG_FILES section.
8210#
8211
8212# No need to generate the scripts if there are no CONFIG_FILES.
8213# This happens for instance when ./config.status config.h
8214if test -n "\$CONFIG_FILES"; then
8215  # Protect against being on the right side of a sed subst in config.status.
8216  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8217   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8218s,@SHELL@,$SHELL,;t t
8219s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8220s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8221s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8222s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8223s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8224s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8225s,@exec_prefix@,$exec_prefix,;t t
8226s,@prefix@,$prefix,;t t
8227s,@program_transform_name@,$program_transform_name,;t t
8228s,@bindir@,$bindir,;t t
8229s,@sbindir@,$sbindir,;t t
8230s,@libexecdir@,$libexecdir,;t t
8231s,@datadir@,$datadir,;t t
8232s,@sysconfdir@,$sysconfdir,;t t
8233s,@sharedstatedir@,$sharedstatedir,;t t
8234s,@localstatedir@,$localstatedir,;t t
8235s,@libdir@,$libdir,;t t
8236s,@includedir@,$includedir,;t t
8237s,@oldincludedir@,$oldincludedir,;t t
8238s,@infodir@,$infodir,;t t
8239s,@mandir@,$mandir,;t t
8240s,@build_alias@,$build_alias,;t t
8241s,@host_alias@,$host_alias,;t t
8242s,@target_alias@,$target_alias,;t t
8243s,@DEFS@,$DEFS,;t t
8244s,@ECHO_C@,$ECHO_C,;t t
8245s,@ECHO_N@,$ECHO_N,;t t
8246s,@ECHO_T@,$ECHO_T,;t t
8247s,@LIBS@,$LIBS,;t t
8248s,@build@,$build,;t t
8249s,@build_cpu@,$build_cpu,;t t
8250s,@build_vendor@,$build_vendor,;t t
8251s,@build_os@,$build_os,;t t
8252s,@host@,$host,;t t
8253s,@host_cpu@,$host_cpu,;t t
8254s,@host_vendor@,$host_vendor,;t t
8255s,@host_os@,$host_os,;t t
8256s,@target@,$target,;t t
8257s,@target_cpu@,$target_cpu,;t t
8258s,@target_vendor@,$target_vendor,;t t
8259s,@target_os@,$target_os,;t t
8260s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8261s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8262s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8263s,@CYGPATH_W@,$CYGPATH_W,;t t
8264s,@PACKAGE@,$PACKAGE,;t t
8265s,@VERSION@,$VERSION,;t t
8266s,@ACLOCAL@,$ACLOCAL,;t t
8267s,@AUTOCONF@,$AUTOCONF,;t t
8268s,@AUTOMAKE@,$AUTOMAKE,;t t
8269s,@AUTOHEADER@,$AUTOHEADER,;t t
8270s,@MAKEINFO@,$MAKEINFO,;t t
8271s,@AMTAR@,$AMTAR,;t t
8272s,@install_sh@,$install_sh,;t t
8273s,@STRIP@,$STRIP,;t t
8274s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8275s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8276s,@mkdir_p@,$mkdir_p,;t t
8277s,@AWK@,$AWK,;t t
8278s,@SET_MAKE@,$SET_MAKE,;t t
8279s,@am__leading_dot@,$am__leading_dot,;t t
8280s,@CXX@,$CXX,;t t
8281s,@CXXFLAGS@,$CXXFLAGS,;t t
8282s,@LDFLAGS@,$LDFLAGS,;t t
8283s,@CPPFLAGS@,$CPPFLAGS,;t t
8284s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8285s,@EXEEXT@,$EXEEXT,;t t
8286s,@OBJEXT@,$OBJEXT,;t t
8287s,@DEPDIR@,$DEPDIR,;t t
8288s,@am__include@,$am__include,;t t
8289s,@am__quote@,$am__quote,;t t
8290s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8291s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8292s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
8293s,@CXXDEPMODE@,$CXXDEPMODE,;t t
8294s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
8295s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
8296s,@CC@,$CC,;t t
8297s,@CFLAGS@,$CFLAGS,;t t
8298s,@ac_ct_CC@,$ac_ct_CC,;t t
8299s,@CCDEPMODE@,$CCDEPMODE,;t t
8300s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
8301s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
8302s,@CPP@,$CPP,;t t
8303s,@EGREP@,$EGREP,;t t
8304s,@DEBUG@,$DEBUG,;t t
8305s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t
8306s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t
8307s,@DOXYGEN@,$DOXYGEN,;t t
8308s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t
8309s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t
8310s,@MSBITFIELDS@,$MSBITFIELDS,;t t
8311s,@GTK2_LIBS@,$GTK2_LIBS,;t t
8312s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
8313s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t
8314s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t
8315s,@LIBOBJS@,$LIBOBJS,;t t
8316s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8317CEOF
8318
8319_ACEOF
8320
8321  cat >>$CONFIG_STATUS <<\_ACEOF
8322  # Split the substitutions into bite-sized pieces for seds with
8323  # small command number limits, like on Digital OSF/1 and HP-UX.
8324  ac_max_sed_lines=48
8325  ac_sed_frag=1 # Number of current file.
8326  ac_beg=1 # First line for current file.
8327  ac_end=$ac_max_sed_lines # Line after last line for current file.
8328  ac_more_lines=:
8329  ac_sed_cmds=
8330  while $ac_more_lines; do
8331    if test $ac_beg -gt 1; then
8332      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8333    else
8334      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8335    fi
8336    if test ! -s $tmp/subs.frag; then
8337      ac_more_lines=false
8338    else
8339      # The purpose of the label and of the branching condition is to
8340      # speed up the sed processing (if there are no `@' at all, there
8341      # is no need to browse any of the substitutions).
8342      # These are the two extra sed commands mentioned above.
8343      (echo ':t
8344  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8345      if test -z "$ac_sed_cmds"; then
8346        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8347      else
8348        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8349      fi
8350      ac_sed_frag=`expr $ac_sed_frag + 1`
8351      ac_beg=$ac_end
8352      ac_end=`expr $ac_end + $ac_max_sed_lines`
8353    fi
8354  done
8355  if test -z "$ac_sed_cmds"; then
8356    ac_sed_cmds=cat
8357  fi
8358fi # test -n "$CONFIG_FILES"
8359
8360_ACEOF
8361cat >>$CONFIG_STATUS <<\_ACEOF
8362for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8363  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8364  case $ac_file in
8365  - | *:- | *:-:* ) # input from stdin
8366        cat >$tmp/stdin
8367        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8368        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8369  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8370        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8371  * )   ac_file_in=$ac_file.in ;;
8372  esac
8373
8374  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8375  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8376$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8377         X"$ac_file" : 'X\(//\)[^/]' \| \
8378         X"$ac_file" : 'X\(//\)$' \| \
8379         X"$ac_file" : 'X\(/\)' \| \
8380         .     : '\(.\)' 2>/dev/null ||
8381echo X"$ac_file" |
8382    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8383          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8384          /^X\(\/\/\)$/{ s//\1/; q; }
8385          /^X\(\/\).*/{ s//\1/; q; }
8386          s/.*/./; q'`
8387  { if $as_mkdir_p; then
8388    mkdir -p "$ac_dir"
8389  else
8390    as_dir="$ac_dir"
8391    as_dirs=
8392    while test ! -d "$as_dir"; do
8393      as_dirs="$as_dir $as_dirs"
8394      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8395$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8396         X"$as_dir" : 'X\(//\)[^/]' \| \
8397         X"$as_dir" : 'X\(//\)$' \| \
8398         X"$as_dir" : 'X\(/\)' \| \
8399         .     : '\(.\)' 2>/dev/null ||
8400echo X"$as_dir" |
8401    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8402          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8403          /^X\(\/\/\)$/{ s//\1/; q; }
8404          /^X\(\/\).*/{ s//\1/; q; }
8405          s/.*/./; q'`
8406    done
8407    test ! -n "$as_dirs" || mkdir $as_dirs
8408  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8409echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8410   { (exit 1); exit 1; }; }; }
8411
8412  ac_builddir=.
8413
8414if test "$ac_dir" != .; then
8415  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8416  # A "../" for each directory in $ac_dir_suffix.
8417  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8418else
8419  ac_dir_suffix= ac_top_builddir=
8420fi
8421
8422case $srcdir in
8423  .)  # No --srcdir option.  We are building in place.
8424    ac_srcdir=.
8425    if test -z "$ac_top_builddir"; then
8426       ac_top_srcdir=.
8427    else
8428       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8429    fi ;;
8430  [\\/]* | ?:[\\/]* )  # Absolute path.
8431    ac_srcdir=$srcdir$ac_dir_suffix;
8432    ac_top_srcdir=$srcdir ;;
8433  *) # Relative path.
8434    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8435    ac_top_srcdir=$ac_top_builddir$srcdir ;;
8436esac
8437
8438# Do not use `cd foo && pwd` to compute absolute paths, because
8439# the directories may not exist.
8440case `pwd` in
8441.) ac_abs_builddir="$ac_dir";;
8442*)
8443  case "$ac_dir" in
8444  .) ac_abs_builddir=`pwd`;;
8445  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8446  *) ac_abs_builddir=`pwd`/"$ac_dir";;
8447  esac;;
8448esac
8449case $ac_abs_builddir in
8450.) ac_abs_top_builddir=${ac_top_builddir}.;;
8451*)
8452  case ${ac_top_builddir}. in
8453  .) ac_abs_top_builddir=$ac_abs_builddir;;
8454  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8455  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8456  esac;;
8457esac
8458case $ac_abs_builddir in
8459.) ac_abs_srcdir=$ac_srcdir;;
8460*)
8461  case $ac_srcdir in
8462  .) ac_abs_srcdir=$ac_abs_builddir;;
8463  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8464  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8465  esac;;
8466esac
8467case $ac_abs_builddir in
8468.) ac_abs_top_srcdir=$ac_top_srcdir;;
8469*)
8470  case $ac_top_srcdir in
8471  .) ac_abs_top_srcdir=$ac_abs_builddir;;
8472  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8473  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8474  esac;;
8475esac
8476
8477
8478  case $INSTALL in
8479  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8480  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8481  esac
8482
8483  if test x"$ac_file" != x-; then
8484    { echo "$as_me:$LINENO: creating $ac_file" >&5
8485echo "$as_me: creating $ac_file" >&6;}
8486    rm -f "$ac_file"
8487  fi
8488  # Let's still pretend it is `configure' which instantiates (i.e., don't
8489  # use $as_me), people would be surprised to read:
8490  #    /* config.h.  Generated by config.status.  */
8491  if test x"$ac_file" = x-; then
8492    configure_input=
8493  else
8494    configure_input="$ac_file.  "
8495  fi
8496  configure_input=$configure_input"Generated from `echo $ac_file_in |
8497                                     sed 's,.*/,,'` by configure."
8498
8499  # First look for the input files in the build tree, otherwise in the
8500  # src tree.
8501  ac_file_inputs=`IFS=:
8502    for f in $ac_file_in; do
8503      case $f in
8504      -) echo $tmp/stdin ;;
8505      [\\/$]*)
8506         # Absolute (can't be DOS-style, as IFS=:)
8507         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8508echo "$as_me: error: cannot find input file: $f" >&2;}
8509   { (exit 1); exit 1; }; }
8510         echo "$f";;
8511      *) # Relative
8512         if test -f "$f"; then
8513           # Build tree
8514           echo "$f"
8515         elif test -f "$srcdir/$f"; then
8516           # Source tree
8517           echo "$srcdir/$f"
8518         else
8519           # /dev/null tree
8520           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8521echo "$as_me: error: cannot find input file: $f" >&2;}
8522   { (exit 1); exit 1; }; }
8523         fi;;
8524      esac
8525    done` || { (exit 1); exit 1; }
8526_ACEOF
8527cat >>$CONFIG_STATUS <<_ACEOF
8528  sed "$ac_vpsub
8529$extrasub
8530_ACEOF
8531cat >>$CONFIG_STATUS <<\_ACEOF
8532:t
8533/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8534s,@configure_input@,$configure_input,;t t
8535s,@srcdir@,$ac_srcdir,;t t
8536s,@abs_srcdir@,$ac_abs_srcdir,;t t
8537s,@top_srcdir@,$ac_top_srcdir,;t t
8538s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8539s,@builddir@,$ac_builddir,;t t
8540s,@abs_builddir@,$ac_abs_builddir,;t t
8541s,@top_builddir@,$ac_top_builddir,;t t
8542s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8543s,@INSTALL@,$ac_INSTALL,;t t
8544" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8545  rm -f $tmp/stdin
8546  if test x"$ac_file" != x-; then
8547    mv $tmp/out $ac_file
8548  else
8549    cat $tmp/out
8550    rm -f $tmp/out
8551  fi
8552
8553done
8554_ACEOF
8555cat >>$CONFIG_STATUS <<\_ACEOF
8556
8557#
8558# CONFIG_HEADER section.
8559#
8560
8561# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8562# NAME is the cpp macro being defined and VALUE is the value it is being given.
8563#
8564# ac_d sets the value in "#define NAME VALUE" lines.
8565ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
8566ac_dB='[         ].*$,\1#\2'
8567ac_dC=' '
8568ac_dD=',;t'
8569# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8570ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8571ac_uB='$,\1#\2define\3'
8572ac_uC=' '
8573ac_uD=',;t'
8574
8575for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8576  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8577  case $ac_file in
8578  - | *:- | *:-:* ) # input from stdin
8579        cat >$tmp/stdin
8580        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8581        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8582  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8583        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8584  * )   ac_file_in=$ac_file.in ;;
8585  esac
8586
8587  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8588echo "$as_me: creating $ac_file" >&6;}
8589
8590  # First look for the input files in the build tree, otherwise in the
8591  # src tree.
8592  ac_file_inputs=`IFS=:
8593    for f in $ac_file_in; do
8594      case $f in
8595      -) echo $tmp/stdin ;;
8596      [\\/$]*)
8597         # Absolute (can't be DOS-style, as IFS=:)
8598         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8599echo "$as_me: error: cannot find input file: $f" >&2;}
8600   { (exit 1); exit 1; }; }
8601         # Do quote $f, to prevent DOS paths from being IFS'd.
8602         echo "$f";;
8603      *) # Relative
8604         if test -f "$f"; then
8605           # Build tree
8606           echo "$f"
8607         elif test -f "$srcdir/$f"; then
8608           # Source tree
8609           echo "$srcdir/$f"
8610         else
8611           # /dev/null tree
8612           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8613echo "$as_me: error: cannot find input file: $f" >&2;}
8614   { (exit 1); exit 1; }; }
8615         fi;;
8616      esac
8617    done` || { (exit 1); exit 1; }
8618  # Remove the trailing spaces.
8619  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
8620
8621_ACEOF
8622
8623# Transform confdefs.h into two sed scripts, `conftest.defines' and
8624# `conftest.undefs', that substitutes the proper values into
8625# config.h.in to produce config.h.  The first handles `#define'
8626# templates, and the second `#undef' templates.
8627# And first: Protect against being on the right side of a sed subst in
8628# config.status.  Protect against being in an unquoted here document
8629# in config.status.
8630rm -f conftest.defines conftest.undefs
8631# Using a here document instead of a string reduces the quoting nightmare.
8632# Putting comments in sed scripts is not portable.
8633#
8634# `end' is used to avoid that the second main sed command (meant for
8635# 0-ary CPP macros) applies to n-ary macro definitions.
8636# See the Autoconf documentation for `clear'.
8637cat >confdef2sed.sed <<\_ACEOF
8638s/[\\&,]/\\&/g
8639s,[\\$`],\\&,g
8640t clear
8641: clear
8642s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8643t end
8644s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8645: end
8646_ACEOF
8647# If some macros were called several times there might be several times
8648# the same #defines, which is useless.  Nevertheless, we may not want to
8649# sort them, since we want the *last* AC-DEFINE to be honored.
8650uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8651sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8652rm -f confdef2sed.sed
8653
8654# This sed command replaces #undef with comments.  This is necessary, for
8655# example, in the case of _POSIX_SOURCE, which is predefined and required
8656# on some systems where configure will not decide to define it.
8657cat >>conftest.undefs <<\_ACEOF
8658s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8659_ACEOF
8660
8661# Break up conftest.defines because some shells have a limit on the size
8662# of here documents, and old seds have small limits too (100 cmds).
8663echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8664echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8665echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8666echo '  :' >>$CONFIG_STATUS
8667rm -f conftest.tail
8668while grep . conftest.defines >/dev/null
8669do
8670  # Write a limited-size here document to $tmp/defines.sed.
8671  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8672  # Speed up: don't consider the non `#define' lines.
8673  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
8674  # Work around the forget-to-reset-the-flag bug.
8675  echo 't clr' >>$CONFIG_STATUS
8676  echo ': clr' >>$CONFIG_STATUS
8677  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8678  echo 'CEOF
8679  sed -f $tmp/defines.sed $tmp/in >$tmp/out
8680  rm -f $tmp/in
8681  mv $tmp/out $tmp/in
8682' >>$CONFIG_STATUS
8683  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8684  rm -f conftest.defines
8685  mv conftest.tail conftest.defines
8686done
8687rm -f conftest.defines
8688echo '  fi # grep' >>$CONFIG_STATUS
8689echo >>$CONFIG_STATUS
8690
8691# Break up conftest.undefs because some shells have a limit on the size
8692# of here documents, and old seds have small limits too (100 cmds).
8693echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
8694rm -f conftest.tail
8695while grep . conftest.undefs >/dev/null
8696do
8697  # Write a limited-size here document to $tmp/undefs.sed.
8698  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8699  # Speed up: don't consider the non `#undef'
8700  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8701  # Work around the forget-to-reset-the-flag bug.
8702  echo 't clr' >>$CONFIG_STATUS
8703  echo ': clr' >>$CONFIG_STATUS
8704  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8705  echo 'CEOF
8706  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8707  rm -f $tmp/in
8708  mv $tmp/out $tmp/in
8709' >>$CONFIG_STATUS
8710  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8711  rm -f conftest.undefs
8712  mv conftest.tail conftest.undefs
8713done
8714rm -f conftest.undefs
8715
8716cat >>$CONFIG_STATUS <<\_ACEOF
8717  # Let's still pretend it is `configure' which instantiates (i.e., don't
8718  # use $as_me), people would be surprised to read:
8719  #    /* config.h.  Generated by config.status.  */
8720  if test x"$ac_file" = x-; then
8721    echo "/* Generated by configure.  */" >$tmp/config.h
8722  else
8723    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
8724  fi
8725  cat $tmp/in >>$tmp/config.h
8726  rm -f $tmp/in
8727  if test x"$ac_file" != x-; then
8728    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8729      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8730echo "$as_me: $ac_file is unchanged" >&6;}
8731    else
8732      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8733$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8734         X"$ac_file" : 'X\(//\)[^/]' \| \
8735         X"$ac_file" : 'X\(//\)$' \| \
8736         X"$ac_file" : 'X\(/\)' \| \
8737         .     : '\(.\)' 2>/dev/null ||
8738echo X"$ac_file" |
8739    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8740          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8741          /^X\(\/\/\)$/{ s//\1/; q; }
8742          /^X\(\/\).*/{ s//\1/; q; }
8743          s/.*/./; q'`
8744      { if $as_mkdir_p; then
8745    mkdir -p "$ac_dir"
8746  else
8747    as_dir="$ac_dir"
8748    as_dirs=
8749    while test ! -d "$as_dir"; do
8750      as_dirs="$as_dir $as_dirs"
8751      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8752$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8753         X"$as_dir" : 'X\(//\)[^/]' \| \
8754         X"$as_dir" : 'X\(//\)$' \| \
8755         X"$as_dir" : 'X\(/\)' \| \
8756         .     : '\(.\)' 2>/dev/null ||
8757echo X"$as_dir" |
8758    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8759          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8760          /^X\(\/\/\)$/{ s//\1/; q; }
8761          /^X\(\/\).*/{ s//\1/; q; }
8762          s/.*/./; q'`
8763    done
8764    test ! -n "$as_dirs" || mkdir $as_dirs
8765  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8766echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8767   { (exit 1); exit 1; }; }; }
8768
8769      rm -f $ac_file
8770      mv $tmp/config.h $ac_file
8771    fi
8772  else
8773    cat $tmp/config.h
8774    rm -f $tmp/config.h
8775  fi
8776# Compute $ac_file's index in $config_headers.
8777_am_stamp_count=1
8778for _am_header in $config_headers :; do
8779  case $_am_header in
8780    $ac_file | $ac_file:* )
8781      break ;;
8782    * )
8783      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8784  esac
8785done
8786echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
8787$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8788         X$ac_file : 'X\(//\)[^/]' \| \
8789         X$ac_file : 'X\(//\)$' \| \
8790         X$ac_file : 'X\(/\)' \| \
8791         .     : '\(.\)' 2>/dev/null ||
8792echo X$ac_file |
8793    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8794          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8795          /^X\(\/\/\)$/{ s//\1/; q; }
8796          /^X\(\/\).*/{ s//\1/; q; }
8797          s/.*/./; q'`/stamp-h$_am_stamp_count
8798done
8799_ACEOF
8800cat >>$CONFIG_STATUS <<\_ACEOF
8801
8802#
8803# CONFIG_COMMANDS section.
8804#
8805for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8806  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8807  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8808  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8809$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8810         X"$ac_dest" : 'X\(//\)[^/]' \| \
8811         X"$ac_dest" : 'X\(//\)$' \| \
8812         X"$ac_dest" : 'X\(/\)' \| \
8813         .     : '\(.\)' 2>/dev/null ||
8814echo X"$ac_dest" |
8815    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8816          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8817          /^X\(\/\/\)$/{ s//\1/; q; }
8818          /^X\(\/\).*/{ s//\1/; q; }
8819          s/.*/./; q'`
8820  { if $as_mkdir_p; then
8821    mkdir -p "$ac_dir"
8822  else
8823    as_dir="$ac_dir"
8824    as_dirs=
8825    while test ! -d "$as_dir"; do
8826      as_dirs="$as_dir $as_dirs"
8827      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8828$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8829         X"$as_dir" : 'X\(//\)[^/]' \| \
8830         X"$as_dir" : 'X\(//\)$' \| \
8831         X"$as_dir" : 'X\(/\)' \| \
8832         .     : '\(.\)' 2>/dev/null ||
8833echo X"$as_dir" |
8834    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8835          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8836          /^X\(\/\/\)$/{ s//\1/; q; }
8837          /^X\(\/\).*/{ s//\1/; q; }
8838          s/.*/./; q'`
8839    done
8840    test ! -n "$as_dirs" || mkdir $as_dirs
8841  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8842echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8843   { (exit 1); exit 1; }; }; }
8844
8845  ac_builddir=.
8846
8847if test "$ac_dir" != .; then
8848  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8849  # A "../" for each directory in $ac_dir_suffix.
8850  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8851else
8852  ac_dir_suffix= ac_top_builddir=
8853fi
8854
8855case $srcdir in
8856  .)  # No --srcdir option.  We are building in place.
8857    ac_srcdir=.
8858    if test -z "$ac_top_builddir"; then
8859       ac_top_srcdir=.
8860    else
8861       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8862    fi ;;
8863  [\\/]* | ?:[\\/]* )  # Absolute path.
8864    ac_srcdir=$srcdir$ac_dir_suffix;
8865    ac_top_srcdir=$srcdir ;;
8866  *) # Relative path.
8867    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8868    ac_top_srcdir=$ac_top_builddir$srcdir ;;
8869esac
8870
8871# Do not use `cd foo && pwd` to compute absolute paths, because
8872# the directories may not exist.
8873case `pwd` in
8874.) ac_abs_builddir="$ac_dir";;
8875*)
8876  case "$ac_dir" in
8877  .) ac_abs_builddir=`pwd`;;
8878  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8879  *) ac_abs_builddir=`pwd`/"$ac_dir";;
8880  esac;;
8881esac
8882case $ac_abs_builddir in
8883.) ac_abs_top_builddir=${ac_top_builddir}.;;
8884*)
8885  case ${ac_top_builddir}. in
8886  .) ac_abs_top_builddir=$ac_abs_builddir;;
8887  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8888  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8889  esac;;
8890esac
8891case $ac_abs_builddir in
8892.) ac_abs_srcdir=$ac_srcdir;;
8893*)
8894  case $ac_srcdir in
8895  .) ac_abs_srcdir=$ac_abs_builddir;;
8896  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8897  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8898  esac;;
8899esac
8900case $ac_abs_builddir in
8901.) ac_abs_top_srcdir=$ac_top_srcdir;;
8902*)
8903  case $ac_top_srcdir in
8904  .) ac_abs_top_srcdir=$ac_abs_builddir;;
8905  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8906  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8907  esac;;
8908esac
8909
8910
8911  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8912echo "$as_me: executing $ac_dest commands" >&6;}
8913  case $ac_dest in
8914    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8915  # Strip MF so we end up with the name of the file.
8916  mf=`echo "$mf" | sed -e 's/:.*$//'`
8917  # Check whether this is an Automake generated Makefile or not.
8918  # We used to match only the files named `Makefile.in', but
8919  # some people rename them; so instead we look at the file content.
8920  # Grep'ing the first line is not enough: some people post-process
8921  # each Makefile.in and add a new line on top of each file to say so.
8922  # So let's grep whole file.
8923  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8924    dirpart=`(dirname "$mf") 2>/dev/null ||
8925$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8926         X"$mf" : 'X\(//\)[^/]' \| \
8927         X"$mf" : 'X\(//\)$' \| \
8928         X"$mf" : 'X\(/\)' \| \
8929         .     : '\(.\)' 2>/dev/null ||
8930echo X"$mf" |
8931    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8932          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8933          /^X\(\/\/\)$/{ s//\1/; q; }
8934          /^X\(\/\).*/{ s//\1/; q; }
8935          s/.*/./; q'`
8936  else
8937    continue
8938  fi
8939  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
8940  # Extract the definition of DEP_FILES from the Makefile without
8941  # running `make'.
8942  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8943  test -z "$DEPDIR" && continue
8944  # When using ansi2knr, U may be empty or an underscore; expand it
8945  U=`sed -n 's/^U = //p' < "$mf"`
8946  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
8947  # We invoke sed twice because it is the simplest approach to
8948  # changing $(DEPDIR) to its actual value in the expansion.
8949  for file in `sed -n '
8950    /^DEP_FILES = .*\\\\$/ {
8951      s/^DEP_FILES = //
8952      :loop
8953        s/\\\\$//
8954        p
8955        n
8956        /\\\\$/ b loop
8957      p
8958    }
8959    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
8960       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8961    # Make sure the directory exists.
8962    test -f "$dirpart/$file" && continue
8963    fdir=`(dirname "$file") 2>/dev/null ||
8964$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8965         X"$file" : 'X\(//\)[^/]' \| \
8966         X"$file" : 'X\(//\)$' \| \
8967         X"$file" : 'X\(/\)' \| \
8968         .     : '\(.\)' 2>/dev/null ||
8969echo X"$file" |
8970    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8971          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8972          /^X\(\/\/\)$/{ s//\1/; q; }
8973          /^X\(\/\).*/{ s//\1/; q; }
8974          s/.*/./; q'`
8975    { if $as_mkdir_p; then
8976    mkdir -p $dirpart/$fdir
8977  else
8978    as_dir=$dirpart/$fdir
8979    as_dirs=
8980    while test ! -d "$as_dir"; do
8981      as_dirs="$as_dir $as_dirs"
8982      as_dir=`(dirname "$as_dir") 2>/dev/null ||
8983$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8984         X"$as_dir" : 'X\(//\)[^/]' \| \
8985         X"$as_dir" : 'X\(//\)$' \| \
8986         X"$as_dir" : 'X\(/\)' \| \
8987         .     : '\(.\)' 2>/dev/null ||
8988echo X"$as_dir" |
8989    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8990          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8991          /^X\(\/\/\)$/{ s//\1/; q; }
8992          /^X\(\/\).*/{ s//\1/; q; }
8993          s/.*/./; q'`
8994    done
8995    test ! -n "$as_dirs" || mkdir $as_dirs
8996  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
8997echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
8998   { (exit 1); exit 1; }; }; }
8999
9000    # echo "creating $dirpart/$file"
9001    echo '# dummy' > "$dirpart/$file"
9002  done
9003done
9004 ;;
9005  esac
9006done
9007_ACEOF
9008
9009cat >>$CONFIG_STATUS <<\_ACEOF
9010
9011{ (exit 0); exit 0; }
9012_ACEOF
9013chmod +x $CONFIG_STATUS
9014ac_clean_files=$ac_clean_files_save
9015
9016
9017# configure is writing to config.log, and then calls config.status.
9018# config.status does its own redirection, appending to config.log.
9019# Unfortunately, on DOS this fails, as config.log is still kept open
9020# by configure, so config.status won't be able to write to it; its
9021# output is simply discarded.  So we exec the FD to /dev/null,
9022# effectively closing config.log, so it can be properly (re)opened and
9023# appended to by config.status.  When coming back to configure, we
9024# need to make the FD available again.
9025if test "$no_create" != yes; then
9026  ac_cs_success=:
9027  ac_config_status_args=
9028  test "$silent" = yes &&
9029    ac_config_status_args="$ac_config_status_args --quiet"
9030  exec 5>/dev/null
9031  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9032  exec 5>>config.log
9033  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9034  # would make configure fail if this is the last instruction.
9035  $ac_cs_success || { (exit 1); exit 1; }
9036fi
9037
Note: See TracBrowser for help on using the repository browser.