Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/branches/images: test for jpeg and png libs in configure.ac and material.cc/h

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