Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/branches/images: test also in configure.ac-script.

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