Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/images/configure @ 3104

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

orxonox/branches/images: better test

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