Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/soundEngine/configure @ 3712

Last change on this file since 3712 was 3508, checked in by bensch, 20 years ago

orxonox/branche/soundManager: added sound_control and it compiles

  • Property svn:executable set to *
File size: 295.6 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for orxonox 0.2.1-pre-alpha.
4#
5# Report bugs to <orxonox-dev at mail.datacore.ch>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70         X"$0" : 'X\(//\)$' \| \
71         X"$0" : 'X\(/\)$' \| \
72         .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75          /^X\/\(\/\/\)$/{ s//\1/; q; }
76          /^X\/\(\/\).*/{ s//\1/; q; }
77          s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138         case $as_dir in
139         /*)
140           if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148             CONFIG_SHELL=$as_dir/$as_base
149             export CONFIG_SHELL
150             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151           fi;;
152         esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='      ' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS="   $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
252
253#
254# Initializations.
255#
256ac_default_prefix=/usr/local
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete.  It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='orxonox'
271PACKAGE_TARNAME='orxonox'
272PACKAGE_VERSION='0.2.1-pre-alpha'
273PACKAGE_STRING='orxonox 0.2.1-pre-alpha'
274PACKAGE_BUGREPORT='orxonox-dev at mail.datacore.ch'
275
276ac_unique_file="."
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291#  include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296#  include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307#  include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
313
314ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP DEBUG SUB_PROJECTS_TRUE SUB_PROJECTS_FALSE DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE MSBITFIELDS GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE GTHREAD_LIBS GTHREAD_CFLAGS HAVE_GTHREAD_TRUE HAVE_GTHREAD_FALSE CURL_LIBS CURL_CFLAGS HAVE_CURL_TRUE HAVE_CURL_FALSE LIBOBJS LTLIBOBJS'
315ac_subst_files=''
316
317# Initialize some variables set by options.
318ac_init_help=
319ac_init_version=false
320# The variables have the same names as the options, with
321# dashes changed to underlines.
322cache_file=/dev/null
323exec_prefix=NONE
324no_create=
325no_recursion=
326prefix=NONE
327program_prefix=NONE
328program_suffix=NONE
329program_transform_name=s,x,x,
330silent=
331site=
332srcdir=
333verbose=
334x_includes=NONE
335x_libraries=NONE
336
337# Installation directory options.
338# These are left unexpanded so users can "make install exec_prefix=/foo"
339# and all the variables that are supposed to be based on exec_prefix
340# by default will actually change.
341# Use braces instead of parens because sh, perl, etc. also accept them.
342bindir='${exec_prefix}/bin'
343sbindir='${exec_prefix}/sbin'
344libexecdir='${exec_prefix}/libexec'
345datadir='${prefix}/share'
346sysconfdir='${prefix}/etc'
347sharedstatedir='${prefix}/com'
348localstatedir='${prefix}/var'
349libdir='${exec_prefix}/lib'
350includedir='${prefix}/include'
351oldincludedir='/usr/include'
352infodir='${prefix}/info'
353mandir='${prefix}/man'
354
355ac_prev=
356for ac_option
357do
358  # If the previous option needs an argument, assign it.
359  if test -n "$ac_prev"; then
360    eval "$ac_prev=\$ac_option"
361    ac_prev=
362    continue
363  fi
364
365  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367  # Accept the important Cygnus configure options, so we can diagnose typos.
368
369  case $ac_option in
370
371  -bindir | --bindir | --bindi | --bind | --bin | --bi)
372    ac_prev=bindir ;;
373  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374    bindir=$ac_optarg ;;
375
376  -build | --build | --buil | --bui | --bu)
377    ac_prev=build_alias ;;
378  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379    build_alias=$ac_optarg ;;
380
381  -cache-file | --cache-file | --cache-fil | --cache-fi \
382  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383    ac_prev=cache_file ;;
384  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386    cache_file=$ac_optarg ;;
387
388  --config-cache | -C)
389    cache_file=config.cache ;;
390
391  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392    ac_prev=datadir ;;
393  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394  | --da=*)
395    datadir=$ac_optarg ;;
396
397  -disable-* | --disable-*)
398    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399    # Reject names that are not valid shell variable names.
400    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402   { (exit 1); exit 1; }; }
403    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404    eval "enable_$ac_feature=no" ;;
405
406  -enable-* | --enable-*)
407    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408    # Reject names that are not valid shell variable names.
409    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411   { (exit 1); exit 1; }; }
412    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413    case $ac_option in
414      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415      *) ac_optarg=yes ;;
416    esac
417    eval "enable_$ac_feature='$ac_optarg'" ;;
418
419  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421  | --exec | --exe | --ex)
422    ac_prev=exec_prefix ;;
423  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425  | --exec=* | --exe=* | --ex=*)
426    exec_prefix=$ac_optarg ;;
427
428  -gas | --gas | --ga | --g)
429    # Obsolete; use --with-gas.
430    with_gas=yes ;;
431
432  -help | --help | --hel | --he | -h)
433    ac_init_help=long ;;
434  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435    ac_init_help=recursive ;;
436  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437    ac_init_help=short ;;
438
439  -host | --host | --hos | --ho)
440    ac_prev=host_alias ;;
441  -host=* | --host=* | --hos=* | --ho=*)
442    host_alias=$ac_optarg ;;
443
444  -includedir | --includedir | --includedi | --included | --include \
445  | --includ | --inclu | --incl | --inc)
446    ac_prev=includedir ;;
447  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448  | --includ=* | --inclu=* | --incl=* | --inc=*)
449    includedir=$ac_optarg ;;
450
451  -infodir | --infodir | --infodi | --infod | --info | --inf)
452    ac_prev=infodir ;;
453  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454    infodir=$ac_optarg ;;
455
456  -libdir | --libdir | --libdi | --libd)
457    ac_prev=libdir ;;
458  -libdir=* | --libdir=* | --libdi=* | --libd=*)
459    libdir=$ac_optarg ;;
460
461  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462  | --libexe | --libex | --libe)
463    ac_prev=libexecdir ;;
464  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465  | --libexe=* | --libex=* | --libe=*)
466    libexecdir=$ac_optarg ;;
467
468  -localstatedir | --localstatedir | --localstatedi | --localstated \
469  | --localstate | --localstat | --localsta | --localst \
470  | --locals | --local | --loca | --loc | --lo)
471    ac_prev=localstatedir ;;
472  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475    localstatedir=$ac_optarg ;;
476
477  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478    ac_prev=mandir ;;
479  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480    mandir=$ac_optarg ;;
481
482  -nfp | --nfp | --nf)
483    # Obsolete; use --without-fp.
484    with_fp=no ;;
485
486  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487  | --no-cr | --no-c | -n)
488    no_create=yes ;;
489
490  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492    no_recursion=yes ;;
493
494  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496  | --oldin | --oldi | --old | --ol | --o)
497    ac_prev=oldincludedir ;;
498  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501    oldincludedir=$ac_optarg ;;
502
503  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504    ac_prev=prefix ;;
505  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506    prefix=$ac_optarg ;;
507
508  -program-prefix | --program-prefix | --program-prefi | --program-pref \
509  | --program-pre | --program-pr | --program-p)
510    ac_prev=program_prefix ;;
511  -program-prefix=* | --program-prefix=* | --program-prefi=* \
512  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513    program_prefix=$ac_optarg ;;
514
515  -program-suffix | --program-suffix | --program-suffi | --program-suff \
516  | --program-suf | --program-su | --program-s)
517    ac_prev=program_suffix ;;
518  -program-suffix=* | --program-suffix=* | --program-suffi=* \
519  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520    program_suffix=$ac_optarg ;;
521
522  -program-transform-name | --program-transform-name \
523  | --program-transform-nam | --program-transform-na \
524  | --program-transform-n | --program-transform- \
525  | --program-transform | --program-transfor \
526  | --program-transfo | --program-transf \
527  | --program-trans | --program-tran \
528  | --progr-tra | --program-tr | --program-t)
529    ac_prev=program_transform_name ;;
530  -program-transform-name=* | --program-transform-name=* \
531  | --program-transform-nam=* | --program-transform-na=* \
532  | --program-transform-n=* | --program-transform-=* \
533  | --program-transform=* | --program-transfor=* \
534  | --program-transfo=* | --program-transf=* \
535  | --program-trans=* | --program-tran=* \
536  | --progr-tra=* | --program-tr=* | --program-t=*)
537    program_transform_name=$ac_optarg ;;
538
539  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540  | -silent | --silent | --silen | --sile | --sil)
541    silent=yes ;;
542
543  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544    ac_prev=sbindir ;;
545  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546  | --sbi=* | --sb=*)
547    sbindir=$ac_optarg ;;
548
549  -sharedstatedir | --sharedstatedir | --sharedstatedi \
550  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551  | --sharedst | --shareds | --shared | --share | --shar \
552  | --sha | --sh)
553    ac_prev=sharedstatedir ;;
554  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557  | --sha=* | --sh=*)
558    sharedstatedir=$ac_optarg ;;
559
560  -site | --site | --sit)
561    ac_prev=site ;;
562  -site=* | --site=* | --sit=*)
563    site=$ac_optarg ;;
564
565  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566    ac_prev=srcdir ;;
567  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568    srcdir=$ac_optarg ;;
569
570  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571  | --syscon | --sysco | --sysc | --sys | --sy)
572    ac_prev=sysconfdir ;;
573  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575    sysconfdir=$ac_optarg ;;
576
577  -target | --target | --targe | --targ | --tar | --ta | --t)
578    ac_prev=target_alias ;;
579  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580    target_alias=$ac_optarg ;;
581
582  -v | -verbose | --verbose | --verbos | --verbo | --verb)
583    verbose=yes ;;
584
585  -version | --version | --versio | --versi | --vers | -V)
586    ac_init_version=: ;;
587
588  -with-* | --with-*)
589    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590    # Reject names that are not valid shell variable names.
591    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592      { echo "$as_me: error: invalid package name: $ac_package" >&2
593   { (exit 1); exit 1; }; }
594    ac_package=`echo $ac_package| sed 's/-/_/g'`
595    case $ac_option in
596      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597      *) ac_optarg=yes ;;
598    esac
599    eval "with_$ac_package='$ac_optarg'" ;;
600
601  -without-* | --without-*)
602    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603    # Reject names that are not valid shell variable names.
604    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605      { echo "$as_me: error: invalid package name: $ac_package" >&2
606   { (exit 1); exit 1; }; }
607    ac_package=`echo $ac_package | sed 's/-/_/g'`
608    eval "with_$ac_package=no" ;;
609
610  --x)
611    # Obsolete; use --with-x.
612    with_x=yes ;;
613
614  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615  | --x-incl | --x-inc | --x-in | --x-i)
616    ac_prev=x_includes ;;
617  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619    x_includes=$ac_optarg ;;
620
621  -x-libraries | --x-libraries | --x-librarie | --x-librari \
622  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623    ac_prev=x_libraries ;;
624  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626    x_libraries=$ac_optarg ;;
627
628  -*) { echo "$as_me: error: unrecognized option: $ac_option
629Try \`$0 --help' for more information." >&2
630   { (exit 1); exit 1; }; }
631    ;;
632
633  *=*)
634    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635    # Reject names that are not valid shell variable names.
636    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638   { (exit 1); exit 1; }; }
639    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640    eval "$ac_envvar='$ac_optarg'"
641    export $ac_envvar ;;
642
643  *)
644    # FIXME: should be removed in autoconf 3.0.
645    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649    ;;
650
651  esac
652done
653
654if test -n "$ac_prev"; then
655  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656  { echo "$as_me: error: missing argument to $ac_option" >&2
657   { (exit 1); exit 1; }; }
658fi
659
660# Be sure to have absolute paths.
661for ac_var in exec_prefix prefix
662do
663  eval ac_val=$`echo $ac_var`
664  case $ac_val in
665    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667   { (exit 1); exit 1; }; };;
668  esac
669done
670
671# Be sure to have absolute paths.
672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673              localstatedir libdir includedir oldincludedir infodir mandir
674do
675  eval ac_val=$`echo $ac_var`
676  case $ac_val in
677    [\\/$]* | ?:[\\/]* ) ;;
678    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679   { (exit 1); exit 1; }; };;
680  esac
681done
682
683# There might be people who depend on the old broken behavior: `$host'
684# used to hold the argument of --host etc.
685# FIXME: To remove some day.
686build=$build_alias
687host=$host_alias
688target=$target_alias
689
690# FIXME: To remove some day.
691if test "x$host_alias" != x; then
692  if test "x$build_alias" = x; then
693    cross_compiling=maybe
694    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695    If a cross compiler is detected then cross compile mode will be used." >&2
696  elif test "x$build_alias" != "x$host_alias"; then
697    cross_compiling=yes
698  fi
699fi
700
701ac_tool_prefix=
702test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704test "$silent" = yes && exec 6>/dev/null
705
706
707# Find the source files, if location was not specified.
708if test -z "$srcdir"; then
709  ac_srcdir_defaulted=yes
710  # Try the directory containing this script, then its parent.
711  ac_confdir=`(dirname "$0") 2>/dev/null ||
712$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713         X"$0" : 'X\(//\)[^/]' \| \
714         X"$0" : 'X\(//\)$' \| \
715         X"$0" : 'X\(/\)' \| \
716         .     : '\(.\)' 2>/dev/null ||
717echo X"$0" |
718    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720          /^X\(\/\/\)$/{ s//\1/; q; }
721          /^X\(\/\).*/{ s//\1/; q; }
722          s/.*/./; q'`
723  srcdir=$ac_confdir
724  if test ! -r $srcdir/$ac_unique_file; then
725    srcdir=..
726  fi
727else
728  ac_srcdir_defaulted=no
729fi
730if test ! -r $srcdir/$ac_unique_file; then
731  if test "$ac_srcdir_defaulted" = yes; then
732    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733   { (exit 1); exit 1; }; }
734  else
735    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736   { (exit 1); exit 1; }; }
737  fi
738fi
739(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741   { (exit 1); exit 1; }; }
742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743ac_env_build_alias_set=${build_alias+set}
744ac_env_build_alias_value=$build_alias
745ac_cv_env_build_alias_set=${build_alias+set}
746ac_cv_env_build_alias_value=$build_alias
747ac_env_host_alias_set=${host_alias+set}
748ac_env_host_alias_value=$host_alias
749ac_cv_env_host_alias_set=${host_alias+set}
750ac_cv_env_host_alias_value=$host_alias
751ac_env_target_alias_set=${target_alias+set}
752ac_env_target_alias_value=$target_alias
753ac_cv_env_target_alias_set=${target_alias+set}
754ac_cv_env_target_alias_value=$target_alias
755ac_env_CXX_set=${CXX+set}
756ac_env_CXX_value=$CXX
757ac_cv_env_CXX_set=${CXX+set}
758ac_cv_env_CXX_value=$CXX
759ac_env_CXXFLAGS_set=${CXXFLAGS+set}
760ac_env_CXXFLAGS_value=$CXXFLAGS
761ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
762ac_cv_env_CXXFLAGS_value=$CXXFLAGS
763ac_env_LDFLAGS_set=${LDFLAGS+set}
764ac_env_LDFLAGS_value=$LDFLAGS
765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766ac_cv_env_LDFLAGS_value=$LDFLAGS
767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_env_CPPFLAGS_value=$CPPFLAGS
769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771ac_env_CC_set=${CC+set}
772ac_env_CC_value=$CC
773ac_cv_env_CC_set=${CC+set}
774ac_cv_env_CC_value=$CC
775ac_env_CFLAGS_set=${CFLAGS+set}
776ac_env_CFLAGS_value=$CFLAGS
777ac_cv_env_CFLAGS_set=${CFLAGS+set}
778ac_cv_env_CFLAGS_value=$CFLAGS
779ac_env_CPP_set=${CPP+set}
780ac_env_CPP_value=$CPP
781ac_cv_env_CPP_set=${CPP+set}
782ac_cv_env_CPP_value=$CPP
783
784#
785# Report the --help message.
786#
787if test "$ac_init_help" = "long"; then
788  # Omit some internal or obsolete options to make the list less imposing.
789  # This message is too long to be a string in the A/UX 3.1 sh.
790  cat <<_ACEOF
791\`configure' configures orxonox 0.2.1-pre-alpha to adapt to many kinds of systems.
792
793Usage: $0 [OPTION]... [VAR=VALUE]...
794
795To assign environment variables (e.g., CC, CFLAGS...), specify them as
796VAR=VALUE.  See below for descriptions of some of the useful variables.
797
798Defaults for the options are specified in brackets.
799
800Configuration:
801  -h, --help              display this help and exit
802      --help=short        display options specific to this package
803      --help=recursive    display the short help of all the included packages
804  -V, --version           display version information and exit
805  -q, --quiet, --silent   do not print \`checking...' messages
806      --cache-file=FILE   cache test results in FILE [disabled]
807  -C, --config-cache      alias for \`--cache-file=config.cache'
808  -n, --no-create         do not create output files
809      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
810
811_ACEOF
812
813  cat <<_ACEOF
814Installation directories:
815  --prefix=PREFIX         install architecture-independent files in PREFIX
816                          [$ac_default_prefix]
817  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
818                          [PREFIX]
819
820By default, \`make install' will install all the files in
821\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
822an installation prefix other than \`$ac_default_prefix' using \`--prefix',
823for instance \`--prefix=\$HOME'.
824
825For better control, use the options below.
826
827Fine tuning of the installation directories:
828  --bindir=DIR           user executables [EPREFIX/bin]
829  --sbindir=DIR          system admin executables [EPREFIX/sbin]
830  --libexecdir=DIR       program executables [EPREFIX/libexec]
831  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
832  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
833  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
834  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
835  --libdir=DIR           object code libraries [EPREFIX/lib]
836  --includedir=DIR       C header files [PREFIX/include]
837  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
838  --infodir=DIR          info documentation [PREFIX/info]
839  --mandir=DIR           man documentation [PREFIX/man]
840_ACEOF
841
842  cat <<\_ACEOF
843
844Program names:
845  --program-prefix=PREFIX            prepend PREFIX to installed program names
846  --program-suffix=SUFFIX            append SUFFIX to installed program names
847  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
848
849System types:
850  --build=BUILD     configure for building on BUILD [guessed]
851  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
852  --target=TARGET   configure for building compilers for TARGET [HOST]
853_ACEOF
854fi
855
856if test -n "$ac_init_help"; then
857  case $ac_init_help in
858     short | recursive ) echo "Configuration of orxonox 0.2.1-pre-alpha:";;
859   esac
860  cat <<\_ACEOF
861
862Optional Features:
863  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
864  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
865  --disable-dependency-tracking  speeds up one-time build
866  --enable-dependency-tracking   do not reject slow dependency extractors
867  --enable-debug          compiles in debug mode. Lots of debug info about the
868                          game.
869  --enable-sub-projects   also builds the subProjects while make from srcdir
870
871Optional Packages:
872  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
873  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
874  --without-gtk           Prevents GTK from being loaded
875  --without-gthread       Prevents gThread from being loaded
876  --without-pthread       Prevents pthread from being loaded
877  --without-curl          Prevents libcURL from being loaded
878  --without-sdl-image     Prevents SDL_image from being loaded
879
880Some influential environment variables:
881  CXX         C++ compiler command
882  CXXFLAGS    C++ compiler flags
883  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
884              nonstandard directory <lib dir>
885  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
886              headers in a nonstandard directory <include dir>
887  CC          C compiler command
888  CFLAGS      C compiler flags
889  CPP         C preprocessor
890
891Use these variables to override the choices made by `configure' or to help
892it to find libraries and programs with nonstandard names/locations.
893
894Report bugs to <orxonox-dev at mail.datacore.ch>.
895_ACEOF
896fi
897
898if test "$ac_init_help" = "recursive"; then
899  # If there are subdirs, report their specific --help.
900  ac_popdir=`pwd`
901  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
902    test -d $ac_dir || continue
903    ac_builddir=.
904
905if test "$ac_dir" != .; then
906  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
907  # A "../" for each directory in $ac_dir_suffix.
908  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
909else
910  ac_dir_suffix= ac_top_builddir=
911fi
912
913case $srcdir in
914  .)  # No --srcdir option.  We are building in place.
915    ac_srcdir=.
916    if test -z "$ac_top_builddir"; then
917       ac_top_srcdir=.
918    else
919       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
920    fi ;;
921  [\\/]* | ?:[\\/]* )  # Absolute path.
922    ac_srcdir=$srcdir$ac_dir_suffix;
923    ac_top_srcdir=$srcdir ;;
924  *) # Relative path.
925    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
926    ac_top_srcdir=$ac_top_builddir$srcdir ;;
927esac
928
929# Do not use `cd foo && pwd` to compute absolute paths, because
930# the directories may not exist.
931case `pwd` in
932.) ac_abs_builddir="$ac_dir";;
933*)
934  case "$ac_dir" in
935  .) ac_abs_builddir=`pwd`;;
936  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
937  *) ac_abs_builddir=`pwd`/"$ac_dir";;
938  esac;;
939esac
940case $ac_abs_builddir in
941.) ac_abs_top_builddir=${ac_top_builddir}.;;
942*)
943  case ${ac_top_builddir}. in
944  .) ac_abs_top_builddir=$ac_abs_builddir;;
945  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
946  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
947  esac;;
948esac
949case $ac_abs_builddir in
950.) ac_abs_srcdir=$ac_srcdir;;
951*)
952  case $ac_srcdir in
953  .) ac_abs_srcdir=$ac_abs_builddir;;
954  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
955  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
956  esac;;
957esac
958case $ac_abs_builddir in
959.) ac_abs_top_srcdir=$ac_top_srcdir;;
960*)
961  case $ac_top_srcdir in
962  .) ac_abs_top_srcdir=$ac_abs_builddir;;
963  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
964  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
965  esac;;
966esac
967
968    cd $ac_dir
969    # Check for guested configure; otherwise get Cygnus style configure.
970    if test -f $ac_srcdir/configure.gnu; then
971      echo
972      $SHELL $ac_srcdir/configure.gnu  --help=recursive
973    elif test -f $ac_srcdir/configure; then
974      echo
975      $SHELL $ac_srcdir/configure  --help=recursive
976    elif test -f $ac_srcdir/configure.ac ||
977           test -f $ac_srcdir/configure.in; then
978      echo
979      $ac_configure --help
980    else
981      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
982    fi
983    cd $ac_popdir
984  done
985fi
986
987test -n "$ac_init_help" && exit 0
988if $ac_init_version; then
989  cat <<\_ACEOF
990orxonox configure 0.2.1-pre-alpha
991generated by GNU Autoconf 2.59
992
993Copyright (C) 2003 Free Software Foundation, Inc.
994This configure script is free software; the Free Software Foundation
995gives unlimited permission to copy, distribute and modify it.
996_ACEOF
997  exit 0
998fi
999exec 5>config.log
1000cat >&5 <<_ACEOF
1001This file contains any messages produced by compilers while
1002running configure, to aid debugging if configure makes a mistake.
1003
1004It was created by orxonox $as_me 0.2.1-pre-alpha, which was
1005generated by GNU Autoconf 2.59.  Invocation command line was
1006
1007  $ $0 $@
1008
1009_ACEOF
1010{
1011cat <<_ASUNAME
1012## --------- ##
1013## Platform. ##
1014## --------- ##
1015
1016hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1017uname -m = `(uname -m) 2>/dev/null || echo unknown`
1018uname -r = `(uname -r) 2>/dev/null || echo unknown`
1019uname -s = `(uname -s) 2>/dev/null || echo unknown`
1020uname -v = `(uname -v) 2>/dev/null || echo unknown`
1021
1022/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1023/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1024
1025/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1026/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1027/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1028hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1029/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1030/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1031/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1032
1033_ASUNAME
1034
1035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1036for as_dir in $PATH
1037do
1038  IFS=$as_save_IFS
1039  test -z "$as_dir" && as_dir=.
1040  echo "PATH: $as_dir"
1041done
1042
1043} >&5
1044
1045cat >&5 <<_ACEOF
1046
1047
1048## ----------- ##
1049## Core tests. ##
1050## ----------- ##
1051
1052_ACEOF
1053
1054
1055# Keep a trace of the command line.
1056# Strip out --no-create and --no-recursion so they do not pile up.
1057# Strip out --silent because we don't want to record it for future runs.
1058# Also quote any args containing shell meta-characters.
1059# Make two passes to allow for proper duplicate-argument suppression.
1060ac_configure_args=
1061ac_configure_args0=
1062ac_configure_args1=
1063ac_sep=
1064ac_must_keep_next=false
1065for ac_pass in 1 2
1066do
1067  for ac_arg
1068  do
1069    case $ac_arg in
1070    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1071    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072    | -silent | --silent | --silen | --sile | --sil)
1073      continue ;;
1074    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1075      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1076    esac
1077    case $ac_pass in
1078    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079    2)
1080      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1081      if test $ac_must_keep_next = true; then
1082        ac_must_keep_next=false # Got value, back to normal.
1083      else
1084        case $ac_arg in
1085          *=* | --config-cache | -C | -disable-* | --disable-* \
1086          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1087          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1088          | -with-* | --with-* | -without-* | --without-* | --x)
1089            case "$ac_configure_args0 " in
1090              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1091            esac
1092            ;;
1093          -* ) ac_must_keep_next=true ;;
1094        esac
1095      fi
1096      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1097      # Get rid of the leading space.
1098      ac_sep=" "
1099      ;;
1100    esac
1101  done
1102done
1103$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1104$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105
1106# When interrupted or exit'd, cleanup temporary files, and complete
1107# config.log.  We remove comments because anyway the quotes in there
1108# would cause problems or look ugly.
1109# WARNING: Be sure not to use single quotes in there, as some shells,
1110# such as our DU 5.0 friend, will then `close' the trap.
1111trap 'exit_status=$?
1112  # Save into config.log some information that might help in debugging.
1113  {
1114    echo
1115
1116    cat <<\_ASBOX
1117## ---------------- ##
1118## Cache variables. ##
1119## ---------------- ##
1120_ASBOX
1121    echo
1122    # The following way of writing the cache mishandles newlines in values,
1123{
1124  (set) 2>&1 |
1125    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1126    *ac_space=\ *)
1127      sed -n \
1128        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1129          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1130      ;;
1131    *)
1132      sed -n \
1133        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1134      ;;
1135    esac;
1136}
1137    echo
1138
1139    cat <<\_ASBOX
1140## ----------------- ##
1141## Output variables. ##
1142## ----------------- ##
1143_ASBOX
1144    echo
1145    for ac_var in $ac_subst_vars
1146    do
1147      eval ac_val=$`echo $ac_var`
1148      echo "$ac_var='"'"'$ac_val'"'"'"
1149    done | sort
1150    echo
1151
1152    if test -n "$ac_subst_files"; then
1153      cat <<\_ASBOX
1154## ------------- ##
1155## Output files. ##
1156## ------------- ##
1157_ASBOX
1158      echo
1159      for ac_var in $ac_subst_files
1160      do
1161        eval ac_val=$`echo $ac_var`
1162        echo "$ac_var='"'"'$ac_val'"'"'"
1163      done | sort
1164      echo
1165    fi
1166
1167    if test -s confdefs.h; then
1168      cat <<\_ASBOX
1169## ----------- ##
1170## confdefs.h. ##
1171## ----------- ##
1172_ASBOX
1173      echo
1174      sed "/^$/d" confdefs.h | sort
1175      echo
1176    fi
1177    test "$ac_signal" != 0 &&
1178      echo "$as_me: caught signal $ac_signal"
1179    echo "$as_me: exit $exit_status"
1180  } >&5
1181  rm -f core *.core &&
1182  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1183    exit $exit_status
1184     ' 0
1185for ac_signal in 1 2 13 15; do
1186  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1187done
1188ac_signal=0
1189
1190# confdefs.h avoids OS command line length limits that DEFS can exceed.
1191rm -rf conftest* confdefs.h
1192# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1193echo >confdefs.h
1194
1195# Predefined preprocessor variables.
1196
1197cat >>confdefs.h <<_ACEOF
1198#define PACKAGE_NAME "$PACKAGE_NAME"
1199_ACEOF
1200
1201
1202cat >>confdefs.h <<_ACEOF
1203#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1204_ACEOF
1205
1206
1207cat >>confdefs.h <<_ACEOF
1208#define PACKAGE_VERSION "$PACKAGE_VERSION"
1209_ACEOF
1210
1211
1212cat >>confdefs.h <<_ACEOF
1213#define PACKAGE_STRING "$PACKAGE_STRING"
1214_ACEOF
1215
1216
1217cat >>confdefs.h <<_ACEOF
1218#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1219_ACEOF
1220
1221
1222# Let the site file select an alternate cache file if it wants to.
1223# Prefer explicitly selected file to automatically selected ones.
1224if test -z "$CONFIG_SITE"; then
1225  if test "x$prefix" != xNONE; then
1226    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1227  else
1228    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1229  fi
1230fi
1231for ac_site_file in $CONFIG_SITE; do
1232  if test -r "$ac_site_file"; then
1233    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1234echo "$as_me: loading site script $ac_site_file" >&6;}
1235    sed 's/^/| /' "$ac_site_file" >&5
1236    . "$ac_site_file"
1237  fi
1238done
1239
1240if test -r "$cache_file"; then
1241  # Some versions of bash will fail to source /dev/null (special
1242  # files actually), so we avoid doing that.
1243  if test -f "$cache_file"; then
1244    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1245echo "$as_me: loading cache $cache_file" >&6;}
1246    case $cache_file in
1247      [\\/]* | ?:[\\/]* ) . $cache_file;;
1248      *)                      . ./$cache_file;;
1249    esac
1250  fi
1251else
1252  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1253echo "$as_me: creating cache $cache_file" >&6;}
1254  >$cache_file
1255fi
1256
1257# Check that the precious variables saved in the cache have kept the same
1258# value.
1259ac_cache_corrupted=false
1260for ac_var in `(set) 2>&1 |
1261               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1262  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1263  eval ac_new_set=\$ac_env_${ac_var}_set
1264  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1265  eval ac_new_val="\$ac_env_${ac_var}_value"
1266  case $ac_old_set,$ac_new_set in
1267    set,)
1268      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1269echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1270      ac_cache_corrupted=: ;;
1271    ,set)
1272      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1273echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1274      ac_cache_corrupted=: ;;
1275    ,);;
1276    *)
1277      if test "x$ac_old_val" != "x$ac_new_val"; then
1278        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1279echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1280        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1281echo "$as_me:   former value:  $ac_old_val" >&2;}
1282        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1283echo "$as_me:   current value: $ac_new_val" >&2;}
1284        ac_cache_corrupted=:
1285      fi;;
1286  esac
1287  # Pass precious variables to config.status.
1288  if test "$ac_new_set" = set; then
1289    case $ac_new_val in
1290    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1292    *) ac_arg=$ac_var=$ac_new_val ;;
1293    esac
1294    case " $ac_configure_args " in
1295      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1296      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1297    esac
1298  fi
1299done
1300if $ac_cache_corrupted; then
1301  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1302echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1303  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1304echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1305   { (exit 1); exit 1; }; }
1306fi
1307
1308ac_ext=c
1309ac_cpp='$CPP $CPPFLAGS'
1310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1312ac_compiler_gnu=$ac_cv_c_compiler_gnu
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341## Detect the canonical host and target build environment.
1342ac_aux_dir=
1343for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1344  if test -f $ac_dir/install-sh; then
1345    ac_aux_dir=$ac_dir
1346    ac_install_sh="$ac_aux_dir/install-sh -c"
1347    break
1348  elif test -f $ac_dir/install.sh; then
1349    ac_aux_dir=$ac_dir
1350    ac_install_sh="$ac_aux_dir/install.sh -c"
1351    break
1352  elif test -f $ac_dir/shtool; then
1353    ac_aux_dir=$ac_dir
1354    ac_install_sh="$ac_aux_dir/shtool install -c"
1355    break
1356  fi
1357done
1358if test -z "$ac_aux_dir"; then
1359  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1360echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1361   { (exit 1); exit 1; }; }
1362fi
1363ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1364ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1365ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1366
1367# Make sure we can run config.sub.
1368$ac_config_sub sun4 >/dev/null 2>&1 ||
1369  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1370echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1371   { (exit 1); exit 1; }; }
1372
1373echo "$as_me:$LINENO: checking build system type" >&5
1374echo $ECHO_N "checking build system type... $ECHO_C" >&6
1375if test "${ac_cv_build+set}" = set; then
1376  echo $ECHO_N "(cached) $ECHO_C" >&6
1377else
1378  ac_cv_build_alias=$build_alias
1379test -z "$ac_cv_build_alias" &&
1380  ac_cv_build_alias=`$ac_config_guess`
1381test -z "$ac_cv_build_alias" &&
1382  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1383echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1384   { (exit 1); exit 1; }; }
1385ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1386  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1387echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1388   { (exit 1); exit 1; }; }
1389
1390fi
1391echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1392echo "${ECHO_T}$ac_cv_build" >&6
1393build=$ac_cv_build
1394build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1395build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1396build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1397
1398
1399echo "$as_me:$LINENO: checking host system type" >&5
1400echo $ECHO_N "checking host system type... $ECHO_C" >&6
1401if test "${ac_cv_host+set}" = set; then
1402  echo $ECHO_N "(cached) $ECHO_C" >&6
1403else
1404  ac_cv_host_alias=$host_alias
1405test -z "$ac_cv_host_alias" &&
1406  ac_cv_host_alias=$ac_cv_build_alias
1407ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1408  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1409echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1410   { (exit 1); exit 1; }; }
1411
1412fi
1413echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1414echo "${ECHO_T}$ac_cv_host" >&6
1415host=$ac_cv_host
1416host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1417host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1418host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1419
1420
1421echo "$as_me:$LINENO: checking target system type" >&5
1422echo $ECHO_N "checking target system type... $ECHO_C" >&6
1423if test "${ac_cv_target+set}" = set; then
1424  echo $ECHO_N "(cached) $ECHO_C" >&6
1425else
1426  ac_cv_target_alias=$target_alias
1427test "x$ac_cv_target_alias" = "x" &&
1428  ac_cv_target_alias=$ac_cv_host_alias
1429ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1430  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1431echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1432   { (exit 1); exit 1; }; }
1433
1434fi
1435echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1436echo "${ECHO_T}$ac_cv_target" >&6
1437target=$ac_cv_target
1438target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1439target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1440target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1441
1442
1443# The aliases save the names the user supplied, while $host etc.
1444# will get canonicalized.
1445test -n "$target_alias" &&
1446  test "$program_prefix$program_suffix$program_transform_name" = \
1447    NONENONEs,x,x, &&
1448  program_prefix=${target_alias}-
1449
1450am__api_version="1.8"
1451# Find a good install program.  We prefer a C program (faster),
1452# so one script is as good as another.  But avoid the broken or
1453# incompatible versions:
1454# SysV /etc/install, /usr/sbin/install
1455# SunOS /usr/etc/install
1456# IRIX /sbin/install
1457# AIX /bin/install
1458# AmigaOS /C/install, which installs bootblocks on floppy discs
1459# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1460# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1461# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1462# OS/2's system install, which has a completely different semantic
1463# ./install, which can be erroneously created by make from ./install.sh.
1464echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1465echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1466if test -z "$INSTALL"; then
1467if test "${ac_cv_path_install+set}" = set; then
1468  echo $ECHO_N "(cached) $ECHO_C" >&6
1469else
1470  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1471for as_dir in $PATH
1472do
1473  IFS=$as_save_IFS
1474  test -z "$as_dir" && as_dir=.
1475  # Account for people who put trailing slashes in PATH elements.
1476case $as_dir/ in
1477  ./ | .// | /cC/* | \
1478  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1479  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1480  /usr/ucb/* ) ;;
1481  *)
1482    # OSF1 and SCO ODT 3.0 have their own names for install.
1483    # Don't use installbsd from OSF since it installs stuff as root
1484    # by default.
1485    for ac_prog in ginstall scoinst install; do
1486      for ac_exec_ext in '' $ac_executable_extensions; do
1487        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1488          if test $ac_prog = install &&
1489            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1490            # AIX install.  It has an incompatible calling convention.
1491            :
1492          elif test $ac_prog = install &&
1493            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1494            # program-specific install script used by HP pwplus--don't use.
1495            :
1496          else
1497            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1498            break 3
1499          fi
1500        fi
1501      done
1502    done
1503    ;;
1504esac
1505done
1506
1507
1508fi
1509  if test "${ac_cv_path_install+set}" = set; then
1510    INSTALL=$ac_cv_path_install
1511  else
1512    # As a last resort, use the slow shell script.  We don't cache a
1513    # path for INSTALL within a source directory, because that will
1514    # break other packages using the cache if that directory is
1515    # removed, or if the path is relative.
1516    INSTALL=$ac_install_sh
1517  fi
1518fi
1519echo "$as_me:$LINENO: result: $INSTALL" >&5
1520echo "${ECHO_T}$INSTALL" >&6
1521
1522# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1523# It thinks the first close brace ends the variable substitution.
1524test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1525
1526test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1527
1528test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1529
1530echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1531echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1532# Just in case
1533sleep 1
1534echo timestamp > conftest.file
1535# Do `set' in a subshell so we don't clobber the current shell's
1536# arguments.  Must try -L first in case configure is actually a
1537# symlink; some systems play weird games with the mod time of symlinks
1538# (eg FreeBSD returns the mod time of the symlink's containing
1539# directory).
1540if (
1541   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1542   if test "$*" = "X"; then
1543      # -L didn't work.
1544      set X `ls -t $srcdir/configure conftest.file`
1545   fi
1546   rm -f conftest.file
1547   if test "$*" != "X $srcdir/configure conftest.file" \
1548      && test "$*" != "X conftest.file $srcdir/configure"; then
1549
1550      # If neither matched, then we have a broken ls.  This can happen
1551      # if, for instance, CONFIG_SHELL is bash and it inherits a
1552      # broken ls alias from the environment.  This has actually
1553      # happened.  Such a system could not be considered "sane".
1554      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1555alias in your environment" >&5
1556echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1557alias in your environment" >&2;}
1558   { (exit 1); exit 1; }; }
1559   fi
1560
1561   test "$2" = conftest.file
1562   )
1563then
1564   # Ok.
1565   :
1566else
1567   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1568Check your system clock" >&5
1569echo "$as_me: error: newly created file is older than distributed files!
1570Check your system clock" >&2;}
1571   { (exit 1); exit 1; }; }
1572fi
1573echo "$as_me:$LINENO: result: yes" >&5
1574echo "${ECHO_T}yes" >&6
1575test "$program_prefix" != NONE &&
1576  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1577# Use a double $ so make ignores it.
1578test "$program_suffix" != NONE &&
1579  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1580# Double any \ or $.  echo might interpret backslashes.
1581# By default was `s,x,x', remove it if useless.
1582cat <<\_ACEOF >conftest.sed
1583s/[\\$]/&&/g;s/;s,x,x,$//
1584_ACEOF
1585program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1586rm conftest.sed
1587
1588# expand $ac_aux_dir to an absolute path
1589am_aux_dir=`cd $ac_aux_dir && pwd`
1590
1591test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1592# Use eval to expand $SHELL
1593if eval "$MISSING --run true"; then
1594  am_missing_run="$MISSING --run "
1595else
1596  am_missing_run=
1597  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1598echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1599fi
1600
1601if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1602  # Keeping the `.' argument allows $(mkdir_p) to be used without
1603  # argument.  Indeed, we sometimes output rules like
1604  #   $(mkdir_p) $(somedir)
1605  # where $(somedir) is conditionally defined.
1606  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1607  # expensive solution, as it forces Make to start a sub-shell.)
1608  mkdir_p='mkdir -p -- .'
1609else
1610  # On NextStep and OpenStep, the `mkdir' command does not
1611  # recognize any option.  It will interpret all options as
1612  # directories to create, and then abort because `.' already
1613  # exists.
1614  for d in ./-p ./--version;
1615  do
1616    test -d $d && rmdir $d
1617  done
1618  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1619  if test -f "$ac_aux_dir/mkinstalldirs"; then
1620    mkdir_p='$(mkinstalldirs)'
1621  else
1622    mkdir_p='$(install_sh) -d'
1623  fi
1624fi
1625
1626for ac_prog in gawk mawk nawk awk
1627do
1628  # Extract the first word of "$ac_prog", so it can be a program name with args.
1629set dummy $ac_prog; ac_word=$2
1630echo "$as_me:$LINENO: checking for $ac_word" >&5
1631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1632if test "${ac_cv_prog_AWK+set}" = set; then
1633  echo $ECHO_N "(cached) $ECHO_C" >&6
1634else
1635  if test -n "$AWK"; then
1636  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1637else
1638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639for as_dir in $PATH
1640do
1641  IFS=$as_save_IFS
1642  test -z "$as_dir" && as_dir=.
1643  for ac_exec_ext in '' $ac_executable_extensions; do
1644  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1645    ac_cv_prog_AWK="$ac_prog"
1646    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1647    break 2
1648  fi
1649done
1650done
1651
1652fi
1653fi
1654AWK=$ac_cv_prog_AWK
1655if test -n "$AWK"; then
1656  echo "$as_me:$LINENO: result: $AWK" >&5
1657echo "${ECHO_T}$AWK" >&6
1658else
1659  echo "$as_me:$LINENO: result: no" >&5
1660echo "${ECHO_T}no" >&6
1661fi
1662
1663  test -n "$AWK" && break
1664done
1665
1666echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1667echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1668set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1669if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1670  echo $ECHO_N "(cached) $ECHO_C" >&6
1671else
1672  cat >conftest.make <<\_ACEOF
1673all:
1674        @echo 'ac_maketemp="$(MAKE)"'
1675_ACEOF
1676# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1677eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1678if test -n "$ac_maketemp"; then
1679  eval ac_cv_prog_make_${ac_make}_set=yes
1680else
1681  eval ac_cv_prog_make_${ac_make}_set=no
1682fi
1683rm -f conftest.make
1684fi
1685if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1686  echo "$as_me:$LINENO: result: yes" >&5
1687echo "${ECHO_T}yes" >&6
1688  SET_MAKE=
1689else
1690  echo "$as_me:$LINENO: result: no" >&5
1691echo "${ECHO_T}no" >&6
1692  SET_MAKE="MAKE=${MAKE-make}"
1693fi
1694
1695rm -rf .tst 2>/dev/null
1696mkdir .tst 2>/dev/null
1697if test -d .tst; then
1698  am__leading_dot=.
1699else
1700  am__leading_dot=_
1701fi
1702rmdir .tst 2>/dev/null
1703
1704# test to see if srcdir already configured
1705if test "`cd $srcdir && pwd`" != "`pwd`" &&
1706   test -f $srcdir/config.status; then
1707  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1708echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1709   { (exit 1); exit 1; }; }
1710fi
1711
1712# test whether we have cygpath
1713if test -z "$CYGPATH_W"; then
1714  if (cygpath --version) >/dev/null 2>/dev/null; then
1715    CYGPATH_W='cygpath -w'
1716  else
1717    CYGPATH_W=echo
1718  fi
1719fi
1720
1721
1722# Define the identity of the package.
1723 PACKAGE='orxonox'
1724 VERSION='0.2.1-pre-alpha'
1725
1726
1727cat >>confdefs.h <<_ACEOF
1728#define PACKAGE "$PACKAGE"
1729_ACEOF
1730
1731
1732cat >>confdefs.h <<_ACEOF
1733#define VERSION "$VERSION"
1734_ACEOF
1735
1736# Some tools Automake needs.
1737
1738ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1739
1740
1741AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1742
1743
1744AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1745
1746
1747AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1748
1749
1750MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1751
1752
1753AMTAR=${AMTAR-"${am_missing_run}tar"}
1754
1755install_sh=${install_sh-"$am_aux_dir/install-sh"}
1756
1757# Installed binaries are usually stripped using `strip' when the user
1758# run `make install-strip'.  However `strip' might not be the right
1759# tool to use in cross-compilation environments, therefore Automake
1760# will honor the `STRIP' environment variable to overrule this program.
1761if test "$cross_compiling" != no; then
1762  if test -n "$ac_tool_prefix"; then
1763  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1764set dummy ${ac_tool_prefix}strip; ac_word=$2
1765echo "$as_me:$LINENO: checking for $ac_word" >&5
1766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1767if test "${ac_cv_prog_STRIP+set}" = set; then
1768  echo $ECHO_N "(cached) $ECHO_C" >&6
1769else
1770  if test -n "$STRIP"; then
1771  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1772else
1773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774for as_dir in $PATH
1775do
1776  IFS=$as_save_IFS
1777  test -z "$as_dir" && as_dir=.
1778  for ac_exec_ext in '' $ac_executable_extensions; do
1779  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1780    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1781    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1782    break 2
1783  fi
1784done
1785done
1786
1787fi
1788fi
1789STRIP=$ac_cv_prog_STRIP
1790if test -n "$STRIP"; then
1791  echo "$as_me:$LINENO: result: $STRIP" >&5
1792echo "${ECHO_T}$STRIP" >&6
1793else
1794  echo "$as_me:$LINENO: result: no" >&5
1795echo "${ECHO_T}no" >&6
1796fi
1797
1798fi
1799if test -z "$ac_cv_prog_STRIP"; then
1800  ac_ct_STRIP=$STRIP
1801  # Extract the first word of "strip", so it can be a program name with args.
1802set dummy strip; ac_word=$2
1803echo "$as_me:$LINENO: checking for $ac_word" >&5
1804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1805if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1806  echo $ECHO_N "(cached) $ECHO_C" >&6
1807else
1808  if test -n "$ac_ct_STRIP"; then
1809  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1810else
1811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812for as_dir in $PATH
1813do
1814  IFS=$as_save_IFS
1815  test -z "$as_dir" && as_dir=.
1816  for ac_exec_ext in '' $ac_executable_extensions; do
1817  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1818    ac_cv_prog_ac_ct_STRIP="strip"
1819    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1820    break 2
1821  fi
1822done
1823done
1824
1825  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1826fi
1827fi
1828ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1829if test -n "$ac_ct_STRIP"; then
1830  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1831echo "${ECHO_T}$ac_ct_STRIP" >&6
1832else
1833  echo "$as_me:$LINENO: result: no" >&5
1834echo "${ECHO_T}no" >&6
1835fi
1836
1837  STRIP=$ac_ct_STRIP
1838else
1839  STRIP="$ac_cv_prog_STRIP"
1840fi
1841
1842fi
1843INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1844
1845# We need awk for the "check" target.  The system "awk" is bad on
1846# some platforms.
1847
1848
1849
1850
1851
1852          ac_config_headers="$ac_config_headers config.h"
1853
1854
1855#########################
1856## Checks for programs ##
1857#########################
1858ac_ext=cc
1859ac_cpp='$CXXCPP $CPPFLAGS'
1860ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1861ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1862ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1863if test -n "$ac_tool_prefix"; then
1864  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1865  do
1866    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1867set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1868echo "$as_me:$LINENO: checking for $ac_word" >&5
1869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1870if test "${ac_cv_prog_CXX+set}" = set; then
1871  echo $ECHO_N "(cached) $ECHO_C" >&6
1872else
1873  if test -n "$CXX"; then
1874  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1875else
1876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877for as_dir in $PATH
1878do
1879  IFS=$as_save_IFS
1880  test -z "$as_dir" && as_dir=.
1881  for ac_exec_ext in '' $ac_executable_extensions; do
1882  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1883    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1884    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1885    break 2
1886  fi
1887done
1888done
1889
1890fi
1891fi
1892CXX=$ac_cv_prog_CXX
1893if test -n "$CXX"; then
1894  echo "$as_me:$LINENO: result: $CXX" >&5
1895echo "${ECHO_T}$CXX" >&6
1896else
1897  echo "$as_me:$LINENO: result: no" >&5
1898echo "${ECHO_T}no" >&6
1899fi
1900
1901    test -n "$CXX" && break
1902  done
1903fi
1904if test -z "$CXX"; then
1905  ac_ct_CXX=$CXX
1906  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1907do
1908  # Extract the first word of "$ac_prog", so it can be a program name with args.
1909set dummy $ac_prog; ac_word=$2
1910echo "$as_me:$LINENO: checking for $ac_word" >&5
1911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1912if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1913  echo $ECHO_N "(cached) $ECHO_C" >&6
1914else
1915  if test -n "$ac_ct_CXX"; then
1916  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1917else
1918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919for as_dir in $PATH
1920do
1921  IFS=$as_save_IFS
1922  test -z "$as_dir" && as_dir=.
1923  for ac_exec_ext in '' $ac_executable_extensions; do
1924  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1925    ac_cv_prog_ac_ct_CXX="$ac_prog"
1926    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1927    break 2
1928  fi
1929done
1930done
1931
1932fi
1933fi
1934ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1935if test -n "$ac_ct_CXX"; then
1936  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1937echo "${ECHO_T}$ac_ct_CXX" >&6
1938else
1939  echo "$as_me:$LINENO: result: no" >&5
1940echo "${ECHO_T}no" >&6
1941fi
1942
1943  test -n "$ac_ct_CXX" && break
1944done
1945test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1946
1947  CXX=$ac_ct_CXX
1948fi
1949
1950
1951# Provide some information about the compiler.
1952echo "$as_me:$LINENO:" \
1953     "checking for C++ compiler version" >&5
1954ac_compiler=`set X $ac_compile; echo $2`
1955{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1956  (eval $ac_compiler --version </dev/null >&5) 2>&5
1957  ac_status=$?
1958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1959  (exit $ac_status); }
1960{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1961  (eval $ac_compiler -v </dev/null >&5) 2>&5
1962  ac_status=$?
1963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964  (exit $ac_status); }
1965{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1966  (eval $ac_compiler -V </dev/null >&5) 2>&5
1967  ac_status=$?
1968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969  (exit $ac_status); }
1970
1971cat >conftest.$ac_ext <<_ACEOF
1972/* confdefs.h.  */
1973_ACEOF
1974cat confdefs.h >>conftest.$ac_ext
1975cat >>conftest.$ac_ext <<_ACEOF
1976/* end confdefs.h.  */
1977
1978int
1979main ()
1980{
1981
1982  ;
1983  return 0;
1984}
1985_ACEOF
1986ac_clean_files_save=$ac_clean_files
1987ac_clean_files="$ac_clean_files a.out a.exe b.out"
1988# Try to create an executable without -o first, disregard a.out.
1989# It will help us diagnose broken compilers, and finding out an intuition
1990# of exeext.
1991echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1992echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1993ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1994if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1995  (eval $ac_link_default) 2>&5
1996  ac_status=$?
1997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998  (exit $ac_status); }; then
1999  # Find the output, starting from the most likely.  This scheme is
2000# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2001# resort.
2002
2003# Be careful to initialize this variable, since it used to be cached.
2004# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2005ac_cv_exeext=
2006# b.out is created by i960 compilers.
2007for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2008do
2009  test -f "$ac_file" || continue
2010  case $ac_file in
2011    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2012        ;;
2013    conftest.$ac_ext )
2014        # This is the source file.
2015        ;;
2016    [ab].out )
2017        # We found the default executable, but exeext='' is most
2018        # certainly right.
2019        break;;
2020    *.* )
2021        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2022        # FIXME: I believe we export ac_cv_exeext for Libtool,
2023        # but it would be cool to find out if it's true.  Does anybody
2024        # maintain Libtool? --akim.
2025        export ac_cv_exeext
2026        break;;
2027    * )
2028        break;;
2029  esac
2030done
2031else
2032  echo "$as_me: failed program was:" >&5
2033sed 's/^/| /' conftest.$ac_ext >&5
2034
2035{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2036See \`config.log' for more details." >&5
2037echo "$as_me: error: C++ compiler cannot create executables
2038See \`config.log' for more details." >&2;}
2039   { (exit 77); exit 77; }; }
2040fi
2041
2042ac_exeext=$ac_cv_exeext
2043echo "$as_me:$LINENO: result: $ac_file" >&5
2044echo "${ECHO_T}$ac_file" >&6
2045
2046# Check the compiler produces executables we can run.  If not, either
2047# the compiler is broken, or we cross compile.
2048echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2049echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2050# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2051# If not cross compiling, check that we can run a simple program.
2052if test "$cross_compiling" != yes; then
2053  if { ac_try='./$ac_file'
2054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2055  (eval $ac_try) 2>&5
2056  ac_status=$?
2057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058  (exit $ac_status); }; }; then
2059    cross_compiling=no
2060  else
2061    if test "$cross_compiling" = maybe; then
2062        cross_compiling=yes
2063    else
2064        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2065If you meant to cross compile, use \`--host'.
2066See \`config.log' for more details." >&5
2067echo "$as_me: error: cannot run C++ compiled programs.
2068If you meant to cross compile, use \`--host'.
2069See \`config.log' for more details." >&2;}
2070   { (exit 1); exit 1; }; }
2071    fi
2072  fi
2073fi
2074echo "$as_me:$LINENO: result: yes" >&5
2075echo "${ECHO_T}yes" >&6
2076
2077rm -f a.out a.exe conftest$ac_cv_exeext b.out
2078ac_clean_files=$ac_clean_files_save
2079# Check the compiler produces executables we can run.  If not, either
2080# the compiler is broken, or we cross compile.
2081echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2082echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2083echo "$as_me:$LINENO: result: $cross_compiling" >&5
2084echo "${ECHO_T}$cross_compiling" >&6
2085
2086echo "$as_me:$LINENO: checking for suffix of executables" >&5
2087echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2089  (eval $ac_link) 2>&5
2090  ac_status=$?
2091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092  (exit $ac_status); }; then
2093  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2094# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2095# work properly (i.e., refer to `conftest.exe'), while it won't with
2096# `rm'.
2097for ac_file in conftest.exe conftest conftest.*; do
2098  test -f "$ac_file" || continue
2099  case $ac_file in
2100    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2101    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2102          export ac_cv_exeext
2103          break;;
2104    * ) break;;
2105  esac
2106done
2107else
2108  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2109See \`config.log' for more details." >&5
2110echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2111See \`config.log' for more details." >&2;}
2112   { (exit 1); exit 1; }; }
2113fi
2114
2115rm -f conftest$ac_cv_exeext
2116echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2117echo "${ECHO_T}$ac_cv_exeext" >&6
2118
2119rm -f conftest.$ac_ext
2120EXEEXT=$ac_cv_exeext
2121ac_exeext=$EXEEXT
2122echo "$as_me:$LINENO: checking for suffix of object files" >&5
2123echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2124if test "${ac_cv_objext+set}" = set; then
2125  echo $ECHO_N "(cached) $ECHO_C" >&6
2126else
2127  cat >conftest.$ac_ext <<_ACEOF
2128/* confdefs.h.  */
2129_ACEOF
2130cat confdefs.h >>conftest.$ac_ext
2131cat >>conftest.$ac_ext <<_ACEOF
2132/* end confdefs.h.  */
2133
2134int
2135main ()
2136{
2137
2138  ;
2139  return 0;
2140}
2141_ACEOF
2142rm -f conftest.o conftest.obj
2143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2144  (eval $ac_compile) 2>&5
2145  ac_status=$?
2146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147  (exit $ac_status); }; then
2148  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2149  case $ac_file in
2150    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2151    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2152       break;;
2153  esac
2154done
2155else
2156  echo "$as_me: failed program was:" >&5
2157sed 's/^/| /' conftest.$ac_ext >&5
2158
2159{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2160See \`config.log' for more details." >&5
2161echo "$as_me: error: cannot compute suffix of object files: cannot compile
2162See \`config.log' for more details." >&2;}
2163   { (exit 1); exit 1; }; }
2164fi
2165
2166rm -f conftest.$ac_cv_objext conftest.$ac_ext
2167fi
2168echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2169echo "${ECHO_T}$ac_cv_objext" >&6
2170OBJEXT=$ac_cv_objext
2171ac_objext=$OBJEXT
2172echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2173echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2174if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2175  echo $ECHO_N "(cached) $ECHO_C" >&6
2176else
2177  cat >conftest.$ac_ext <<_ACEOF
2178/* confdefs.h.  */
2179_ACEOF
2180cat confdefs.h >>conftest.$ac_ext
2181cat >>conftest.$ac_ext <<_ACEOF
2182/* end confdefs.h.  */
2183
2184int
2185main ()
2186{
2187#ifndef __GNUC__
2188       choke me
2189#endif
2190
2191  ;
2192  return 0;
2193}
2194_ACEOF
2195rm -f conftest.$ac_objext
2196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2197  (eval $ac_compile) 2>conftest.er1
2198  ac_status=$?
2199  grep -v '^ *+' conftest.er1 >conftest.err
2200  rm -f conftest.er1
2201  cat conftest.err >&5
2202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203  (exit $ac_status); } &&
2204         { ac_try='test -z "$ac_cxx_werror_flag"
2205                         || test ! -s conftest.err'
2206  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207  (eval $ac_try) 2>&5
2208  ac_status=$?
2209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210  (exit $ac_status); }; } &&
2211         { ac_try='test -s conftest.$ac_objext'
2212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213  (eval $ac_try) 2>&5
2214  ac_status=$?
2215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216  (exit $ac_status); }; }; then
2217  ac_compiler_gnu=yes
2218else
2219  echo "$as_me: failed program was:" >&5
2220sed 's/^/| /' conftest.$ac_ext >&5
2221
2222ac_compiler_gnu=no
2223fi
2224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2225ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2226
2227fi
2228echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2229echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2230GXX=`test $ac_compiler_gnu = yes && echo yes`
2231ac_test_CXXFLAGS=${CXXFLAGS+set}
2232ac_save_CXXFLAGS=$CXXFLAGS
2233CXXFLAGS="-g"
2234echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2235echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2236if test "${ac_cv_prog_cxx_g+set}" = set; then
2237  echo $ECHO_N "(cached) $ECHO_C" >&6
2238else
2239  cat >conftest.$ac_ext <<_ACEOF
2240/* confdefs.h.  */
2241_ACEOF
2242cat confdefs.h >>conftest.$ac_ext
2243cat >>conftest.$ac_ext <<_ACEOF
2244/* end confdefs.h.  */
2245
2246int
2247main ()
2248{
2249
2250  ;
2251  return 0;
2252}
2253_ACEOF
2254rm -f conftest.$ac_objext
2255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256  (eval $ac_compile) 2>conftest.er1
2257  ac_status=$?
2258  grep -v '^ *+' conftest.er1 >conftest.err
2259  rm -f conftest.er1
2260  cat conftest.err >&5
2261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262  (exit $ac_status); } &&
2263         { ac_try='test -z "$ac_cxx_werror_flag"
2264                         || test ! -s conftest.err'
2265  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266  (eval $ac_try) 2>&5
2267  ac_status=$?
2268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269  (exit $ac_status); }; } &&
2270         { ac_try='test -s conftest.$ac_objext'
2271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272  (eval $ac_try) 2>&5
2273  ac_status=$?
2274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275  (exit $ac_status); }; }; then
2276  ac_cv_prog_cxx_g=yes
2277else
2278  echo "$as_me: failed program was:" >&5
2279sed 's/^/| /' conftest.$ac_ext >&5
2280
2281ac_cv_prog_cxx_g=no
2282fi
2283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2284fi
2285echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2286echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2287if test "$ac_test_CXXFLAGS" = set; then
2288  CXXFLAGS=$ac_save_CXXFLAGS
2289elif test $ac_cv_prog_cxx_g = yes; then
2290  if test "$GXX" = yes; then
2291    CXXFLAGS="-g -O2"
2292  else
2293    CXXFLAGS="-g"
2294  fi
2295else
2296  if test "$GXX" = yes; then
2297    CXXFLAGS="-O2"
2298  else
2299    CXXFLAGS=
2300  fi
2301fi
2302for ac_declaration in \
2303   '' \
2304   'extern "C" void std::exit (int) throw (); using std::exit;' \
2305   'extern "C" void std::exit (int); using std::exit;' \
2306   'extern "C" void exit (int) throw ();' \
2307   'extern "C" void exit (int);' \
2308   'void exit (int);'
2309do
2310  cat >conftest.$ac_ext <<_ACEOF
2311/* confdefs.h.  */
2312_ACEOF
2313cat confdefs.h >>conftest.$ac_ext
2314cat >>conftest.$ac_ext <<_ACEOF
2315/* end confdefs.h.  */
2316$ac_declaration
2317#include <stdlib.h>
2318int
2319main ()
2320{
2321exit (42);
2322  ;
2323  return 0;
2324}
2325_ACEOF
2326rm -f conftest.$ac_objext
2327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2328  (eval $ac_compile) 2>conftest.er1
2329  ac_status=$?
2330  grep -v '^ *+' conftest.er1 >conftest.err
2331  rm -f conftest.er1
2332  cat conftest.err >&5
2333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334  (exit $ac_status); } &&
2335         { ac_try='test -z "$ac_cxx_werror_flag"
2336                         || test ! -s conftest.err'
2337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338  (eval $ac_try) 2>&5
2339  ac_status=$?
2340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341  (exit $ac_status); }; } &&
2342         { ac_try='test -s conftest.$ac_objext'
2343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2344  (eval $ac_try) 2>&5
2345  ac_status=$?
2346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347  (exit $ac_status); }; }; then
2348  :
2349else
2350  echo "$as_me: failed program was:" >&5
2351sed 's/^/| /' conftest.$ac_ext >&5
2352
2353continue
2354fi
2355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2356  cat >conftest.$ac_ext <<_ACEOF
2357/* confdefs.h.  */
2358_ACEOF
2359cat confdefs.h >>conftest.$ac_ext
2360cat >>conftest.$ac_ext <<_ACEOF
2361/* end confdefs.h.  */
2362$ac_declaration
2363int
2364main ()
2365{
2366exit (42);
2367  ;
2368  return 0;
2369}
2370_ACEOF
2371rm -f conftest.$ac_objext
2372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373  (eval $ac_compile) 2>conftest.er1
2374  ac_status=$?
2375  grep -v '^ *+' conftest.er1 >conftest.err
2376  rm -f conftest.er1
2377  cat conftest.err >&5
2378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379  (exit $ac_status); } &&
2380         { ac_try='test -z "$ac_cxx_werror_flag"
2381                         || test ! -s conftest.err'
2382  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383  (eval $ac_try) 2>&5
2384  ac_status=$?
2385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386  (exit $ac_status); }; } &&
2387         { ac_try='test -s conftest.$ac_objext'
2388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389  (eval $ac_try) 2>&5
2390  ac_status=$?
2391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392  (exit $ac_status); }; }; then
2393  break
2394else
2395  echo "$as_me: failed program was:" >&5
2396sed 's/^/| /' conftest.$ac_ext >&5
2397
2398fi
2399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2400done
2401rm -f conftest*
2402if test -n "$ac_declaration"; then
2403  echo '#ifdef __cplusplus' >>confdefs.h
2404  echo $ac_declaration      >>confdefs.h
2405  echo '#endif'             >>confdefs.h
2406fi
2407
2408ac_ext=c
2409ac_cpp='$CPP $CPPFLAGS'
2410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2412ac_compiler_gnu=$ac_cv_c_compiler_gnu
2413DEPDIR="${am__leading_dot}deps"
2414
2415          ac_config_commands="$ac_config_commands depfiles"
2416
2417
2418am_make=${MAKE-make}
2419cat > confinc << 'END'
2420am__doit:
2421        @echo done
2422.PHONY: am__doit
2423END
2424# If we don't find an include directive, just comment out the code.
2425echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2426echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2427am__include="#"
2428am__quote=
2429_am_result=none
2430# First try GNU make style include.
2431echo "include confinc" > confmf
2432# We grep out `Entering directory' and `Leaving directory'
2433# messages which can occur if `w' ends up in MAKEFLAGS.
2434# In particular we don't look at `^make:' because GNU make might
2435# be invoked under some other name (usually "gmake"), in which
2436# case it prints its new name instead of `make'.
2437if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2438   am__include=include
2439   am__quote=
2440   _am_result=GNU
2441fi
2442# Now try BSD make style include.
2443if test "$am__include" = "#"; then
2444   echo '.include "confinc"' > confmf
2445   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2446      am__include=.include
2447      am__quote="\""
2448      _am_result=BSD
2449   fi
2450fi
2451
2452
2453echo "$as_me:$LINENO: result: $_am_result" >&5
2454echo "${ECHO_T}$_am_result" >&6
2455rm -f confinc confmf
2456
2457# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2458if test "${enable_dependency_tracking+set}" = set; then
2459  enableval="$enable_dependency_tracking"
2460
2461fi;
2462if test "x$enable_dependency_tracking" != xno; then
2463  am_depcomp="$ac_aux_dir/depcomp"
2464  AMDEPBACKSLASH='\'
2465fi
2466
2467
2468if test "x$enable_dependency_tracking" != xno; then
2469  AMDEP_TRUE=
2470  AMDEP_FALSE='#'
2471else
2472  AMDEP_TRUE='#'
2473  AMDEP_FALSE=
2474fi
2475
2476
2477
2478
2479depcc="$CXX"  am_compiler_list=
2480
2481echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2482echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2483if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2484  echo $ECHO_N "(cached) $ECHO_C" >&6
2485else
2486  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2487  # We make a subdir and do the tests there.  Otherwise we can end up
2488  # making bogus files that we don't know about and never remove.  For
2489  # instance it was reported that on HP-UX the gcc test will end up
2490  # making a dummy file named `D' -- because `-MD' means `put the output
2491  # in D'.
2492  mkdir conftest.dir
2493  # Copy depcomp to subdir because otherwise we won't find it if we're
2494  # using a relative directory.
2495  cp "$am_depcomp" conftest.dir
2496  cd conftest.dir
2497  # We will build objects and dependencies in a subdirectory because
2498  # it helps to detect inapplicable dependency modes.  For instance
2499  # both Tru64's cc and ICC support -MD to output dependencies as a
2500  # side effect of compilation, but ICC will put the dependencies in
2501  # the current directory while Tru64 will put them in the object
2502  # directory.
2503  mkdir sub
2504
2505  am_cv_CXX_dependencies_compiler_type=none
2506  if test "$am_compiler_list" = ""; then
2507     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2508  fi
2509  for depmode in $am_compiler_list; do
2510    # Setup a source with many dependencies, because some compilers
2511    # like to wrap large dependency lists on column 80 (with \), and
2512    # we should not choose a depcomp mode which is confused by this.
2513    #
2514    # We need to recreate these files for each test, as the compiler may
2515    # overwrite some of them when testing with obscure command lines.
2516    # This happens at least with the AIX C compiler.
2517    : > sub/conftest.c
2518    for i in 1 2 3 4 5 6; do
2519      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2520      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2521      # Solaris 8's {/usr,}/bin/sh.
2522      touch sub/conftst$i.h
2523    done
2524    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2525
2526    case $depmode in
2527    nosideeffect)
2528      # after this tag, mechanisms are not by side-effect, so they'll
2529      # only be used when explicitly requested
2530      if test "x$enable_dependency_tracking" = xyes; then
2531        continue
2532      else
2533        break
2534      fi
2535      ;;
2536    none) break ;;
2537    esac
2538    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2539    # mode.  It turns out that the SunPro C++ compiler does not properly
2540    # handle `-M -o', and we need to detect this.
2541    if depmode=$depmode \
2542       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2543       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2544       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2545         >/dev/null 2>conftest.err &&
2546       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2547       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2548       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2549      # icc doesn't choke on unknown options, it will just issue warnings
2550      # or remarks (even with -Werror).  So we grep stderr for any message
2551      # that says an option was ignored or not supported.
2552      # When given -MP, icc 7.0 and 7.1 complain thusly:
2553      #   icc: Command line warning: ignoring option '-M'; no argument required
2554      # The diagnosis changed in icc 8.0:
2555      #   icc: Command line remark: option '-MP' not supported
2556      if (grep 'ignoring option' conftest.err ||
2557          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2558        am_cv_CXX_dependencies_compiler_type=$depmode
2559        break
2560      fi
2561    fi
2562  done
2563
2564  cd ..
2565  rm -rf conftest.dir
2566else
2567  am_cv_CXX_dependencies_compiler_type=none
2568fi
2569
2570fi
2571echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2572echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2573CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2574
2575
2576
2577if
2578  test "x$enable_dependency_tracking" != xno \
2579  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2580  am__fastdepCXX_TRUE=
2581  am__fastdepCXX_FALSE='#'
2582else
2583  am__fastdepCXX_TRUE='#'
2584  am__fastdepCXX_FALSE=
2585fi
2586
2587
2588ac_ext=c
2589ac_cpp='$CPP $CPPFLAGS'
2590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2592ac_compiler_gnu=$ac_cv_c_compiler_gnu
2593if test -n "$ac_tool_prefix"; then
2594  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2595set dummy ${ac_tool_prefix}gcc; ac_word=$2
2596echo "$as_me:$LINENO: checking for $ac_word" >&5
2597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2598if test "${ac_cv_prog_CC+set}" = set; then
2599  echo $ECHO_N "(cached) $ECHO_C" >&6
2600else
2601  if test -n "$CC"; then
2602  ac_cv_prog_CC="$CC" # Let the user override the test.
2603else
2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605for as_dir in $PATH
2606do
2607  IFS=$as_save_IFS
2608  test -z "$as_dir" && as_dir=.
2609  for ac_exec_ext in '' $ac_executable_extensions; do
2610  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2611    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2612    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613    break 2
2614  fi
2615done
2616done
2617
2618fi
2619fi
2620CC=$ac_cv_prog_CC
2621if test -n "$CC"; then
2622  echo "$as_me:$LINENO: result: $CC" >&5
2623echo "${ECHO_T}$CC" >&6
2624else
2625  echo "$as_me:$LINENO: result: no" >&5
2626echo "${ECHO_T}no" >&6
2627fi
2628
2629fi
2630if test -z "$ac_cv_prog_CC"; then
2631  ac_ct_CC=$CC
2632  # Extract the first word of "gcc", so it can be a program name with args.
2633set dummy gcc; ac_word=$2
2634echo "$as_me:$LINENO: checking for $ac_word" >&5
2635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2636if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2637  echo $ECHO_N "(cached) $ECHO_C" >&6
2638else
2639  if test -n "$ac_ct_CC"; then
2640  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2641else
2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643for as_dir in $PATH
2644do
2645  IFS=$as_save_IFS
2646  test -z "$as_dir" && as_dir=.
2647  for ac_exec_ext in '' $ac_executable_extensions; do
2648  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2649    ac_cv_prog_ac_ct_CC="gcc"
2650    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651    break 2
2652  fi
2653done
2654done
2655
2656fi
2657fi
2658ac_ct_CC=$ac_cv_prog_ac_ct_CC
2659if test -n "$ac_ct_CC"; then
2660  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2661echo "${ECHO_T}$ac_ct_CC" >&6
2662else
2663  echo "$as_me:$LINENO: result: no" >&5
2664echo "${ECHO_T}no" >&6
2665fi
2666
2667  CC=$ac_ct_CC
2668else
2669  CC="$ac_cv_prog_CC"
2670fi
2671
2672if test -z "$CC"; then
2673  if test -n "$ac_tool_prefix"; then
2674  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2675set dummy ${ac_tool_prefix}cc; ac_word=$2
2676echo "$as_me:$LINENO: checking for $ac_word" >&5
2677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2678if test "${ac_cv_prog_CC+set}" = set; then
2679  echo $ECHO_N "(cached) $ECHO_C" >&6
2680else
2681  if test -n "$CC"; then
2682  ac_cv_prog_CC="$CC" # Let the user override the test.
2683else
2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685for as_dir in $PATH
2686do
2687  IFS=$as_save_IFS
2688  test -z "$as_dir" && as_dir=.
2689  for ac_exec_ext in '' $ac_executable_extensions; do
2690  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691    ac_cv_prog_CC="${ac_tool_prefix}cc"
2692    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693    break 2
2694  fi
2695done
2696done
2697
2698fi
2699fi
2700CC=$ac_cv_prog_CC
2701if test -n "$CC"; then
2702  echo "$as_me:$LINENO: result: $CC" >&5
2703echo "${ECHO_T}$CC" >&6
2704else
2705  echo "$as_me:$LINENO: result: no" >&5
2706echo "${ECHO_T}no" >&6
2707fi
2708
2709fi
2710if test -z "$ac_cv_prog_CC"; then
2711  ac_ct_CC=$CC
2712  # Extract the first word of "cc", so it can be a program name with args.
2713set dummy cc; ac_word=$2
2714echo "$as_me:$LINENO: checking for $ac_word" >&5
2715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2716if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2717  echo $ECHO_N "(cached) $ECHO_C" >&6
2718else
2719  if test -n "$ac_ct_CC"; then
2720  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2721else
2722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723for as_dir in $PATH
2724do
2725  IFS=$as_save_IFS
2726  test -z "$as_dir" && as_dir=.
2727  for ac_exec_ext in '' $ac_executable_extensions; do
2728  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2729    ac_cv_prog_ac_ct_CC="cc"
2730    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2731    break 2
2732  fi
2733done
2734done
2735
2736fi
2737fi
2738ac_ct_CC=$ac_cv_prog_ac_ct_CC
2739if test -n "$ac_ct_CC"; then
2740  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2741echo "${ECHO_T}$ac_ct_CC" >&6
2742else
2743  echo "$as_me:$LINENO: result: no" >&5
2744echo "${ECHO_T}no" >&6
2745fi
2746
2747  CC=$ac_ct_CC
2748else
2749  CC="$ac_cv_prog_CC"
2750fi
2751
2752fi
2753if test -z "$CC"; then
2754  # Extract the first word of "cc", so it can be a program name with args.
2755set dummy cc; ac_word=$2
2756echo "$as_me:$LINENO: checking for $ac_word" >&5
2757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2758if test "${ac_cv_prog_CC+set}" = set; then
2759  echo $ECHO_N "(cached) $ECHO_C" >&6
2760else
2761  if test -n "$CC"; then
2762  ac_cv_prog_CC="$CC" # Let the user override the test.
2763else
2764  ac_prog_rejected=no
2765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766for as_dir in $PATH
2767do
2768  IFS=$as_save_IFS
2769  test -z "$as_dir" && as_dir=.
2770  for ac_exec_ext in '' $ac_executable_extensions; do
2771  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2772    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2773       ac_prog_rejected=yes
2774       continue
2775     fi
2776    ac_cv_prog_CC="cc"
2777    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2778    break 2
2779  fi
2780done
2781done
2782
2783if test $ac_prog_rejected = yes; then
2784  # We found a bogon in the path, so make sure we never use it.
2785  set dummy $ac_cv_prog_CC
2786  shift
2787  if test $# != 0; then
2788    # We chose a different compiler from the bogus one.
2789    # However, it has the same basename, so the bogon will be chosen
2790    # first if we set CC to just the basename; use the full file name.
2791    shift
2792    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2793  fi
2794fi
2795fi
2796fi
2797CC=$ac_cv_prog_CC
2798if test -n "$CC"; then
2799  echo "$as_me:$LINENO: result: $CC" >&5
2800echo "${ECHO_T}$CC" >&6
2801else
2802  echo "$as_me:$LINENO: result: no" >&5
2803echo "${ECHO_T}no" >&6
2804fi
2805
2806fi
2807if test -z "$CC"; then
2808  if test -n "$ac_tool_prefix"; then
2809  for ac_prog in cl
2810  do
2811    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2812set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2813echo "$as_me:$LINENO: checking for $ac_word" >&5
2814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2815if test "${ac_cv_prog_CC+set}" = set; then
2816  echo $ECHO_N "(cached) $ECHO_C" >&6
2817else
2818  if test -n "$CC"; then
2819  ac_cv_prog_CC="$CC" # Let the user override the test.
2820else
2821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822for as_dir in $PATH
2823do
2824  IFS=$as_save_IFS
2825  test -z "$as_dir" && as_dir=.
2826  for ac_exec_ext in '' $ac_executable_extensions; do
2827  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2829    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830    break 2
2831  fi
2832done
2833done
2834
2835fi
2836fi
2837CC=$ac_cv_prog_CC
2838if test -n "$CC"; then
2839  echo "$as_me:$LINENO: result: $CC" >&5
2840echo "${ECHO_T}$CC" >&6
2841else
2842  echo "$as_me:$LINENO: result: no" >&5
2843echo "${ECHO_T}no" >&6
2844fi
2845
2846    test -n "$CC" && break
2847  done
2848fi
2849if test -z "$CC"; then
2850  ac_ct_CC=$CC
2851  for ac_prog in cl
2852do
2853  # Extract the first word of "$ac_prog", so it can be a program name with args.
2854set dummy $ac_prog; ac_word=$2
2855echo "$as_me:$LINENO: checking for $ac_word" >&5
2856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2857if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2858  echo $ECHO_N "(cached) $ECHO_C" >&6
2859else
2860  if test -n "$ac_ct_CC"; then
2861  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2862else
2863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864for as_dir in $PATH
2865do
2866  IFS=$as_save_IFS
2867  test -z "$as_dir" && as_dir=.
2868  for ac_exec_ext in '' $ac_executable_extensions; do
2869  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2870    ac_cv_prog_ac_ct_CC="$ac_prog"
2871    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2872    break 2
2873  fi
2874done
2875done
2876
2877fi
2878fi
2879ac_ct_CC=$ac_cv_prog_ac_ct_CC
2880if test -n "$ac_ct_CC"; then
2881  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2882echo "${ECHO_T}$ac_ct_CC" >&6
2883else
2884  echo "$as_me:$LINENO: result: no" >&5
2885echo "${ECHO_T}no" >&6
2886fi
2887
2888  test -n "$ac_ct_CC" && break
2889done
2890
2891  CC=$ac_ct_CC
2892fi
2893
2894fi
2895
2896
2897test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2898See \`config.log' for more details." >&5
2899echo "$as_me: error: no acceptable C compiler found in \$PATH
2900See \`config.log' for more details." >&2;}
2901   { (exit 1); exit 1; }; }
2902
2903# Provide some information about the compiler.
2904echo "$as_me:$LINENO:" \
2905     "checking for C compiler version" >&5
2906ac_compiler=`set X $ac_compile; echo $2`
2907{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2908  (eval $ac_compiler --version </dev/null >&5) 2>&5
2909  ac_status=$?
2910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911  (exit $ac_status); }
2912{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2913  (eval $ac_compiler -v </dev/null >&5) 2>&5
2914  ac_status=$?
2915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916  (exit $ac_status); }
2917{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2918  (eval $ac_compiler -V </dev/null >&5) 2>&5
2919  ac_status=$?
2920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921  (exit $ac_status); }
2922
2923echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2924echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2925if test "${ac_cv_c_compiler_gnu+set}" = set; then
2926  echo $ECHO_N "(cached) $ECHO_C" >&6
2927else
2928  cat >conftest.$ac_ext <<_ACEOF
2929/* confdefs.h.  */
2930_ACEOF
2931cat confdefs.h >>conftest.$ac_ext
2932cat >>conftest.$ac_ext <<_ACEOF
2933/* end confdefs.h.  */
2934
2935int
2936main ()
2937{
2938#ifndef __GNUC__
2939       choke me
2940#endif
2941
2942  ;
2943  return 0;
2944}
2945_ACEOF
2946rm -f conftest.$ac_objext
2947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2948  (eval $ac_compile) 2>conftest.er1
2949  ac_status=$?
2950  grep -v '^ *+' conftest.er1 >conftest.err
2951  rm -f conftest.er1
2952  cat conftest.err >&5
2953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954  (exit $ac_status); } &&
2955         { ac_try='test -z "$ac_c_werror_flag"
2956                         || test ! -s conftest.err'
2957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958  (eval $ac_try) 2>&5
2959  ac_status=$?
2960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961  (exit $ac_status); }; } &&
2962         { ac_try='test -s conftest.$ac_objext'
2963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2964  (eval $ac_try) 2>&5
2965  ac_status=$?
2966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967  (exit $ac_status); }; }; then
2968  ac_compiler_gnu=yes
2969else
2970  echo "$as_me: failed program was:" >&5
2971sed 's/^/| /' conftest.$ac_ext >&5
2972
2973ac_compiler_gnu=no
2974fi
2975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2976ac_cv_c_compiler_gnu=$ac_compiler_gnu
2977
2978fi
2979echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2980echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2981GCC=`test $ac_compiler_gnu = yes && echo yes`
2982ac_test_CFLAGS=${CFLAGS+set}
2983ac_save_CFLAGS=$CFLAGS
2984CFLAGS="-g"
2985echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2986echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2987if test "${ac_cv_prog_cc_g+set}" = set; then
2988  echo $ECHO_N "(cached) $ECHO_C" >&6
2989else
2990  cat >conftest.$ac_ext <<_ACEOF
2991/* confdefs.h.  */
2992_ACEOF
2993cat confdefs.h >>conftest.$ac_ext
2994cat >>conftest.$ac_ext <<_ACEOF
2995/* end confdefs.h.  */
2996
2997int
2998main ()
2999{
3000
3001  ;
3002  return 0;
3003}
3004_ACEOF
3005rm -f conftest.$ac_objext
3006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3007  (eval $ac_compile) 2>conftest.er1
3008  ac_status=$?
3009  grep -v '^ *+' conftest.er1 >conftest.err
3010  rm -f conftest.er1
3011  cat conftest.err >&5
3012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013  (exit $ac_status); } &&
3014         { ac_try='test -z "$ac_c_werror_flag"
3015                         || test ! -s conftest.err'
3016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3017  (eval $ac_try) 2>&5
3018  ac_status=$?
3019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020  (exit $ac_status); }; } &&
3021         { ac_try='test -s conftest.$ac_objext'
3022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023  (eval $ac_try) 2>&5
3024  ac_status=$?
3025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026  (exit $ac_status); }; }; then
3027  ac_cv_prog_cc_g=yes
3028else
3029  echo "$as_me: failed program was:" >&5
3030sed 's/^/| /' conftest.$ac_ext >&5
3031
3032ac_cv_prog_cc_g=no
3033fi
3034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3035fi
3036echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3037echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3038if test "$ac_test_CFLAGS" = set; then
3039  CFLAGS=$ac_save_CFLAGS
3040elif test $ac_cv_prog_cc_g = yes; then
3041  if test "$GCC" = yes; then
3042    CFLAGS="-g -O2"
3043  else
3044    CFLAGS="-g"
3045  fi
3046else
3047  if test "$GCC" = yes; then
3048    CFLAGS="-O2"
3049  else
3050    CFLAGS=
3051  fi
3052fi
3053echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3054echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3055if test "${ac_cv_prog_cc_stdc+set}" = set; then
3056  echo $ECHO_N "(cached) $ECHO_C" >&6
3057else
3058  ac_cv_prog_cc_stdc=no
3059ac_save_CC=$CC
3060cat >conftest.$ac_ext <<_ACEOF
3061/* confdefs.h.  */
3062_ACEOF
3063cat confdefs.h >>conftest.$ac_ext
3064cat >>conftest.$ac_ext <<_ACEOF
3065/* end confdefs.h.  */
3066#include <stdarg.h>
3067#include <stdio.h>
3068#include <sys/types.h>
3069#include <sys/stat.h>
3070/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3071struct buf { int x; };
3072FILE * (*rcsopen) (struct buf *, struct stat *, int);
3073static char *e (p, i)
3074     char **p;
3075     int i;
3076{
3077  return p[i];
3078}
3079static char *f (char * (*g) (char **, int), char **p, ...)
3080{
3081  char *s;
3082  va_list v;
3083  va_start (v,p);
3084  s = g (p, va_arg (v,int));
3085  va_end (v);
3086  return s;
3087}
3088
3089/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3090   function prototypes and stuff, but not '\xHH' hex character constants.
3091   These don't provoke an error unfortunately, instead are silently treated
3092   as 'x'.  The following induces an error, until -std1 is added to get
3093   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3094   array size at least.  It's necessary to write '\x00'==0 to get something
3095   that's true only with -std1.  */
3096int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3097
3098int test (int i, double x);
3099struct s1 {int (*f) (int a);};
3100struct s2 {int (*f) (double a);};
3101int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3102int argc;
3103char **argv;
3104int
3105main ()
3106{
3107return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3108  ;
3109  return 0;
3110}
3111_ACEOF
3112# Don't try gcc -ansi; that turns off useful extensions and
3113# breaks some systems' header files.
3114# AIX                   -qlanglvl=ansi
3115# Ultrix and OSF/1      -std1
3116# HP-UX 10.20 and later -Ae
3117# HP-UX older versions  -Aa -D_HPUX_SOURCE
3118# SVR4                  -Xc -D__EXTENSIONS__
3119for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3120do
3121  CC="$ac_save_CC $ac_arg"
3122  rm -f conftest.$ac_objext
3123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3124  (eval $ac_compile) 2>conftest.er1
3125  ac_status=$?
3126  grep -v '^ *+' conftest.er1 >conftest.err
3127  rm -f conftest.er1
3128  cat conftest.err >&5
3129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130  (exit $ac_status); } &&
3131         { ac_try='test -z "$ac_c_werror_flag"
3132                         || test ! -s conftest.err'
3133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3134  (eval $ac_try) 2>&5
3135  ac_status=$?
3136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137  (exit $ac_status); }; } &&
3138         { ac_try='test -s conftest.$ac_objext'
3139  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3140  (eval $ac_try) 2>&5
3141  ac_status=$?
3142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143  (exit $ac_status); }; }; then
3144  ac_cv_prog_cc_stdc=$ac_arg
3145break
3146else
3147  echo "$as_me: failed program was:" >&5
3148sed 's/^/| /' conftest.$ac_ext >&5
3149
3150fi
3151rm -f conftest.err conftest.$ac_objext
3152done
3153rm -f conftest.$ac_ext conftest.$ac_objext
3154CC=$ac_save_CC
3155
3156fi
3157
3158case "x$ac_cv_prog_cc_stdc" in
3159  x|xno)
3160    echo "$as_me:$LINENO: result: none needed" >&5
3161echo "${ECHO_T}none needed" >&6 ;;
3162  *)
3163    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3164echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3165    CC="$CC $ac_cv_prog_cc_stdc" ;;
3166esac
3167
3168# Some people use a C++ compiler to compile C.  Since we use `exit',
3169# in C++ we need to declare it.  In case someone uses the same compiler
3170# for both compiling C and C++ we need to have the C++ compiler decide
3171# the declaration of exit, since it's the most demanding environment.
3172cat >conftest.$ac_ext <<_ACEOF
3173#ifndef __cplusplus
3174  choke me
3175#endif
3176_ACEOF
3177rm -f conftest.$ac_objext
3178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3179  (eval $ac_compile) 2>conftest.er1
3180  ac_status=$?
3181  grep -v '^ *+' conftest.er1 >conftest.err
3182  rm -f conftest.er1
3183  cat conftest.err >&5
3184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185  (exit $ac_status); } &&
3186         { ac_try='test -z "$ac_c_werror_flag"
3187                         || test ! -s conftest.err'
3188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3189  (eval $ac_try) 2>&5
3190  ac_status=$?
3191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192  (exit $ac_status); }; } &&
3193         { ac_try='test -s conftest.$ac_objext'
3194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3195  (eval $ac_try) 2>&5
3196  ac_status=$?
3197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198  (exit $ac_status); }; }; then
3199  for ac_declaration in \
3200   '' \
3201   'extern "C" void std::exit (int) throw (); using std::exit;' \
3202   'extern "C" void std::exit (int); using std::exit;' \
3203   'extern "C" void exit (int) throw ();' \
3204   'extern "C" void exit (int);' \
3205   'void exit (int);'
3206do
3207  cat >conftest.$ac_ext <<_ACEOF
3208/* confdefs.h.  */
3209_ACEOF
3210cat confdefs.h >>conftest.$ac_ext
3211cat >>conftest.$ac_ext <<_ACEOF
3212/* end confdefs.h.  */
3213$ac_declaration
3214#include <stdlib.h>
3215int
3216main ()
3217{
3218exit (42);
3219  ;
3220  return 0;
3221}
3222_ACEOF
3223rm -f conftest.$ac_objext
3224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3225  (eval $ac_compile) 2>conftest.er1
3226  ac_status=$?
3227  grep -v '^ *+' conftest.er1 >conftest.err
3228  rm -f conftest.er1
3229  cat conftest.err >&5
3230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231  (exit $ac_status); } &&
3232         { ac_try='test -z "$ac_c_werror_flag"
3233                         || test ! -s conftest.err'
3234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235  (eval $ac_try) 2>&5
3236  ac_status=$?
3237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238  (exit $ac_status); }; } &&
3239         { ac_try='test -s conftest.$ac_objext'
3240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3241  (eval $ac_try) 2>&5
3242  ac_status=$?
3243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244  (exit $ac_status); }; }; then
3245  :
3246else
3247  echo "$as_me: failed program was:" >&5
3248sed 's/^/| /' conftest.$ac_ext >&5
3249
3250continue
3251fi
3252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3253  cat >conftest.$ac_ext <<_ACEOF
3254/* confdefs.h.  */
3255_ACEOF
3256cat confdefs.h >>conftest.$ac_ext
3257cat >>conftest.$ac_ext <<_ACEOF
3258/* end confdefs.h.  */
3259$ac_declaration
3260int
3261main ()
3262{
3263exit (42);
3264  ;
3265  return 0;
3266}
3267_ACEOF
3268rm -f conftest.$ac_objext
3269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3270  (eval $ac_compile) 2>conftest.er1
3271  ac_status=$?
3272  grep -v '^ *+' conftest.er1 >conftest.err
3273  rm -f conftest.er1
3274  cat conftest.err >&5
3275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276  (exit $ac_status); } &&
3277         { ac_try='test -z "$ac_c_werror_flag"
3278                         || test ! -s conftest.err'
3279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3280  (eval $ac_try) 2>&5
3281  ac_status=$?
3282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283  (exit $ac_status); }; } &&
3284         { ac_try='test -s conftest.$ac_objext'
3285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3286  (eval $ac_try) 2>&5
3287  ac_status=$?
3288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289  (exit $ac_status); }; }; then
3290  break
3291else
3292  echo "$as_me: failed program was:" >&5
3293sed 's/^/| /' conftest.$ac_ext >&5
3294
3295fi
3296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3297done
3298rm -f conftest*
3299if test -n "$ac_declaration"; then
3300  echo '#ifdef __cplusplus' >>confdefs.h
3301  echo $ac_declaration      >>confdefs.h
3302  echo '#endif'             >>confdefs.h
3303fi
3304
3305else
3306  echo "$as_me: failed program was:" >&5
3307sed 's/^/| /' conftest.$ac_ext >&5
3308
3309fi
3310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3311ac_ext=c
3312ac_cpp='$CPP $CPPFLAGS'
3313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3315ac_compiler_gnu=$ac_cv_c_compiler_gnu
3316
3317depcc="$CC"   am_compiler_list=
3318
3319echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3320echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3321if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3322  echo $ECHO_N "(cached) $ECHO_C" >&6
3323else
3324  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3325  # We make a subdir and do the tests there.  Otherwise we can end up
3326  # making bogus files that we don't know about and never remove.  For
3327  # instance it was reported that on HP-UX the gcc test will end up
3328  # making a dummy file named `D' -- because `-MD' means `put the output
3329  # in D'.
3330  mkdir conftest.dir
3331  # Copy depcomp to subdir because otherwise we won't find it if we're
3332  # using a relative directory.
3333  cp "$am_depcomp" conftest.dir
3334  cd conftest.dir
3335  # We will build objects and dependencies in a subdirectory because
3336  # it helps to detect inapplicable dependency modes.  For instance
3337  # both Tru64's cc and ICC support -MD to output dependencies as a
3338  # side effect of compilation, but ICC will put the dependencies in
3339  # the current directory while Tru64 will put them in the object
3340  # directory.
3341  mkdir sub
3342
3343  am_cv_CC_dependencies_compiler_type=none
3344  if test "$am_compiler_list" = ""; then
3345     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3346  fi
3347  for depmode in $am_compiler_list; do
3348    # Setup a source with many dependencies, because some compilers
3349    # like to wrap large dependency lists on column 80 (with \), and
3350    # we should not choose a depcomp mode which is confused by this.
3351    #
3352    # We need to recreate these files for each test, as the compiler may
3353    # overwrite some of them when testing with obscure command lines.
3354    # This happens at least with the AIX C compiler.
3355    : > sub/conftest.c
3356    for i in 1 2 3 4 5 6; do
3357      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3358      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3359      # Solaris 8's {/usr,}/bin/sh.
3360      touch sub/conftst$i.h
3361    done
3362    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3363
3364    case $depmode in
3365    nosideeffect)
3366      # after this tag, mechanisms are not by side-effect, so they'll
3367      # only be used when explicitly requested
3368      if test "x$enable_dependency_tracking" = xyes; then
3369        continue
3370      else
3371        break
3372      fi
3373      ;;
3374    none) break ;;
3375    esac
3376    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3377    # mode.  It turns out that the SunPro C++ compiler does not properly
3378    # handle `-M -o', and we need to detect this.
3379    if depmode=$depmode \
3380       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3381       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3382       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3383         >/dev/null 2>conftest.err &&
3384       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3385       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3386       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3387      # icc doesn't choke on unknown options, it will just issue warnings
3388      # or remarks (even with -Werror).  So we grep stderr for any message
3389      # that says an option was ignored or not supported.
3390      # When given -MP, icc 7.0 and 7.1 complain thusly:
3391      #   icc: Command line warning: ignoring option '-M'; no argument required
3392      # The diagnosis changed in icc 8.0:
3393      #   icc: Command line remark: option '-MP' not supported
3394      if (grep 'ignoring option' conftest.err ||
3395          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3396        am_cv_CC_dependencies_compiler_type=$depmode
3397        break
3398      fi
3399    fi
3400  done
3401
3402  cd ..
3403  rm -rf conftest.dir
3404else
3405  am_cv_CC_dependencies_compiler_type=none
3406fi
3407
3408fi
3409echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3410echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3411CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3412
3413
3414
3415if
3416  test "x$enable_dependency_tracking" != xno \
3417  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3418  am__fastdepCC_TRUE=
3419  am__fastdepCC_FALSE='#'
3420else
3421  am__fastdepCC_TRUE='#'
3422  am__fastdepCC_FALSE=
3423fi
3424
3425
3426
3427ac_ext=c
3428ac_cpp='$CPP $CPPFLAGS'
3429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431ac_compiler_gnu=$ac_cv_c_compiler_gnu
3432echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3433echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3434# On Suns, sometimes $CPP names a directory.
3435if test -n "$CPP" && test -d "$CPP"; then
3436  CPP=
3437fi
3438if test -z "$CPP"; then
3439  if test "${ac_cv_prog_CPP+set}" = set; then
3440  echo $ECHO_N "(cached) $ECHO_C" >&6
3441else
3442      # Double quotes because CPP needs to be expanded
3443    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3444    do
3445      ac_preproc_ok=false
3446for ac_c_preproc_warn_flag in '' yes
3447do
3448  # Use a header file that comes with gcc, so configuring glibc
3449  # with a fresh cross-compiler works.
3450  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3451  # <limits.h> exists even on freestanding compilers.
3452  # On the NeXT, cc -E runs the code through the compiler's parser,
3453  # not just through cpp. "Syntax error" is here to catch this case.
3454  cat >conftest.$ac_ext <<_ACEOF
3455/* confdefs.h.  */
3456_ACEOF
3457cat confdefs.h >>conftest.$ac_ext
3458cat >>conftest.$ac_ext <<_ACEOF
3459/* end confdefs.h.  */
3460#ifdef __STDC__
3461# include <limits.h>
3462#else
3463# include <assert.h>
3464#endif
3465                     Syntax error
3466_ACEOF
3467if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3468  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3469  ac_status=$?
3470  grep -v '^ *+' conftest.er1 >conftest.err
3471  rm -f conftest.er1
3472  cat conftest.err >&5
3473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474  (exit $ac_status); } >/dev/null; then
3475  if test -s conftest.err; then
3476    ac_cpp_err=$ac_c_preproc_warn_flag
3477    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3478  else
3479    ac_cpp_err=
3480  fi
3481else
3482  ac_cpp_err=yes
3483fi
3484if test -z "$ac_cpp_err"; then
3485  :
3486else
3487  echo "$as_me: failed program was:" >&5
3488sed 's/^/| /' conftest.$ac_ext >&5
3489
3490  # Broken: fails on valid input.
3491continue
3492fi
3493rm -f conftest.err conftest.$ac_ext
3494
3495  # OK, works on sane cases.  Now check whether non-existent headers
3496  # can be detected and how.
3497  cat >conftest.$ac_ext <<_ACEOF
3498/* confdefs.h.  */
3499_ACEOF
3500cat confdefs.h >>conftest.$ac_ext
3501cat >>conftest.$ac_ext <<_ACEOF
3502/* end confdefs.h.  */
3503#include <ac_nonexistent.h>
3504_ACEOF
3505if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3506  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3507  ac_status=$?
3508  grep -v '^ *+' conftest.er1 >conftest.err
3509  rm -f conftest.er1
3510  cat conftest.err >&5
3511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512  (exit $ac_status); } >/dev/null; then
3513  if test -s conftest.err; then
3514    ac_cpp_err=$ac_c_preproc_warn_flag
3515    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3516  else
3517    ac_cpp_err=
3518  fi
3519else
3520  ac_cpp_err=yes
3521fi
3522if test -z "$ac_cpp_err"; then
3523  # Broken: success on invalid input.
3524continue
3525else
3526  echo "$as_me: failed program was:" >&5
3527sed 's/^/| /' conftest.$ac_ext >&5
3528
3529  # Passes both tests.
3530ac_preproc_ok=:
3531break
3532fi
3533rm -f conftest.err conftest.$ac_ext
3534
3535done
3536# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3537rm -f conftest.err conftest.$ac_ext
3538if $ac_preproc_ok; then
3539  break
3540fi
3541
3542    done
3543    ac_cv_prog_CPP=$CPP
3544
3545fi
3546  CPP=$ac_cv_prog_CPP
3547else
3548  ac_cv_prog_CPP=$CPP
3549fi
3550echo "$as_me:$LINENO: result: $CPP" >&5
3551echo "${ECHO_T}$CPP" >&6
3552ac_preproc_ok=false
3553for ac_c_preproc_warn_flag in '' yes
3554do
3555  # Use a header file that comes with gcc, so configuring glibc
3556  # with a fresh cross-compiler works.
3557  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3558  # <limits.h> exists even on freestanding compilers.
3559  # On the NeXT, cc -E runs the code through the compiler's parser,
3560  # not just through cpp. "Syntax error" is here to catch this case.
3561  cat >conftest.$ac_ext <<_ACEOF
3562/* confdefs.h.  */
3563_ACEOF
3564cat confdefs.h >>conftest.$ac_ext
3565cat >>conftest.$ac_ext <<_ACEOF
3566/* end confdefs.h.  */
3567#ifdef __STDC__
3568# include <limits.h>
3569#else
3570# include <assert.h>
3571#endif
3572                     Syntax error
3573_ACEOF
3574if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3575  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3576  ac_status=$?
3577  grep -v '^ *+' conftest.er1 >conftest.err
3578  rm -f conftest.er1
3579  cat conftest.err >&5
3580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581  (exit $ac_status); } >/dev/null; then
3582  if test -s conftest.err; then
3583    ac_cpp_err=$ac_c_preproc_warn_flag
3584    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3585  else
3586    ac_cpp_err=
3587  fi
3588else
3589  ac_cpp_err=yes
3590fi
3591if test -z "$ac_cpp_err"; then
3592  :
3593else
3594  echo "$as_me: failed program was:" >&5
3595sed 's/^/| /' conftest.$ac_ext >&5
3596
3597  # Broken: fails on valid input.
3598continue
3599fi
3600rm -f conftest.err conftest.$ac_ext
3601
3602  # OK, works on sane cases.  Now check whether non-existent headers
3603  # can be detected and how.
3604  cat >conftest.$ac_ext <<_ACEOF
3605/* confdefs.h.  */
3606_ACEOF
3607cat confdefs.h >>conftest.$ac_ext
3608cat >>conftest.$ac_ext <<_ACEOF
3609/* end confdefs.h.  */
3610#include <ac_nonexistent.h>
3611_ACEOF
3612if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3613  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3614  ac_status=$?
3615  grep -v '^ *+' conftest.er1 >conftest.err
3616  rm -f conftest.er1
3617  cat conftest.err >&5
3618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619  (exit $ac_status); } >/dev/null; then
3620  if test -s conftest.err; then
3621    ac_cpp_err=$ac_c_preproc_warn_flag
3622    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3623  else
3624    ac_cpp_err=
3625  fi
3626else
3627  ac_cpp_err=yes
3628fi
3629if test -z "$ac_cpp_err"; then
3630  # Broken: success on invalid input.
3631continue
3632else
3633  echo "$as_me: failed program was:" >&5
3634sed 's/^/| /' conftest.$ac_ext >&5
3635
3636  # Passes both tests.
3637ac_preproc_ok=:
3638break
3639fi
3640rm -f conftest.err conftest.$ac_ext
3641
3642done
3643# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3644rm -f conftest.err conftest.$ac_ext
3645if $ac_preproc_ok; then
3646  :
3647else
3648  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3649See \`config.log' for more details." >&5
3650echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3651See \`config.log' for more details." >&2;}
3652   { (exit 1); exit 1; }; }
3653fi
3654
3655ac_ext=c
3656ac_cpp='$CPP $CPPFLAGS'
3657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3659ac_compiler_gnu=$ac_cv_c_compiler_gnu
3660
3661
3662echo "$as_me:$LINENO: checking for egrep" >&5
3663echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3664if test "${ac_cv_prog_egrep+set}" = set; then
3665  echo $ECHO_N "(cached) $ECHO_C" >&6
3666else
3667  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3668    then ac_cv_prog_egrep='grep -E'
3669    else ac_cv_prog_egrep='egrep'
3670    fi
3671fi
3672echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3673echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3674 EGREP=$ac_cv_prog_egrep
3675
3676
3677echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3678echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3679if test "${ac_cv_header_stdc+set}" = set; then
3680  echo $ECHO_N "(cached) $ECHO_C" >&6
3681else
3682  cat >conftest.$ac_ext <<_ACEOF
3683/* confdefs.h.  */
3684_ACEOF
3685cat confdefs.h >>conftest.$ac_ext
3686cat >>conftest.$ac_ext <<_ACEOF
3687/* end confdefs.h.  */
3688#include <stdlib.h>
3689#include <stdarg.h>
3690#include <string.h>
3691#include <float.h>
3692
3693int
3694main ()
3695{
3696
3697  ;
3698  return 0;
3699}
3700_ACEOF
3701rm -f conftest.$ac_objext
3702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3703  (eval $ac_compile) 2>conftest.er1
3704  ac_status=$?
3705  grep -v '^ *+' conftest.er1 >conftest.err
3706  rm -f conftest.er1
3707  cat conftest.err >&5
3708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709  (exit $ac_status); } &&
3710         { ac_try='test -z "$ac_c_werror_flag"
3711                         || test ! -s conftest.err'
3712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713  (eval $ac_try) 2>&5
3714  ac_status=$?
3715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716  (exit $ac_status); }; } &&
3717         { ac_try='test -s conftest.$ac_objext'
3718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719  (eval $ac_try) 2>&5
3720  ac_status=$?
3721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722  (exit $ac_status); }; }; then
3723  ac_cv_header_stdc=yes
3724else
3725  echo "$as_me: failed program was:" >&5
3726sed 's/^/| /' conftest.$ac_ext >&5
3727
3728ac_cv_header_stdc=no
3729fi
3730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3731
3732if test $ac_cv_header_stdc = yes; then
3733  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3734  cat >conftest.$ac_ext <<_ACEOF
3735/* confdefs.h.  */
3736_ACEOF
3737cat confdefs.h >>conftest.$ac_ext
3738cat >>conftest.$ac_ext <<_ACEOF
3739/* end confdefs.h.  */
3740#include <string.h>
3741
3742_ACEOF
3743if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3744  $EGREP "memchr" >/dev/null 2>&1; then
3745  :
3746else
3747  ac_cv_header_stdc=no
3748fi
3749rm -f conftest*
3750
3751fi
3752
3753if test $ac_cv_header_stdc = yes; then
3754  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3755  cat >conftest.$ac_ext <<_ACEOF
3756/* confdefs.h.  */
3757_ACEOF
3758cat confdefs.h >>conftest.$ac_ext
3759cat >>conftest.$ac_ext <<_ACEOF
3760/* end confdefs.h.  */
3761#include <stdlib.h>
3762
3763_ACEOF
3764if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3765  $EGREP "free" >/dev/null 2>&1; then
3766  :
3767else
3768  ac_cv_header_stdc=no
3769fi
3770rm -f conftest*
3771
3772fi
3773
3774if test $ac_cv_header_stdc = yes; then
3775  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3776  if test "$cross_compiling" = yes; then
3777  :
3778else
3779  cat >conftest.$ac_ext <<_ACEOF
3780/* confdefs.h.  */
3781_ACEOF
3782cat confdefs.h >>conftest.$ac_ext
3783cat >>conftest.$ac_ext <<_ACEOF
3784/* end confdefs.h.  */
3785#include <ctype.h>
3786#if ((' ' & 0x0FF) == 0x020)
3787# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3788# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3789#else
3790# define ISLOWER(c) \
3791                   (('a' <= (c) && (c) <= 'i') \
3792                     || ('j' <= (c) && (c) <= 'r') \
3793                     || ('s' <= (c) && (c) <= 'z'))
3794# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3795#endif
3796
3797#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3798int
3799main ()
3800{
3801  int i;
3802  for (i = 0; i < 256; i++)
3803    if (XOR (islower (i), ISLOWER (i))
3804        || toupper (i) != TOUPPER (i))
3805      exit(2);
3806  exit (0);
3807}
3808_ACEOF
3809rm -f conftest$ac_exeext
3810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3811  (eval $ac_link) 2>&5
3812  ac_status=$?
3813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3816  (eval $ac_try) 2>&5
3817  ac_status=$?
3818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819  (exit $ac_status); }; }; then
3820  :
3821else
3822  echo "$as_me: program exited with status $ac_status" >&5
3823echo "$as_me: failed program was:" >&5
3824sed 's/^/| /' conftest.$ac_ext >&5
3825
3826( exit $ac_status )
3827ac_cv_header_stdc=no
3828fi
3829rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3830fi
3831fi
3832fi
3833echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3834echo "${ECHO_T}$ac_cv_header_stdc" >&6
3835if test $ac_cv_header_stdc = yes; then
3836
3837cat >>confdefs.h <<\_ACEOF
3838#define STDC_HEADERS 1
3839_ACEOF
3840
3841fi
3842
3843
3844##################################
3845## CHECKING  OPTIONAL ARGUMENTS ##
3846##################################
3847
3848#-----------------#
3849# DEBUG-statement #
3850#-----------------#
3851DEBUG=no
3852echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5
3853echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6
3854# Check whether --enable-debug or --disable-debug was given.
3855if test "${enable_debug+set}" = set; then
3856  enableval="$enable_debug"
3857  DEBUG=$enableval
3858fi;
3859
3860if test x$DEBUG = xno; then
3861        echo "no"
3862        echo " -> Setting debuglevel to 3. (orxonox is still in Development. It really is needed."
3863        DEBUG=3
3864elif test x$DEBUG = xyes; then
3865        echo "yes"
3866        echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!."
3867        DEBUG=4
3868else
3869        echo "yes: setting debuglevel to to $DEBUG"
3870fi
3871
3872cat >>confdefs.h <<_ACEOF
3873#define DEBUG $DEBUG
3874_ACEOF
3875
3876
3877
3878
3879#--------------#
3880# GTK-disabled #
3881#--------------#
3882echo "$as_me:$LINENO: checking if gtk should be enabled" >&5
3883echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6
3884
3885# Check whether --with-gtk or --without-gtk was given.
3886if test "${with_gtk+set}" = set; then
3887  withval="$with_gtk"
3888  def_gtk=no
3889else
3890  def_gtk=yes
3891fi;
3892if test x$def_gtk = xyes; then
3893  echo "yes"
3894fi
3895if test x$def_gtk = xno; then
3896  echo "no"
3897fi
3898
3899#------------------#
3900# gThread-disabled #
3901#------------------#
3902echo "$as_me:$LINENO: checking if gThread should be enabled" >&5
3903echo $ECHO_N "checking if gThread should be enabled... $ECHO_C" >&6
3904
3905# Check whether --with-gthread or --without-gthread was given.
3906if test "${with_gthread+set}" = set; then
3907  withval="$with_gthread"
3908  def_gthread=no
3909else
3910  def_gthread=yes
3911fi;
3912if test x$def_gthread = xyes; then
3913  echo "yes"
3914fi
3915if test x$def_gthread = xno; then
3916  echo "no"
3917fi
3918
3919#------------------#
3920# pthread-disabled #
3921#------------------#
3922echo "$as_me:$LINENO: checking if pthread should be enabled" >&5
3923echo $ECHO_N "checking if pthread should be enabled... $ECHO_C" >&6
3924
3925# Check whether --with-pthread or --without-pthread was given.
3926if test "${with_pthread+set}" = set; then
3927  withval="$with_pthread"
3928  def_pthread=no
3929else
3930  def_pthread=yes
3931fi;
3932if test x$def_pthread = xyes; then
3933  echo "yes"
3934fi
3935if test x$def_pthread = xno; then
3936  echo "no"
3937fi
3938
3939#------------------#
3940# libCurl-disabled #
3941#------------------#
3942echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5
3943echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6
3944
3945# Check whether --with-curl or --without-curl was given.
3946if test "${with_curl+set}" = set; then
3947  withval="$with_curl"
3948  def_curl=no
3949else
3950  def_curl=yes
3951fi;
3952if test x$def_curl = xyes; then
3953  echo "yes"
3954fi
3955if test x$def_curl = xno; then
3956  echo "no"
3957fi
3958
3959#-------------------#
3960# SDL_image-disable #
3961#-------------------#
3962def_sdl_image=yes
3963echo "$as_me:$LINENO: checking if SDL_image should be enabled" >&5
3964echo $ECHO_N "checking if SDL_image should be enabled... $ECHO_C" >&6
3965
3966# Check whether --with-sdl_image or --without-sdl_image was given.
3967if test "${with_sdl_image+set}" = set; then
3968  withval="$with_sdl_image"
3969  def_sdl_image=no
3970fi;
3971if test x$def_sdl_image = xyes; then
3972  echo "yes"
3973fi
3974if test x$def_sdl_image = xno; then
3975  echo "no"
3976fi
3977#-------------------#
3978# SubProject-enable #
3979#-------------------#
3980def_sub_projects=no
3981echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5
3982echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6
3983# Check whether --enable-sub-projects or --disable-sub-projects was given.
3984if test "${enable_sub_projects+set}" = set; then
3985  enableval="$enable_sub_projects"
3986  def_sub_projects=yes
3987fi;
3988if test x$def_sub_projects = xyes; then
3989  echo "yes"
3990fi
3991if test x$def_sub_projects = xno; then
3992  echo "no"
3993fi
3994
3995
3996if test x$def_sub_projects = xyes; then
3997  SUB_PROJECTS_TRUE=
3998  SUB_PROJECTS_FALSE='#'
3999else
4000  SUB_PROJECTS_TRUE='#'
4001  SUB_PROJECTS_FALSE=
4002fi
4003
4004
4005#######################
4006## PROGRAMM CHECKING ##
4007## 3. party Programs ##
4008#######################
4009
4010#----------------------#
4011# checking for Doxygen #
4012#----------------------#
4013# Extract the first word of "doxygen", so it can be a program name with args.
4014set dummy doxygen; ac_word=$2
4015echo "$as_me:$LINENO: checking for $ac_word" >&5
4016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4017if test "${ac_cv_path_DOXYGEN+set}" = set; then
4018  echo $ECHO_N "(cached) $ECHO_C" >&6
4019else
4020  case $DOXYGEN in
4021  [\\/]* | ?:[\\/]*)
4022  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
4023  ;;
4024  *)
4025  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026for as_dir in $PATH
4027do
4028  IFS=$as_save_IFS
4029  test -z "$as_dir" && as_dir=.
4030  for ac_exec_ext in '' $ac_executable_extensions; do
4031  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4032    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
4033    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4034    break 2
4035  fi
4036done
4037done
4038
4039  ;;
4040esac
4041fi
4042DOXYGEN=$ac_cv_path_DOXYGEN
4043
4044if test -n "$DOXYGEN"; then
4045  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
4046echo "${ECHO_T}$DOXYGEN" >&6
4047else
4048  echo "$as_me:$LINENO: result: no" >&5
4049echo "${ECHO_T}no" >&6
4050fi
4051
4052
4053
4054if test $DOXYGEN; then
4055  DOXYGEN_TRUE=
4056  DOXYGEN_FALSE='#'
4057else
4058  DOXYGEN_TRUE='#'
4059  DOXYGEN_FALSE=
4060fi
4061
4062
4063#########################
4064## CHECKING FOR SYSTEM ##
4065#########################
4066## here the system is checked, and openGL is included
4067## also checking for SDL on differen Systems
4068
4069echo "$as_me:$LINENO: checking for System" >&5
4070echo $ECHO_N "checking for System... $ECHO_C" >&6
4071## checking for openGL-environment and other sys-specific parameters
4072case "$target" in
4073#---------#
4074# WINDOWS #
4075#---------#
4076  *-*-mingw32*)
4077echo "mingw-WINDOWS detected"
4078
4079    mingw="yes"
4080    MSBITFIELDS="-mms-bitfields"
4081    MWINDOWS="-mwindows"
4082
4083# checking gl header
4084        #done before loop
4085
4086# checking gl header
4087   # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4098                  inttypes.h stdint.h unistd.h
4099do
4100as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4101echo "$as_me:$LINENO: checking for $ac_header" >&5
4102echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4103if eval "test \"\${$as_ac_Header+set}\" = set"; then
4104  echo $ECHO_N "(cached) $ECHO_C" >&6
4105else
4106  cat >conftest.$ac_ext <<_ACEOF
4107/* confdefs.h.  */
4108_ACEOF
4109cat confdefs.h >>conftest.$ac_ext
4110cat >>conftest.$ac_ext <<_ACEOF
4111/* end confdefs.h.  */
4112$ac_includes_default
4113
4114#include <$ac_header>
4115_ACEOF
4116rm -f conftest.$ac_objext
4117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4118  (eval $ac_compile) 2>conftest.er1
4119  ac_status=$?
4120  grep -v '^ *+' conftest.er1 >conftest.err
4121  rm -f conftest.er1
4122  cat conftest.err >&5
4123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124  (exit $ac_status); } &&
4125         { ac_try='test -z "$ac_c_werror_flag"
4126                         || test ! -s conftest.err'
4127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4128  (eval $ac_try) 2>&5
4129  ac_status=$?
4130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131  (exit $ac_status); }; } &&
4132         { ac_try='test -s conftest.$ac_objext'
4133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4134  (eval $ac_try) 2>&5
4135  ac_status=$?
4136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137  (exit $ac_status); }; }; then
4138  eval "$as_ac_Header=yes"
4139else
4140  echo "$as_me: failed program was:" >&5
4141sed 's/^/| /' conftest.$ac_ext >&5
4142
4143eval "$as_ac_Header=no"
4144fi
4145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4146fi
4147echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4148echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4149if test `eval echo '${'$as_ac_Header'}'` = yes; then
4150  cat >>confdefs.h <<_ACEOF
4151#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4152_ACEOF
4153
4154fi
4155
4156done
4157
4158
4159
4160for ac_header in GL/gl.h
4161do
4162as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4163if eval "test \"\${$as_ac_Header+set}\" = set"; then
4164  echo "$as_me:$LINENO: checking for $ac_header" >&5
4165echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4166if eval "test \"\${$as_ac_Header+set}\" = set"; then
4167  echo $ECHO_N "(cached) $ECHO_C" >&6
4168fi
4169echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4170echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4171else
4172  # Is the header compilable?
4173echo "$as_me:$LINENO: checking $ac_header usability" >&5
4174echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4175cat >conftest.$ac_ext <<_ACEOF
4176/* confdefs.h.  */
4177_ACEOF
4178cat confdefs.h >>conftest.$ac_ext
4179cat >>conftest.$ac_ext <<_ACEOF
4180/* end confdefs.h.  */
4181$ac_includes_default
4182#include <$ac_header>
4183_ACEOF
4184rm -f conftest.$ac_objext
4185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4186  (eval $ac_compile) 2>conftest.er1
4187  ac_status=$?
4188  grep -v '^ *+' conftest.er1 >conftest.err
4189  rm -f conftest.er1
4190  cat conftest.err >&5
4191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192  (exit $ac_status); } &&
4193         { ac_try='test -z "$ac_c_werror_flag"
4194                         || test ! -s conftest.err'
4195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4196  (eval $ac_try) 2>&5
4197  ac_status=$?
4198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199  (exit $ac_status); }; } &&
4200         { ac_try='test -s conftest.$ac_objext'
4201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4202  (eval $ac_try) 2>&5
4203  ac_status=$?
4204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205  (exit $ac_status); }; }; then
4206  ac_header_compiler=yes
4207else
4208  echo "$as_me: failed program was:" >&5
4209sed 's/^/| /' conftest.$ac_ext >&5
4210
4211ac_header_compiler=no
4212fi
4213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4214echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4215echo "${ECHO_T}$ac_header_compiler" >&6
4216
4217# Is the header present?
4218echo "$as_me:$LINENO: checking $ac_header presence" >&5
4219echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4220cat >conftest.$ac_ext <<_ACEOF
4221/* confdefs.h.  */
4222_ACEOF
4223cat confdefs.h >>conftest.$ac_ext
4224cat >>conftest.$ac_ext <<_ACEOF
4225/* end confdefs.h.  */
4226#include <$ac_header>
4227_ACEOF
4228if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4229  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4230  ac_status=$?
4231  grep -v '^ *+' conftest.er1 >conftest.err
4232  rm -f conftest.er1
4233  cat conftest.err >&5
4234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235  (exit $ac_status); } >/dev/null; then
4236  if test -s conftest.err; then
4237    ac_cpp_err=$ac_c_preproc_warn_flag
4238    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4239  else
4240    ac_cpp_err=
4241  fi
4242else
4243  ac_cpp_err=yes
4244fi
4245if test -z "$ac_cpp_err"; then
4246  ac_header_preproc=yes
4247else
4248  echo "$as_me: failed program was:" >&5
4249sed 's/^/| /' conftest.$ac_ext >&5
4250
4251  ac_header_preproc=no
4252fi
4253rm -f conftest.err conftest.$ac_ext
4254echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4255echo "${ECHO_T}$ac_header_preproc" >&6
4256
4257# So?  What about this header?
4258case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4259  yes:no: )
4260    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4261echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4262    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4263echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4264    ac_header_preproc=yes
4265    ;;
4266  no:yes:* )
4267    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4268echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4269    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4270echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4271    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4272echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4273    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4274echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4275    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4276echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4277    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4278echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4279    (
4280      cat <<\_ASBOX
4281## ---------------------------------------------- ##
4282## Report this to orxonox-dev at mail.datacore.ch ##
4283## ---------------------------------------------- ##
4284_ASBOX
4285    ) |
4286      sed "s/^/$as_me: WARNING:     /" >&2
4287    ;;
4288esac
4289echo "$as_me:$LINENO: checking for $ac_header" >&5
4290echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4291if eval "test \"\${$as_ac_Header+set}\" = set"; then
4292  echo $ECHO_N "(cached) $ECHO_C" >&6
4293else
4294  eval "$as_ac_Header=\$ac_header_preproc"
4295fi
4296echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4297echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4298
4299fi
4300if test `eval echo '${'$as_ac_Header'}'` = yes; then
4301  cat >>confdefs.h <<_ACEOF
4302#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4303_ACEOF
4304
4305else
4306  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4307echo "$as_me: error: cannot find opengl headers" >&2;}
4308   { (exit 1); exit 1; }; }
4309fi
4310
4311done
4312
4313#   checking for Windows openGl library
4314    echo "$as_me:$LINENO: checking for main in -lopengl32" >&5
4315echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6
4316if test "${ac_cv_lib_opengl32_main+set}" = set; then
4317  echo $ECHO_N "(cached) $ECHO_C" >&6
4318else
4319  ac_check_lib_save_LIBS=$LIBS
4320LIBS="-lopengl32  $LIBS"
4321cat >conftest.$ac_ext <<_ACEOF
4322/* confdefs.h.  */
4323_ACEOF
4324cat confdefs.h >>conftest.$ac_ext
4325cat >>conftest.$ac_ext <<_ACEOF
4326/* end confdefs.h.  */
4327
4328
4329int
4330main ()
4331{
4332main ();
4333  ;
4334  return 0;
4335}
4336_ACEOF
4337rm -f conftest.$ac_objext conftest$ac_exeext
4338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4339  (eval $ac_link) 2>conftest.er1
4340  ac_status=$?
4341  grep -v '^ *+' conftest.er1 >conftest.err
4342  rm -f conftest.er1
4343  cat conftest.err >&5
4344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345  (exit $ac_status); } &&
4346         { ac_try='test -z "$ac_c_werror_flag"
4347                         || test ! -s conftest.err'
4348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4349  (eval $ac_try) 2>&5
4350  ac_status=$?
4351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352  (exit $ac_status); }; } &&
4353         { ac_try='test -s conftest$ac_exeext'
4354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355  (eval $ac_try) 2>&5
4356  ac_status=$?
4357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358  (exit $ac_status); }; }; then
4359  ac_cv_lib_opengl32_main=yes
4360else
4361  echo "$as_me: failed program was:" >&5
4362sed 's/^/| /' conftest.$ac_ext >&5
4363
4364ac_cv_lib_opengl32_main=no
4365fi
4366rm -f conftest.err conftest.$ac_objext \
4367      conftest$ac_exeext conftest.$ac_ext
4368LIBS=$ac_check_lib_save_LIBS
4369fi
4370echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5
4371echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6
4372if test $ac_cv_lib_opengl32_main = yes; then
4373  FOUND_opengl32=yes
4374else
4375  "gl/gl.h"
4376fi
4377
4378    if test x$FOUND_opengl32 = xyes ; then
4379        LIBS="$LIBS -lopengl32"
4380    else
4381         echo "------------------"
4382         echo "opengl not found."
4383         echo "please install the opengl package which can be found at http://www.opengl.org"
4384         echo "------------------"
4385         exit -1
4386    fi
4387
4388# cheking for GLU-header
4389
4390for ac_header in GL/glu.h
4391do
4392as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4393if eval "test \"\${$as_ac_Header+set}\" = set"; then
4394  echo "$as_me:$LINENO: checking for $ac_header" >&5
4395echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4396if eval "test \"\${$as_ac_Header+set}\" = set"; then
4397  echo $ECHO_N "(cached) $ECHO_C" >&6
4398fi
4399echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4400echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4401else
4402  # Is the header compilable?
4403echo "$as_me:$LINENO: checking $ac_header usability" >&5
4404echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4405cat >conftest.$ac_ext <<_ACEOF
4406/* confdefs.h.  */
4407_ACEOF
4408cat confdefs.h >>conftest.$ac_ext
4409cat >>conftest.$ac_ext <<_ACEOF
4410/* end confdefs.h.  */
4411$ac_includes_default
4412#include <$ac_header>
4413_ACEOF
4414rm -f conftest.$ac_objext
4415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4416  (eval $ac_compile) 2>conftest.er1
4417  ac_status=$?
4418  grep -v '^ *+' conftest.er1 >conftest.err
4419  rm -f conftest.er1
4420  cat conftest.err >&5
4421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422  (exit $ac_status); } &&
4423         { ac_try='test -z "$ac_c_werror_flag"
4424                         || test ! -s conftest.err'
4425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426  (eval $ac_try) 2>&5
4427  ac_status=$?
4428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429  (exit $ac_status); }; } &&
4430         { ac_try='test -s conftest.$ac_objext'
4431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432  (eval $ac_try) 2>&5
4433  ac_status=$?
4434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435  (exit $ac_status); }; }; then
4436  ac_header_compiler=yes
4437else
4438  echo "$as_me: failed program was:" >&5
4439sed 's/^/| /' conftest.$ac_ext >&5
4440
4441ac_header_compiler=no
4442fi
4443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4444echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4445echo "${ECHO_T}$ac_header_compiler" >&6
4446
4447# Is the header present?
4448echo "$as_me:$LINENO: checking $ac_header presence" >&5
4449echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4450cat >conftest.$ac_ext <<_ACEOF
4451/* confdefs.h.  */
4452_ACEOF
4453cat confdefs.h >>conftest.$ac_ext
4454cat >>conftest.$ac_ext <<_ACEOF
4455/* end confdefs.h.  */
4456#include <$ac_header>
4457_ACEOF
4458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4459  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4460  ac_status=$?
4461  grep -v '^ *+' conftest.er1 >conftest.err
4462  rm -f conftest.er1
4463  cat conftest.err >&5
4464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465  (exit $ac_status); } >/dev/null; then
4466  if test -s conftest.err; then
4467    ac_cpp_err=$ac_c_preproc_warn_flag
4468    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4469  else
4470    ac_cpp_err=
4471  fi
4472else
4473  ac_cpp_err=yes
4474fi
4475if test -z "$ac_cpp_err"; then
4476  ac_header_preproc=yes
4477else
4478  echo "$as_me: failed program was:" >&5
4479sed 's/^/| /' conftest.$ac_ext >&5
4480
4481  ac_header_preproc=no
4482fi
4483rm -f conftest.err conftest.$ac_ext
4484echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4485echo "${ECHO_T}$ac_header_preproc" >&6
4486
4487# So?  What about this header?
4488case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4489  yes:no: )
4490    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4491echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4492    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4493echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4494    ac_header_preproc=yes
4495    ;;
4496  no:yes:* )
4497    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4498echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4499    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4500echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4501    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4502echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4503    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4504echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4505    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4506echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4507    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4508echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4509    (
4510      cat <<\_ASBOX
4511## ---------------------------------------------- ##
4512## Report this to orxonox-dev at mail.datacore.ch ##
4513## ---------------------------------------------- ##
4514_ASBOX
4515    ) |
4516      sed "s/^/$as_me: WARNING:     /" >&2
4517    ;;
4518esac
4519echo "$as_me:$LINENO: checking for $ac_header" >&5
4520echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4521if eval "test \"\${$as_ac_Header+set}\" = set"; then
4522  echo $ECHO_N "(cached) $ECHO_C" >&6
4523else
4524  eval "$as_ac_Header=\$ac_header_preproc"
4525fi
4526echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4527echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4528
4529fi
4530if test `eval echo '${'$as_ac_Header'}'` = yes; then
4531  cat >>confdefs.h <<_ACEOF
4532#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4533_ACEOF
4534
4535else
4536  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4537echo "$as_me: error: cannot find opengl headers" >&2;}
4538   { (exit 1); exit 1; }; }
4539fi
4540
4541done
4542
4543
4544# checking for libGLU
4545    echo "$as_me:$LINENO: checking for main in -lglu32" >&5
4546echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6
4547if test "${ac_cv_lib_glu32_main+set}" = set; then
4548  echo $ECHO_N "(cached) $ECHO_C" >&6
4549else
4550  ac_check_lib_save_LIBS=$LIBS
4551LIBS="-lglu32  $LIBS"
4552cat >conftest.$ac_ext <<_ACEOF
4553/* confdefs.h.  */
4554_ACEOF
4555cat confdefs.h >>conftest.$ac_ext
4556cat >>conftest.$ac_ext <<_ACEOF
4557/* end confdefs.h.  */
4558
4559
4560int
4561main ()
4562{
4563main ();
4564  ;
4565  return 0;
4566}
4567_ACEOF
4568rm -f conftest.$ac_objext conftest$ac_exeext
4569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4570  (eval $ac_link) 2>conftest.er1
4571  ac_status=$?
4572  grep -v '^ *+' conftest.er1 >conftest.err
4573  rm -f conftest.er1
4574  cat conftest.err >&5
4575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576  (exit $ac_status); } &&
4577         { ac_try='test -z "$ac_c_werror_flag"
4578                         || test ! -s conftest.err'
4579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580  (eval $ac_try) 2>&5
4581  ac_status=$?
4582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583  (exit $ac_status); }; } &&
4584         { ac_try='test -s conftest$ac_exeext'
4585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4586  (eval $ac_try) 2>&5
4587  ac_status=$?
4588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589  (exit $ac_status); }; }; then
4590  ac_cv_lib_glu32_main=yes
4591else
4592  echo "$as_me: failed program was:" >&5
4593sed 's/^/| /' conftest.$ac_ext >&5
4594
4595ac_cv_lib_glu32_main=no
4596fi
4597rm -f conftest.err conftest.$ac_objext \
4598      conftest$ac_exeext conftest.$ac_ext
4599LIBS=$ac_check_lib_save_LIBS
4600fi
4601echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5
4602echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6
4603if test $ac_cv_lib_glu32_main = yes; then
4604  FOUND_glu32=yes
4605fi
4606
4607    if test x$FOUND_glu32 = xyes ; then
4608        LIBS="$LIBS -lGLU32"
4609    else
4610         echo "------------------"
4611         echo "GLU library not found."
4612         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
4613         echo "------------------"
4614         exit -1
4615    fi
4616
4617# checking for mingw32
4618    echo "$as_me:$LINENO: checking for main in -lmingw32" >&5
4619echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6
4620if test "${ac_cv_lib_mingw32_main+set}" = set; then
4621  echo $ECHO_N "(cached) $ECHO_C" >&6
4622else
4623  ac_check_lib_save_LIBS=$LIBS
4624LIBS="-lmingw32  $LIBS"
4625cat >conftest.$ac_ext <<_ACEOF
4626/* confdefs.h.  */
4627_ACEOF
4628cat confdefs.h >>conftest.$ac_ext
4629cat >>conftest.$ac_ext <<_ACEOF
4630/* end confdefs.h.  */
4631
4632
4633int
4634main ()
4635{
4636main ();
4637  ;
4638  return 0;
4639}
4640_ACEOF
4641rm -f conftest.$ac_objext conftest$ac_exeext
4642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4643  (eval $ac_link) 2>conftest.er1
4644  ac_status=$?
4645  grep -v '^ *+' conftest.er1 >conftest.err
4646  rm -f conftest.er1
4647  cat conftest.err >&5
4648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649  (exit $ac_status); } &&
4650         { ac_try='test -z "$ac_c_werror_flag"
4651                         || test ! -s conftest.err'
4652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653  (eval $ac_try) 2>&5
4654  ac_status=$?
4655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656  (exit $ac_status); }; } &&
4657         { ac_try='test -s conftest$ac_exeext'
4658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4659  (eval $ac_try) 2>&5
4660  ac_status=$?
4661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662  (exit $ac_status); }; }; then
4663  ac_cv_lib_mingw32_main=yes
4664else
4665  echo "$as_me: failed program was:" >&5
4666sed 's/^/| /' conftest.$ac_ext >&5
4667
4668ac_cv_lib_mingw32_main=no
4669fi
4670rm -f conftest.err conftest.$ac_objext \
4671      conftest$ac_exeext conftest.$ac_ext
4672LIBS=$ac_check_lib_save_LIBS
4673fi
4674echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5
4675echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6
4676if test $ac_cv_lib_mingw32_main = yes; then
4677  FOUND_mingw32=yes
4678fi
4679
4680    if test x$FOUND_mingw32 = xyes; then
4681        LIBS="$LIBS -lmingw32"
4682    fi
4683# checking for SDL-headers
4684
4685for ac_header in SDL/SDL.h
4686do
4687as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4688if eval "test \"\${$as_ac_Header+set}\" = set"; then
4689  echo "$as_me:$LINENO: checking for $ac_header" >&5
4690echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4691if eval "test \"\${$as_ac_Header+set}\" = set"; then
4692  echo $ECHO_N "(cached) $ECHO_C" >&6
4693fi
4694echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4695echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4696else
4697  # Is the header compilable?
4698echo "$as_me:$LINENO: checking $ac_header usability" >&5
4699echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4700cat >conftest.$ac_ext <<_ACEOF
4701/* confdefs.h.  */
4702_ACEOF
4703cat confdefs.h >>conftest.$ac_ext
4704cat >>conftest.$ac_ext <<_ACEOF
4705/* end confdefs.h.  */
4706$ac_includes_default
4707#include <$ac_header>
4708_ACEOF
4709rm -f conftest.$ac_objext
4710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4711  (eval $ac_compile) 2>conftest.er1
4712  ac_status=$?
4713  grep -v '^ *+' conftest.er1 >conftest.err
4714  rm -f conftest.er1
4715  cat conftest.err >&5
4716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717  (exit $ac_status); } &&
4718         { ac_try='test -z "$ac_c_werror_flag"
4719                         || test ! -s conftest.err'
4720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721  (eval $ac_try) 2>&5
4722  ac_status=$?
4723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724  (exit $ac_status); }; } &&
4725         { ac_try='test -s conftest.$ac_objext'
4726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4727  (eval $ac_try) 2>&5
4728  ac_status=$?
4729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730  (exit $ac_status); }; }; then
4731  ac_header_compiler=yes
4732else
4733  echo "$as_me: failed program was:" >&5
4734sed 's/^/| /' conftest.$ac_ext >&5
4735
4736ac_header_compiler=no
4737fi
4738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4739echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4740echo "${ECHO_T}$ac_header_compiler" >&6
4741
4742# Is the header present?
4743echo "$as_me:$LINENO: checking $ac_header presence" >&5
4744echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4745cat >conftest.$ac_ext <<_ACEOF
4746/* confdefs.h.  */
4747_ACEOF
4748cat confdefs.h >>conftest.$ac_ext
4749cat >>conftest.$ac_ext <<_ACEOF
4750/* end confdefs.h.  */
4751#include <$ac_header>
4752_ACEOF
4753if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4754  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4755  ac_status=$?
4756  grep -v '^ *+' conftest.er1 >conftest.err
4757  rm -f conftest.er1
4758  cat conftest.err >&5
4759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760  (exit $ac_status); } >/dev/null; then
4761  if test -s conftest.err; then
4762    ac_cpp_err=$ac_c_preproc_warn_flag
4763    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4764  else
4765    ac_cpp_err=
4766  fi
4767else
4768  ac_cpp_err=yes
4769fi
4770if test -z "$ac_cpp_err"; then
4771  ac_header_preproc=yes
4772else
4773  echo "$as_me: failed program was:" >&5
4774sed 's/^/| /' conftest.$ac_ext >&5
4775
4776  ac_header_preproc=no
4777fi
4778rm -f conftest.err conftest.$ac_ext
4779echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4780echo "${ECHO_T}$ac_header_preproc" >&6
4781
4782# So?  What about this header?
4783case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4784  yes:no: )
4785    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4786echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4787    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4788echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4789    ac_header_preproc=yes
4790    ;;
4791  no:yes:* )
4792    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4793echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4794    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4795echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4796    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4797echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4798    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4799echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4800    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4801echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4802    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4803echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4804    (
4805      cat <<\_ASBOX
4806## ---------------------------------------------- ##
4807## Report this to orxonox-dev at mail.datacore.ch ##
4808## ---------------------------------------------- ##
4809_ASBOX
4810    ) |
4811      sed "s/^/$as_me: WARNING:     /" >&2
4812    ;;
4813esac
4814echo "$as_me:$LINENO: checking for $ac_header" >&5
4815echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4816if eval "test \"\${$as_ac_Header+set}\" = set"; then
4817  echo $ECHO_N "(cached) $ECHO_C" >&6
4818else
4819  eval "$as_ac_Header=\$ac_header_preproc"
4820fi
4821echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4822echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4823
4824fi
4825if test `eval echo '${'$as_ac_Header'}'` = yes; then
4826  cat >>confdefs.h <<_ACEOF
4827#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4828_ACEOF
4829
4830else
4831  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
4832echo "$as_me: error: cannot find SDL headers" >&2;}
4833   { (exit 1); exit 1; }; }
4834fi
4835
4836done
4837
4838
4839#checking for libSDL
4840    echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5
4841echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6
4842if test "${ac_cv_lib_sdlmain_main+set}" = set; then
4843  echo $ECHO_N "(cached) $ECHO_C" >&6
4844else
4845  ac_check_lib_save_LIBS=$LIBS
4846LIBS="-lsdlmain  $LIBS"
4847cat >conftest.$ac_ext <<_ACEOF
4848/* confdefs.h.  */
4849_ACEOF
4850cat confdefs.h >>conftest.$ac_ext
4851cat >>conftest.$ac_ext <<_ACEOF
4852/* end confdefs.h.  */
4853
4854
4855int
4856main ()
4857{
4858main ();
4859  ;
4860  return 0;
4861}
4862_ACEOF
4863rm -f conftest.$ac_objext conftest$ac_exeext
4864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4865  (eval $ac_link) 2>conftest.er1
4866  ac_status=$?
4867  grep -v '^ *+' conftest.er1 >conftest.err
4868  rm -f conftest.er1
4869  cat conftest.err >&5
4870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871  (exit $ac_status); } &&
4872         { ac_try='test -z "$ac_c_werror_flag"
4873                         || test ! -s conftest.err'
4874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4875  (eval $ac_try) 2>&5
4876  ac_status=$?
4877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878  (exit $ac_status); }; } &&
4879         { ac_try='test -s conftest$ac_exeext'
4880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4881  (eval $ac_try) 2>&5
4882  ac_status=$?
4883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884  (exit $ac_status); }; }; then
4885  ac_cv_lib_sdlmain_main=yes
4886else
4887  echo "$as_me: failed program was:" >&5
4888sed 's/^/| /' conftest.$ac_ext >&5
4889
4890ac_cv_lib_sdlmain_main=no
4891fi
4892rm -f conftest.err conftest.$ac_objext \
4893      conftest$ac_exeext conftest.$ac_ext
4894LIBS=$ac_check_lib_save_LIBS
4895fi
4896echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5
4897echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6
4898if test $ac_cv_lib_sdlmain_main = yes; then
4899  FOUND_sdlmain=yes
4900fi
4901
4902    if test x$FOUND_sdlmain = xyes ; then
4903       LIBS="$LIBS -lsdlmain"
4904    else
4905        echo "------------------"
4906        echo "SDL library not found."
4907        echo "please install the SDL library, which can be found at http://www.libsdl.org"
4908        echo "------------------"
4909        exit 1
4910    fi
4911    echo "$as_me:$LINENO: checking for main in -lsdl" >&5
4912echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6
4913if test "${ac_cv_lib_sdl_main+set}" = set; then
4914  echo $ECHO_N "(cached) $ECHO_C" >&6
4915else
4916  ac_check_lib_save_LIBS=$LIBS
4917LIBS="-lsdl  $LIBS"
4918cat >conftest.$ac_ext <<_ACEOF
4919/* confdefs.h.  */
4920_ACEOF
4921cat confdefs.h >>conftest.$ac_ext
4922cat >>conftest.$ac_ext <<_ACEOF
4923/* end confdefs.h.  */
4924
4925
4926int
4927main ()
4928{
4929main ();
4930  ;
4931  return 0;
4932}
4933_ACEOF
4934rm -f conftest.$ac_objext conftest$ac_exeext
4935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4936  (eval $ac_link) 2>conftest.er1
4937  ac_status=$?
4938  grep -v '^ *+' conftest.er1 >conftest.err
4939  rm -f conftest.er1
4940  cat conftest.err >&5
4941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942  (exit $ac_status); } &&
4943         { ac_try='test -z "$ac_c_werror_flag"
4944                         || test ! -s conftest.err'
4945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946  (eval $ac_try) 2>&5
4947  ac_status=$?
4948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949  (exit $ac_status); }; } &&
4950         { ac_try='test -s conftest$ac_exeext'
4951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952  (eval $ac_try) 2>&5
4953  ac_status=$?
4954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955  (exit $ac_status); }; }; then
4956  ac_cv_lib_sdl_main=yes
4957else
4958  echo "$as_me: failed program was:" >&5
4959sed 's/^/| /' conftest.$ac_ext >&5
4960
4961ac_cv_lib_sdl_main=no
4962fi
4963rm -f conftest.err conftest.$ac_objext \
4964      conftest$ac_exeext conftest.$ac_ext
4965LIBS=$ac_check_lib_save_LIBS
4966fi
4967echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5
4968echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6
4969if test $ac_cv_lib_sdl_main = yes; then
4970  FOUND_sdl=yes
4971fi
4972
4973    if test x$FOUND_sdl = xyes ; then
4974       LIBS="$LIBS -lsdl"
4975    else
4976        echo "------------------"
4977        echo "SDL library not found."
4978        echo "please install the SDL library, which can be found at http://www.libsdl.org"
4979        echo "------------------"
4980        exit -1
4981    fi
4982
4983    ;;
4984#-------#
4985# LINUX #
4986#-------#
4987 *-*-linux*)
4988echo "Linux detected"
4989
4990 Linux="yes"
4991
4992CPPFLAGS="-I/usr/X11R6/include"
4993LDFLAGS="-L/usr/lib/opengl/xorg-x11/lib -L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib $LDFLAGS"
4994# checking gl header
4995
4996for ac_header in GL/gl.h
4997do
4998as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4999if eval "test \"\${$as_ac_Header+set}\" = set"; then
5000  echo "$as_me:$LINENO: checking for $ac_header" >&5
5001echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5002if eval "test \"\${$as_ac_Header+set}\" = set"; then
5003  echo $ECHO_N "(cached) $ECHO_C" >&6
5004fi
5005echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5006echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5007else
5008  # Is the header compilable?
5009echo "$as_me:$LINENO: checking $ac_header usability" >&5
5010echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5011cat >conftest.$ac_ext <<_ACEOF
5012/* confdefs.h.  */
5013_ACEOF
5014cat confdefs.h >>conftest.$ac_ext
5015cat >>conftest.$ac_ext <<_ACEOF
5016/* end confdefs.h.  */
5017$ac_includes_default
5018#include <$ac_header>
5019_ACEOF
5020rm -f conftest.$ac_objext
5021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5022  (eval $ac_compile) 2>conftest.er1
5023  ac_status=$?
5024  grep -v '^ *+' conftest.er1 >conftest.err
5025  rm -f conftest.er1
5026  cat conftest.err >&5
5027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028  (exit $ac_status); } &&
5029         { ac_try='test -z "$ac_c_werror_flag"
5030                         || test ! -s conftest.err'
5031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5032  (eval $ac_try) 2>&5
5033  ac_status=$?
5034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035  (exit $ac_status); }; } &&
5036         { ac_try='test -s conftest.$ac_objext'
5037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038  (eval $ac_try) 2>&5
5039  ac_status=$?
5040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041  (exit $ac_status); }; }; then
5042  ac_header_compiler=yes
5043else
5044  echo "$as_me: failed program was:" >&5
5045sed 's/^/| /' conftest.$ac_ext >&5
5046
5047ac_header_compiler=no
5048fi
5049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5050echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5051echo "${ECHO_T}$ac_header_compiler" >&6
5052
5053# Is the header present?
5054echo "$as_me:$LINENO: checking $ac_header presence" >&5
5055echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5056cat >conftest.$ac_ext <<_ACEOF
5057/* confdefs.h.  */
5058_ACEOF
5059cat confdefs.h >>conftest.$ac_ext
5060cat >>conftest.$ac_ext <<_ACEOF
5061/* end confdefs.h.  */
5062#include <$ac_header>
5063_ACEOF
5064if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5065  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5066  ac_status=$?
5067  grep -v '^ *+' conftest.er1 >conftest.err
5068  rm -f conftest.er1
5069  cat conftest.err >&5
5070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071  (exit $ac_status); } >/dev/null; then
5072  if test -s conftest.err; then
5073    ac_cpp_err=$ac_c_preproc_warn_flag
5074    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5075  else
5076    ac_cpp_err=
5077  fi
5078else
5079  ac_cpp_err=yes
5080fi
5081if test -z "$ac_cpp_err"; then
5082  ac_header_preproc=yes
5083else
5084  echo "$as_me: failed program was:" >&5
5085sed 's/^/| /' conftest.$ac_ext >&5
5086
5087  ac_header_preproc=no
5088fi
5089rm -f conftest.err conftest.$ac_ext
5090echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5091echo "${ECHO_T}$ac_header_preproc" >&6
5092
5093# So?  What about this header?
5094case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5095  yes:no: )
5096    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5097echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5098    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5099echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5100    ac_header_preproc=yes
5101    ;;
5102  no:yes:* )
5103    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5104echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5105    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5106echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5107    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5108echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5109    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5110echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5111    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5112echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5113    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5114echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5115    (
5116      cat <<\_ASBOX
5117## ---------------------------------------------- ##
5118## Report this to orxonox-dev at mail.datacore.ch ##
5119## ---------------------------------------------- ##
5120_ASBOX
5121    ) |
5122      sed "s/^/$as_me: WARNING:     /" >&2
5123    ;;
5124esac
5125echo "$as_me:$LINENO: checking for $ac_header" >&5
5126echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5127if eval "test \"\${$as_ac_Header+set}\" = set"; then
5128  echo $ECHO_N "(cached) $ECHO_C" >&6
5129else
5130  eval "$as_ac_Header=\$ac_header_preproc"
5131fi
5132echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5133echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5134
5135fi
5136if test `eval echo '${'$as_ac_Header'}'` = yes; then
5137  cat >>confdefs.h <<_ACEOF
5138#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5139_ACEOF
5140
5141else
5142  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5143echo "$as_me: error: cannot find opengl headers" >&2;}
5144   { (exit 1); exit 1; }; }
5145fi
5146
5147done
5148
5149
5150#  checking for Unix GL
5151   echo "$as_me:$LINENO: checking for glLoadIdentity in -lGL" >&5
5152echo $ECHO_N "checking for glLoadIdentity in -lGL... $ECHO_C" >&6
5153if test "${ac_cv_lib_GL_glLoadIdentity+set}" = set; then
5154  echo $ECHO_N "(cached) $ECHO_C" >&6
5155else
5156  ac_check_lib_save_LIBS=$LIBS
5157LIBS="-lGL  $LIBS"
5158cat >conftest.$ac_ext <<_ACEOF
5159/* confdefs.h.  */
5160_ACEOF
5161cat confdefs.h >>conftest.$ac_ext
5162cat >>conftest.$ac_ext <<_ACEOF
5163/* end confdefs.h.  */
5164
5165/* Override any gcc2 internal prototype to avoid an error.  */
5166#ifdef __cplusplus
5167extern "C"
5168#endif
5169/* We use char because int might match the return type of a gcc2
5170   builtin and then its argument prototype would still apply.  */
5171char glLoadIdentity ();
5172int
5173main ()
5174{
5175glLoadIdentity ();
5176  ;
5177  return 0;
5178}
5179_ACEOF
5180rm -f conftest.$ac_objext conftest$ac_exeext
5181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5182  (eval $ac_link) 2>conftest.er1
5183  ac_status=$?
5184  grep -v '^ *+' conftest.er1 >conftest.err
5185  rm -f conftest.er1
5186  cat conftest.err >&5
5187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188  (exit $ac_status); } &&
5189         { ac_try='test -z "$ac_c_werror_flag"
5190                         || test ! -s conftest.err'
5191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192  (eval $ac_try) 2>&5
5193  ac_status=$?
5194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195  (exit $ac_status); }; } &&
5196         { ac_try='test -s conftest$ac_exeext'
5197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198  (eval $ac_try) 2>&5
5199  ac_status=$?
5200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201  (exit $ac_status); }; }; then
5202  ac_cv_lib_GL_glLoadIdentity=yes
5203else
5204  echo "$as_me: failed program was:" >&5
5205sed 's/^/| /' conftest.$ac_ext >&5
5206
5207ac_cv_lib_GL_glLoadIdentity=no
5208fi
5209rm -f conftest.err conftest.$ac_objext \
5210      conftest$ac_exeext conftest.$ac_ext
5211LIBS=$ac_check_lib_save_LIBS
5212fi
5213echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glLoadIdentity" >&5
5214echo "${ECHO_T}$ac_cv_lib_GL_glLoadIdentity" >&6
5215if test $ac_cv_lib_GL_glLoadIdentity = yes; then
5216  FOUND_GL=yes
5217fi
5218
5219   if test x$FOUND_GL = xyes ; then
5220     LIBS="$LIBS -lGL"
5221   else
5222         echo "------------------"
5223         echo "opengl not found."
5224         echo "please install the opengl package which can be found at http://www.opengl.org"
5225         echo "------------------"
5226         exit -1
5227   fi
5228
5229# cheking for GLU-header
5230
5231for ac_header in GL/glu.h
5232do
5233as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5234if eval "test \"\${$as_ac_Header+set}\" = set"; then
5235  echo "$as_me:$LINENO: checking for $ac_header" >&5
5236echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5237if eval "test \"\${$as_ac_Header+set}\" = set"; then
5238  echo $ECHO_N "(cached) $ECHO_C" >&6
5239fi
5240echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5241echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5242else
5243  # Is the header compilable?
5244echo "$as_me:$LINENO: checking $ac_header usability" >&5
5245echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5246cat >conftest.$ac_ext <<_ACEOF
5247/* confdefs.h.  */
5248_ACEOF
5249cat confdefs.h >>conftest.$ac_ext
5250cat >>conftest.$ac_ext <<_ACEOF
5251/* end confdefs.h.  */
5252$ac_includes_default
5253#include <$ac_header>
5254_ACEOF
5255rm -f conftest.$ac_objext
5256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5257  (eval $ac_compile) 2>conftest.er1
5258  ac_status=$?
5259  grep -v '^ *+' conftest.er1 >conftest.err
5260  rm -f conftest.er1
5261  cat conftest.err >&5
5262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263  (exit $ac_status); } &&
5264         { ac_try='test -z "$ac_c_werror_flag"
5265                         || test ! -s conftest.err'
5266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5267  (eval $ac_try) 2>&5
5268  ac_status=$?
5269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270  (exit $ac_status); }; } &&
5271         { ac_try='test -s conftest.$ac_objext'
5272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273  (eval $ac_try) 2>&5
5274  ac_status=$?
5275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276  (exit $ac_status); }; }; then
5277  ac_header_compiler=yes
5278else
5279  echo "$as_me: failed program was:" >&5
5280sed 's/^/| /' conftest.$ac_ext >&5
5281
5282ac_header_compiler=no
5283fi
5284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5285echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5286echo "${ECHO_T}$ac_header_compiler" >&6
5287
5288# Is the header present?
5289echo "$as_me:$LINENO: checking $ac_header presence" >&5
5290echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5291cat >conftest.$ac_ext <<_ACEOF
5292/* confdefs.h.  */
5293_ACEOF
5294cat confdefs.h >>conftest.$ac_ext
5295cat >>conftest.$ac_ext <<_ACEOF
5296/* end confdefs.h.  */
5297#include <$ac_header>
5298_ACEOF
5299if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5300  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5301  ac_status=$?
5302  grep -v '^ *+' conftest.er1 >conftest.err
5303  rm -f conftest.er1
5304  cat conftest.err >&5
5305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306  (exit $ac_status); } >/dev/null; then
5307  if test -s conftest.err; then
5308    ac_cpp_err=$ac_c_preproc_warn_flag
5309    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5310  else
5311    ac_cpp_err=
5312  fi
5313else
5314  ac_cpp_err=yes
5315fi
5316if test -z "$ac_cpp_err"; then
5317  ac_header_preproc=yes
5318else
5319  echo "$as_me: failed program was:" >&5
5320sed 's/^/| /' conftest.$ac_ext >&5
5321
5322  ac_header_preproc=no
5323fi
5324rm -f conftest.err conftest.$ac_ext
5325echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5326echo "${ECHO_T}$ac_header_preproc" >&6
5327
5328# So?  What about this header?
5329case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5330  yes:no: )
5331    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5332echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5333    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5334echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5335    ac_header_preproc=yes
5336    ;;
5337  no:yes:* )
5338    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5339echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5340    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5341echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5342    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5343echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5344    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5345echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5346    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5347echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5348    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5349echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5350    (
5351      cat <<\_ASBOX
5352## ---------------------------------------------- ##
5353## Report this to orxonox-dev at mail.datacore.ch ##
5354## ---------------------------------------------- ##
5355_ASBOX
5356    ) |
5357      sed "s/^/$as_me: WARNING:     /" >&2
5358    ;;
5359esac
5360echo "$as_me:$LINENO: checking for $ac_header" >&5
5361echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5362if eval "test \"\${$as_ac_Header+set}\" = set"; then
5363  echo $ECHO_N "(cached) $ECHO_C" >&6
5364else
5365  eval "$as_ac_Header=\$ac_header_preproc"
5366fi
5367echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5368echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5369
5370fi
5371if test `eval echo '${'$as_ac_Header'}'` = yes; then
5372  cat >>confdefs.h <<_ACEOF
5373#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5374_ACEOF
5375
5376else
5377  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5378echo "$as_me: error: cannot find opengl headers" >&2;}
5379   { (exit 1); exit 1; }; }
5380fi
5381
5382done
5383
5384
5385    echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5
5386echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6
5387if test "${ac_cv_lib_GLU_gluProject+set}" = set; then
5388  echo $ECHO_N "(cached) $ECHO_C" >&6
5389else
5390  ac_check_lib_save_LIBS=$LIBS
5391LIBS="-lGLU  $LIBS"
5392cat >conftest.$ac_ext <<_ACEOF
5393/* confdefs.h.  */
5394_ACEOF
5395cat confdefs.h >>conftest.$ac_ext
5396cat >>conftest.$ac_ext <<_ACEOF
5397/* end confdefs.h.  */
5398
5399/* Override any gcc2 internal prototype to avoid an error.  */
5400#ifdef __cplusplus
5401extern "C"
5402#endif
5403/* We use char because int might match the return type of a gcc2
5404   builtin and then its argument prototype would still apply.  */
5405char gluProject ();
5406int
5407main ()
5408{
5409gluProject ();
5410  ;
5411  return 0;
5412}
5413_ACEOF
5414rm -f conftest.$ac_objext conftest$ac_exeext
5415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5416  (eval $ac_link) 2>conftest.er1
5417  ac_status=$?
5418  grep -v '^ *+' conftest.er1 >conftest.err
5419  rm -f conftest.er1
5420  cat conftest.err >&5
5421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422  (exit $ac_status); } &&
5423         { ac_try='test -z "$ac_c_werror_flag"
5424                         || test ! -s conftest.err'
5425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5426  (eval $ac_try) 2>&5
5427  ac_status=$?
5428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429  (exit $ac_status); }; } &&
5430         { ac_try='test -s conftest$ac_exeext'
5431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432  (eval $ac_try) 2>&5
5433  ac_status=$?
5434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435  (exit $ac_status); }; }; then
5436  ac_cv_lib_GLU_gluProject=yes
5437else
5438  echo "$as_me: failed program was:" >&5
5439sed 's/^/| /' conftest.$ac_ext >&5
5440
5441ac_cv_lib_GLU_gluProject=no
5442fi
5443rm -f conftest.err conftest.$ac_objext \
5444      conftest$ac_exeext conftest.$ac_ext
5445LIBS=$ac_check_lib_save_LIBS
5446fi
5447echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5
5448echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6
5449if test $ac_cv_lib_GLU_gluProject = yes; then
5450  FOUND_GLU=yes
5451fi
5452
5453    if test x$FOUND_GLU = xyes ; then
5454      LIBS="$LIBS -lGLU"
5455    else
5456         echo "------------------"
5457         echo "GLU library not found."
5458         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
5459         echo "------------------"
5460         exit -1
5461    fi
5462
5463# checking for SDL-headers
5464
5465for ac_header in SDL/SDL.h
5466do
5467as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5468if eval "test \"\${$as_ac_Header+set}\" = set"; then
5469  echo "$as_me:$LINENO: checking for $ac_header" >&5
5470echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5471if eval "test \"\${$as_ac_Header+set}\" = set"; then
5472  echo $ECHO_N "(cached) $ECHO_C" >&6
5473fi
5474echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5475echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5476else
5477  # Is the header compilable?
5478echo "$as_me:$LINENO: checking $ac_header usability" >&5
5479echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5480cat >conftest.$ac_ext <<_ACEOF
5481/* confdefs.h.  */
5482_ACEOF
5483cat confdefs.h >>conftest.$ac_ext
5484cat >>conftest.$ac_ext <<_ACEOF
5485/* end confdefs.h.  */
5486$ac_includes_default
5487#include <$ac_header>
5488_ACEOF
5489rm -f conftest.$ac_objext
5490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5491  (eval $ac_compile) 2>conftest.er1
5492  ac_status=$?
5493  grep -v '^ *+' conftest.er1 >conftest.err
5494  rm -f conftest.er1
5495  cat conftest.err >&5
5496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497  (exit $ac_status); } &&
5498         { ac_try='test -z "$ac_c_werror_flag"
5499                         || test ! -s conftest.err'
5500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5501  (eval $ac_try) 2>&5
5502  ac_status=$?
5503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504  (exit $ac_status); }; } &&
5505         { ac_try='test -s conftest.$ac_objext'
5506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5507  (eval $ac_try) 2>&5
5508  ac_status=$?
5509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510  (exit $ac_status); }; }; then
5511  ac_header_compiler=yes
5512else
5513  echo "$as_me: failed program was:" >&5
5514sed 's/^/| /' conftest.$ac_ext >&5
5515
5516ac_header_compiler=no
5517fi
5518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5519echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5520echo "${ECHO_T}$ac_header_compiler" >&6
5521
5522# Is the header present?
5523echo "$as_me:$LINENO: checking $ac_header presence" >&5
5524echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5525cat >conftest.$ac_ext <<_ACEOF
5526/* confdefs.h.  */
5527_ACEOF
5528cat confdefs.h >>conftest.$ac_ext
5529cat >>conftest.$ac_ext <<_ACEOF
5530/* end confdefs.h.  */
5531#include <$ac_header>
5532_ACEOF
5533if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5534  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5535  ac_status=$?
5536  grep -v '^ *+' conftest.er1 >conftest.err
5537  rm -f conftest.er1
5538  cat conftest.err >&5
5539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540  (exit $ac_status); } >/dev/null; then
5541  if test -s conftest.err; then
5542    ac_cpp_err=$ac_c_preproc_warn_flag
5543    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5544  else
5545    ac_cpp_err=
5546  fi
5547else
5548  ac_cpp_err=yes
5549fi
5550if test -z "$ac_cpp_err"; then
5551  ac_header_preproc=yes
5552else
5553  echo "$as_me: failed program was:" >&5
5554sed 's/^/| /' conftest.$ac_ext >&5
5555
5556  ac_header_preproc=no
5557fi
5558rm -f conftest.err conftest.$ac_ext
5559echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5560echo "${ECHO_T}$ac_header_preproc" >&6
5561
5562# So?  What about this header?
5563case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5564  yes:no: )
5565    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5566echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5567    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5568echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5569    ac_header_preproc=yes
5570    ;;
5571  no:yes:* )
5572    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5573echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5574    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5575echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5576    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5577echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5578    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5579echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5580    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5581echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5582    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5583echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5584    (
5585      cat <<\_ASBOX
5586## ---------------------------------------------- ##
5587## Report this to orxonox-dev at mail.datacore.ch ##
5588## ---------------------------------------------- ##
5589_ASBOX
5590    ) |
5591      sed "s/^/$as_me: WARNING:     /" >&2
5592    ;;
5593esac
5594echo "$as_me:$LINENO: checking for $ac_header" >&5
5595echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5596if eval "test \"\${$as_ac_Header+set}\" = set"; then
5597  echo $ECHO_N "(cached) $ECHO_C" >&6
5598else
5599  eval "$as_ac_Header=\$ac_header_preproc"
5600fi
5601echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5602echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5603
5604fi
5605if test `eval echo '${'$as_ac_Header'}'` = yes; then
5606  cat >>confdefs.h <<_ACEOF
5607#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5608_ACEOF
5609
5610else
5611  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
5612echo "$as_me: error: cannot find SDL headers" >&2;}
5613   { (exit 1); exit 1; }; }
5614fi
5615
5616done
5617
5618
5619# checking for SDL-lib
5620    echo "$as_me:$LINENO: checking for main in -lSDL" >&5
5621echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6
5622if test "${ac_cv_lib_SDL_main+set}" = set; then
5623  echo $ECHO_N "(cached) $ECHO_C" >&6
5624else
5625  ac_check_lib_save_LIBS=$LIBS
5626LIBS="-lSDL  $LIBS"
5627cat >conftest.$ac_ext <<_ACEOF
5628/* confdefs.h.  */
5629_ACEOF
5630cat confdefs.h >>conftest.$ac_ext
5631cat >>conftest.$ac_ext <<_ACEOF
5632/* end confdefs.h.  */
5633
5634
5635int
5636main ()
5637{
5638main ();
5639  ;
5640  return 0;
5641}
5642_ACEOF
5643rm -f conftest.$ac_objext conftest$ac_exeext
5644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5645  (eval $ac_link) 2>conftest.er1
5646  ac_status=$?
5647  grep -v '^ *+' conftest.er1 >conftest.err
5648  rm -f conftest.er1
5649  cat conftest.err >&5
5650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651  (exit $ac_status); } &&
5652         { ac_try='test -z "$ac_c_werror_flag"
5653                         || test ! -s conftest.err'
5654  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655  (eval $ac_try) 2>&5
5656  ac_status=$?
5657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658  (exit $ac_status); }; } &&
5659         { ac_try='test -s conftest$ac_exeext'
5660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661  (eval $ac_try) 2>&5
5662  ac_status=$?
5663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664  (exit $ac_status); }; }; then
5665  ac_cv_lib_SDL_main=yes
5666else
5667  echo "$as_me: failed program was:" >&5
5668sed 's/^/| /' conftest.$ac_ext >&5
5669
5670ac_cv_lib_SDL_main=no
5671fi
5672rm -f conftest.err conftest.$ac_objext \
5673      conftest$ac_exeext conftest.$ac_ext
5674LIBS=$ac_check_lib_save_LIBS
5675fi
5676echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5
5677echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6
5678if test $ac_cv_lib_SDL_main = yes; then
5679  FOUND_SDL=yes
5680fi
5681
5682     if test x$FOUND_SDL = xyes ; then
5683       LIBS="$LIBS -lSDL"
5684     else
5685        echo "------------------"
5686        echo "SDL library not found."
5687        echo "please install the SDL library, which can be found at http://www.libsdl.org"
5688        echo "------------------"
5689        exit -1
5690     fi
5691
5692
5693## checking for SDL
5694#    SDL_VERSION=1.2.7
5695#    AM_PATH_SDL($SDL_VERSION,
5696#      :,
5697#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
5698#      )
5699#    CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
5700#    LIBS="$LIBS $SDL_LIBS"
5701    ;;
5702#-----------#
5703# MAC -OS X #
5704#-----------#
5705 *darwin*)
5706 echo "OS X detected"
5707
5708 osX="yes"
5709
5710 CPPFLAGS="-I/sw/include $CPPFLAGS"
5711# checking gl header
5712
5713for ac_header in OpenGL/gl.h
5714do
5715as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5716if eval "test \"\${$as_ac_Header+set}\" = set"; then
5717  echo "$as_me:$LINENO: checking for $ac_header" >&5
5718echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5719if eval "test \"\${$as_ac_Header+set}\" = set"; then
5720  echo $ECHO_N "(cached) $ECHO_C" >&6
5721fi
5722echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5723echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5724else
5725  # Is the header compilable?
5726echo "$as_me:$LINENO: checking $ac_header usability" >&5
5727echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5728cat >conftest.$ac_ext <<_ACEOF
5729/* confdefs.h.  */
5730_ACEOF
5731cat confdefs.h >>conftest.$ac_ext
5732cat >>conftest.$ac_ext <<_ACEOF
5733/* end confdefs.h.  */
5734$ac_includes_default
5735#include <$ac_header>
5736_ACEOF
5737rm -f conftest.$ac_objext
5738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5739  (eval $ac_compile) 2>conftest.er1
5740  ac_status=$?
5741  grep -v '^ *+' conftest.er1 >conftest.err
5742  rm -f conftest.er1
5743  cat conftest.err >&5
5744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745  (exit $ac_status); } &&
5746         { ac_try='test -z "$ac_c_werror_flag"
5747                         || test ! -s conftest.err'
5748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749  (eval $ac_try) 2>&5
5750  ac_status=$?
5751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752  (exit $ac_status); }; } &&
5753         { ac_try='test -s conftest.$ac_objext'
5754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755  (eval $ac_try) 2>&5
5756  ac_status=$?
5757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758  (exit $ac_status); }; }; then
5759  ac_header_compiler=yes
5760else
5761  echo "$as_me: failed program was:" >&5
5762sed 's/^/| /' conftest.$ac_ext >&5
5763
5764ac_header_compiler=no
5765fi
5766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5767echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5768echo "${ECHO_T}$ac_header_compiler" >&6
5769
5770# Is the header present?
5771echo "$as_me:$LINENO: checking $ac_header presence" >&5
5772echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5773cat >conftest.$ac_ext <<_ACEOF
5774/* confdefs.h.  */
5775_ACEOF
5776cat confdefs.h >>conftest.$ac_ext
5777cat >>conftest.$ac_ext <<_ACEOF
5778/* end confdefs.h.  */
5779#include <$ac_header>
5780_ACEOF
5781if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5782  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5783  ac_status=$?
5784  grep -v '^ *+' conftest.er1 >conftest.err
5785  rm -f conftest.er1
5786  cat conftest.err >&5
5787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788  (exit $ac_status); } >/dev/null; then
5789  if test -s conftest.err; then
5790    ac_cpp_err=$ac_c_preproc_warn_flag
5791    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5792  else
5793    ac_cpp_err=
5794  fi
5795else
5796  ac_cpp_err=yes
5797fi
5798if test -z "$ac_cpp_err"; then
5799  ac_header_preproc=yes
5800else
5801  echo "$as_me: failed program was:" >&5
5802sed 's/^/| /' conftest.$ac_ext >&5
5803
5804  ac_header_preproc=no
5805fi
5806rm -f conftest.err conftest.$ac_ext
5807echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5808echo "${ECHO_T}$ac_header_preproc" >&6
5809
5810# So?  What about this header?
5811case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5812  yes:no: )
5813    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5814echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5815    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5816echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5817    ac_header_preproc=yes
5818    ;;
5819  no:yes:* )
5820    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5821echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5822    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5823echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5824    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5825echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5826    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5827echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5828    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5829echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5830    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5831echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5832    (
5833      cat <<\_ASBOX
5834## ---------------------------------------------- ##
5835## Report this to orxonox-dev at mail.datacore.ch ##
5836## ---------------------------------------------- ##
5837_ASBOX
5838    ) |
5839      sed "s/^/$as_me: WARNING:     /" >&2
5840    ;;
5841esac
5842echo "$as_me:$LINENO: checking for $ac_header" >&5
5843echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5844if eval "test \"\${$as_ac_Header+set}\" = set"; then
5845  echo $ECHO_N "(cached) $ECHO_C" >&6
5846else
5847  eval "$as_ac_Header=\$ac_header_preproc"
5848fi
5849echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5850echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5851
5852fi
5853if test `eval echo '${'$as_ac_Header'}'` = yes; then
5854  cat >>confdefs.h <<_ACEOF
5855#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5856_ACEOF
5857
5858else
5859  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
5860echo "$as_me: error: cannot find opengl headers" >&2;}
5861   { (exit 1); exit 1; }; }
5862fi
5863
5864done
5865
5866# cheking for GLU-header
5867
5868for ac_header in OpenGL/glu.h
5869do
5870as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5871if eval "test \"\${$as_ac_Header+set}\" = set"; then
5872  echo "$as_me:$LINENO: checking for $ac_header" >&5
5873echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5874if eval "test \"\${$as_ac_Header+set}\" = set"; then
5875  echo $ECHO_N "(cached) $ECHO_C" >&6
5876fi
5877echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5878echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5879else
5880  # Is the header compilable?
5881echo "$as_me:$LINENO: checking $ac_header usability" >&5
5882echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5883cat >conftest.$ac_ext <<_ACEOF
5884/* confdefs.h.  */
5885_ACEOF
5886cat confdefs.h >>conftest.$ac_ext
5887cat >>conftest.$ac_ext <<_ACEOF
5888/* end confdefs.h.  */
5889$ac_includes_default
5890#include <$ac_header>
5891_ACEOF
5892rm -f conftest.$ac_objext
5893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5894  (eval $ac_compile) 2>conftest.er1
5895  ac_status=$?
5896  grep -v '^ *+' conftest.er1 >conftest.err
5897  rm -f conftest.er1
5898  cat conftest.err >&5
5899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900  (exit $ac_status); } &&
5901         { ac_try='test -z "$ac_c_werror_flag"
5902                         || test ! -s conftest.err'
5903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5904  (eval $ac_try) 2>&5
5905  ac_status=$?
5906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907  (exit $ac_status); }; } &&
5908         { ac_try='test -s conftest.$ac_objext'
5909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5910  (eval $ac_try) 2>&5
5911  ac_status=$?
5912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913  (exit $ac_status); }; }; then
5914  ac_header_compiler=yes
5915else
5916  echo "$as_me: failed program was:" >&5
5917sed 's/^/| /' conftest.$ac_ext >&5
5918
5919ac_header_compiler=no
5920fi
5921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5922echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5923echo "${ECHO_T}$ac_header_compiler" >&6
5924
5925# Is the header present?
5926echo "$as_me:$LINENO: checking $ac_header presence" >&5
5927echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5928cat >conftest.$ac_ext <<_ACEOF
5929/* confdefs.h.  */
5930_ACEOF
5931cat confdefs.h >>conftest.$ac_ext
5932cat >>conftest.$ac_ext <<_ACEOF
5933/* end confdefs.h.  */
5934#include <$ac_header>
5935_ACEOF
5936if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5937  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5938  ac_status=$?
5939  grep -v '^ *+' conftest.er1 >conftest.err
5940  rm -f conftest.er1
5941  cat conftest.err >&5
5942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943  (exit $ac_status); } >/dev/null; then
5944  if test -s conftest.err; then
5945    ac_cpp_err=$ac_c_preproc_warn_flag
5946    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5947  else
5948    ac_cpp_err=
5949  fi
5950else
5951  ac_cpp_err=yes
5952fi
5953if test -z "$ac_cpp_err"; then
5954  ac_header_preproc=yes
5955else
5956  echo "$as_me: failed program was:" >&5
5957sed 's/^/| /' conftest.$ac_ext >&5
5958
5959  ac_header_preproc=no
5960fi
5961rm -f conftest.err conftest.$ac_ext
5962echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5963echo "${ECHO_T}$ac_header_preproc" >&6
5964
5965# So?  What about this header?
5966case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5967  yes:no: )
5968    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5969echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5970    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5971echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5972    ac_header_preproc=yes
5973    ;;
5974  no:yes:* )
5975    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5976echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5977    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5978echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5979    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5980echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5981    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5982echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5983    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5984echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5985    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5986echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5987    (
5988      cat <<\_ASBOX
5989## ---------------------------------------------- ##
5990## Report this to orxonox-dev at mail.datacore.ch ##
5991## ---------------------------------------------- ##
5992_ASBOX
5993    ) |
5994      sed "s/^/$as_me: WARNING:     /" >&2
5995    ;;
5996esac
5997echo "$as_me:$LINENO: checking for $ac_header" >&5
5998echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5999if eval "test \"\${$as_ac_Header+set}\" = set"; then
6000  echo $ECHO_N "(cached) $ECHO_C" >&6
6001else
6002  eval "$as_ac_Header=\$ac_header_preproc"
6003fi
6004echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6005echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6006
6007fi
6008if test `eval echo '${'$as_ac_Header'}'` = yes; then
6009  cat >>confdefs.h <<_ACEOF
6010#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6011_ACEOF
6012
6013else
6014  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
6015echo "$as_me: error: cannot find opengl headers" >&2;}
6016   { (exit 1); exit 1; }; }
6017fi
6018
6019done
6020
6021
6022   LIBS="$LIBS -framework OpenGL"
6023
6024       SDL_CFLAGS=`sdl-config --cflags`
6025       SDL_LIBS=`sdl-config --libs`
6026       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
6027       LIBS="$LIBS $SDL_LIBS"
6028
6029
6030# checking for SDL-headers
6031#    AC_CHECK_HEADERS(SDL/SDL.h ,,
6032#      [AC_MSG_ERROR([cannot find SDL headers]) ])
6033
6034## checking for SDL
6035#    SDL_VERSION=1.2.7
6036#    AM_PATH_SDL($SDL_VERSION,
6037#      :,
6038#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
6039#      )
6040
6041
6042    ;;
6043
6044  *)
6045    ;;
6046esac
6047
6048
6049
6050###################################
6051## CHECKING FOR HEADERS AND LIBS ##
6052###################################
6053
6054#-----------#
6055# SDL_mixer #
6056#-----------#
6057
6058for ac_header in SDL/SDL_mixer.h
6059do
6060as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6061if eval "test \"\${$as_ac_Header+set}\" = set"; then
6062  echo "$as_me:$LINENO: checking for $ac_header" >&5
6063echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6064if eval "test \"\${$as_ac_Header+set}\" = set"; then
6065  echo $ECHO_N "(cached) $ECHO_C" >&6
6066fi
6067echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6068echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6069else
6070  # Is the header compilable?
6071echo "$as_me:$LINENO: checking $ac_header usability" >&5
6072echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6073cat >conftest.$ac_ext <<_ACEOF
6074/* confdefs.h.  */
6075_ACEOF
6076cat confdefs.h >>conftest.$ac_ext
6077cat >>conftest.$ac_ext <<_ACEOF
6078/* end confdefs.h.  */
6079$ac_includes_default
6080#include <$ac_header>
6081_ACEOF
6082rm -f conftest.$ac_objext
6083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6084  (eval $ac_compile) 2>conftest.er1
6085  ac_status=$?
6086  grep -v '^ *+' conftest.er1 >conftest.err
6087  rm -f conftest.er1
6088  cat conftest.err >&5
6089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090  (exit $ac_status); } &&
6091         { ac_try='test -z "$ac_c_werror_flag"
6092                         || test ! -s conftest.err'
6093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094  (eval $ac_try) 2>&5
6095  ac_status=$?
6096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097  (exit $ac_status); }; } &&
6098         { ac_try='test -s conftest.$ac_objext'
6099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100  (eval $ac_try) 2>&5
6101  ac_status=$?
6102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103  (exit $ac_status); }; }; then
6104  ac_header_compiler=yes
6105else
6106  echo "$as_me: failed program was:" >&5
6107sed 's/^/| /' conftest.$ac_ext >&5
6108
6109ac_header_compiler=no
6110fi
6111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6112echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6113echo "${ECHO_T}$ac_header_compiler" >&6
6114
6115# Is the header present?
6116echo "$as_me:$LINENO: checking $ac_header presence" >&5
6117echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6118cat >conftest.$ac_ext <<_ACEOF
6119/* confdefs.h.  */
6120_ACEOF
6121cat confdefs.h >>conftest.$ac_ext
6122cat >>conftest.$ac_ext <<_ACEOF
6123/* end confdefs.h.  */
6124#include <$ac_header>
6125_ACEOF
6126if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6127  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6128  ac_status=$?
6129  grep -v '^ *+' conftest.er1 >conftest.err
6130  rm -f conftest.er1
6131  cat conftest.err >&5
6132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133  (exit $ac_status); } >/dev/null; then
6134  if test -s conftest.err; then
6135    ac_cpp_err=$ac_c_preproc_warn_flag
6136    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6137  else
6138    ac_cpp_err=
6139  fi
6140else
6141  ac_cpp_err=yes
6142fi
6143if test -z "$ac_cpp_err"; then
6144  ac_header_preproc=yes
6145else
6146  echo "$as_me: failed program was:" >&5
6147sed 's/^/| /' conftest.$ac_ext >&5
6148
6149  ac_header_preproc=no
6150fi
6151rm -f conftest.err conftest.$ac_ext
6152echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6153echo "${ECHO_T}$ac_header_preproc" >&6
6154
6155# So?  What about this header?
6156case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6157  yes:no: )
6158    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6159echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6160    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6161echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6162    ac_header_preproc=yes
6163    ;;
6164  no:yes:* )
6165    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6166echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6167    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6168echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6169    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6170echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6171    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6172echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6173    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6174echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6175    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6176echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6177    (
6178      cat <<\_ASBOX
6179## ---------------------------------------------- ##
6180## Report this to orxonox-dev at mail.datacore.ch ##
6181## ---------------------------------------------- ##
6182_ASBOX
6183    ) |
6184      sed "s/^/$as_me: WARNING:     /" >&2
6185    ;;
6186esac
6187echo "$as_me:$LINENO: checking for $ac_header" >&5
6188echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6189if eval "test \"\${$as_ac_Header+set}\" = set"; then
6190  echo $ECHO_N "(cached) $ECHO_C" >&6
6191else
6192  eval "$as_ac_Header=\$ac_header_preproc"
6193fi
6194echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6195echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6196
6197fi
6198if test `eval echo '${'$as_ac_Header'}'` = yes; then
6199  cat >>confdefs.h <<_ACEOF
6200#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6201_ACEOF
6202
6203else
6204  { { echo "$as_me:$LINENO: error: sdl_mixer not found" >&5
6205echo "$as_me: error: sdl_mixer not found" >&2;}
6206   { (exit 1); exit 1; }; }
6207fi
6208
6209done
6210
6211# checking for SDL_mixer-lib
6212echo "$as_me:$LINENO: checking for main in -lSDL_mixer" >&5
6213echo $ECHO_N "checking for main in -lSDL_mixer... $ECHO_C" >&6
6214if test "${ac_cv_lib_SDL_mixer_main+set}" = set; then
6215  echo $ECHO_N "(cached) $ECHO_C" >&6
6216else
6217  ac_check_lib_save_LIBS=$LIBS
6218LIBS="-lSDL_mixer  $LIBS"
6219cat >conftest.$ac_ext <<_ACEOF
6220/* confdefs.h.  */
6221_ACEOF
6222cat confdefs.h >>conftest.$ac_ext
6223cat >>conftest.$ac_ext <<_ACEOF
6224/* end confdefs.h.  */
6225
6226
6227int
6228main ()
6229{
6230main ();
6231  ;
6232  return 0;
6233}
6234_ACEOF
6235rm -f conftest.$ac_objext conftest$ac_exeext
6236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6237  (eval $ac_link) 2>conftest.er1
6238  ac_status=$?
6239  grep -v '^ *+' conftest.er1 >conftest.err
6240  rm -f conftest.er1
6241  cat conftest.err >&5
6242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243  (exit $ac_status); } &&
6244         { ac_try='test -z "$ac_c_werror_flag"
6245                         || test ! -s conftest.err'
6246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247  (eval $ac_try) 2>&5
6248  ac_status=$?
6249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250  (exit $ac_status); }; } &&
6251         { ac_try='test -s conftest$ac_exeext'
6252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253  (eval $ac_try) 2>&5
6254  ac_status=$?
6255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256  (exit $ac_status); }; }; then
6257  ac_cv_lib_SDL_mixer_main=yes
6258else
6259  echo "$as_me: failed program was:" >&5
6260sed 's/^/| /' conftest.$ac_ext >&5
6261
6262ac_cv_lib_SDL_mixer_main=no
6263fi
6264rm -f conftest.err conftest.$ac_objext \
6265      conftest$ac_exeext conftest.$ac_ext
6266LIBS=$ac_check_lib_save_LIBS
6267fi
6268echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_main" >&5
6269echo "${ECHO_T}$ac_cv_lib_SDL_mixer_main" >&6
6270if test $ac_cv_lib_SDL_mixer_main = yes; then
6271  FOUND_SDL_mixer=yes
6272fi
6273
6274   if test x$FOUND_SDL_mixer = xyes ; then
6275     LIBS="$LIBS -lSDL_mixer"
6276   else
6277      echo "------------------"
6278      echo "SDL_mixer library not found."
6279      echo "please install the SDL_mixer library, which can be found at http://www.libsdl.org/projects/SDL_mixer/"
6280      echo "------------------"
6281      exit -1
6282   fi
6283
6284
6285#-----------#
6286# SDL_Image #
6287#-----------#
6288if test x$def_sdl_image = xyes; then
6289# checking for SDL_image-headers
6290
6291for ac_header in SDL/SDL_image.h
6292do
6293as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6294if eval "test \"\${$as_ac_Header+set}\" = set"; then
6295  echo "$as_me:$LINENO: checking for $ac_header" >&5
6296echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6297if eval "test \"\${$as_ac_Header+set}\" = set"; then
6298  echo $ECHO_N "(cached) $ECHO_C" >&6
6299fi
6300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6301echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6302else
6303  # Is the header compilable?
6304echo "$as_me:$LINENO: checking $ac_header usability" >&5
6305echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6306cat >conftest.$ac_ext <<_ACEOF
6307/* confdefs.h.  */
6308_ACEOF
6309cat confdefs.h >>conftest.$ac_ext
6310cat >>conftest.$ac_ext <<_ACEOF
6311/* end confdefs.h.  */
6312$ac_includes_default
6313#include <$ac_header>
6314_ACEOF
6315rm -f conftest.$ac_objext
6316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6317  (eval $ac_compile) 2>conftest.er1
6318  ac_status=$?
6319  grep -v '^ *+' conftest.er1 >conftest.err
6320  rm -f conftest.er1
6321  cat conftest.err >&5
6322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323  (exit $ac_status); } &&
6324         { ac_try='test -z "$ac_c_werror_flag"
6325                         || test ! -s conftest.err'
6326  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6327  (eval $ac_try) 2>&5
6328  ac_status=$?
6329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330  (exit $ac_status); }; } &&
6331         { ac_try='test -s conftest.$ac_objext'
6332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333  (eval $ac_try) 2>&5
6334  ac_status=$?
6335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336  (exit $ac_status); }; }; then
6337  ac_header_compiler=yes
6338else
6339  echo "$as_me: failed program was:" >&5
6340sed 's/^/| /' conftest.$ac_ext >&5
6341
6342ac_header_compiler=no
6343fi
6344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6345echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6346echo "${ECHO_T}$ac_header_compiler" >&6
6347
6348# Is the header present?
6349echo "$as_me:$LINENO: checking $ac_header presence" >&5
6350echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6351cat >conftest.$ac_ext <<_ACEOF
6352/* confdefs.h.  */
6353_ACEOF
6354cat confdefs.h >>conftest.$ac_ext
6355cat >>conftest.$ac_ext <<_ACEOF
6356/* end confdefs.h.  */
6357#include <$ac_header>
6358_ACEOF
6359if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6360  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6361  ac_status=$?
6362  grep -v '^ *+' conftest.er1 >conftest.err
6363  rm -f conftest.er1
6364  cat conftest.err >&5
6365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366  (exit $ac_status); } >/dev/null; then
6367  if test -s conftest.err; then
6368    ac_cpp_err=$ac_c_preproc_warn_flag
6369    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6370  else
6371    ac_cpp_err=
6372  fi
6373else
6374  ac_cpp_err=yes
6375fi
6376if test -z "$ac_cpp_err"; then
6377  ac_header_preproc=yes
6378else
6379  echo "$as_me: failed program was:" >&5
6380sed 's/^/| /' conftest.$ac_ext >&5
6381
6382  ac_header_preproc=no
6383fi
6384rm -f conftest.err conftest.$ac_ext
6385echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6386echo "${ECHO_T}$ac_header_preproc" >&6
6387
6388# So?  What about this header?
6389case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6390  yes:no: )
6391    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6392echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6393    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6394echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6395    ac_header_preproc=yes
6396    ;;
6397  no:yes:* )
6398    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6399echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6400    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6401echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6402    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6403echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6404    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6405echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6406    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6407echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6408    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6409echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6410    (
6411      cat <<\_ASBOX
6412## ---------------------------------------------- ##
6413## Report this to orxonox-dev at mail.datacore.ch ##
6414## ---------------------------------------------- ##
6415_ASBOX
6416    ) |
6417      sed "s/^/$as_me: WARNING:     /" >&2
6418    ;;
6419esac
6420echo "$as_me:$LINENO: checking for $ac_header" >&5
6421echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6422if eval "test \"\${$as_ac_Header+set}\" = set"; then
6423  echo $ECHO_N "(cached) $ECHO_C" >&6
6424else
6425  eval "$as_ac_Header=\$ac_header_preproc"
6426fi
6427echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6428echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6429
6430fi
6431if test `eval echo '${'$as_ac_Header'}'` = yes; then
6432  cat >>confdefs.h <<_ACEOF
6433#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6434_ACEOF
6435
6436else
6437  echo "sdl_image not found. falling back to other options"; def_sdl_image=no
6438fi
6439
6440done
6441
6442fi
6443if test x$def_sdl_image = xyes; then
6444# checking for SDL_image-lib
6445  echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5
6446echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6
6447if test "${ac_cv_lib_SDL_image_main+set}" = set; then
6448  echo $ECHO_N "(cached) $ECHO_C" >&6
6449else
6450  ac_check_lib_save_LIBS=$LIBS
6451LIBS="-lSDL_image  $LIBS"
6452cat >conftest.$ac_ext <<_ACEOF
6453/* confdefs.h.  */
6454_ACEOF
6455cat confdefs.h >>conftest.$ac_ext
6456cat >>conftest.$ac_ext <<_ACEOF
6457/* end confdefs.h.  */
6458
6459
6460int
6461main ()
6462{
6463main ();
6464  ;
6465  return 0;
6466}
6467_ACEOF
6468rm -f conftest.$ac_objext conftest$ac_exeext
6469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6470  (eval $ac_link) 2>conftest.er1
6471  ac_status=$?
6472  grep -v '^ *+' conftest.er1 >conftest.err
6473  rm -f conftest.er1
6474  cat conftest.err >&5
6475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476  (exit $ac_status); } &&
6477         { ac_try='test -z "$ac_c_werror_flag"
6478                         || test ! -s conftest.err'
6479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480  (eval $ac_try) 2>&5
6481  ac_status=$?
6482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483  (exit $ac_status); }; } &&
6484         { ac_try='test -s conftest$ac_exeext'
6485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486  (eval $ac_try) 2>&5
6487  ac_status=$?
6488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489  (exit $ac_status); }; }; then
6490  ac_cv_lib_SDL_image_main=yes
6491else
6492  echo "$as_me: failed program was:" >&5
6493sed 's/^/| /' conftest.$ac_ext >&5
6494
6495ac_cv_lib_SDL_image_main=no
6496fi
6497rm -f conftest.err conftest.$ac_objext \
6498      conftest$ac_exeext conftest.$ac_ext
6499LIBS=$ac_check_lib_save_LIBS
6500fi
6501echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5
6502echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6
6503if test $ac_cv_lib_SDL_image_main = yes; then
6504  FOUND_SDL_image=yes
6505fi
6506
6507     if test x$FOUND_SDL_image = xyes ; then
6508       LIBS="$LIBS -lSDL_image"
6509     else
6510        echo "------------------"
6511        echo "SDL_image library not found."
6512        echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/"
6513        echo "------------------"
6514        exit -1
6515     fi
6516fi
6517
6518## case no SDL-image:
6519if test x$def_sdl_image = xno; then
6520#---------#
6521# libjpeg #
6522#---------#
6523
6524for ac_header in jpeglib.h
6525do
6526as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6527if eval "test \"\${$as_ac_Header+set}\" = set"; then
6528  echo "$as_me:$LINENO: checking for $ac_header" >&5
6529echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6530if eval "test \"\${$as_ac_Header+set}\" = set"; then
6531  echo $ECHO_N "(cached) $ECHO_C" >&6
6532fi
6533echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6534echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6535else
6536  # Is the header compilable?
6537echo "$as_me:$LINENO: checking $ac_header usability" >&5
6538echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6539cat >conftest.$ac_ext <<_ACEOF
6540/* confdefs.h.  */
6541_ACEOF
6542cat confdefs.h >>conftest.$ac_ext
6543cat >>conftest.$ac_ext <<_ACEOF
6544/* end confdefs.h.  */
6545$ac_includes_default
6546#include <$ac_header>
6547_ACEOF
6548rm -f conftest.$ac_objext
6549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6550  (eval $ac_compile) 2>conftest.er1
6551  ac_status=$?
6552  grep -v '^ *+' conftest.er1 >conftest.err
6553  rm -f conftest.er1
6554  cat conftest.err >&5
6555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556  (exit $ac_status); } &&
6557         { ac_try='test -z "$ac_c_werror_flag"
6558                         || test ! -s conftest.err'
6559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560  (eval $ac_try) 2>&5
6561  ac_status=$?
6562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563  (exit $ac_status); }; } &&
6564         { ac_try='test -s conftest.$ac_objext'
6565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566  (eval $ac_try) 2>&5
6567  ac_status=$?
6568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569  (exit $ac_status); }; }; then
6570  ac_header_compiler=yes
6571else
6572  echo "$as_me: failed program was:" >&5
6573sed 's/^/| /' conftest.$ac_ext >&5
6574
6575ac_header_compiler=no
6576fi
6577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6578echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6579echo "${ECHO_T}$ac_header_compiler" >&6
6580
6581# Is the header present?
6582echo "$as_me:$LINENO: checking $ac_header presence" >&5
6583echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6584cat >conftest.$ac_ext <<_ACEOF
6585/* confdefs.h.  */
6586_ACEOF
6587cat confdefs.h >>conftest.$ac_ext
6588cat >>conftest.$ac_ext <<_ACEOF
6589/* end confdefs.h.  */
6590#include <$ac_header>
6591_ACEOF
6592if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6593  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6594  ac_status=$?
6595  grep -v '^ *+' conftest.er1 >conftest.err
6596  rm -f conftest.er1
6597  cat conftest.err >&5
6598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599  (exit $ac_status); } >/dev/null; then
6600  if test -s conftest.err; then
6601    ac_cpp_err=$ac_c_preproc_warn_flag
6602    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6603  else
6604    ac_cpp_err=
6605  fi
6606else
6607  ac_cpp_err=yes
6608fi
6609if test -z "$ac_cpp_err"; then
6610  ac_header_preproc=yes
6611else
6612  echo "$as_me: failed program was:" >&5
6613sed 's/^/| /' conftest.$ac_ext >&5
6614
6615  ac_header_preproc=no
6616fi
6617rm -f conftest.err conftest.$ac_ext
6618echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6619echo "${ECHO_T}$ac_header_preproc" >&6
6620
6621# So?  What about this header?
6622case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6623  yes:no: )
6624    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6625echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6626    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6627echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6628    ac_header_preproc=yes
6629    ;;
6630  no:yes:* )
6631    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6632echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6633    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6634echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6635    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6636echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6637    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6638echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6639    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6640echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6641    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6642echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6643    (
6644      cat <<\_ASBOX
6645## ---------------------------------------------- ##
6646## Report this to orxonox-dev at mail.datacore.ch ##
6647## ---------------------------------------------- ##
6648_ASBOX
6649    ) |
6650      sed "s/^/$as_me: WARNING:     /" >&2
6651    ;;
6652esac
6653echo "$as_me:$LINENO: checking for $ac_header" >&5
6654echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6655if eval "test \"\${$as_ac_Header+set}\" = set"; then
6656  echo $ECHO_N "(cached) $ECHO_C" >&6
6657else
6658  eval "$as_ac_Header=\$ac_header_preproc"
6659fi
6660echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6661echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6662
6663fi
6664if test `eval echo '${'$as_ac_Header'}'` = yes; then
6665  cat >>confdefs.h <<_ACEOF
6666#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6667_ACEOF
6668 jpegHeader="yes"
6669else
6670  jpegHeader="no"
6671fi
6672
6673done
6674
6675 if test x$jpegHeader = xno; then
6676        echo " not including jpeg."
6677 else
6678  echo "$as_me:$LINENO: checking for main in -ljpeg" >&5
6679echo $ECHO_N "checking for main in -ljpeg... $ECHO_C" >&6
6680if test "${ac_cv_lib_jpeg_main+set}" = set; then
6681  echo $ECHO_N "(cached) $ECHO_C" >&6
6682else
6683  ac_check_lib_save_LIBS=$LIBS
6684LIBS="-ljpeg  $LIBS"
6685cat >conftest.$ac_ext <<_ACEOF
6686/* confdefs.h.  */
6687_ACEOF
6688cat confdefs.h >>conftest.$ac_ext
6689cat >>conftest.$ac_ext <<_ACEOF
6690/* end confdefs.h.  */
6691
6692
6693int
6694main ()
6695{
6696main ();
6697  ;
6698  return 0;
6699}
6700_ACEOF
6701rm -f conftest.$ac_objext conftest$ac_exeext
6702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6703  (eval $ac_link) 2>conftest.er1
6704  ac_status=$?
6705  grep -v '^ *+' conftest.er1 >conftest.err
6706  rm -f conftest.er1
6707  cat conftest.err >&5
6708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709  (exit $ac_status); } &&
6710         { ac_try='test -z "$ac_c_werror_flag"
6711                         || test ! -s conftest.err'
6712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713  (eval $ac_try) 2>&5
6714  ac_status=$?
6715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716  (exit $ac_status); }; } &&
6717         { ac_try='test -s conftest$ac_exeext'
6718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719  (eval $ac_try) 2>&5
6720  ac_status=$?
6721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722  (exit $ac_status); }; }; then
6723  ac_cv_lib_jpeg_main=yes
6724else
6725  echo "$as_me: failed program was:" >&5
6726sed 's/^/| /' conftest.$ac_ext >&5
6727
6728ac_cv_lib_jpeg_main=no
6729fi
6730rm -f conftest.err conftest.$ac_objext \
6731      conftest$ac_exeext conftest.$ac_ext
6732LIBS=$ac_check_lib_save_LIBS
6733fi
6734echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_main" >&5
6735echo "${ECHO_T}$ac_cv_lib_jpeg_main" >&6
6736if test $ac_cv_lib_jpeg_main = yes; then
6737  FOUND_jpeg=yes
6738fi
6739
6740    if test x$FOUND_jpeg = xyes ; then
6741      LIBS="$LIBS -ljpeg"
6742    else
6743         echo "------------------"
6744         echo "jpeg library not found."
6745         echo "please install the jpeg library from the Independent JPEG Group, which can be found at http://www.ijg.org"
6746         echo "------------------"
6747         exit -1
6748    fi
6749 fi
6750
6751#--------#
6752# libpng #
6753#--------#
6754
6755for ac_header in png.h
6756do
6757as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6758if eval "test \"\${$as_ac_Header+set}\" = set"; then
6759  echo "$as_me:$LINENO: checking for $ac_header" >&5
6760echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6761if eval "test \"\${$as_ac_Header+set}\" = set"; then
6762  echo $ECHO_N "(cached) $ECHO_C" >&6
6763fi
6764echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6765echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6766else
6767  # Is the header compilable?
6768echo "$as_me:$LINENO: checking $ac_header usability" >&5
6769echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6770cat >conftest.$ac_ext <<_ACEOF
6771/* confdefs.h.  */
6772_ACEOF
6773cat confdefs.h >>conftest.$ac_ext
6774cat >>conftest.$ac_ext <<_ACEOF
6775/* end confdefs.h.  */
6776$ac_includes_default
6777#include <$ac_header>
6778_ACEOF
6779rm -f conftest.$ac_objext
6780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6781  (eval $ac_compile) 2>conftest.er1
6782  ac_status=$?
6783  grep -v '^ *+' conftest.er1 >conftest.err
6784  rm -f conftest.er1
6785  cat conftest.err >&5
6786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787  (exit $ac_status); } &&
6788         { ac_try='test -z "$ac_c_werror_flag"
6789                         || test ! -s conftest.err'
6790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791  (eval $ac_try) 2>&5
6792  ac_status=$?
6793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794  (exit $ac_status); }; } &&
6795         { ac_try='test -s conftest.$ac_objext'
6796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6797  (eval $ac_try) 2>&5
6798  ac_status=$?
6799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800  (exit $ac_status); }; }; then
6801  ac_header_compiler=yes
6802else
6803  echo "$as_me: failed program was:" >&5
6804sed 's/^/| /' conftest.$ac_ext >&5
6805
6806ac_header_compiler=no
6807fi
6808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6809echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6810echo "${ECHO_T}$ac_header_compiler" >&6
6811
6812# Is the header present?
6813echo "$as_me:$LINENO: checking $ac_header presence" >&5
6814echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6815cat >conftest.$ac_ext <<_ACEOF
6816/* confdefs.h.  */
6817_ACEOF
6818cat confdefs.h >>conftest.$ac_ext
6819cat >>conftest.$ac_ext <<_ACEOF
6820/* end confdefs.h.  */
6821#include <$ac_header>
6822_ACEOF
6823if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6824  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6825  ac_status=$?
6826  grep -v '^ *+' conftest.er1 >conftest.err
6827  rm -f conftest.er1
6828  cat conftest.err >&5
6829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830  (exit $ac_status); } >/dev/null; then
6831  if test -s conftest.err; then
6832    ac_cpp_err=$ac_c_preproc_warn_flag
6833    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6834  else
6835    ac_cpp_err=
6836  fi
6837else
6838  ac_cpp_err=yes
6839fi
6840if test -z "$ac_cpp_err"; then
6841  ac_header_preproc=yes
6842else
6843  echo "$as_me: failed program was:" >&5
6844sed 's/^/| /' conftest.$ac_ext >&5
6845
6846  ac_header_preproc=no
6847fi
6848rm -f conftest.err conftest.$ac_ext
6849echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6850echo "${ECHO_T}$ac_header_preproc" >&6
6851
6852# So?  What about this header?
6853case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6854  yes:no: )
6855    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6856echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6857    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6858echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6859    ac_header_preproc=yes
6860    ;;
6861  no:yes:* )
6862    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6863echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6864    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6865echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6866    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6867echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6868    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6869echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6870    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6871echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6872    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6873echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6874    (
6875      cat <<\_ASBOX
6876## ---------------------------------------------- ##
6877## Report this to orxonox-dev at mail.datacore.ch ##
6878## ---------------------------------------------- ##
6879_ASBOX
6880    ) |
6881      sed "s/^/$as_me: WARNING:     /" >&2
6882    ;;
6883esac
6884echo "$as_me:$LINENO: checking for $ac_header" >&5
6885echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6886if eval "test \"\${$as_ac_Header+set}\" = set"; then
6887  echo $ECHO_N "(cached) $ECHO_C" >&6
6888else
6889  eval "$as_ac_Header=\$ac_header_preproc"
6890fi
6891echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6892echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6893
6894fi
6895if test `eval echo '${'$as_ac_Header'}'` = yes; then
6896  cat >>confdefs.h <<_ACEOF
6897#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6898_ACEOF
6899 pngHeader="yes"
6900else
6901  pngHeader="no"
6902fi
6903
6904done
6905
6906 if test x$pngHeader = xno; then
6907        echo " not including png."
6908 else
6909  echo "$as_me:$LINENO: checking for main in -lpng" >&5
6910echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
6911if test "${ac_cv_lib_png_main+set}" = set; then
6912  echo $ECHO_N "(cached) $ECHO_C" >&6
6913else
6914  ac_check_lib_save_LIBS=$LIBS
6915LIBS="-lpng  $LIBS"
6916cat >conftest.$ac_ext <<_ACEOF
6917/* confdefs.h.  */
6918_ACEOF
6919cat confdefs.h >>conftest.$ac_ext
6920cat >>conftest.$ac_ext <<_ACEOF
6921/* end confdefs.h.  */
6922
6923
6924int
6925main ()
6926{
6927main ();
6928  ;
6929  return 0;
6930}
6931_ACEOF
6932rm -f conftest.$ac_objext conftest$ac_exeext
6933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6934  (eval $ac_link) 2>conftest.er1
6935  ac_status=$?
6936  grep -v '^ *+' conftest.er1 >conftest.err
6937  rm -f conftest.er1
6938  cat conftest.err >&5
6939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940  (exit $ac_status); } &&
6941         { ac_try='test -z "$ac_c_werror_flag"
6942                         || test ! -s conftest.err'
6943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944  (eval $ac_try) 2>&5
6945  ac_status=$?
6946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947  (exit $ac_status); }; } &&
6948         { ac_try='test -s conftest$ac_exeext'
6949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950  (eval $ac_try) 2>&5
6951  ac_status=$?
6952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953  (exit $ac_status); }; }; then
6954  ac_cv_lib_png_main=yes
6955else
6956  echo "$as_me: failed program was:" >&5
6957sed 's/^/| /' conftest.$ac_ext >&5
6958
6959ac_cv_lib_png_main=no
6960fi
6961rm -f conftest.err conftest.$ac_objext \
6962      conftest$ac_exeext conftest.$ac_ext
6963LIBS=$ac_check_lib_save_LIBS
6964fi
6965echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
6966echo "${ECHO_T}$ac_cv_lib_png_main" >&6
6967if test $ac_cv_lib_png_main = yes; then
6968  FOUND_png=yes
6969fi
6970
6971    if test x$FOUND_png = xyes ; then
6972      LIBS="$LIBS -lpng"
6973    else
6974         echo "------------------"
6975         echo "png library not found."
6976         echo "please install the png library, which can be found at http://libpng.org/pub/png/libpng.html"
6977         echo "------------------"
6978         exit -1
6979    fi
6980 fi
6981fi
6982
6983#-----#
6984# GTK #
6985#-----#
6986if test x$def_gtk = xyes; then
6987
6988        #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
6989        echo "$as_me:$LINENO: checking for gtk2.0" >&5
6990echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6
6991        if `pkg-config --exists gtk+-2.0`; then
6992                echo "yes"
6993                have_gtk2=yes
6994                GTK2_LIBS=`pkg-config --libs gtk+-2.0`
6995                GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0`
6996
6997cat >>confdefs.h <<_ACEOF
6998#define HAVE_GTK2 1
6999_ACEOF
7000
7001        else
7002                echo "no"
7003        fi
7004
7005fi
7006
7007
7008
7009
7010if test x$have_gtk2 = xyes; then
7011  HAVE_GTK2_TRUE=
7012  HAVE_GTK2_FALSE='#'
7013else
7014  HAVE_GTK2_TRUE='#'
7015  HAVE_GTK2_FALSE=
7016fi
7017
7018
7019#---------#
7020# gThread #
7021#---------#
7022if test x$def_gthread = xyes; then
7023
7024        echo "$as_me:$LINENO: checking for gthread" >&5
7025echo $ECHO_N "checking for gthread... $ECHO_C" >&6
7026        if `pkg-config --exists gthread-2.0`; then
7027                echo "yes"
7028                have_gthread=yes
7029                GTHREAD_LIBS=`pkg-config --libs gthread-2.0`
7030                GTHREAD_CFLAGS=`pkg-config --cflags gthread-2.0`
7031
7032cat >>confdefs.h <<_ACEOF
7033#define HAVE_GTHREAD 1
7034_ACEOF
7035
7036        else
7037                echo "no"
7038        fi
7039
7040fi
7041
7042
7043
7044
7045if test x$have_gthread = xyes; then
7046  HAVE_GTHREAD_TRUE=
7047  HAVE_GTHREAD_FALSE='#'
7048else
7049  HAVE_GTHREAD_TRUE='#'
7050  HAVE_GTHREAD_FALSE=
7051fi
7052
7053
7054#---------#
7055# libcURL #
7056#---------#
7057if test x$def_curl = xyes; then
7058
7059
7060for ac_header in curl/curl.h
7061do
7062as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7063if eval "test \"\${$as_ac_Header+set}\" = set"; then
7064  echo "$as_me:$LINENO: checking for $ac_header" >&5
7065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7066if eval "test \"\${$as_ac_Header+set}\" = set"; then
7067  echo $ECHO_N "(cached) $ECHO_C" >&6
7068fi
7069echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7070echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7071else
7072  # Is the header compilable?
7073echo "$as_me:$LINENO: checking $ac_header usability" >&5
7074echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7075cat >conftest.$ac_ext <<_ACEOF
7076/* confdefs.h.  */
7077_ACEOF
7078cat confdefs.h >>conftest.$ac_ext
7079cat >>conftest.$ac_ext <<_ACEOF
7080/* end confdefs.h.  */
7081$ac_includes_default
7082#include <$ac_header>
7083_ACEOF
7084rm -f conftest.$ac_objext
7085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7086  (eval $ac_compile) 2>conftest.er1
7087  ac_status=$?
7088  grep -v '^ *+' conftest.er1 >conftest.err
7089  rm -f conftest.er1
7090  cat conftest.err >&5
7091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092  (exit $ac_status); } &&
7093         { ac_try='test -z "$ac_c_werror_flag"
7094                         || test ! -s conftest.err'
7095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7096  (eval $ac_try) 2>&5
7097  ac_status=$?
7098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099  (exit $ac_status); }; } &&
7100         { ac_try='test -s conftest.$ac_objext'
7101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7102  (eval $ac_try) 2>&5
7103  ac_status=$?
7104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105  (exit $ac_status); }; }; then
7106  ac_header_compiler=yes
7107else
7108  echo "$as_me: failed program was:" >&5
7109sed 's/^/| /' conftest.$ac_ext >&5
7110
7111ac_header_compiler=no
7112fi
7113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7114echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7115echo "${ECHO_T}$ac_header_compiler" >&6
7116
7117# Is the header present?
7118echo "$as_me:$LINENO: checking $ac_header presence" >&5
7119echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7120cat >conftest.$ac_ext <<_ACEOF
7121/* confdefs.h.  */
7122_ACEOF
7123cat confdefs.h >>conftest.$ac_ext
7124cat >>conftest.$ac_ext <<_ACEOF
7125/* end confdefs.h.  */
7126#include <$ac_header>
7127_ACEOF
7128if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7129  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7130  ac_status=$?
7131  grep -v '^ *+' conftest.er1 >conftest.err
7132  rm -f conftest.er1
7133  cat conftest.err >&5
7134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135  (exit $ac_status); } >/dev/null; then
7136  if test -s conftest.err; then
7137    ac_cpp_err=$ac_c_preproc_warn_flag
7138    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7139  else
7140    ac_cpp_err=
7141  fi
7142else
7143  ac_cpp_err=yes
7144fi
7145if test -z "$ac_cpp_err"; then
7146  ac_header_preproc=yes
7147else
7148  echo "$as_me: failed program was:" >&5
7149sed 's/^/| /' conftest.$ac_ext >&5
7150
7151  ac_header_preproc=no
7152fi
7153rm -f conftest.err conftest.$ac_ext
7154echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7155echo "${ECHO_T}$ac_header_preproc" >&6
7156
7157# So?  What about this header?
7158case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7159  yes:no: )
7160    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7161echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7162    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7163echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7164    ac_header_preproc=yes
7165    ;;
7166  no:yes:* )
7167    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7168echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7169    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7170echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7171    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7172echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7173    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7174echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7175    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7176echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7177    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7178echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7179    (
7180      cat <<\_ASBOX
7181## ---------------------------------------------- ##
7182## Report this to orxonox-dev at mail.datacore.ch ##
7183## ---------------------------------------------- ##
7184_ASBOX
7185    ) |
7186      sed "s/^/$as_me: WARNING:     /" >&2
7187    ;;
7188esac
7189echo "$as_me:$LINENO: checking for $ac_header" >&5
7190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7191if eval "test \"\${$as_ac_Header+set}\" = set"; then
7192  echo $ECHO_N "(cached) $ECHO_C" >&6
7193else
7194  eval "$as_ac_Header=\$ac_header_preproc"
7195fi
7196echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7197echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7198
7199fi
7200if test `eval echo '${'$as_ac_Header'}'` = yes; then
7201  cat >>confdefs.h <<_ACEOF
7202#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7203_ACEOF
7204 curlHeader="yes"
7205else
7206  curlHeader="no"
7207fi
7208
7209done
7210
7211 echo "$as_me:$LINENO: checking for main in -lcurl" >&5
7212echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6
7213if test "${ac_cv_lib_curl_main+set}" = set; then
7214  echo $ECHO_N "(cached) $ECHO_C" >&6
7215else
7216  ac_check_lib_save_LIBS=$LIBS
7217LIBS="-lcurl  $LIBS"
7218cat >conftest.$ac_ext <<_ACEOF
7219/* confdefs.h.  */
7220_ACEOF
7221cat confdefs.h >>conftest.$ac_ext
7222cat >>conftest.$ac_ext <<_ACEOF
7223/* end confdefs.h.  */
7224
7225
7226int
7227main ()
7228{
7229main ();
7230  ;
7231  return 0;
7232}
7233_ACEOF
7234rm -f conftest.$ac_objext conftest$ac_exeext
7235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7236  (eval $ac_link) 2>conftest.er1
7237  ac_status=$?
7238  grep -v '^ *+' conftest.er1 >conftest.err
7239  rm -f conftest.er1
7240  cat conftest.err >&5
7241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242  (exit $ac_status); } &&
7243         { ac_try='test -z "$ac_c_werror_flag"
7244                         || test ! -s conftest.err'
7245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246  (eval $ac_try) 2>&5
7247  ac_status=$?
7248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249  (exit $ac_status); }; } &&
7250         { ac_try='test -s conftest$ac_exeext'
7251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252  (eval $ac_try) 2>&5
7253  ac_status=$?
7254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255  (exit $ac_status); }; }; then
7256  ac_cv_lib_curl_main=yes
7257else
7258  echo "$as_me: failed program was:" >&5
7259sed 's/^/| /' conftest.$ac_ext >&5
7260
7261ac_cv_lib_curl_main=no
7262fi
7263rm -f conftest.err conftest.$ac_objext \
7264      conftest$ac_exeext conftest.$ac_ext
7265LIBS=$ac_check_lib_save_LIBS
7266fi
7267echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5
7268echo "${ECHO_T}$ac_cv_lib_curl_main" >&6
7269if test $ac_cv_lib_curl_main = yes; then
7270  FOUND_curl=yes
7271fi
7272
7273 if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then
7274  have_curl=yes
7275  CURL_LIBS=`curl-config --libs`
7276  CURLCFLAGS=`curl-config --cflags`
7277
7278cat >>confdefs.h <<_ACEOF
7279#define HAVE_CURL 1
7280_ACEOF
7281
7282 else
7283  have_curl=no
7284 fi
7285
7286fi
7287
7288
7289
7290
7291if test x$have_curl = xyes; then
7292  HAVE_CURL_TRUE=
7293  HAVE_CURL_FALSE='#'
7294else
7295  HAVE_CURL_TRUE='#'
7296  HAVE_CURL_FALSE=
7297fi
7298
7299
7300#---------#
7301# pthread #
7302#---------#
7303if test x$def_pthread = xyes ; then
7304 if test x$have_gthread = xyes ; then
7305
7306for ac_header in pthread.h
7307do
7308as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7309if eval "test \"\${$as_ac_Header+set}\" = set"; then
7310  echo "$as_me:$LINENO: checking for $ac_header" >&5
7311echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7312if eval "test \"\${$as_ac_Header+set}\" = set"; then
7313  echo $ECHO_N "(cached) $ECHO_C" >&6
7314fi
7315echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7316echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7317else
7318  # Is the header compilable?
7319echo "$as_me:$LINENO: checking $ac_header usability" >&5
7320echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7321cat >conftest.$ac_ext <<_ACEOF
7322/* confdefs.h.  */
7323_ACEOF
7324cat confdefs.h >>conftest.$ac_ext
7325cat >>conftest.$ac_ext <<_ACEOF
7326/* end confdefs.h.  */
7327$ac_includes_default
7328#include <$ac_header>
7329_ACEOF
7330rm -f conftest.$ac_objext
7331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7332  (eval $ac_compile) 2>conftest.er1
7333  ac_status=$?
7334  grep -v '^ *+' conftest.er1 >conftest.err
7335  rm -f conftest.er1
7336  cat conftest.err >&5
7337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338  (exit $ac_status); } &&
7339         { ac_try='test -z "$ac_c_werror_flag"
7340                         || test ! -s conftest.err'
7341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7342  (eval $ac_try) 2>&5
7343  ac_status=$?
7344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345  (exit $ac_status); }; } &&
7346         { ac_try='test -s conftest.$ac_objext'
7347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348  (eval $ac_try) 2>&5
7349  ac_status=$?
7350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351  (exit $ac_status); }; }; then
7352  ac_header_compiler=yes
7353else
7354  echo "$as_me: failed program was:" >&5
7355sed 's/^/| /' conftest.$ac_ext >&5
7356
7357ac_header_compiler=no
7358fi
7359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7360echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7361echo "${ECHO_T}$ac_header_compiler" >&6
7362
7363# Is the header present?
7364echo "$as_me:$LINENO: checking $ac_header presence" >&5
7365echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7366cat >conftest.$ac_ext <<_ACEOF
7367/* confdefs.h.  */
7368_ACEOF
7369cat confdefs.h >>conftest.$ac_ext
7370cat >>conftest.$ac_ext <<_ACEOF
7371/* end confdefs.h.  */
7372#include <$ac_header>
7373_ACEOF
7374if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7375  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7376  ac_status=$?
7377  grep -v '^ *+' conftest.er1 >conftest.err
7378  rm -f conftest.er1
7379  cat conftest.err >&5
7380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381  (exit $ac_status); } >/dev/null; then
7382  if test -s conftest.err; then
7383    ac_cpp_err=$ac_c_preproc_warn_flag
7384    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7385  else
7386    ac_cpp_err=
7387  fi
7388else
7389  ac_cpp_err=yes
7390fi
7391if test -z "$ac_cpp_err"; then
7392  ac_header_preproc=yes
7393else
7394  echo "$as_me: failed program was:" >&5
7395sed 's/^/| /' conftest.$ac_ext >&5
7396
7397  ac_header_preproc=no
7398fi
7399rm -f conftest.err conftest.$ac_ext
7400echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7401echo "${ECHO_T}$ac_header_preproc" >&6
7402
7403# So?  What about this header?
7404case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7405  yes:no: )
7406    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7407echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7408    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7409echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7410    ac_header_preproc=yes
7411    ;;
7412  no:yes:* )
7413    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7414echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7415    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7416echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7417    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7418echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7419    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7420echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7421    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7422echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7423    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7424echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7425    (
7426      cat <<\_ASBOX
7427## ---------------------------------------------- ##
7428## Report this to orxonox-dev at mail.datacore.ch ##
7429## ---------------------------------------------- ##
7430_ASBOX
7431    ) |
7432      sed "s/^/$as_me: WARNING:     /" >&2
7433    ;;
7434esac
7435echo "$as_me:$LINENO: checking for $ac_header" >&5
7436echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7437if eval "test \"\${$as_ac_Header+set}\" = set"; then
7438  echo $ECHO_N "(cached) $ECHO_C" >&6
7439else
7440  eval "$as_ac_Header=\$ac_header_preproc"
7441fi
7442echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7443echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7444
7445fi
7446if test `eval echo '${'$as_ac_Header'}'` = yes; then
7447  cat >>confdefs.h <<_ACEOF
7448#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7449_ACEOF
7450 pthreadHeader="yes"
7451else
7452  pthreadHeader="no"
7453fi
7454
7455done
7456
7457  echo "$as_me:$LINENO: checking for main in -lpthread" >&5
7458echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
7459if test "${ac_cv_lib_pthread_main+set}" = set; then
7460  echo $ECHO_N "(cached) $ECHO_C" >&6
7461else
7462  ac_check_lib_save_LIBS=$LIBS
7463LIBS="-lpthread  $LIBS"
7464cat >conftest.$ac_ext <<_ACEOF
7465/* confdefs.h.  */
7466_ACEOF
7467cat confdefs.h >>conftest.$ac_ext
7468cat >>conftest.$ac_ext <<_ACEOF
7469/* end confdefs.h.  */
7470
7471
7472int
7473main ()
7474{
7475main ();
7476  ;
7477  return 0;
7478}
7479_ACEOF
7480rm -f conftest.$ac_objext conftest$ac_exeext
7481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7482  (eval $ac_link) 2>conftest.er1
7483  ac_status=$?
7484  grep -v '^ *+' conftest.er1 >conftest.err
7485  rm -f conftest.er1
7486  cat conftest.err >&5
7487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488  (exit $ac_status); } &&
7489         { ac_try='test -z "$ac_c_werror_flag"
7490                         || test ! -s conftest.err'
7491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7492  (eval $ac_try) 2>&5
7493  ac_status=$?
7494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495  (exit $ac_status); }; } &&
7496         { ac_try='test -s conftest$ac_exeext'
7497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7498  (eval $ac_try) 2>&5
7499  ac_status=$?
7500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501  (exit $ac_status); }; }; then
7502  ac_cv_lib_pthread_main=yes
7503else
7504  echo "$as_me: failed program was:" >&5
7505sed 's/^/| /' conftest.$ac_ext >&5
7506
7507ac_cv_lib_pthread_main=no
7508fi
7509rm -f conftest.err conftest.$ac_objext \
7510      conftest$ac_exeext conftest.$ac_ext
7511LIBS=$ac_check_lib_save_LIBS
7512fi
7513echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
7514echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
7515if test $ac_cv_lib_pthread_main = yes; then
7516  FOUND_pthread=yes
7517fi
7518
7519   if test x$FOUND_pthread = xyes ; then
7520      LIBS="$LIBS -lpthread"
7521   fi
7522 fi
7523fi
7524
7525
7526# FIXME: Replace `main' with a function in `-lm':
7527
7528echo "$as_me:$LINENO: checking for main in -lm" >&5
7529echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7530if test "${ac_cv_lib_m_main+set}" = set; then
7531  echo $ECHO_N "(cached) $ECHO_C" >&6
7532else
7533  ac_check_lib_save_LIBS=$LIBS
7534LIBS="-lm  $LIBS"
7535cat >conftest.$ac_ext <<_ACEOF
7536/* confdefs.h.  */
7537_ACEOF
7538cat confdefs.h >>conftest.$ac_ext
7539cat >>conftest.$ac_ext <<_ACEOF
7540/* end confdefs.h.  */
7541
7542
7543int
7544main ()
7545{
7546main ();
7547  ;
7548  return 0;
7549}
7550_ACEOF
7551rm -f conftest.$ac_objext conftest$ac_exeext
7552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7553  (eval $ac_link) 2>conftest.er1
7554  ac_status=$?
7555  grep -v '^ *+' conftest.er1 >conftest.err
7556  rm -f conftest.er1
7557  cat conftest.err >&5
7558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559  (exit $ac_status); } &&
7560         { ac_try='test -z "$ac_c_werror_flag"
7561                         || test ! -s conftest.err'
7562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7563  (eval $ac_try) 2>&5
7564  ac_status=$?
7565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566  (exit $ac_status); }; } &&
7567         { ac_try='test -s conftest$ac_exeext'
7568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569  (eval $ac_try) 2>&5
7570  ac_status=$?
7571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572  (exit $ac_status); }; }; then
7573  ac_cv_lib_m_main=yes
7574else
7575  echo "$as_me: failed program was:" >&5
7576sed 's/^/| /' conftest.$ac_ext >&5
7577
7578ac_cv_lib_m_main=no
7579fi
7580rm -f conftest.err conftest.$ac_objext \
7581      conftest$ac_exeext conftest.$ac_ext
7582LIBS=$ac_check_lib_save_LIBS
7583fi
7584echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7585echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7586if test $ac_cv_lib_m_main = yes; then
7587  cat >>confdefs.h <<_ACEOF
7588#define HAVE_LIBM 1
7589_ACEOF
7590
7591  LIBS="-lm $LIBS"
7592
7593fi
7594
7595
7596
7597# Checks for header files.
7598echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7599echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7600if test "${ac_cv_header_stdc+set}" = set; then
7601  echo $ECHO_N "(cached) $ECHO_C" >&6
7602else
7603  cat >conftest.$ac_ext <<_ACEOF
7604/* confdefs.h.  */
7605_ACEOF
7606cat confdefs.h >>conftest.$ac_ext
7607cat >>conftest.$ac_ext <<_ACEOF
7608/* end confdefs.h.  */
7609#include <stdlib.h>
7610#include <stdarg.h>
7611#include <string.h>
7612#include <float.h>
7613
7614int
7615main ()
7616{
7617
7618  ;
7619  return 0;
7620}
7621_ACEOF
7622rm -f conftest.$ac_objext
7623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7624  (eval $ac_compile) 2>conftest.er1
7625  ac_status=$?
7626  grep -v '^ *+' conftest.er1 >conftest.err
7627  rm -f conftest.er1
7628  cat conftest.err >&5
7629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630  (exit $ac_status); } &&
7631         { ac_try='test -z "$ac_c_werror_flag"
7632                         || test ! -s conftest.err'
7633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634  (eval $ac_try) 2>&5
7635  ac_status=$?
7636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637  (exit $ac_status); }; } &&
7638         { ac_try='test -s conftest.$ac_objext'
7639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7640  (eval $ac_try) 2>&5
7641  ac_status=$?
7642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643  (exit $ac_status); }; }; then
7644  ac_cv_header_stdc=yes
7645else
7646  echo "$as_me: failed program was:" >&5
7647sed 's/^/| /' conftest.$ac_ext >&5
7648
7649ac_cv_header_stdc=no
7650fi
7651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7652
7653if test $ac_cv_header_stdc = yes; then
7654  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7655  cat >conftest.$ac_ext <<_ACEOF
7656/* confdefs.h.  */
7657_ACEOF
7658cat confdefs.h >>conftest.$ac_ext
7659cat >>conftest.$ac_ext <<_ACEOF
7660/* end confdefs.h.  */
7661#include <string.h>
7662
7663_ACEOF
7664if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7665  $EGREP "memchr" >/dev/null 2>&1; then
7666  :
7667else
7668  ac_cv_header_stdc=no
7669fi
7670rm -f conftest*
7671
7672fi
7673
7674if test $ac_cv_header_stdc = yes; then
7675  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7676  cat >conftest.$ac_ext <<_ACEOF
7677/* confdefs.h.  */
7678_ACEOF
7679cat confdefs.h >>conftest.$ac_ext
7680cat >>conftest.$ac_ext <<_ACEOF
7681/* end confdefs.h.  */
7682#include <stdlib.h>
7683
7684_ACEOF
7685if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7686  $EGREP "free" >/dev/null 2>&1; then
7687  :
7688else
7689  ac_cv_header_stdc=no
7690fi
7691rm -f conftest*
7692
7693fi
7694
7695if test $ac_cv_header_stdc = yes; then
7696  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7697  if test "$cross_compiling" = yes; then
7698  :
7699else
7700  cat >conftest.$ac_ext <<_ACEOF
7701/* confdefs.h.  */
7702_ACEOF
7703cat confdefs.h >>conftest.$ac_ext
7704cat >>conftest.$ac_ext <<_ACEOF
7705/* end confdefs.h.  */
7706#include <ctype.h>
7707#if ((' ' & 0x0FF) == 0x020)
7708# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7709# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7710#else
7711# define ISLOWER(c) \
7712                   (('a' <= (c) && (c) <= 'i') \
7713                     || ('j' <= (c) && (c) <= 'r') \
7714                     || ('s' <= (c) && (c) <= 'z'))
7715# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7716#endif
7717
7718#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7719int
7720main ()
7721{
7722  int i;
7723  for (i = 0; i < 256; i++)
7724    if (XOR (islower (i), ISLOWER (i))
7725        || toupper (i) != TOUPPER (i))
7726      exit(2);
7727  exit (0);
7728}
7729_ACEOF
7730rm -f conftest$ac_exeext
7731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7732  (eval $ac_link) 2>&5
7733  ac_status=$?
7734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7737  (eval $ac_try) 2>&5
7738  ac_status=$?
7739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740  (exit $ac_status); }; }; then
7741  :
7742else
7743  echo "$as_me: program exited with status $ac_status" >&5
7744echo "$as_me: failed program was:" >&5
7745sed 's/^/| /' conftest.$ac_ext >&5
7746
7747( exit $ac_status )
7748ac_cv_header_stdc=no
7749fi
7750rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7751fi
7752fi
7753fi
7754echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7755echo "${ECHO_T}$ac_cv_header_stdc" >&6
7756if test $ac_cv_header_stdc = yes; then
7757
7758cat >>confdefs.h <<\_ACEOF
7759#define STDC_HEADERS 1
7760_ACEOF
7761
7762fi
7763
7764
7765
7766for ac_header in stdlib.h string.h
7767do
7768as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7769if eval "test \"\${$as_ac_Header+set}\" = set"; then
7770  echo "$as_me:$LINENO: checking for $ac_header" >&5
7771echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7772if eval "test \"\${$as_ac_Header+set}\" = set"; then
7773  echo $ECHO_N "(cached) $ECHO_C" >&6
7774fi
7775echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7776echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7777else
7778  # Is the header compilable?
7779echo "$as_me:$LINENO: checking $ac_header usability" >&5
7780echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7781cat >conftest.$ac_ext <<_ACEOF
7782/* confdefs.h.  */
7783_ACEOF
7784cat confdefs.h >>conftest.$ac_ext
7785cat >>conftest.$ac_ext <<_ACEOF
7786/* end confdefs.h.  */
7787$ac_includes_default
7788#include <$ac_header>
7789_ACEOF
7790rm -f conftest.$ac_objext
7791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7792  (eval $ac_compile) 2>conftest.er1
7793  ac_status=$?
7794  grep -v '^ *+' conftest.er1 >conftest.err
7795  rm -f conftest.er1
7796  cat conftest.err >&5
7797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798  (exit $ac_status); } &&
7799         { ac_try='test -z "$ac_c_werror_flag"
7800                         || test ! -s conftest.err'
7801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7802  (eval $ac_try) 2>&5
7803  ac_status=$?
7804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805  (exit $ac_status); }; } &&
7806         { ac_try='test -s conftest.$ac_objext'
7807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7808  (eval $ac_try) 2>&5
7809  ac_status=$?
7810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811  (exit $ac_status); }; }; then
7812  ac_header_compiler=yes
7813else
7814  echo "$as_me: failed program was:" >&5
7815sed 's/^/| /' conftest.$ac_ext >&5
7816
7817ac_header_compiler=no
7818fi
7819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7820echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7821echo "${ECHO_T}$ac_header_compiler" >&6
7822
7823# Is the header present?
7824echo "$as_me:$LINENO: checking $ac_header presence" >&5
7825echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7826cat >conftest.$ac_ext <<_ACEOF
7827/* confdefs.h.  */
7828_ACEOF
7829cat confdefs.h >>conftest.$ac_ext
7830cat >>conftest.$ac_ext <<_ACEOF
7831/* end confdefs.h.  */
7832#include <$ac_header>
7833_ACEOF
7834if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7835  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7836  ac_status=$?
7837  grep -v '^ *+' conftest.er1 >conftest.err
7838  rm -f conftest.er1
7839  cat conftest.err >&5
7840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841  (exit $ac_status); } >/dev/null; then
7842  if test -s conftest.err; then
7843    ac_cpp_err=$ac_c_preproc_warn_flag
7844    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7845  else
7846    ac_cpp_err=
7847  fi
7848else
7849  ac_cpp_err=yes
7850fi
7851if test -z "$ac_cpp_err"; then
7852  ac_header_preproc=yes
7853else
7854  echo "$as_me: failed program was:" >&5
7855sed 's/^/| /' conftest.$ac_ext >&5
7856
7857  ac_header_preproc=no
7858fi
7859rm -f conftest.err conftest.$ac_ext
7860echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7861echo "${ECHO_T}$ac_header_preproc" >&6
7862
7863# So?  What about this header?
7864case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7865  yes:no: )
7866    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7867echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7868    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7869echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7870    ac_header_preproc=yes
7871    ;;
7872  no:yes:* )
7873    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7874echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7875    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7876echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7877    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7878echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7879    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7880echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7881    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7882echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7883    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7884echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7885    (
7886      cat <<\_ASBOX
7887## ---------------------------------------------- ##
7888## Report this to orxonox-dev at mail.datacore.ch ##
7889## ---------------------------------------------- ##
7890_ASBOX
7891    ) |
7892      sed "s/^/$as_me: WARNING:     /" >&2
7893    ;;
7894esac
7895echo "$as_me:$LINENO: checking for $ac_header" >&5
7896echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7897if eval "test \"\${$as_ac_Header+set}\" = set"; then
7898  echo $ECHO_N "(cached) $ECHO_C" >&6
7899else
7900  eval "$as_ac_Header=\$ac_header_preproc"
7901fi
7902echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7903echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7904
7905fi
7906if test `eval echo '${'$as_ac_Header'}'` = yes; then
7907  cat >>confdefs.h <<_ACEOF
7908#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7909_ACEOF
7910
7911fi
7912
7913done
7914
7915
7916# Checks for typedefs, structures, and compiler characteristics.
7917echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7918echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
7919if test "${ac_cv_header_stdbool_h+set}" = set; then
7920  echo $ECHO_N "(cached) $ECHO_C" >&6
7921else
7922  cat >conftest.$ac_ext <<_ACEOF
7923/* confdefs.h.  */
7924_ACEOF
7925cat confdefs.h >>conftest.$ac_ext
7926cat >>conftest.$ac_ext <<_ACEOF
7927/* end confdefs.h.  */
7928
7929#include <stdbool.h>
7930#ifndef bool
7931# error bool is not defined
7932#endif
7933#ifndef false
7934# error false is not defined
7935#endif
7936#if false
7937# error false is not 0
7938#endif
7939#ifndef true
7940# error true is not defined
7941#endif
7942#if true != 1
7943# error true is not 1
7944#endif
7945#ifndef __bool_true_false_are_defined
7946# error __bool_true_false_are_defined is not defined
7947#endif
7948
7949        struct s { _Bool s: 1; _Bool t; } s;
7950
7951        char a[true == 1 ? 1 : -1];
7952        char b[false == 0 ? 1 : -1];
7953        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7954        char d[(bool) -0.5 == true ? 1 : -1];
7955        bool e = &s;
7956        char f[(_Bool) -0.0 == false ? 1 : -1];
7957        char g[true];
7958        char h[sizeof (_Bool)];
7959        char i[sizeof s.t];
7960
7961int
7962main ()
7963{
7964 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
7965  ;
7966  return 0;
7967}
7968_ACEOF
7969rm -f conftest.$ac_objext
7970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7971  (eval $ac_compile) 2>conftest.er1
7972  ac_status=$?
7973  grep -v '^ *+' conftest.er1 >conftest.err
7974  rm -f conftest.er1
7975  cat conftest.err >&5
7976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977  (exit $ac_status); } &&
7978         { ac_try='test -z "$ac_c_werror_flag"
7979                         || test ! -s conftest.err'
7980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981  (eval $ac_try) 2>&5
7982  ac_status=$?
7983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984  (exit $ac_status); }; } &&
7985         { ac_try='test -s conftest.$ac_objext'
7986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7987  (eval $ac_try) 2>&5
7988  ac_status=$?
7989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990  (exit $ac_status); }; }; then
7991  ac_cv_header_stdbool_h=yes
7992else
7993  echo "$as_me: failed program was:" >&5
7994sed 's/^/| /' conftest.$ac_ext >&5
7995
7996ac_cv_header_stdbool_h=no
7997fi
7998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7999fi
8000echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
8001echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
8002echo "$as_me:$LINENO: checking for _Bool" >&5
8003echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
8004if test "${ac_cv_type__Bool+set}" = set; then
8005  echo $ECHO_N "(cached) $ECHO_C" >&6
8006else
8007  cat >conftest.$ac_ext <<_ACEOF
8008/* confdefs.h.  */
8009_ACEOF
8010cat confdefs.h >>conftest.$ac_ext
8011cat >>conftest.$ac_ext <<_ACEOF
8012/* end confdefs.h.  */
8013$ac_includes_default
8014int
8015main ()
8016{
8017if ((_Bool *) 0)
8018  return 0;
8019if (sizeof (_Bool))
8020  return 0;
8021  ;
8022  return 0;
8023}
8024_ACEOF
8025rm -f conftest.$ac_objext
8026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8027  (eval $ac_compile) 2>conftest.er1
8028  ac_status=$?
8029  grep -v '^ *+' conftest.er1 >conftest.err
8030  rm -f conftest.er1
8031  cat conftest.err >&5
8032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033  (exit $ac_status); } &&
8034         { ac_try='test -z "$ac_c_werror_flag"
8035                         || test ! -s conftest.err'
8036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037  (eval $ac_try) 2>&5
8038  ac_status=$?
8039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040  (exit $ac_status); }; } &&
8041         { ac_try='test -s conftest.$ac_objext'
8042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043  (eval $ac_try) 2>&5
8044  ac_status=$?
8045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046  (exit $ac_status); }; }; then
8047  ac_cv_type__Bool=yes
8048else
8049  echo "$as_me: failed program was:" >&5
8050sed 's/^/| /' conftest.$ac_ext >&5
8051
8052ac_cv_type__Bool=no
8053fi
8054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8055fi
8056echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
8057echo "${ECHO_T}$ac_cv_type__Bool" >&6
8058if test $ac_cv_type__Bool = yes; then
8059
8060cat >>confdefs.h <<_ACEOF
8061#define HAVE__BOOL 1
8062_ACEOF
8063
8064
8065fi
8066
8067if test $ac_cv_header_stdbool_h = yes; then
8068
8069cat >>confdefs.h <<\_ACEOF
8070#define HAVE_STDBOOL_H 1
8071_ACEOF
8072
8073fi
8074
8075
8076# Checks for library functions.
8077
8078for ac_header in stdlib.h
8079do
8080as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8081if eval "test \"\${$as_ac_Header+set}\" = set"; then
8082  echo "$as_me:$LINENO: checking for $ac_header" >&5
8083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8084if eval "test \"\${$as_ac_Header+set}\" = set"; then
8085  echo $ECHO_N "(cached) $ECHO_C" >&6
8086fi
8087echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8088echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8089else
8090  # Is the header compilable?
8091echo "$as_me:$LINENO: checking $ac_header usability" >&5
8092echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8093cat >conftest.$ac_ext <<_ACEOF
8094/* confdefs.h.  */
8095_ACEOF
8096cat confdefs.h >>conftest.$ac_ext
8097cat >>conftest.$ac_ext <<_ACEOF
8098/* end confdefs.h.  */
8099$ac_includes_default
8100#include <$ac_header>
8101_ACEOF
8102rm -f conftest.$ac_objext
8103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8104  (eval $ac_compile) 2>conftest.er1
8105  ac_status=$?
8106  grep -v '^ *+' conftest.er1 >conftest.err
8107  rm -f conftest.er1
8108  cat conftest.err >&5
8109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110  (exit $ac_status); } &&
8111         { ac_try='test -z "$ac_c_werror_flag"
8112                         || test ! -s conftest.err'
8113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8114  (eval $ac_try) 2>&5
8115  ac_status=$?
8116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117  (exit $ac_status); }; } &&
8118         { ac_try='test -s conftest.$ac_objext'
8119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8120  (eval $ac_try) 2>&5
8121  ac_status=$?
8122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123  (exit $ac_status); }; }; then
8124  ac_header_compiler=yes
8125else
8126  echo "$as_me: failed program was:" >&5
8127sed 's/^/| /' conftest.$ac_ext >&5
8128
8129ac_header_compiler=no
8130fi
8131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8132echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8133echo "${ECHO_T}$ac_header_compiler" >&6
8134
8135# Is the header present?
8136echo "$as_me:$LINENO: checking $ac_header presence" >&5
8137echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8138cat >conftest.$ac_ext <<_ACEOF
8139/* confdefs.h.  */
8140_ACEOF
8141cat confdefs.h >>conftest.$ac_ext
8142cat >>conftest.$ac_ext <<_ACEOF
8143/* end confdefs.h.  */
8144#include <$ac_header>
8145_ACEOF
8146if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8147  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8148  ac_status=$?
8149  grep -v '^ *+' conftest.er1 >conftest.err
8150  rm -f conftest.er1
8151  cat conftest.err >&5
8152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153  (exit $ac_status); } >/dev/null; then
8154  if test -s conftest.err; then
8155    ac_cpp_err=$ac_c_preproc_warn_flag
8156    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8157  else
8158    ac_cpp_err=
8159  fi
8160else
8161  ac_cpp_err=yes
8162fi
8163if test -z "$ac_cpp_err"; then
8164  ac_header_preproc=yes
8165else
8166  echo "$as_me: failed program was:" >&5
8167sed 's/^/| /' conftest.$ac_ext >&5
8168
8169  ac_header_preproc=no
8170fi
8171rm -f conftest.err conftest.$ac_ext
8172echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8173echo "${ECHO_T}$ac_header_preproc" >&6
8174
8175# So?  What about this header?
8176case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8177  yes:no: )
8178    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8179echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8180    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8181echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8182    ac_header_preproc=yes
8183    ;;
8184  no:yes:* )
8185    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8186echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8187    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8188echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8189    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8190echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8191    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8192echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8193    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8194echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8195    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8196echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8197    (
8198      cat <<\_ASBOX
8199## ---------------------------------------------- ##
8200## Report this to orxonox-dev at mail.datacore.ch ##
8201## ---------------------------------------------- ##
8202_ASBOX
8203    ) |
8204      sed "s/^/$as_me: WARNING:     /" >&2
8205    ;;
8206esac
8207echo "$as_me:$LINENO: checking for $ac_header" >&5
8208echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8209if eval "test \"\${$as_ac_Header+set}\" = set"; then
8210  echo $ECHO_N "(cached) $ECHO_C" >&6
8211else
8212  eval "$as_ac_Header=\$ac_header_preproc"
8213fi
8214echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8215echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8216
8217fi
8218if test `eval echo '${'$as_ac_Header'}'` = yes; then
8219  cat >>confdefs.h <<_ACEOF
8220#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8221_ACEOF
8222
8223fi
8224
8225done
8226
8227echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
8228echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
8229if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
8230  echo $ECHO_N "(cached) $ECHO_C" >&6
8231else
8232  if test "$cross_compiling" = yes; then
8233  ac_cv_func_malloc_0_nonnull=no
8234else
8235  cat >conftest.$ac_ext <<_ACEOF
8236/* confdefs.h.  */
8237_ACEOF
8238cat confdefs.h >>conftest.$ac_ext
8239cat >>conftest.$ac_ext <<_ACEOF
8240/* end confdefs.h.  */
8241#if STDC_HEADERS || HAVE_STDLIB_H
8242# include <stdlib.h>
8243#else
8244char *malloc ();
8245#endif
8246
8247int
8248main ()
8249{
8250exit (malloc (0) ? 0 : 1);
8251  ;
8252  return 0;
8253}
8254_ACEOF
8255rm -f conftest$ac_exeext
8256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8257  (eval $ac_link) 2>&5
8258  ac_status=$?
8259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262  (eval $ac_try) 2>&5
8263  ac_status=$?
8264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265  (exit $ac_status); }; }; then
8266  ac_cv_func_malloc_0_nonnull=yes
8267else
8268  echo "$as_me: program exited with status $ac_status" >&5
8269echo "$as_me: failed program was:" >&5
8270sed 's/^/| /' conftest.$ac_ext >&5
8271
8272( exit $ac_status )
8273ac_cv_func_malloc_0_nonnull=no
8274fi
8275rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8276fi
8277fi
8278echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
8279echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
8280if test $ac_cv_func_malloc_0_nonnull = yes; then
8281
8282cat >>confdefs.h <<\_ACEOF
8283#define HAVE_MALLOC 1
8284_ACEOF
8285
8286else
8287  cat >>confdefs.h <<\_ACEOF
8288#define HAVE_MALLOC 0
8289_ACEOF
8290
8291   case $LIBOBJS in
8292    "malloc.$ac_objext"   | \
8293  *" malloc.$ac_objext"   | \
8294    "malloc.$ac_objext "* | \
8295  *" malloc.$ac_objext "* ) ;;
8296  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
8297esac
8298
8299
8300cat >>confdefs.h <<\_ACEOF
8301#define malloc rpl_malloc
8302_ACEOF
8303
8304fi
8305
8306
8307
8308
8309
8310for ac_func in bzero sqrt
8311do
8312as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8313echo "$as_me:$LINENO: checking for $ac_func" >&5
8314echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8315if eval "test \"\${$as_ac_var+set}\" = set"; then
8316  echo $ECHO_N "(cached) $ECHO_C" >&6
8317else
8318  cat >conftest.$ac_ext <<_ACEOF
8319/* confdefs.h.  */
8320_ACEOF
8321cat confdefs.h >>conftest.$ac_ext
8322cat >>conftest.$ac_ext <<_ACEOF
8323/* end confdefs.h.  */
8324/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8325   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8326#define $ac_func innocuous_$ac_func
8327
8328/* System header to define __stub macros and hopefully few prototypes,
8329    which can conflict with char $ac_func (); below.
8330    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8331    <limits.h> exists even on freestanding compilers.  */
8332
8333#ifdef __STDC__
8334# include <limits.h>
8335#else
8336# include <assert.h>
8337#endif
8338
8339#undef $ac_func
8340
8341/* Override any gcc2 internal prototype to avoid an error.  */
8342#ifdef __cplusplus
8343extern "C"
8344{
8345#endif
8346/* We use char because int might match the return type of a gcc2
8347   builtin and then its argument prototype would still apply.  */
8348char $ac_func ();
8349/* The GNU C library defines this for functions which it implements
8350    to always fail with ENOSYS.  Some functions are actually named
8351    something starting with __ and the normal name is an alias.  */
8352#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8353choke me
8354#else
8355char (*f) () = $ac_func;
8356#endif
8357#ifdef __cplusplus
8358}
8359#endif
8360
8361int
8362main ()
8363{
8364return f != $ac_func;
8365  ;
8366  return 0;
8367}
8368_ACEOF
8369rm -f conftest.$ac_objext conftest$ac_exeext
8370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8371  (eval $ac_link) 2>conftest.er1
8372  ac_status=$?
8373  grep -v '^ *+' conftest.er1 >conftest.err
8374  rm -f conftest.er1
8375  cat conftest.err >&5
8376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377  (exit $ac_status); } &&
8378         { ac_try='test -z "$ac_c_werror_flag"
8379                         || test ! -s conftest.err'
8380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8381  (eval $ac_try) 2>&5
8382  ac_status=$?
8383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384  (exit $ac_status); }; } &&
8385         { ac_try='test -s conftest$ac_exeext'
8386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387  (eval $ac_try) 2>&5
8388  ac_status=$?
8389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390  (exit $ac_status); }; }; then
8391  eval "$as_ac_var=yes"
8392else
8393  echo "$as_me: failed program was:" >&5
8394sed 's/^/| /' conftest.$ac_ext >&5
8395
8396eval "$as_ac_var=no"
8397fi
8398rm -f conftest.err conftest.$ac_objext \
8399      conftest$ac_exeext conftest.$ac_ext
8400fi
8401echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8402echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8403if test `eval echo '${'$as_ac_var'}'` = yes; then
8404  cat >>confdefs.h <<_ACEOF
8405#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8406_ACEOF
8407
8408fi
8409done
8410
8411
8412######################
8413## OUTPUT CONFIGURE ##
8414######################
8415                                                                                ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/lib/graphics/Makefile src/lib/graphics/importer/Makefile src/lib/gui/Makefile src/lib/gui/console/Makefile src/lib/gui/gui/Makefile"
8416
8417
8418cat >confcache <<\_ACEOF
8419# This file is a shell script that caches the results of configure
8420# tests run on this system so they can be shared between configure
8421# scripts and configure runs, see configure's option --config-cache.
8422# It is not useful on other systems.  If it contains results you don't
8423# want to keep, you may remove or edit it.
8424#
8425# config.status only pays attention to the cache file if you give it
8426# the --recheck option to rerun configure.
8427#
8428# `ac_cv_env_foo' variables (set or unset) will be overridden when
8429# loading this file, other *unset* `ac_cv_foo' will be assigned the
8430# following values.
8431
8432_ACEOF
8433
8434# The following way of writing the cache mishandles newlines in values,
8435# but we know of no workaround that is simple, portable, and efficient.
8436# So, don't put newlines in cache variables' values.
8437# Ultrix sh set writes to stderr and can't be redirected directly,
8438# and sets the high bit in the cache file unless we assign to the vars.
8439{
8440  (set) 2>&1 |
8441    case `(ac_space=' '; set | grep ac_space) 2>&1` in
8442    *ac_space=\ *)
8443      # `set' does not quote correctly, so add quotes (double-quote
8444      # substitution turns \\\\ into \\, and sed turns \\ into \).
8445      sed -n \
8446        "s/'/'\\\\''/g;
8447          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8448      ;;
8449    *)
8450      # `set' quotes correctly as required by POSIX, so do not add quotes.
8451      sed -n \
8452        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8453      ;;
8454    esac;
8455} |
8456  sed '
8457     t clear
8458     : clear
8459     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8460     t end
8461     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8462     : end' >>confcache
8463if diff $cache_file confcache >/dev/null 2>&1; then :; else
8464  if test -w $cache_file; then
8465    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8466    cat confcache >$cache_file
8467  else
8468    echo "not updating unwritable cache $cache_file"
8469  fi
8470fi
8471rm -f confcache
8472
8473test "x$prefix" = xNONE && prefix=$ac_default_prefix
8474# Let make expand exec_prefix.
8475test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8476
8477# VPATH may cause trouble with some makes, so we remove $(srcdir),
8478# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8479# trailing colons and then remove the whole line if VPATH becomes empty
8480# (actually we leave an empty line to preserve line numbers).
8481if test "x$srcdir" = x.; then
8482  ac_vpsub='/^[  ]*VPATH[        ]*=/{
8483s/:*\$(srcdir):*/:/;
8484s/:*\${srcdir}:*/:/;
8485s/:*@srcdir@:*/:/;
8486s/^\([^=]*=[     ]*\):*/\1/;
8487s/:*$//;
8488s/^[^=]*=[       ]*$//;
8489}'
8490fi
8491
8492DEFS=-DHAVE_CONFIG_H
8493
8494ac_libobjs=
8495ac_ltlibobjs=
8496for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8497  # 1. Remove the extension, and $U if already installed.
8498  ac_i=`echo "$ac_i" |
8499         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8500  # 2. Add them.
8501  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8502  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8503done
8504LIBOBJS=$ac_libobjs
8505
8506LTLIBOBJS=$ac_ltlibobjs
8507
8508
8509if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8510  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8511Usually this means the macro was only invoked conditionally." >&5
8512echo "$as_me: error: conditional \"AMDEP\" was never defined.
8513Usually this means the macro was only invoked conditionally." >&2;}
8514   { (exit 1); exit 1; }; }
8515fi
8516if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
8517  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
8518Usually this means the macro was only invoked conditionally." >&5
8519echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
8520Usually this means the macro was only invoked conditionally." >&2;}
8521   { (exit 1); exit 1; }; }
8522fi
8523if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8524  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8525Usually this means the macro was only invoked conditionally." >&5
8526echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8527Usually this means the macro was only invoked conditionally." >&2;}
8528   { (exit 1); exit 1; }; }
8529fi
8530if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then
8531  { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined.
8532Usually this means the macro was only invoked conditionally." >&5
8533echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined.
8534Usually this means the macro was only invoked conditionally." >&2;}
8535   { (exit 1); exit 1; }; }
8536fi
8537if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
8538  { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined.
8539Usually this means the macro was only invoked conditionally." >&5
8540echo "$as_me: error: conditional \"DOXYGEN\" was never defined.
8541Usually this means the macro was only invoked conditionally." >&2;}
8542   { (exit 1); exit 1; }; }
8543fi
8544if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then
8545  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined.
8546Usually this means the macro was only invoked conditionally." >&5
8547echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined.
8548Usually this means the macro was only invoked conditionally." >&2;}
8549   { (exit 1); exit 1; }; }
8550fi
8551if test -z "${HAVE_GTHREAD_TRUE}" && test -z "${HAVE_GTHREAD_FALSE}"; then
8552  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTHREAD\" was never defined.
8553Usually this means the macro was only invoked conditionally." >&5
8554echo "$as_me: error: conditional \"HAVE_GTHREAD\" was never defined.
8555Usually this means the macro was only invoked conditionally." >&2;}
8556   { (exit 1); exit 1; }; }
8557fi
8558if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then
8559  { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined.
8560Usually this means the macro was only invoked conditionally." >&5
8561echo "$as_me: error: conditional \"HAVE_CURL\" was never defined.
8562Usually this means the macro was only invoked conditionally." >&2;}
8563   { (exit 1); exit 1; }; }
8564fi
8565
8566: ${CONFIG_STATUS=./config.status}
8567ac_clean_files_save=$ac_clean_files
8568ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8569{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8570echo "$as_me: creating $CONFIG_STATUS" >&6;}
8571cat >$CONFIG_STATUS <<_ACEOF
8572#! $SHELL
8573# Generated by $as_me.
8574# Run this file to recreate the current configuration.
8575# Compiler output produced by configure, useful for debugging
8576# configure, is in config.log if it exists.
8577
8578debug=false
8579ac_cs_recheck=false
8580ac_cs_silent=false
8581SHELL=\${CONFIG_SHELL-$SHELL}
8582_ACEOF
8583
8584cat >>$CONFIG_STATUS <<\_ACEOF
8585## --------------------- ##
8586## M4sh Initialization.  ##
8587## --------------------- ##
8588
8589# Be Bourne compatible
8590if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8591  emulate sh
8592  NULLCMD=:
8593  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8594  # is contrary to our usage.  Disable this feature.
8595  alias -g '${1+"$@"}'='"$@"'
8596elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8597  set -o posix
8598fi
8599DUALCASE=1; export DUALCASE # for MKS sh
8600
8601# Support unset when possible.
8602if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8603  as_unset=unset
8604else
8605  as_unset=false
8606fi
8607
8608
8609# Work around bugs in pre-3.0 UWIN ksh.
8610$as_unset ENV MAIL MAILPATH
8611PS1='$ '
8612PS2='> '
8613PS4='+ '
8614
8615# NLS nuisances.
8616for as_var in \
8617  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8618  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8619  LC_TELEPHONE LC_TIME
8620do
8621  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8622    eval $as_var=C; export $as_var
8623  else
8624    $as_unset $as_var
8625  fi
8626done
8627
8628# Required to use basename.
8629if expr a : '\(a\)' >/dev/null 2>&1; then
8630  as_expr=expr
8631else
8632  as_expr=false
8633fi
8634
8635if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8636  as_basename=basename
8637else
8638  as_basename=false
8639fi
8640
8641
8642# Name of the executable.
8643as_me=`$as_basename "$0" ||
8644$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8645         X"$0" : 'X\(//\)$' \| \
8646         X"$0" : 'X\(/\)$' \| \
8647         .     : '\(.\)' 2>/dev/null ||
8648echo X/"$0" |
8649    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8650          /^X\/\(\/\/\)$/{ s//\1/; q; }
8651          /^X\/\(\/\).*/{ s//\1/; q; }
8652          s/.*/./; q'`
8653
8654
8655# PATH needs CR, and LINENO needs CR and PATH.
8656# Avoid depending upon Character Ranges.
8657as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8658as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8659as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8660as_cr_digits='0123456789'
8661as_cr_alnum=$as_cr_Letters$as_cr_digits
8662
8663# The user is always right.
8664if test "${PATH_SEPARATOR+set}" != set; then
8665  echo "#! /bin/sh" >conf$$.sh
8666  echo  "exit 0"   >>conf$$.sh
8667  chmod +x conf$$.sh
8668  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8669    PATH_SEPARATOR=';'
8670  else
8671    PATH_SEPARATOR=:
8672  fi
8673  rm -f conf$$.sh
8674fi
8675
8676
8677  as_lineno_1=$LINENO
8678  as_lineno_2=$LINENO
8679  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8680  test "x$as_lineno_1" != "x$as_lineno_2" &&
8681  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
8682  # Find who we are.  Look in the path if we contain no path at all
8683  # relative or not.
8684  case $0 in
8685    *[\\/]* ) as_myself=$0 ;;
8686    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8687for as_dir in $PATH
8688do
8689  IFS=$as_save_IFS
8690  test -z "$as_dir" && as_dir=.
8691  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8692done
8693
8694       ;;
8695  esac
8696  # We did not find ourselves, most probably we were run as `sh COMMAND'
8697  # in which case we are not to be found in the path.
8698  if test "x$as_myself" = x; then
8699    as_myself=$0
8700  fi
8701  if test ! -f "$as_myself"; then
8702    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8703echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8704   { (exit 1); exit 1; }; }
8705  fi
8706  case $CONFIG_SHELL in
8707  '')
8708    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8709for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8710do
8711  IFS=$as_save_IFS
8712  test -z "$as_dir" && as_dir=.
8713  for as_base in sh bash ksh sh5; do
8714         case $as_dir in
8715         /*)
8716           if ("$as_dir/$as_base" -c '
8717  as_lineno_1=$LINENO
8718  as_lineno_2=$LINENO
8719  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8720  test "x$as_lineno_1" != "x$as_lineno_2" &&
8721  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
8722             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8723             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8724             CONFIG_SHELL=$as_dir/$as_base
8725             export CONFIG_SHELL
8726             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8727           fi;;
8728         esac
8729       done
8730done
8731;;
8732  esac
8733
8734  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8735  # uniformly replaced by the line number.  The first 'sed' inserts a
8736  # line-number line before each line; the second 'sed' does the real
8737  # work.  The second script uses 'N' to pair each line-number line
8738  # with the numbered line, and appends trailing '-' during
8739  # substitution so that $LINENO is not a special case at line end.
8740  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8741  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
8742  sed '=' <$as_myself |
8743    sed '
8744      N
8745      s,$,-,
8746      : loop
8747      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8748      t loop
8749      s,-$,,
8750      s,^['$as_cr_digits']*\n,,
8751    ' >$as_me.lineno &&
8752  chmod +x $as_me.lineno ||
8753    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8754echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8755   { (exit 1); exit 1; }; }
8756
8757  # Don't try to exec as it changes $[0], causing all sort of problems
8758  # (the dirname of $[0] is not the place where we might find the
8759  # original and so on.  Autoconf is especially sensible to this).
8760  . ./$as_me.lineno
8761  # Exit status is that of the last command.
8762  exit
8763}
8764
8765
8766case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8767  *c*,-n*) ECHO_N= ECHO_C='
8768' ECHO_T='      ' ;;
8769  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8770  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
8771esac
8772
8773if expr a : '\(a\)' >/dev/null 2>&1; then
8774  as_expr=expr
8775else
8776  as_expr=false
8777fi
8778
8779rm -f conf$$ conf$$.exe conf$$.file
8780echo >conf$$.file
8781if ln -s conf$$.file conf$$ 2>/dev/null; then
8782  # We could just check for DJGPP; but this test a) works b) is more generic
8783  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8784  if test -f conf$$.exe; then
8785    # Don't use ln at all; we don't have any links
8786    as_ln_s='cp -p'
8787  else
8788    as_ln_s='ln -s'
8789  fi
8790elif ln conf$$.file conf$$ 2>/dev/null; then
8791  as_ln_s=ln
8792else
8793  as_ln_s='cp -p'
8794fi
8795rm -f conf$$ conf$$.exe conf$$.file
8796
8797if mkdir -p . 2>/dev/null; then
8798  as_mkdir_p=:
8799else
8800  test -d ./-p && rmdir ./-p
8801  as_mkdir_p=false
8802fi
8803
8804as_executable_p="test -f"
8805
8806# Sed expression to map a string onto a valid CPP name.
8807as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8808
8809# Sed expression to map a string onto a valid variable name.
8810as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8811
8812
8813# IFS
8814# We need space, tab and new line, in precisely that order.
8815as_nl='
8816'
8817IFS="   $as_nl"
8818
8819# CDPATH.
8820$as_unset CDPATH
8821
8822exec 6>&1
8823
8824# Open the log real soon, to keep \$[0] and so on meaningful, and to
8825# report actual input values of CONFIG_FILES etc. instead of their
8826# values after options handling.  Logging --version etc. is OK.
8827exec 5>>config.log
8828{
8829  echo
8830  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8831## Running $as_me. ##
8832_ASBOX
8833} >&5
8834cat >&5 <<_CSEOF
8835
8836This file was extended by orxonox $as_me 0.2.1-pre-alpha, which was
8837generated by GNU Autoconf 2.59.  Invocation command line was
8838
8839  CONFIG_FILES    = $CONFIG_FILES
8840  CONFIG_HEADERS  = $CONFIG_HEADERS
8841  CONFIG_LINKS    = $CONFIG_LINKS
8842  CONFIG_COMMANDS = $CONFIG_COMMANDS
8843  $ $0 $@
8844
8845_CSEOF
8846echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8847echo >&5
8848_ACEOF
8849
8850# Files that config.status was made for.
8851if test -n "$ac_config_files"; then
8852  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8853fi
8854
8855if test -n "$ac_config_headers"; then
8856  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8857fi
8858
8859if test -n "$ac_config_links"; then
8860  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8861fi
8862
8863if test -n "$ac_config_commands"; then
8864  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8865fi
8866
8867cat >>$CONFIG_STATUS <<\_ACEOF
8868
8869ac_cs_usage="\
8870\`$as_me' instantiates files from templates according to the
8871current configuration.
8872
8873Usage: $0 [OPTIONS] [FILE]...
8874
8875  -h, --help       print this help, then exit
8876  -V, --version    print version number, then exit
8877  -q, --quiet      do not print progress messages
8878  -d, --debug      don't remove temporary files
8879      --recheck    update $as_me by reconfiguring in the same conditions
8880  --file=FILE[:TEMPLATE]
8881                   instantiate the configuration file FILE
8882  --header=FILE[:TEMPLATE]
8883                   instantiate the configuration header FILE
8884
8885Configuration files:
8886$config_files
8887
8888Configuration headers:
8889$config_headers
8890
8891Configuration commands:
8892$config_commands
8893
8894Report bugs to <bug-autoconf@gnu.org>."
8895_ACEOF
8896
8897cat >>$CONFIG_STATUS <<_ACEOF
8898ac_cs_version="\\
8899orxonox config.status 0.2.1-pre-alpha
8900configured by $0, generated by GNU Autoconf 2.59,
8901  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8902
8903Copyright (C) 2003 Free Software Foundation, Inc.
8904This config.status script is free software; the Free Software Foundation
8905gives unlimited permission to copy, distribute and modify it."
8906srcdir=$srcdir
8907INSTALL="$INSTALL"
8908_ACEOF
8909
8910cat >>$CONFIG_STATUS <<\_ACEOF
8911# If no file are specified by the user, then we need to provide default
8912# value.  By we need to know if files were specified by the user.
8913ac_need_defaults=:
8914while test $# != 0
8915do
8916  case $1 in
8917  --*=*)
8918    ac_option=`expr "x$1" : 'x\([^=]*\)='`
8919    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8920    ac_shift=:
8921    ;;
8922  -*)
8923    ac_option=$1
8924    ac_optarg=$2
8925    ac_shift=shift
8926    ;;
8927  *) # This is not an option, so the user has probably given explicit
8928     # arguments.
8929     ac_option=$1
8930     ac_need_defaults=false;;
8931  esac
8932
8933  case $ac_option in
8934  # Handling of the options.
8935_ACEOF
8936cat >>$CONFIG_STATUS <<\_ACEOF
8937  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8938    ac_cs_recheck=: ;;
8939  --version | --vers* | -V )
8940    echo "$ac_cs_version"; exit 0 ;;
8941  --he | --h)
8942    # Conflict between --help and --header
8943    { { echo "$as_me:$LINENO: error: ambiguous option: $1
8944Try \`$0 --help' for more information." >&5
8945echo "$as_me: error: ambiguous option: $1
8946Try \`$0 --help' for more information." >&2;}
8947   { (exit 1); exit 1; }; };;
8948  --help | --hel | -h )
8949    echo "$ac_cs_usage"; exit 0 ;;
8950  --debug | --d* | -d )
8951    debug=: ;;
8952  --file | --fil | --fi | --f )
8953    $ac_shift
8954    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8955    ac_need_defaults=false;;
8956  --header | --heade | --head | --hea )
8957    $ac_shift
8958    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8959    ac_need_defaults=false;;
8960  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8961  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8962    ac_cs_silent=: ;;
8963
8964  # This is an error.
8965  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8966Try \`$0 --help' for more information." >&5
8967echo "$as_me: error: unrecognized option: $1
8968Try \`$0 --help' for more information." >&2;}
8969   { (exit 1); exit 1; }; } ;;
8970
8971  *) ac_config_targets="$ac_config_targets $1" ;;
8972
8973  esac
8974  shift
8975done
8976
8977ac_configure_extra_args=
8978
8979if $ac_cs_silent; then
8980  exec 6>/dev/null
8981  ac_configure_extra_args="$ac_configure_extra_args --silent"
8982fi
8983
8984_ACEOF
8985cat >>$CONFIG_STATUS <<_ACEOF
8986if \$ac_cs_recheck; then
8987  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8988  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8989fi
8990
8991_ACEOF
8992
8993cat >>$CONFIG_STATUS <<_ACEOF
8994#
8995# INIT-COMMANDS section.
8996#
8997
8998AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8999
9000_ACEOF
9001
9002
9003
9004cat >>$CONFIG_STATUS <<\_ACEOF
9005for ac_config_target in $ac_config_targets
9006do
9007  case "$ac_config_target" in
9008  # Handling of arguments.
9009  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9010  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9011  "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
9012  "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;;
9013  "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;;
9014  "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;;
9015  "src/lib/gui/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/console/Makefile" ;;
9016  "src/lib/gui/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/gui/Makefile" ;;
9017  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9018  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9019  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9020echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9021   { (exit 1); exit 1; }; };;
9022  esac
9023done
9024
9025# If the user did not use the arguments to specify the items to instantiate,
9026# then the envvar interface is used.  Set only those that are not.
9027# We use the long form for the default assignment because of an extremely
9028# bizarre bug on SunOS 4.1.3.
9029if $ac_need_defaults; then
9030  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9031  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9032  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9033fi
9034
9035# Have a temporary directory for convenience.  Make it in the build tree
9036# simply because there is no reason to put it here, and in addition,
9037# creating and moving files from /tmp can sometimes cause problems.
9038# Create a temporary directory, and hook for its removal unless debugging.
9039$debug ||
9040{
9041  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9042  trap '{ (exit 1); exit 1; }' 1 2 13 15
9043}
9044
9045# Create a (secure) tmp directory for tmp files.
9046
9047{
9048  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9049  test -n "$tmp" && test -d "$tmp"
9050}  ||
9051{
9052  tmp=./confstat$$-$RANDOM
9053  (umask 077 && mkdir $tmp)
9054} ||
9055{
9056   echo "$me: cannot create a temporary directory in ." >&2
9057   { (exit 1); exit 1; }
9058}
9059
9060_ACEOF
9061
9062cat >>$CONFIG_STATUS <<_ACEOF
9063
9064#
9065# CONFIG_FILES section.
9066#
9067
9068# No need to generate the scripts if there are no CONFIG_FILES.
9069# This happens for instance when ./config.status config.h
9070if test -n "\$CONFIG_FILES"; then
9071  # Protect against being on the right side of a sed subst in config.status.
9072  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9073   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9074s,@SHELL@,$SHELL,;t t
9075s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9076s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9077s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9078s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9079s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9080s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9081s,@exec_prefix@,$exec_prefix,;t t
9082s,@prefix@,$prefix,;t t
9083s,@program_transform_name@,$program_transform_name,;t t
9084s,@bindir@,$bindir,;t t
9085s,@sbindir@,$sbindir,;t t
9086s,@libexecdir@,$libexecdir,;t t
9087s,@datadir@,$datadir,;t t
9088s,@sysconfdir@,$sysconfdir,;t t
9089s,@sharedstatedir@,$sharedstatedir,;t t
9090s,@localstatedir@,$localstatedir,;t t
9091s,@libdir@,$libdir,;t t
9092s,@includedir@,$includedir,;t t
9093s,@oldincludedir@,$oldincludedir,;t t
9094s,@infodir@,$infodir,;t t
9095s,@mandir@,$mandir,;t t
9096s,@build_alias@,$build_alias,;t t
9097s,@host_alias@,$host_alias,;t t
9098s,@target_alias@,$target_alias,;t t
9099s,@DEFS@,$DEFS,;t t
9100s,@ECHO_C@,$ECHO_C,;t t
9101s,@ECHO_N@,$ECHO_N,;t t
9102s,@ECHO_T@,$ECHO_T,;t t
9103s,@LIBS@,$LIBS,;t t
9104s,@build@,$build,;t t
9105s,@build_cpu@,$build_cpu,;t t
9106s,@build_vendor@,$build_vendor,;t t
9107s,@build_os@,$build_os,;t t
9108s,@host@,$host,;t t
9109s,@host_cpu@,$host_cpu,;t t
9110s,@host_vendor@,$host_vendor,;t t
9111s,@host_os@,$host_os,;t t
9112s,@target@,$target,;t t
9113s,@target_cpu@,$target_cpu,;t t
9114s,@target_vendor@,$target_vendor,;t t
9115s,@target_os@,$target_os,;t t
9116s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9117s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9118s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9119s,@CYGPATH_W@,$CYGPATH_W,;t t
9120s,@PACKAGE@,$PACKAGE,;t t
9121s,@VERSION@,$VERSION,;t t
9122s,@ACLOCAL@,$ACLOCAL,;t t
9123s,@AUTOCONF@,$AUTOCONF,;t t
9124s,@AUTOMAKE@,$AUTOMAKE,;t t
9125s,@AUTOHEADER@,$AUTOHEADER,;t t
9126s,@MAKEINFO@,$MAKEINFO,;t t
9127s,@AMTAR@,$AMTAR,;t t
9128s,@install_sh@,$install_sh,;t t
9129s,@STRIP@,$STRIP,;t t
9130s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9131s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9132s,@mkdir_p@,$mkdir_p,;t t
9133s,@AWK@,$AWK,;t t
9134s,@SET_MAKE@,$SET_MAKE,;t t
9135s,@am__leading_dot@,$am__leading_dot,;t t
9136s,@CXX@,$CXX,;t t
9137s,@CXXFLAGS@,$CXXFLAGS,;t t
9138s,@LDFLAGS@,$LDFLAGS,;t t
9139s,@CPPFLAGS@,$CPPFLAGS,;t t
9140s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9141s,@EXEEXT@,$EXEEXT,;t t
9142s,@OBJEXT@,$OBJEXT,;t t
9143s,@DEPDIR@,$DEPDIR,;t t
9144s,@am__include@,$am__include,;t t
9145s,@am__quote@,$am__quote,;t t
9146s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9147s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9148s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9149s,@CXXDEPMODE@,$CXXDEPMODE,;t t
9150s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
9151s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
9152s,@CC@,$CC,;t t
9153s,@CFLAGS@,$CFLAGS,;t t
9154s,@ac_ct_CC@,$ac_ct_CC,;t t
9155s,@CCDEPMODE@,$CCDEPMODE,;t t
9156s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9157s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9158s,@CPP@,$CPP,;t t
9159s,@EGREP@,$EGREP,;t t
9160s,@DEBUG@,$DEBUG,;t t
9161s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t
9162s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t
9163s,@DOXYGEN@,$DOXYGEN,;t t
9164s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t
9165s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t
9166s,@MSBITFIELDS@,$MSBITFIELDS,;t t
9167s,@GTK2_LIBS@,$GTK2_LIBS,;t t
9168s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
9169s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t
9170s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t
9171s,@GTHREAD_LIBS@,$GTHREAD_LIBS,;t t
9172s,@GTHREAD_CFLAGS@,$GTHREAD_CFLAGS,;t t
9173s,@HAVE_GTHREAD_TRUE@,$HAVE_GTHREAD_TRUE,;t t
9174s,@HAVE_GTHREAD_FALSE@,$HAVE_GTHREAD_FALSE,;t t
9175s,@CURL_LIBS@,$CURL_LIBS,;t t
9176s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t
9177s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t
9178s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t
9179s,@LIBOBJS@,$LIBOBJS,;t t
9180s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9181CEOF
9182
9183_ACEOF
9184
9185  cat >>$CONFIG_STATUS <<\_ACEOF
9186  # Split the substitutions into bite-sized pieces for seds with
9187  # small command number limits, like on Digital OSF/1 and HP-UX.
9188  ac_max_sed_lines=48
9189  ac_sed_frag=1 # Number of current file.
9190  ac_beg=1 # First line for current file.
9191  ac_end=$ac_max_sed_lines # Line after last line for current file.
9192  ac_more_lines=:
9193  ac_sed_cmds=
9194  while $ac_more_lines; do
9195    if test $ac_beg -gt 1; then
9196      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9197    else
9198      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9199    fi
9200    if test ! -s $tmp/subs.frag; then
9201      ac_more_lines=false
9202    else
9203      # The purpose of the label and of the branching condition is to
9204      # speed up the sed processing (if there are no `@' at all, there
9205      # is no need to browse any of the substitutions).
9206      # These are the two extra sed commands mentioned above.
9207      (echo ':t
9208  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9209      if test -z "$ac_sed_cmds"; then
9210        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9211      else
9212        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9213      fi
9214      ac_sed_frag=`expr $ac_sed_frag + 1`
9215      ac_beg=$ac_end
9216      ac_end=`expr $ac_end + $ac_max_sed_lines`
9217    fi
9218  done
9219  if test -z "$ac_sed_cmds"; then
9220    ac_sed_cmds=cat
9221  fi
9222fi # test -n "$CONFIG_FILES"
9223
9224_ACEOF
9225cat >>$CONFIG_STATUS <<\_ACEOF
9226for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9227  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9228  case $ac_file in
9229  - | *:- | *:-:* ) # input from stdin
9230        cat >$tmp/stdin
9231        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9232        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9233  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9234        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9235  * )   ac_file_in=$ac_file.in ;;
9236  esac
9237
9238  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9239  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9240$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9241         X"$ac_file" : 'X\(//\)[^/]' \| \
9242         X"$ac_file" : 'X\(//\)$' \| \
9243         X"$ac_file" : 'X\(/\)' \| \
9244         .     : '\(.\)' 2>/dev/null ||
9245echo X"$ac_file" |
9246    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9247          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9248          /^X\(\/\/\)$/{ s//\1/; q; }
9249          /^X\(\/\).*/{ s//\1/; q; }
9250          s/.*/./; q'`
9251  { if $as_mkdir_p; then
9252    mkdir -p "$ac_dir"
9253  else
9254    as_dir="$ac_dir"
9255    as_dirs=
9256    while test ! -d "$as_dir"; do
9257      as_dirs="$as_dir $as_dirs"
9258      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9259$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9260         X"$as_dir" : 'X\(//\)[^/]' \| \
9261         X"$as_dir" : 'X\(//\)$' \| \
9262         X"$as_dir" : 'X\(/\)' \| \
9263         .     : '\(.\)' 2>/dev/null ||
9264echo X"$as_dir" |
9265    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9266          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9267          /^X\(\/\/\)$/{ s//\1/; q; }
9268          /^X\(\/\).*/{ s//\1/; q; }
9269          s/.*/./; q'`
9270    done
9271    test ! -n "$as_dirs" || mkdir $as_dirs
9272  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9273echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9274   { (exit 1); exit 1; }; }; }
9275
9276  ac_builddir=.
9277
9278if test "$ac_dir" != .; then
9279  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9280  # A "../" for each directory in $ac_dir_suffix.
9281  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9282else
9283  ac_dir_suffix= ac_top_builddir=
9284fi
9285
9286case $srcdir in
9287  .)  # No --srcdir option.  We are building in place.
9288    ac_srcdir=.
9289    if test -z "$ac_top_builddir"; then
9290       ac_top_srcdir=.
9291    else
9292       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9293    fi ;;
9294  [\\/]* | ?:[\\/]* )  # Absolute path.
9295    ac_srcdir=$srcdir$ac_dir_suffix;
9296    ac_top_srcdir=$srcdir ;;
9297  *) # Relative path.
9298    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9299    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9300esac
9301
9302# Do not use `cd foo && pwd` to compute absolute paths, because
9303# the directories may not exist.
9304case `pwd` in
9305.) ac_abs_builddir="$ac_dir";;
9306*)
9307  case "$ac_dir" in
9308  .) ac_abs_builddir=`pwd`;;
9309  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9310  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9311  esac;;
9312esac
9313case $ac_abs_builddir in
9314.) ac_abs_top_builddir=${ac_top_builddir}.;;
9315*)
9316  case ${ac_top_builddir}. in
9317  .) ac_abs_top_builddir=$ac_abs_builddir;;
9318  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9319  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9320  esac;;
9321esac
9322case $ac_abs_builddir in
9323.) ac_abs_srcdir=$ac_srcdir;;
9324*)
9325  case $ac_srcdir in
9326  .) ac_abs_srcdir=$ac_abs_builddir;;
9327  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9328  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9329  esac;;
9330esac
9331case $ac_abs_builddir in
9332.) ac_abs_top_srcdir=$ac_top_srcdir;;
9333*)
9334  case $ac_top_srcdir in
9335  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9336  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9337  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9338  esac;;
9339esac
9340
9341
9342  case $INSTALL in
9343  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9344  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9345  esac
9346
9347  if test x"$ac_file" != x-; then
9348    { echo "$as_me:$LINENO: creating $ac_file" >&5
9349echo "$as_me: creating $ac_file" >&6;}
9350    rm -f "$ac_file"
9351  fi
9352  # Let's still pretend it is `configure' which instantiates (i.e., don't
9353  # use $as_me), people would be surprised to read:
9354  #    /* config.h.  Generated by config.status.  */
9355  if test x"$ac_file" = x-; then
9356    configure_input=
9357  else
9358    configure_input="$ac_file.  "
9359  fi
9360  configure_input=$configure_input"Generated from `echo $ac_file_in |
9361                                     sed 's,.*/,,'` by configure."
9362
9363  # First look for the input files in the build tree, otherwise in the
9364  # src tree.
9365  ac_file_inputs=`IFS=:
9366    for f in $ac_file_in; do
9367      case $f in
9368      -) echo $tmp/stdin ;;
9369      [\\/$]*)
9370         # Absolute (can't be DOS-style, as IFS=:)
9371         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9372echo "$as_me: error: cannot find input file: $f" >&2;}
9373   { (exit 1); exit 1; }; }
9374         echo "$f";;
9375      *) # Relative
9376         if test -f "$f"; then
9377           # Build tree
9378           echo "$f"
9379         elif test -f "$srcdir/$f"; then
9380           # Source tree
9381           echo "$srcdir/$f"
9382         else
9383           # /dev/null tree
9384           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9385echo "$as_me: error: cannot find input file: $f" >&2;}
9386   { (exit 1); exit 1; }; }
9387         fi;;
9388      esac
9389    done` || { (exit 1); exit 1; }
9390_ACEOF
9391cat >>$CONFIG_STATUS <<_ACEOF
9392  sed "$ac_vpsub
9393$extrasub
9394_ACEOF
9395cat >>$CONFIG_STATUS <<\_ACEOF
9396:t
9397/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9398s,@configure_input@,$configure_input,;t t
9399s,@srcdir@,$ac_srcdir,;t t
9400s,@abs_srcdir@,$ac_abs_srcdir,;t t
9401s,@top_srcdir@,$ac_top_srcdir,;t t
9402s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9403s,@builddir@,$ac_builddir,;t t
9404s,@abs_builddir@,$ac_abs_builddir,;t t
9405s,@top_builddir@,$ac_top_builddir,;t t
9406s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9407s,@INSTALL@,$ac_INSTALL,;t t
9408" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9409  rm -f $tmp/stdin
9410  if test x"$ac_file" != x-; then
9411    mv $tmp/out $ac_file
9412  else
9413    cat $tmp/out
9414    rm -f $tmp/out
9415  fi
9416
9417done
9418_ACEOF
9419cat >>$CONFIG_STATUS <<\_ACEOF
9420
9421#
9422# CONFIG_HEADER section.
9423#
9424
9425# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9426# NAME is the cpp macro being defined and VALUE is the value it is being given.
9427#
9428# ac_d sets the value in "#define NAME VALUE" lines.
9429ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
9430ac_dB='[         ].*$,\1#\2'
9431ac_dC=' '
9432ac_dD=',;t'
9433# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9434ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9435ac_uB='$,\1#\2define\3'
9436ac_uC=' '
9437ac_uD=',;t'
9438
9439for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9440  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9441  case $ac_file in
9442  - | *:- | *:-:* ) # input from stdin
9443        cat >$tmp/stdin
9444        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9445        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9446  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9447        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9448  * )   ac_file_in=$ac_file.in ;;
9449  esac
9450
9451  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9452echo "$as_me: creating $ac_file" >&6;}
9453
9454  # First look for the input files in the build tree, otherwise in the
9455  # src tree.
9456  ac_file_inputs=`IFS=:
9457    for f in $ac_file_in; do
9458      case $f in
9459      -) echo $tmp/stdin ;;
9460      [\\/$]*)
9461         # Absolute (can't be DOS-style, as IFS=:)
9462         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9463echo "$as_me: error: cannot find input file: $f" >&2;}
9464   { (exit 1); exit 1; }; }
9465         # Do quote $f, to prevent DOS paths from being IFS'd.
9466         echo "$f";;
9467      *) # Relative
9468         if test -f "$f"; then
9469           # Build tree
9470           echo "$f"
9471         elif test -f "$srcdir/$f"; then
9472           # Source tree
9473           echo "$srcdir/$f"
9474         else
9475           # /dev/null tree
9476           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9477echo "$as_me: error: cannot find input file: $f" >&2;}
9478   { (exit 1); exit 1; }; }
9479         fi;;
9480      esac
9481    done` || { (exit 1); exit 1; }
9482  # Remove the trailing spaces.
9483  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
9484
9485_ACEOF
9486
9487# Transform confdefs.h into two sed scripts, `conftest.defines' and
9488# `conftest.undefs', that substitutes the proper values into
9489# config.h.in to produce config.h.  The first handles `#define'
9490# templates, and the second `#undef' templates.
9491# And first: Protect against being on the right side of a sed subst in
9492# config.status.  Protect against being in an unquoted here document
9493# in config.status.
9494rm -f conftest.defines conftest.undefs
9495# Using a here document instead of a string reduces the quoting nightmare.
9496# Putting comments in sed scripts is not portable.
9497#
9498# `end' is used to avoid that the second main sed command (meant for
9499# 0-ary CPP macros) applies to n-ary macro definitions.
9500# See the Autoconf documentation for `clear'.
9501cat >confdef2sed.sed <<\_ACEOF
9502s/[\\&,]/\\&/g
9503s,[\\$`],\\&,g
9504t clear
9505: clear
9506s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9507t end
9508s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9509: end
9510_ACEOF
9511# If some macros were called several times there might be several times
9512# the same #defines, which is useless.  Nevertheless, we may not want to
9513# sort them, since we want the *last* AC-DEFINE to be honored.
9514uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9515sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9516rm -f confdef2sed.sed
9517
9518# This sed command replaces #undef with comments.  This is necessary, for
9519# example, in the case of _POSIX_SOURCE, which is predefined and required
9520# on some systems where configure will not decide to define it.
9521cat >>conftest.undefs <<\_ACEOF
9522s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9523_ACEOF
9524
9525# Break up conftest.defines because some shells have a limit on the size
9526# of here documents, and old seds have small limits too (100 cmds).
9527echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9528echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9529echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9530echo '  :' >>$CONFIG_STATUS
9531rm -f conftest.tail
9532while grep . conftest.defines >/dev/null
9533do
9534  # Write a limited-size here document to $tmp/defines.sed.
9535  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9536  # Speed up: don't consider the non `#define' lines.
9537  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
9538  # Work around the forget-to-reset-the-flag bug.
9539  echo 't clr' >>$CONFIG_STATUS
9540  echo ': clr' >>$CONFIG_STATUS
9541  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9542  echo 'CEOF
9543  sed -f $tmp/defines.sed $tmp/in >$tmp/out
9544  rm -f $tmp/in
9545  mv $tmp/out $tmp/in
9546' >>$CONFIG_STATUS
9547  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9548  rm -f conftest.defines
9549  mv conftest.tail conftest.defines
9550done
9551rm -f conftest.defines
9552echo '  fi # grep' >>$CONFIG_STATUS
9553echo >>$CONFIG_STATUS
9554
9555# Break up conftest.undefs because some shells have a limit on the size
9556# of here documents, and old seds have small limits too (100 cmds).
9557echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
9558rm -f conftest.tail
9559while grep . conftest.undefs >/dev/null
9560do
9561  # Write a limited-size here document to $tmp/undefs.sed.
9562  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9563  # Speed up: don't consider the non `#undef'
9564  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
9565  # Work around the forget-to-reset-the-flag bug.
9566  echo 't clr' >>$CONFIG_STATUS
9567  echo ': clr' >>$CONFIG_STATUS
9568  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9569  echo 'CEOF
9570  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9571  rm -f $tmp/in
9572  mv $tmp/out $tmp/in
9573' >>$CONFIG_STATUS
9574  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9575  rm -f conftest.undefs
9576  mv conftest.tail conftest.undefs
9577done
9578rm -f conftest.undefs
9579
9580cat >>$CONFIG_STATUS <<\_ACEOF
9581  # Let's still pretend it is `configure' which instantiates (i.e., don't
9582  # use $as_me), people would be surprised to read:
9583  #    /* config.h.  Generated by config.status.  */
9584  if test x"$ac_file" = x-; then
9585    echo "/* Generated by configure.  */" >$tmp/config.h
9586  else
9587    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
9588  fi
9589  cat $tmp/in >>$tmp/config.h
9590  rm -f $tmp/in
9591  if test x"$ac_file" != x-; then
9592    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9593      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9594echo "$as_me: $ac_file is unchanged" >&6;}
9595    else
9596      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9597$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9598         X"$ac_file" : 'X\(//\)[^/]' \| \
9599         X"$ac_file" : 'X\(//\)$' \| \
9600         X"$ac_file" : 'X\(/\)' \| \
9601         .     : '\(.\)' 2>/dev/null ||
9602echo X"$ac_file" |
9603    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9604          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9605          /^X\(\/\/\)$/{ s//\1/; q; }
9606          /^X\(\/\).*/{ s//\1/; q; }
9607          s/.*/./; q'`
9608      { if $as_mkdir_p; then
9609    mkdir -p "$ac_dir"
9610  else
9611    as_dir="$ac_dir"
9612    as_dirs=
9613    while test ! -d "$as_dir"; do
9614      as_dirs="$as_dir $as_dirs"
9615      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9616$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9617         X"$as_dir" : 'X\(//\)[^/]' \| \
9618         X"$as_dir" : 'X\(//\)$' \| \
9619         X"$as_dir" : 'X\(/\)' \| \
9620         .     : '\(.\)' 2>/dev/null ||
9621echo X"$as_dir" |
9622    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9623          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9624          /^X\(\/\/\)$/{ s//\1/; q; }
9625          /^X\(\/\).*/{ s//\1/; q; }
9626          s/.*/./; q'`
9627    done
9628    test ! -n "$as_dirs" || mkdir $as_dirs
9629  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9630echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9631   { (exit 1); exit 1; }; }; }
9632
9633      rm -f $ac_file
9634      mv $tmp/config.h $ac_file
9635    fi
9636  else
9637    cat $tmp/config.h
9638    rm -f $tmp/config.h
9639  fi
9640# Compute $ac_file's index in $config_headers.
9641_am_stamp_count=1
9642for _am_header in $config_headers :; do
9643  case $_am_header in
9644    $ac_file | $ac_file:* )
9645      break ;;
9646    * )
9647      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9648  esac
9649done
9650echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
9651$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9652         X$ac_file : 'X\(//\)[^/]' \| \
9653         X$ac_file : 'X\(//\)$' \| \
9654         X$ac_file : 'X\(/\)' \| \
9655         .     : '\(.\)' 2>/dev/null ||
9656echo X$ac_file |
9657    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9658          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9659          /^X\(\/\/\)$/{ s//\1/; q; }
9660          /^X\(\/\).*/{ s//\1/; q; }
9661          s/.*/./; q'`/stamp-h$_am_stamp_count
9662done
9663_ACEOF
9664cat >>$CONFIG_STATUS <<\_ACEOF
9665
9666#
9667# CONFIG_COMMANDS section.
9668#
9669for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9670  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9671  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9672  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9673$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9674         X"$ac_dest" : 'X\(//\)[^/]' \| \
9675         X"$ac_dest" : 'X\(//\)$' \| \
9676         X"$ac_dest" : 'X\(/\)' \| \
9677         .     : '\(.\)' 2>/dev/null ||
9678echo X"$ac_dest" |
9679    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9680          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9681          /^X\(\/\/\)$/{ s//\1/; q; }
9682          /^X\(\/\).*/{ s//\1/; q; }
9683          s/.*/./; q'`
9684  { if $as_mkdir_p; then
9685    mkdir -p "$ac_dir"
9686  else
9687    as_dir="$ac_dir"
9688    as_dirs=
9689    while test ! -d "$as_dir"; do
9690      as_dirs="$as_dir $as_dirs"
9691      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9692$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9693         X"$as_dir" : 'X\(//\)[^/]' \| \
9694         X"$as_dir" : 'X\(//\)$' \| \
9695         X"$as_dir" : 'X\(/\)' \| \
9696         .     : '\(.\)' 2>/dev/null ||
9697echo X"$as_dir" |
9698    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9699          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9700          /^X\(\/\/\)$/{ s//\1/; q; }
9701          /^X\(\/\).*/{ s//\1/; q; }
9702          s/.*/./; q'`
9703    done
9704    test ! -n "$as_dirs" || mkdir $as_dirs
9705  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9706echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9707   { (exit 1); exit 1; }; }; }
9708
9709  ac_builddir=.
9710
9711if test "$ac_dir" != .; then
9712  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9713  # A "../" for each directory in $ac_dir_suffix.
9714  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9715else
9716  ac_dir_suffix= ac_top_builddir=
9717fi
9718
9719case $srcdir in
9720  .)  # No --srcdir option.  We are building in place.
9721    ac_srcdir=.
9722    if test -z "$ac_top_builddir"; then
9723       ac_top_srcdir=.
9724    else
9725       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9726    fi ;;
9727  [\\/]* | ?:[\\/]* )  # Absolute path.
9728    ac_srcdir=$srcdir$ac_dir_suffix;
9729    ac_top_srcdir=$srcdir ;;
9730  *) # Relative path.
9731    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9732    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9733esac
9734
9735# Do not use `cd foo && pwd` to compute absolute paths, because
9736# the directories may not exist.
9737case `pwd` in
9738.) ac_abs_builddir="$ac_dir";;
9739*)
9740  case "$ac_dir" in
9741  .) ac_abs_builddir=`pwd`;;
9742  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9743  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9744  esac;;
9745esac
9746case $ac_abs_builddir in
9747.) ac_abs_top_builddir=${ac_top_builddir}.;;
9748*)
9749  case ${ac_top_builddir}. in
9750  .) ac_abs_top_builddir=$ac_abs_builddir;;
9751  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9752  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9753  esac;;
9754esac
9755case $ac_abs_builddir in
9756.) ac_abs_srcdir=$ac_srcdir;;
9757*)
9758  case $ac_srcdir in
9759  .) ac_abs_srcdir=$ac_abs_builddir;;
9760  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9761  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9762  esac;;
9763esac
9764case $ac_abs_builddir in
9765.) ac_abs_top_srcdir=$ac_top_srcdir;;
9766*)
9767  case $ac_top_srcdir in
9768  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9769  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9770  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9771  esac;;
9772esac
9773
9774
9775  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9776echo "$as_me: executing $ac_dest commands" >&6;}
9777  case $ac_dest in
9778    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9779  # Strip MF so we end up with the name of the file.
9780  mf=`echo "$mf" | sed -e 's/:.*$//'`
9781  # Check whether this is an Automake generated Makefile or not.
9782  # We used to match only the files named `Makefile.in', but
9783  # some people rename them; so instead we look at the file content.
9784  # Grep'ing the first line is not enough: some people post-process
9785  # each Makefile.in and add a new line on top of each file to say so.
9786  # So let's grep whole file.
9787  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9788    dirpart=`(dirname "$mf") 2>/dev/null ||
9789$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9790         X"$mf" : 'X\(//\)[^/]' \| \
9791         X"$mf" : 'X\(//\)$' \| \
9792         X"$mf" : 'X\(/\)' \| \
9793         .     : '\(.\)' 2>/dev/null ||
9794echo X"$mf" |
9795    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9796          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9797          /^X\(\/\/\)$/{ s//\1/; q; }
9798          /^X\(\/\).*/{ s//\1/; q; }
9799          s/.*/./; q'`
9800  else
9801    continue
9802  fi
9803  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
9804  # Extract the definition of DEP_FILES from the Makefile without
9805  # running `make'.
9806  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9807  test -z "$DEPDIR" && continue
9808  # When using ansi2knr, U may be empty or an underscore; expand it
9809  U=`sed -n 's/^U = //p' < "$mf"`
9810  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9811  # We invoke sed twice because it is the simplest approach to
9812  # changing $(DEPDIR) to its actual value in the expansion.
9813  for file in `sed -n '
9814    /^DEP_FILES = .*\\\\$/ {
9815      s/^DEP_FILES = //
9816      :loop
9817        s/\\\\$//
9818        p
9819        n
9820        /\\\\$/ b loop
9821      p
9822    }
9823    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9824       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9825    # Make sure the directory exists.
9826    test -f "$dirpart/$file" && continue
9827    fdir=`(dirname "$file") 2>/dev/null ||
9828$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9829         X"$file" : 'X\(//\)[^/]' \| \
9830         X"$file" : 'X\(//\)$' \| \
9831         X"$file" : 'X\(/\)' \| \
9832         .     : '\(.\)' 2>/dev/null ||
9833echo X"$file" |
9834    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9835          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9836          /^X\(\/\/\)$/{ s//\1/; q; }
9837          /^X\(\/\).*/{ s//\1/; q; }
9838          s/.*/./; q'`
9839    { if $as_mkdir_p; then
9840    mkdir -p $dirpart/$fdir
9841  else
9842    as_dir=$dirpart/$fdir
9843    as_dirs=
9844    while test ! -d "$as_dir"; do
9845      as_dirs="$as_dir $as_dirs"
9846      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9847$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9848         X"$as_dir" : 'X\(//\)[^/]' \| \
9849         X"$as_dir" : 'X\(//\)$' \| \
9850         X"$as_dir" : 'X\(/\)' \| \
9851         .     : '\(.\)' 2>/dev/null ||
9852echo X"$as_dir" |
9853    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9854          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9855          /^X\(\/\/\)$/{ s//\1/; q; }
9856          /^X\(\/\).*/{ s//\1/; q; }
9857          s/.*/./; q'`
9858    done
9859    test ! -n "$as_dirs" || mkdir $as_dirs
9860  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9861echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9862   { (exit 1); exit 1; }; }; }
9863
9864    # echo "creating $dirpart/$file"
9865    echo '# dummy' > "$dirpart/$file"
9866  done
9867done
9868 ;;
9869  esac
9870done
9871_ACEOF
9872
9873cat >>$CONFIG_STATUS <<\_ACEOF
9874
9875{ (exit 0); exit 0; }
9876_ACEOF
9877chmod +x $CONFIG_STATUS
9878ac_clean_files=$ac_clean_files_save
9879
9880
9881# configure is writing to config.log, and then calls config.status.
9882# config.status does its own redirection, appending to config.log.
9883# Unfortunately, on DOS this fails, as config.log is still kept open
9884# by configure, so config.status won't be able to write to it; its
9885# output is simply discarded.  So we exec the FD to /dev/null,
9886# effectively closing config.log, so it can be properly (re)opened and
9887# appended to by config.status.  When coming back to configure, we
9888# need to make the FD available again.
9889if test "$no_create" != yes; then
9890  ac_cs_success=:
9891  ac_config_status_args=
9892  test "$silent" = yes &&
9893    ac_config_status_args="$ac_config_status_args --quiet"
9894  exec 5>/dev/null
9895  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9896  exec 5>>config.log
9897  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9898  # would make configure fail if this is the last instruction.
9899  $ac_cs_success || { (exit 1); exit 1; }
9900fi
9901
Note: See TracBrowser for help on using the repository browser.