Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/configure @ 3457

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

orxonox/trunk: added new File glfont.c that will be modified, so it can display any ttf font

also included libSDL_ttf into configure. this enables the use of any ttf font as mentioned by konfuzzius in orxonox-dev mail 266.

  • Property svn:executable set to *
File size: 295.1 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_Image #
6056#-----------#
6057if test x$def_sdl_image = xyes; then
6058# checking for SDL_image-headers
6059
6060for ac_header in SDL/SDL_image.h
6061do
6062as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6063if eval "test \"\${$as_ac_Header+set}\" = set"; then
6064  echo "$as_me:$LINENO: checking for $ac_header" >&5
6065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6066if eval "test \"\${$as_ac_Header+set}\" = set"; then
6067  echo $ECHO_N "(cached) $ECHO_C" >&6
6068fi
6069echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6070echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6071else
6072  # Is the header compilable?
6073echo "$as_me:$LINENO: checking $ac_header usability" >&5
6074echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6075cat >conftest.$ac_ext <<_ACEOF
6076/* confdefs.h.  */
6077_ACEOF
6078cat confdefs.h >>conftest.$ac_ext
6079cat >>conftest.$ac_ext <<_ACEOF
6080/* end confdefs.h.  */
6081$ac_includes_default
6082#include <$ac_header>
6083_ACEOF
6084rm -f conftest.$ac_objext
6085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6086  (eval $ac_compile) 2>conftest.er1
6087  ac_status=$?
6088  grep -v '^ *+' conftest.er1 >conftest.err
6089  rm -f conftest.er1
6090  cat conftest.err >&5
6091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092  (exit $ac_status); } &&
6093         { ac_try='test -z "$ac_c_werror_flag"
6094                         || test ! -s conftest.err'
6095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096  (eval $ac_try) 2>&5
6097  ac_status=$?
6098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099  (exit $ac_status); }; } &&
6100         { ac_try='test -s conftest.$ac_objext'
6101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6102  (eval $ac_try) 2>&5
6103  ac_status=$?
6104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105  (exit $ac_status); }; }; then
6106  ac_header_compiler=yes
6107else
6108  echo "$as_me: failed program was:" >&5
6109sed 's/^/| /' conftest.$ac_ext >&5
6110
6111ac_header_compiler=no
6112fi
6113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6114echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6115echo "${ECHO_T}$ac_header_compiler" >&6
6116
6117# Is the header present?
6118echo "$as_me:$LINENO: checking $ac_header presence" >&5
6119echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6120cat >conftest.$ac_ext <<_ACEOF
6121/* confdefs.h.  */
6122_ACEOF
6123cat confdefs.h >>conftest.$ac_ext
6124cat >>conftest.$ac_ext <<_ACEOF
6125/* end confdefs.h.  */
6126#include <$ac_header>
6127_ACEOF
6128if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6129  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6130  ac_status=$?
6131  grep -v '^ *+' conftest.er1 >conftest.err
6132  rm -f conftest.er1
6133  cat conftest.err >&5
6134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135  (exit $ac_status); } >/dev/null; then
6136  if test -s conftest.err; then
6137    ac_cpp_err=$ac_c_preproc_warn_flag
6138    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6139  else
6140    ac_cpp_err=
6141  fi
6142else
6143  ac_cpp_err=yes
6144fi
6145if test -z "$ac_cpp_err"; then
6146  ac_header_preproc=yes
6147else
6148  echo "$as_me: failed program was:" >&5
6149sed 's/^/| /' conftest.$ac_ext >&5
6150
6151  ac_header_preproc=no
6152fi
6153rm -f conftest.err conftest.$ac_ext
6154echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6155echo "${ECHO_T}$ac_header_preproc" >&6
6156
6157# So?  What about this header?
6158case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6159  yes:no: )
6160    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6161echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6162    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6163echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6164    ac_header_preproc=yes
6165    ;;
6166  no:yes:* )
6167    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6168echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6169    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6170echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6171    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6172echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6173    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6174echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6175    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6176echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6177    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6178echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6179    (
6180      cat <<\_ASBOX
6181## ---------------------------------------------- ##
6182## Report this to orxonox-dev at mail.datacore.ch ##
6183## ---------------------------------------------- ##
6184_ASBOX
6185    ) |
6186      sed "s/^/$as_me: WARNING:     /" >&2
6187    ;;
6188esac
6189echo "$as_me:$LINENO: checking for $ac_header" >&5
6190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6191if eval "test \"\${$as_ac_Header+set}\" = set"; then
6192  echo $ECHO_N "(cached) $ECHO_C" >&6
6193else
6194  eval "$as_ac_Header=\$ac_header_preproc"
6195fi
6196echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6197echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6198
6199fi
6200if test `eval echo '${'$as_ac_Header'}'` = yes; then
6201  cat >>confdefs.h <<_ACEOF
6202#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6203_ACEOF
6204
6205else
6206  echo "sdl_image not found. falling back to other options"; def_sdl_image=no
6207fi
6208
6209done
6210
6211fi
6212if test x$def_sdl_image = xyes; then
6213# checking for SDL_image-lib
6214  echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5
6215echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6
6216if test "${ac_cv_lib_SDL_image_main+set}" = set; then
6217  echo $ECHO_N "(cached) $ECHO_C" >&6
6218else
6219  ac_check_lib_save_LIBS=$LIBS
6220LIBS="-lSDL_image  $LIBS"
6221cat >conftest.$ac_ext <<_ACEOF
6222/* confdefs.h.  */
6223_ACEOF
6224cat confdefs.h >>conftest.$ac_ext
6225cat >>conftest.$ac_ext <<_ACEOF
6226/* end confdefs.h.  */
6227
6228
6229int
6230main ()
6231{
6232main ();
6233  ;
6234  return 0;
6235}
6236_ACEOF
6237rm -f conftest.$ac_objext conftest$ac_exeext
6238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6239  (eval $ac_link) 2>conftest.er1
6240  ac_status=$?
6241  grep -v '^ *+' conftest.er1 >conftest.err
6242  rm -f conftest.er1
6243  cat conftest.err >&5
6244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245  (exit $ac_status); } &&
6246         { ac_try='test -z "$ac_c_werror_flag"
6247                         || test ! -s conftest.err'
6248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249  (eval $ac_try) 2>&5
6250  ac_status=$?
6251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252  (exit $ac_status); }; } &&
6253         { ac_try='test -s conftest$ac_exeext'
6254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255  (eval $ac_try) 2>&5
6256  ac_status=$?
6257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258  (exit $ac_status); }; }; then
6259  ac_cv_lib_SDL_image_main=yes
6260else
6261  echo "$as_me: failed program was:" >&5
6262sed 's/^/| /' conftest.$ac_ext >&5
6263
6264ac_cv_lib_SDL_image_main=no
6265fi
6266rm -f conftest.err conftest.$ac_objext \
6267      conftest$ac_exeext conftest.$ac_ext
6268LIBS=$ac_check_lib_save_LIBS
6269fi
6270echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5
6271echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6
6272if test $ac_cv_lib_SDL_image_main = yes; then
6273  FOUND_SDL_image=yes
6274fi
6275
6276     if test x$FOUND_SDL_image = xyes ; then
6277       LIBS="$LIBS -lSDL_image"
6278     else
6279        echo "------------------"
6280        echo "SDL_image library not found."
6281        echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/"
6282        echo "------------------"
6283        exit -1
6284     fi
6285fi
6286
6287#---------#
6288# SDL_ttf #
6289#---------#
6290def_sdl_ttf=yes
6291# checking for SDL_ttf-headers
6292
6293for ac_header in SDL/SDL_ttf.h
6294do
6295as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6296if eval "test \"\${$as_ac_Header+set}\" = set"; then
6297  echo "$as_me:$LINENO: checking for $ac_header" >&5
6298echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6299if eval "test \"\${$as_ac_Header+set}\" = set"; then
6300  echo $ECHO_N "(cached) $ECHO_C" >&6
6301fi
6302echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6303echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6304else
6305  # Is the header compilable?
6306echo "$as_me:$LINENO: checking $ac_header usability" >&5
6307echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6308cat >conftest.$ac_ext <<_ACEOF
6309/* confdefs.h.  */
6310_ACEOF
6311cat confdefs.h >>conftest.$ac_ext
6312cat >>conftest.$ac_ext <<_ACEOF
6313/* end confdefs.h.  */
6314$ac_includes_default
6315#include <$ac_header>
6316_ACEOF
6317rm -f conftest.$ac_objext
6318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6319  (eval $ac_compile) 2>conftest.er1
6320  ac_status=$?
6321  grep -v '^ *+' conftest.er1 >conftest.err
6322  rm -f conftest.er1
6323  cat conftest.err >&5
6324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325  (exit $ac_status); } &&
6326         { ac_try='test -z "$ac_c_werror_flag"
6327                         || test ! -s conftest.err'
6328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6329  (eval $ac_try) 2>&5
6330  ac_status=$?
6331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332  (exit $ac_status); }; } &&
6333         { ac_try='test -s conftest.$ac_objext'
6334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335  (eval $ac_try) 2>&5
6336  ac_status=$?
6337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338  (exit $ac_status); }; }; then
6339  ac_header_compiler=yes
6340else
6341  echo "$as_me: failed program was:" >&5
6342sed 's/^/| /' conftest.$ac_ext >&5
6343
6344ac_header_compiler=no
6345fi
6346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6347echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6348echo "${ECHO_T}$ac_header_compiler" >&6
6349
6350# Is the header present?
6351echo "$as_me:$LINENO: checking $ac_header presence" >&5
6352echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6353cat >conftest.$ac_ext <<_ACEOF
6354/* confdefs.h.  */
6355_ACEOF
6356cat confdefs.h >>conftest.$ac_ext
6357cat >>conftest.$ac_ext <<_ACEOF
6358/* end confdefs.h.  */
6359#include <$ac_header>
6360_ACEOF
6361if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6362  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6363  ac_status=$?
6364  grep -v '^ *+' conftest.er1 >conftest.err
6365  rm -f conftest.er1
6366  cat conftest.err >&5
6367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368  (exit $ac_status); } >/dev/null; then
6369  if test -s conftest.err; then
6370    ac_cpp_err=$ac_c_preproc_warn_flag
6371    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6372  else
6373    ac_cpp_err=
6374  fi
6375else
6376  ac_cpp_err=yes
6377fi
6378if test -z "$ac_cpp_err"; then
6379  ac_header_preproc=yes
6380else
6381  echo "$as_me: failed program was:" >&5
6382sed 's/^/| /' conftest.$ac_ext >&5
6383
6384  ac_header_preproc=no
6385fi
6386rm -f conftest.err conftest.$ac_ext
6387echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6388echo "${ECHO_T}$ac_header_preproc" >&6
6389
6390# So?  What about this header?
6391case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6392  yes:no: )
6393    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6394echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6395    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6396echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6397    ac_header_preproc=yes
6398    ;;
6399  no:yes:* )
6400    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6401echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6402    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6403echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6404    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6405echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6406    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6407echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6408    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6409echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6410    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6411echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6412    (
6413      cat <<\_ASBOX
6414## ---------------------------------------------- ##
6415## Report this to orxonox-dev at mail.datacore.ch ##
6416## ---------------------------------------------- ##
6417_ASBOX
6418    ) |
6419      sed "s/^/$as_me: WARNING:     /" >&2
6420    ;;
6421esac
6422echo "$as_me:$LINENO: checking for $ac_header" >&5
6423echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6424if eval "test \"\${$as_ac_Header+set}\" = set"; then
6425  echo $ECHO_N "(cached) $ECHO_C" >&6
6426else
6427  eval "$as_ac_Header=\$ac_header_preproc"
6428fi
6429echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6430echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6431
6432fi
6433if test `eval echo '${'$as_ac_Header'}'` = yes; then
6434  cat >>confdefs.h <<_ACEOF
6435#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6436_ACEOF
6437
6438else
6439  echo "sdl_ttf not found."; def_sdl_ttf=no
6440fi
6441
6442done
6443
6444
6445if test x$def_sdl_ttf = xyes; then
6446# checking for SDL_ttf-lib
6447  echo "$as_me:$LINENO: checking for main in -lSDL_ttf" >&5
6448echo $ECHO_N "checking for main in -lSDL_ttf... $ECHO_C" >&6
6449if test "${ac_cv_lib_SDL_ttf_main+set}" = set; then
6450  echo $ECHO_N "(cached) $ECHO_C" >&6
6451else
6452  ac_check_lib_save_LIBS=$LIBS
6453LIBS="-lSDL_ttf  $LIBS"
6454cat >conftest.$ac_ext <<_ACEOF
6455/* confdefs.h.  */
6456_ACEOF
6457cat confdefs.h >>conftest.$ac_ext
6458cat >>conftest.$ac_ext <<_ACEOF
6459/* end confdefs.h.  */
6460
6461
6462int
6463main ()
6464{
6465main ();
6466  ;
6467  return 0;
6468}
6469_ACEOF
6470rm -f conftest.$ac_objext conftest$ac_exeext
6471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6472  (eval $ac_link) 2>conftest.er1
6473  ac_status=$?
6474  grep -v '^ *+' conftest.er1 >conftest.err
6475  rm -f conftest.er1
6476  cat conftest.err >&5
6477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478  (exit $ac_status); } &&
6479         { ac_try='test -z "$ac_c_werror_flag"
6480                         || test ! -s conftest.err'
6481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482  (eval $ac_try) 2>&5
6483  ac_status=$?
6484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485  (exit $ac_status); }; } &&
6486         { ac_try='test -s conftest$ac_exeext'
6487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488  (eval $ac_try) 2>&5
6489  ac_status=$?
6490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491  (exit $ac_status); }; }; then
6492  ac_cv_lib_SDL_ttf_main=yes
6493else
6494  echo "$as_me: failed program was:" >&5
6495sed 's/^/| /' conftest.$ac_ext >&5
6496
6497ac_cv_lib_SDL_ttf_main=no
6498fi
6499rm -f conftest.err conftest.$ac_objext \
6500      conftest$ac_exeext conftest.$ac_ext
6501LIBS=$ac_check_lib_save_LIBS
6502fi
6503echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_main" >&5
6504echo "${ECHO_T}$ac_cv_lib_SDL_ttf_main" >&6
6505if test $ac_cv_lib_SDL_ttf_main = yes; then
6506  FOUND_SDL_ttf=yes
6507fi
6508
6509     if test x$FOUND_SDL_ttf = xyes ; then
6510       LIBS="$LIBS -lSDL_ttf"
6511     else
6512        echo "------------------"
6513        echo "SDL_ttf library not found."
6514        echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/"
6515        echo "------------------"
6516        exit -1
6517     fi
6518fi
6519
6520## case no SDL-image:
6521if test x$def_sdl_image = xno; then
6522#---------#
6523# libjpeg #
6524#---------#
6525
6526for ac_header in jpeglib.h
6527do
6528as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6529if eval "test \"\${$as_ac_Header+set}\" = set"; then
6530  echo "$as_me:$LINENO: checking for $ac_header" >&5
6531echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6532if eval "test \"\${$as_ac_Header+set}\" = set"; then
6533  echo $ECHO_N "(cached) $ECHO_C" >&6
6534fi
6535echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6536echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6537else
6538  # Is the header compilable?
6539echo "$as_me:$LINENO: checking $ac_header usability" >&5
6540echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6541cat >conftest.$ac_ext <<_ACEOF
6542/* confdefs.h.  */
6543_ACEOF
6544cat confdefs.h >>conftest.$ac_ext
6545cat >>conftest.$ac_ext <<_ACEOF
6546/* end confdefs.h.  */
6547$ac_includes_default
6548#include <$ac_header>
6549_ACEOF
6550rm -f conftest.$ac_objext
6551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6552  (eval $ac_compile) 2>conftest.er1
6553  ac_status=$?
6554  grep -v '^ *+' conftest.er1 >conftest.err
6555  rm -f conftest.er1
6556  cat conftest.err >&5
6557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558  (exit $ac_status); } &&
6559         { ac_try='test -z "$ac_c_werror_flag"
6560                         || test ! -s conftest.err'
6561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562  (eval $ac_try) 2>&5
6563  ac_status=$?
6564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565  (exit $ac_status); }; } &&
6566         { ac_try='test -s conftest.$ac_objext'
6567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568  (eval $ac_try) 2>&5
6569  ac_status=$?
6570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571  (exit $ac_status); }; }; then
6572  ac_header_compiler=yes
6573else
6574  echo "$as_me: failed program was:" >&5
6575sed 's/^/| /' conftest.$ac_ext >&5
6576
6577ac_header_compiler=no
6578fi
6579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6580echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6581echo "${ECHO_T}$ac_header_compiler" >&6
6582
6583# Is the header present?
6584echo "$as_me:$LINENO: checking $ac_header presence" >&5
6585echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6586cat >conftest.$ac_ext <<_ACEOF
6587/* confdefs.h.  */
6588_ACEOF
6589cat confdefs.h >>conftest.$ac_ext
6590cat >>conftest.$ac_ext <<_ACEOF
6591/* end confdefs.h.  */
6592#include <$ac_header>
6593_ACEOF
6594if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6595  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6596  ac_status=$?
6597  grep -v '^ *+' conftest.er1 >conftest.err
6598  rm -f conftest.er1
6599  cat conftest.err >&5
6600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601  (exit $ac_status); } >/dev/null; then
6602  if test -s conftest.err; then
6603    ac_cpp_err=$ac_c_preproc_warn_flag
6604    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6605  else
6606    ac_cpp_err=
6607  fi
6608else
6609  ac_cpp_err=yes
6610fi
6611if test -z "$ac_cpp_err"; then
6612  ac_header_preproc=yes
6613else
6614  echo "$as_me: failed program was:" >&5
6615sed 's/^/| /' conftest.$ac_ext >&5
6616
6617  ac_header_preproc=no
6618fi
6619rm -f conftest.err conftest.$ac_ext
6620echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6621echo "${ECHO_T}$ac_header_preproc" >&6
6622
6623# So?  What about this header?
6624case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6625  yes:no: )
6626    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6627echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6628    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6629echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6630    ac_header_preproc=yes
6631    ;;
6632  no:yes:* )
6633    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6634echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6635    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6636echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6637    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6638echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6639    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6640echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6641    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6642echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6643    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6644echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6645    (
6646      cat <<\_ASBOX
6647## ---------------------------------------------- ##
6648## Report this to orxonox-dev at mail.datacore.ch ##
6649## ---------------------------------------------- ##
6650_ASBOX
6651    ) |
6652      sed "s/^/$as_me: WARNING:     /" >&2
6653    ;;
6654esac
6655echo "$as_me:$LINENO: checking for $ac_header" >&5
6656echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6657if eval "test \"\${$as_ac_Header+set}\" = set"; then
6658  echo $ECHO_N "(cached) $ECHO_C" >&6
6659else
6660  eval "$as_ac_Header=\$ac_header_preproc"
6661fi
6662echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6663echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6664
6665fi
6666if test `eval echo '${'$as_ac_Header'}'` = yes; then
6667  cat >>confdefs.h <<_ACEOF
6668#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6669_ACEOF
6670 jpegHeader="yes"
6671else
6672  jpegHeader="no"
6673fi
6674
6675done
6676
6677 if test x$jpegHeader = xno; then
6678        echo " not including jpeg."
6679 else
6680  echo "$as_me:$LINENO: checking for main in -ljpeg" >&5
6681echo $ECHO_N "checking for main in -ljpeg... $ECHO_C" >&6
6682if test "${ac_cv_lib_jpeg_main+set}" = set; then
6683  echo $ECHO_N "(cached) $ECHO_C" >&6
6684else
6685  ac_check_lib_save_LIBS=$LIBS
6686LIBS="-ljpeg  $LIBS"
6687cat >conftest.$ac_ext <<_ACEOF
6688/* confdefs.h.  */
6689_ACEOF
6690cat confdefs.h >>conftest.$ac_ext
6691cat >>conftest.$ac_ext <<_ACEOF
6692/* end confdefs.h.  */
6693
6694
6695int
6696main ()
6697{
6698main ();
6699  ;
6700  return 0;
6701}
6702_ACEOF
6703rm -f conftest.$ac_objext conftest$ac_exeext
6704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6705  (eval $ac_link) 2>conftest.er1
6706  ac_status=$?
6707  grep -v '^ *+' conftest.er1 >conftest.err
6708  rm -f conftest.er1
6709  cat conftest.err >&5
6710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711  (exit $ac_status); } &&
6712         { ac_try='test -z "$ac_c_werror_flag"
6713                         || test ! -s conftest.err'
6714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715  (eval $ac_try) 2>&5
6716  ac_status=$?
6717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718  (exit $ac_status); }; } &&
6719         { ac_try='test -s conftest$ac_exeext'
6720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6721  (eval $ac_try) 2>&5
6722  ac_status=$?
6723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724  (exit $ac_status); }; }; then
6725  ac_cv_lib_jpeg_main=yes
6726else
6727  echo "$as_me: failed program was:" >&5
6728sed 's/^/| /' conftest.$ac_ext >&5
6729
6730ac_cv_lib_jpeg_main=no
6731fi
6732rm -f conftest.err conftest.$ac_objext \
6733      conftest$ac_exeext conftest.$ac_ext
6734LIBS=$ac_check_lib_save_LIBS
6735fi
6736echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_main" >&5
6737echo "${ECHO_T}$ac_cv_lib_jpeg_main" >&6
6738if test $ac_cv_lib_jpeg_main = yes; then
6739  FOUND_jpeg=yes
6740fi
6741
6742    if test x$FOUND_jpeg = xyes ; then
6743      LIBS="$LIBS -ljpeg"
6744    else
6745         echo "------------------"
6746         echo "jpeg library not found."
6747         echo "please install the jpeg library from the Independent JPEG Group, which can be found at http://www.ijg.org"
6748         echo "------------------"
6749         exit -1
6750    fi
6751 fi
6752
6753#--------#
6754# libpng #
6755#--------#
6756
6757for ac_header in png.h
6758do
6759as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6760if eval "test \"\${$as_ac_Header+set}\" = set"; then
6761  echo "$as_me:$LINENO: checking for $ac_header" >&5
6762echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6763if eval "test \"\${$as_ac_Header+set}\" = set"; then
6764  echo $ECHO_N "(cached) $ECHO_C" >&6
6765fi
6766echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6767echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6768else
6769  # Is the header compilable?
6770echo "$as_me:$LINENO: checking $ac_header usability" >&5
6771echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6772cat >conftest.$ac_ext <<_ACEOF
6773/* confdefs.h.  */
6774_ACEOF
6775cat confdefs.h >>conftest.$ac_ext
6776cat >>conftest.$ac_ext <<_ACEOF
6777/* end confdefs.h.  */
6778$ac_includes_default
6779#include <$ac_header>
6780_ACEOF
6781rm -f conftest.$ac_objext
6782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6783  (eval $ac_compile) 2>conftest.er1
6784  ac_status=$?
6785  grep -v '^ *+' conftest.er1 >conftest.err
6786  rm -f conftest.er1
6787  cat conftest.err >&5
6788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789  (exit $ac_status); } &&
6790         { ac_try='test -z "$ac_c_werror_flag"
6791                         || test ! -s conftest.err'
6792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6793  (eval $ac_try) 2>&5
6794  ac_status=$?
6795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796  (exit $ac_status); }; } &&
6797         { ac_try='test -s conftest.$ac_objext'
6798  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6799  (eval $ac_try) 2>&5
6800  ac_status=$?
6801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802  (exit $ac_status); }; }; then
6803  ac_header_compiler=yes
6804else
6805  echo "$as_me: failed program was:" >&5
6806sed 's/^/| /' conftest.$ac_ext >&5
6807
6808ac_header_compiler=no
6809fi
6810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6811echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6812echo "${ECHO_T}$ac_header_compiler" >&6
6813
6814# Is the header present?
6815echo "$as_me:$LINENO: checking $ac_header presence" >&5
6816echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6817cat >conftest.$ac_ext <<_ACEOF
6818/* confdefs.h.  */
6819_ACEOF
6820cat confdefs.h >>conftest.$ac_ext
6821cat >>conftest.$ac_ext <<_ACEOF
6822/* end confdefs.h.  */
6823#include <$ac_header>
6824_ACEOF
6825if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6826  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6827  ac_status=$?
6828  grep -v '^ *+' conftest.er1 >conftest.err
6829  rm -f conftest.er1
6830  cat conftest.err >&5
6831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832  (exit $ac_status); } >/dev/null; then
6833  if test -s conftest.err; then
6834    ac_cpp_err=$ac_c_preproc_warn_flag
6835    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6836  else
6837    ac_cpp_err=
6838  fi
6839else
6840  ac_cpp_err=yes
6841fi
6842if test -z "$ac_cpp_err"; then
6843  ac_header_preproc=yes
6844else
6845  echo "$as_me: failed program was:" >&5
6846sed 's/^/| /' conftest.$ac_ext >&5
6847
6848  ac_header_preproc=no
6849fi
6850rm -f conftest.err conftest.$ac_ext
6851echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6852echo "${ECHO_T}$ac_header_preproc" >&6
6853
6854# So?  What about this header?
6855case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6856  yes:no: )
6857    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6858echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6859    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6860echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6861    ac_header_preproc=yes
6862    ;;
6863  no:yes:* )
6864    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6865echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6866    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6867echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6868    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6869echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6870    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6871echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6872    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6873echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6874    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6875echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6876    (
6877      cat <<\_ASBOX
6878## ---------------------------------------------- ##
6879## Report this to orxonox-dev at mail.datacore.ch ##
6880## ---------------------------------------------- ##
6881_ASBOX
6882    ) |
6883      sed "s/^/$as_me: WARNING:     /" >&2
6884    ;;
6885esac
6886echo "$as_me:$LINENO: checking for $ac_header" >&5
6887echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6888if eval "test \"\${$as_ac_Header+set}\" = set"; then
6889  echo $ECHO_N "(cached) $ECHO_C" >&6
6890else
6891  eval "$as_ac_Header=\$ac_header_preproc"
6892fi
6893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6894echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6895
6896fi
6897if test `eval echo '${'$as_ac_Header'}'` = yes; then
6898  cat >>confdefs.h <<_ACEOF
6899#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6900_ACEOF
6901 pngHeader="yes"
6902else
6903  pngHeader="no"
6904fi
6905
6906done
6907
6908 if test x$pngHeader = xno; then
6909        echo " not including png."
6910 else
6911  echo "$as_me:$LINENO: checking for main in -lpng" >&5
6912echo $ECHO_N "checking for main in -lpng... $ECHO_C" >&6
6913if test "${ac_cv_lib_png_main+set}" = set; then
6914  echo $ECHO_N "(cached) $ECHO_C" >&6
6915else
6916  ac_check_lib_save_LIBS=$LIBS
6917LIBS="-lpng  $LIBS"
6918cat >conftest.$ac_ext <<_ACEOF
6919/* confdefs.h.  */
6920_ACEOF
6921cat confdefs.h >>conftest.$ac_ext
6922cat >>conftest.$ac_ext <<_ACEOF
6923/* end confdefs.h.  */
6924
6925
6926int
6927main ()
6928{
6929main ();
6930  ;
6931  return 0;
6932}
6933_ACEOF
6934rm -f conftest.$ac_objext conftest$ac_exeext
6935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6936  (eval $ac_link) 2>conftest.er1
6937  ac_status=$?
6938  grep -v '^ *+' conftest.er1 >conftest.err
6939  rm -f conftest.er1
6940  cat conftest.err >&5
6941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942  (exit $ac_status); } &&
6943         { ac_try='test -z "$ac_c_werror_flag"
6944                         || test ! -s conftest.err'
6945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6946  (eval $ac_try) 2>&5
6947  ac_status=$?
6948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949  (exit $ac_status); }; } &&
6950         { ac_try='test -s conftest$ac_exeext'
6951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952  (eval $ac_try) 2>&5
6953  ac_status=$?
6954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955  (exit $ac_status); }; }; then
6956  ac_cv_lib_png_main=yes
6957else
6958  echo "$as_me: failed program was:" >&5
6959sed 's/^/| /' conftest.$ac_ext >&5
6960
6961ac_cv_lib_png_main=no
6962fi
6963rm -f conftest.err conftest.$ac_objext \
6964      conftest$ac_exeext conftest.$ac_ext
6965LIBS=$ac_check_lib_save_LIBS
6966fi
6967echo "$as_me:$LINENO: result: $ac_cv_lib_png_main" >&5
6968echo "${ECHO_T}$ac_cv_lib_png_main" >&6
6969if test $ac_cv_lib_png_main = yes; then
6970  FOUND_png=yes
6971fi
6972
6973    if test x$FOUND_png = xyes ; then
6974      LIBS="$LIBS -lpng"
6975    else
6976         echo "------------------"
6977         echo "png library not found."
6978         echo "please install the png library, which can be found at http://libpng.org/pub/png/libpng.html"
6979         echo "------------------"
6980         exit -1
6981    fi
6982 fi
6983fi
6984
6985#-----#
6986# GTK #
6987#-----#
6988if test x$def_gtk = xyes; then
6989
6990        #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
6991        echo "$as_me:$LINENO: checking for gtk2.0" >&5
6992echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6
6993        if `pkg-config --exists gtk+-2.0`; then
6994                echo "yes"
6995                have_gtk2=yes
6996                GTK2_LIBS=`pkg-config --libs gtk+-2.0`
6997                GTK2_CFLAGS=`pkg-config --cflags gtk+-2.0`
6998
6999cat >>confdefs.h <<_ACEOF
7000#define HAVE_GTK2 1
7001_ACEOF
7002
7003        else
7004                echo "no"
7005        fi
7006
7007fi
7008
7009
7010
7011
7012if test x$have_gtk2 = xyes; then
7013  HAVE_GTK2_TRUE=
7014  HAVE_GTK2_FALSE='#'
7015else
7016  HAVE_GTK2_TRUE='#'
7017  HAVE_GTK2_FALSE=
7018fi
7019
7020
7021#---------#
7022# gThread #
7023#---------#
7024if test x$def_gthread = xyes; then
7025
7026        echo "$as_me:$LINENO: checking for gthread" >&5
7027echo $ECHO_N "checking for gthread... $ECHO_C" >&6
7028        if `pkg-config --exists gthread-2.0`; then
7029                echo "yes"
7030                have_gthread=yes
7031                GTHREAD_LIBS=`pkg-config --libs gthread-2.0`
7032                GTHREAD_CFLAGS=`pkg-config --cflags gthread-2.0`
7033
7034cat >>confdefs.h <<_ACEOF
7035#define HAVE_GTHREAD 1
7036_ACEOF
7037
7038        else
7039                echo "no"
7040        fi
7041
7042fi
7043
7044
7045
7046
7047if test x$have_gthread = xyes; then
7048  HAVE_GTHREAD_TRUE=
7049  HAVE_GTHREAD_FALSE='#'
7050else
7051  HAVE_GTHREAD_TRUE='#'
7052  HAVE_GTHREAD_FALSE=
7053fi
7054
7055
7056#---------#
7057# libcURL #
7058#---------#
7059if test x$def_curl = xyes; then
7060
7061
7062for ac_header in curl/curl.h
7063do
7064as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7065if eval "test \"\${$as_ac_Header+set}\" = set"; then
7066  echo "$as_me:$LINENO: checking for $ac_header" >&5
7067echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7068if eval "test \"\${$as_ac_Header+set}\" = set"; then
7069  echo $ECHO_N "(cached) $ECHO_C" >&6
7070fi
7071echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7072echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7073else
7074  # Is the header compilable?
7075echo "$as_me:$LINENO: checking $ac_header usability" >&5
7076echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7077cat >conftest.$ac_ext <<_ACEOF
7078/* confdefs.h.  */
7079_ACEOF
7080cat confdefs.h >>conftest.$ac_ext
7081cat >>conftest.$ac_ext <<_ACEOF
7082/* end confdefs.h.  */
7083$ac_includes_default
7084#include <$ac_header>
7085_ACEOF
7086rm -f conftest.$ac_objext
7087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7088  (eval $ac_compile) 2>conftest.er1
7089  ac_status=$?
7090  grep -v '^ *+' conftest.er1 >conftest.err
7091  rm -f conftest.er1
7092  cat conftest.err >&5
7093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094  (exit $ac_status); } &&
7095         { ac_try='test -z "$ac_c_werror_flag"
7096                         || test ! -s conftest.err'
7097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7098  (eval $ac_try) 2>&5
7099  ac_status=$?
7100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101  (exit $ac_status); }; } &&
7102         { ac_try='test -s conftest.$ac_objext'
7103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7104  (eval $ac_try) 2>&5
7105  ac_status=$?
7106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107  (exit $ac_status); }; }; then
7108  ac_header_compiler=yes
7109else
7110  echo "$as_me: failed program was:" >&5
7111sed 's/^/| /' conftest.$ac_ext >&5
7112
7113ac_header_compiler=no
7114fi
7115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7116echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7117echo "${ECHO_T}$ac_header_compiler" >&6
7118
7119# Is the header present?
7120echo "$as_me:$LINENO: checking $ac_header presence" >&5
7121echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7122cat >conftest.$ac_ext <<_ACEOF
7123/* confdefs.h.  */
7124_ACEOF
7125cat confdefs.h >>conftest.$ac_ext
7126cat >>conftest.$ac_ext <<_ACEOF
7127/* end confdefs.h.  */
7128#include <$ac_header>
7129_ACEOF
7130if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7131  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7132  ac_status=$?
7133  grep -v '^ *+' conftest.er1 >conftest.err
7134  rm -f conftest.er1
7135  cat conftest.err >&5
7136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137  (exit $ac_status); } >/dev/null; then
7138  if test -s conftest.err; then
7139    ac_cpp_err=$ac_c_preproc_warn_flag
7140    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7141  else
7142    ac_cpp_err=
7143  fi
7144else
7145  ac_cpp_err=yes
7146fi
7147if test -z "$ac_cpp_err"; then
7148  ac_header_preproc=yes
7149else
7150  echo "$as_me: failed program was:" >&5
7151sed 's/^/| /' conftest.$ac_ext >&5
7152
7153  ac_header_preproc=no
7154fi
7155rm -f conftest.err conftest.$ac_ext
7156echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7157echo "${ECHO_T}$ac_header_preproc" >&6
7158
7159# So?  What about this header?
7160case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7161  yes:no: )
7162    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7163echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7164    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7165echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7166    ac_header_preproc=yes
7167    ;;
7168  no:yes:* )
7169    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7170echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7171    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7172echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7173    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7174echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7175    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7176echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7177    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7178echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7179    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7180echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7181    (
7182      cat <<\_ASBOX
7183## ---------------------------------------------- ##
7184## Report this to orxonox-dev at mail.datacore.ch ##
7185## ---------------------------------------------- ##
7186_ASBOX
7187    ) |
7188      sed "s/^/$as_me: WARNING:     /" >&2
7189    ;;
7190esac
7191echo "$as_me:$LINENO: checking for $ac_header" >&5
7192echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7193if eval "test \"\${$as_ac_Header+set}\" = set"; then
7194  echo $ECHO_N "(cached) $ECHO_C" >&6
7195else
7196  eval "$as_ac_Header=\$ac_header_preproc"
7197fi
7198echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7199echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7200
7201fi
7202if test `eval echo '${'$as_ac_Header'}'` = yes; then
7203  cat >>confdefs.h <<_ACEOF
7204#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7205_ACEOF
7206 curlHeader="yes"
7207else
7208  curlHeader="no"
7209fi
7210
7211done
7212
7213 echo "$as_me:$LINENO: checking for main in -lcurl" >&5
7214echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6
7215if test "${ac_cv_lib_curl_main+set}" = set; then
7216  echo $ECHO_N "(cached) $ECHO_C" >&6
7217else
7218  ac_check_lib_save_LIBS=$LIBS
7219LIBS="-lcurl  $LIBS"
7220cat >conftest.$ac_ext <<_ACEOF
7221/* confdefs.h.  */
7222_ACEOF
7223cat confdefs.h >>conftest.$ac_ext
7224cat >>conftest.$ac_ext <<_ACEOF
7225/* end confdefs.h.  */
7226
7227
7228int
7229main ()
7230{
7231main ();
7232  ;
7233  return 0;
7234}
7235_ACEOF
7236rm -f conftest.$ac_objext conftest$ac_exeext
7237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7238  (eval $ac_link) 2>conftest.er1
7239  ac_status=$?
7240  grep -v '^ *+' conftest.er1 >conftest.err
7241  rm -f conftest.er1
7242  cat conftest.err >&5
7243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244  (exit $ac_status); } &&
7245         { ac_try='test -z "$ac_c_werror_flag"
7246                         || test ! -s conftest.err'
7247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248  (eval $ac_try) 2>&5
7249  ac_status=$?
7250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251  (exit $ac_status); }; } &&
7252         { ac_try='test -s conftest$ac_exeext'
7253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254  (eval $ac_try) 2>&5
7255  ac_status=$?
7256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257  (exit $ac_status); }; }; then
7258  ac_cv_lib_curl_main=yes
7259else
7260  echo "$as_me: failed program was:" >&5
7261sed 's/^/| /' conftest.$ac_ext >&5
7262
7263ac_cv_lib_curl_main=no
7264fi
7265rm -f conftest.err conftest.$ac_objext \
7266      conftest$ac_exeext conftest.$ac_ext
7267LIBS=$ac_check_lib_save_LIBS
7268fi
7269echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5
7270echo "${ECHO_T}$ac_cv_lib_curl_main" >&6
7271if test $ac_cv_lib_curl_main = yes; then
7272  FOUND_curl=yes
7273fi
7274
7275 if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then
7276  have_curl=yes
7277  CURL_LIBS=`curl-config --libs`
7278  CURLCFLAGS=`curl-config --cflags`
7279
7280cat >>confdefs.h <<_ACEOF
7281#define HAVE_CURL 1
7282_ACEOF
7283
7284 else
7285  have_curl=no
7286 fi
7287
7288fi
7289
7290
7291
7292
7293if test x$have_curl = xyes; then
7294  HAVE_CURL_TRUE=
7295  HAVE_CURL_FALSE='#'
7296else
7297  HAVE_CURL_TRUE='#'
7298  HAVE_CURL_FALSE=
7299fi
7300
7301
7302#---------#
7303# pthread #
7304#---------#
7305if test x$def_pthread = xyes ; then
7306 if test x$have_gthread = xyes ; then
7307
7308for ac_header in pthread.h
7309do
7310as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7311if eval "test \"\${$as_ac_Header+set}\" = set"; then
7312  echo "$as_me:$LINENO: checking for $ac_header" >&5
7313echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7314if eval "test \"\${$as_ac_Header+set}\" = set"; then
7315  echo $ECHO_N "(cached) $ECHO_C" >&6
7316fi
7317echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7318echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7319else
7320  # Is the header compilable?
7321echo "$as_me:$LINENO: checking $ac_header usability" >&5
7322echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7323cat >conftest.$ac_ext <<_ACEOF
7324/* confdefs.h.  */
7325_ACEOF
7326cat confdefs.h >>conftest.$ac_ext
7327cat >>conftest.$ac_ext <<_ACEOF
7328/* end confdefs.h.  */
7329$ac_includes_default
7330#include <$ac_header>
7331_ACEOF
7332rm -f conftest.$ac_objext
7333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7334  (eval $ac_compile) 2>conftest.er1
7335  ac_status=$?
7336  grep -v '^ *+' conftest.er1 >conftest.err
7337  rm -f conftest.er1
7338  cat conftest.err >&5
7339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340  (exit $ac_status); } &&
7341         { ac_try='test -z "$ac_c_werror_flag"
7342                         || test ! -s conftest.err'
7343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7344  (eval $ac_try) 2>&5
7345  ac_status=$?
7346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347  (exit $ac_status); }; } &&
7348         { ac_try='test -s conftest.$ac_objext'
7349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350  (eval $ac_try) 2>&5
7351  ac_status=$?
7352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353  (exit $ac_status); }; }; then
7354  ac_header_compiler=yes
7355else
7356  echo "$as_me: failed program was:" >&5
7357sed 's/^/| /' conftest.$ac_ext >&5
7358
7359ac_header_compiler=no
7360fi
7361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7362echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7363echo "${ECHO_T}$ac_header_compiler" >&6
7364
7365# Is the header present?
7366echo "$as_me:$LINENO: checking $ac_header presence" >&5
7367echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7368cat >conftest.$ac_ext <<_ACEOF
7369/* confdefs.h.  */
7370_ACEOF
7371cat confdefs.h >>conftest.$ac_ext
7372cat >>conftest.$ac_ext <<_ACEOF
7373/* end confdefs.h.  */
7374#include <$ac_header>
7375_ACEOF
7376if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7377  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7378  ac_status=$?
7379  grep -v '^ *+' conftest.er1 >conftest.err
7380  rm -f conftest.er1
7381  cat conftest.err >&5
7382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383  (exit $ac_status); } >/dev/null; then
7384  if test -s conftest.err; then
7385    ac_cpp_err=$ac_c_preproc_warn_flag
7386    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7387  else
7388    ac_cpp_err=
7389  fi
7390else
7391  ac_cpp_err=yes
7392fi
7393if test -z "$ac_cpp_err"; then
7394  ac_header_preproc=yes
7395else
7396  echo "$as_me: failed program was:" >&5
7397sed 's/^/| /' conftest.$ac_ext >&5
7398
7399  ac_header_preproc=no
7400fi
7401rm -f conftest.err conftest.$ac_ext
7402echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7403echo "${ECHO_T}$ac_header_preproc" >&6
7404
7405# So?  What about this header?
7406case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7407  yes:no: )
7408    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7409echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7410    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7411echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7412    ac_header_preproc=yes
7413    ;;
7414  no:yes:* )
7415    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7416echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7417    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7418echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7419    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7420echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7421    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7422echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7423    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7424echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7425    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7426echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7427    (
7428      cat <<\_ASBOX
7429## ---------------------------------------------- ##
7430## Report this to orxonox-dev at mail.datacore.ch ##
7431## ---------------------------------------------- ##
7432_ASBOX
7433    ) |
7434      sed "s/^/$as_me: WARNING:     /" >&2
7435    ;;
7436esac
7437echo "$as_me:$LINENO: checking for $ac_header" >&5
7438echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7439if eval "test \"\${$as_ac_Header+set}\" = set"; then
7440  echo $ECHO_N "(cached) $ECHO_C" >&6
7441else
7442  eval "$as_ac_Header=\$ac_header_preproc"
7443fi
7444echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7445echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7446
7447fi
7448if test `eval echo '${'$as_ac_Header'}'` = yes; then
7449  cat >>confdefs.h <<_ACEOF
7450#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7451_ACEOF
7452 pthreadHeader="yes"
7453else
7454  pthreadHeader="no"
7455fi
7456
7457done
7458
7459  echo "$as_me:$LINENO: checking for main in -lpthread" >&5
7460echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
7461if test "${ac_cv_lib_pthread_main+set}" = set; then
7462  echo $ECHO_N "(cached) $ECHO_C" >&6
7463else
7464  ac_check_lib_save_LIBS=$LIBS
7465LIBS="-lpthread  $LIBS"
7466cat >conftest.$ac_ext <<_ACEOF
7467/* confdefs.h.  */
7468_ACEOF
7469cat confdefs.h >>conftest.$ac_ext
7470cat >>conftest.$ac_ext <<_ACEOF
7471/* end confdefs.h.  */
7472
7473
7474int
7475main ()
7476{
7477main ();
7478  ;
7479  return 0;
7480}
7481_ACEOF
7482rm -f conftest.$ac_objext conftest$ac_exeext
7483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7484  (eval $ac_link) 2>conftest.er1
7485  ac_status=$?
7486  grep -v '^ *+' conftest.er1 >conftest.err
7487  rm -f conftest.er1
7488  cat conftest.err >&5
7489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490  (exit $ac_status); } &&
7491         { ac_try='test -z "$ac_c_werror_flag"
7492                         || test ! -s conftest.err'
7493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7494  (eval $ac_try) 2>&5
7495  ac_status=$?
7496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497  (exit $ac_status); }; } &&
7498         { ac_try='test -s conftest$ac_exeext'
7499  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7500  (eval $ac_try) 2>&5
7501  ac_status=$?
7502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503  (exit $ac_status); }; }; then
7504  ac_cv_lib_pthread_main=yes
7505else
7506  echo "$as_me: failed program was:" >&5
7507sed 's/^/| /' conftest.$ac_ext >&5
7508
7509ac_cv_lib_pthread_main=no
7510fi
7511rm -f conftest.err conftest.$ac_objext \
7512      conftest$ac_exeext conftest.$ac_ext
7513LIBS=$ac_check_lib_save_LIBS
7514fi
7515echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
7516echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
7517if test $ac_cv_lib_pthread_main = yes; then
7518  FOUND_pthread=yes
7519fi
7520
7521   if test x$FOUND_pthread = xyes ; then
7522      LIBS="$LIBS -lpthread"
7523   fi
7524 fi
7525fi
7526
7527
7528# FIXME: Replace `main' with a function in `-lm':
7529
7530echo "$as_me:$LINENO: checking for main in -lm" >&5
7531echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7532if test "${ac_cv_lib_m_main+set}" = set; then
7533  echo $ECHO_N "(cached) $ECHO_C" >&6
7534else
7535  ac_check_lib_save_LIBS=$LIBS
7536LIBS="-lm  $LIBS"
7537cat >conftest.$ac_ext <<_ACEOF
7538/* confdefs.h.  */
7539_ACEOF
7540cat confdefs.h >>conftest.$ac_ext
7541cat >>conftest.$ac_ext <<_ACEOF
7542/* end confdefs.h.  */
7543
7544
7545int
7546main ()
7547{
7548main ();
7549  ;
7550  return 0;
7551}
7552_ACEOF
7553rm -f conftest.$ac_objext conftest$ac_exeext
7554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7555  (eval $ac_link) 2>conftest.er1
7556  ac_status=$?
7557  grep -v '^ *+' conftest.er1 >conftest.err
7558  rm -f conftest.er1
7559  cat conftest.err >&5
7560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561  (exit $ac_status); } &&
7562         { ac_try='test -z "$ac_c_werror_flag"
7563                         || test ! -s conftest.err'
7564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7565  (eval $ac_try) 2>&5
7566  ac_status=$?
7567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568  (exit $ac_status); }; } &&
7569         { ac_try='test -s conftest$ac_exeext'
7570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7571  (eval $ac_try) 2>&5
7572  ac_status=$?
7573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574  (exit $ac_status); }; }; then
7575  ac_cv_lib_m_main=yes
7576else
7577  echo "$as_me: failed program was:" >&5
7578sed 's/^/| /' conftest.$ac_ext >&5
7579
7580ac_cv_lib_m_main=no
7581fi
7582rm -f conftest.err conftest.$ac_objext \
7583      conftest$ac_exeext conftest.$ac_ext
7584LIBS=$ac_check_lib_save_LIBS
7585fi
7586echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7587echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7588if test $ac_cv_lib_m_main = yes; then
7589  cat >>confdefs.h <<_ACEOF
7590#define HAVE_LIBM 1
7591_ACEOF
7592
7593  LIBS="-lm $LIBS"
7594
7595fi
7596
7597
7598
7599# Checks for header files.
7600echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7601echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7602if test "${ac_cv_header_stdc+set}" = set; then
7603  echo $ECHO_N "(cached) $ECHO_C" >&6
7604else
7605  cat >conftest.$ac_ext <<_ACEOF
7606/* confdefs.h.  */
7607_ACEOF
7608cat confdefs.h >>conftest.$ac_ext
7609cat >>conftest.$ac_ext <<_ACEOF
7610/* end confdefs.h.  */
7611#include <stdlib.h>
7612#include <stdarg.h>
7613#include <string.h>
7614#include <float.h>
7615
7616int
7617main ()
7618{
7619
7620  ;
7621  return 0;
7622}
7623_ACEOF
7624rm -f conftest.$ac_objext
7625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7626  (eval $ac_compile) 2>conftest.er1
7627  ac_status=$?
7628  grep -v '^ *+' conftest.er1 >conftest.err
7629  rm -f conftest.er1
7630  cat conftest.err >&5
7631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632  (exit $ac_status); } &&
7633         { ac_try='test -z "$ac_c_werror_flag"
7634                         || test ! -s conftest.err'
7635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636  (eval $ac_try) 2>&5
7637  ac_status=$?
7638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639  (exit $ac_status); }; } &&
7640         { ac_try='test -s conftest.$ac_objext'
7641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7642  (eval $ac_try) 2>&5
7643  ac_status=$?
7644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645  (exit $ac_status); }; }; then
7646  ac_cv_header_stdc=yes
7647else
7648  echo "$as_me: failed program was:" >&5
7649sed 's/^/| /' conftest.$ac_ext >&5
7650
7651ac_cv_header_stdc=no
7652fi
7653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7654
7655if test $ac_cv_header_stdc = yes; then
7656  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7657  cat >conftest.$ac_ext <<_ACEOF
7658/* confdefs.h.  */
7659_ACEOF
7660cat confdefs.h >>conftest.$ac_ext
7661cat >>conftest.$ac_ext <<_ACEOF
7662/* end confdefs.h.  */
7663#include <string.h>
7664
7665_ACEOF
7666if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7667  $EGREP "memchr" >/dev/null 2>&1; then
7668  :
7669else
7670  ac_cv_header_stdc=no
7671fi
7672rm -f conftest*
7673
7674fi
7675
7676if test $ac_cv_header_stdc = yes; then
7677  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7678  cat >conftest.$ac_ext <<_ACEOF
7679/* confdefs.h.  */
7680_ACEOF
7681cat confdefs.h >>conftest.$ac_ext
7682cat >>conftest.$ac_ext <<_ACEOF
7683/* end confdefs.h.  */
7684#include <stdlib.h>
7685
7686_ACEOF
7687if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7688  $EGREP "free" >/dev/null 2>&1; then
7689  :
7690else
7691  ac_cv_header_stdc=no
7692fi
7693rm -f conftest*
7694
7695fi
7696
7697if test $ac_cv_header_stdc = yes; then
7698  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7699  if test "$cross_compiling" = yes; then
7700  :
7701else
7702  cat >conftest.$ac_ext <<_ACEOF
7703/* confdefs.h.  */
7704_ACEOF
7705cat confdefs.h >>conftest.$ac_ext
7706cat >>conftest.$ac_ext <<_ACEOF
7707/* end confdefs.h.  */
7708#include <ctype.h>
7709#if ((' ' & 0x0FF) == 0x020)
7710# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7711# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7712#else
7713# define ISLOWER(c) \
7714                   (('a' <= (c) && (c) <= 'i') \
7715                     || ('j' <= (c) && (c) <= 'r') \
7716                     || ('s' <= (c) && (c) <= 'z'))
7717# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7718#endif
7719
7720#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7721int
7722main ()
7723{
7724  int i;
7725  for (i = 0; i < 256; i++)
7726    if (XOR (islower (i), ISLOWER (i))
7727        || toupper (i) != TOUPPER (i))
7728      exit(2);
7729  exit (0);
7730}
7731_ACEOF
7732rm -f conftest$ac_exeext
7733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7734  (eval $ac_link) 2>&5
7735  ac_status=$?
7736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7739  (eval $ac_try) 2>&5
7740  ac_status=$?
7741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742  (exit $ac_status); }; }; then
7743  :
7744else
7745  echo "$as_me: program exited with status $ac_status" >&5
7746echo "$as_me: failed program was:" >&5
7747sed 's/^/| /' conftest.$ac_ext >&5
7748
7749( exit $ac_status )
7750ac_cv_header_stdc=no
7751fi
7752rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7753fi
7754fi
7755fi
7756echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7757echo "${ECHO_T}$ac_cv_header_stdc" >&6
7758if test $ac_cv_header_stdc = yes; then
7759
7760cat >>confdefs.h <<\_ACEOF
7761#define STDC_HEADERS 1
7762_ACEOF
7763
7764fi
7765
7766
7767
7768for ac_header in stdlib.h string.h
7769do
7770as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7771if eval "test \"\${$as_ac_Header+set}\" = set"; then
7772  echo "$as_me:$LINENO: checking for $ac_header" >&5
7773echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7774if eval "test \"\${$as_ac_Header+set}\" = set"; then
7775  echo $ECHO_N "(cached) $ECHO_C" >&6
7776fi
7777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7778echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7779else
7780  # Is the header compilable?
7781echo "$as_me:$LINENO: checking $ac_header usability" >&5
7782echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7783cat >conftest.$ac_ext <<_ACEOF
7784/* confdefs.h.  */
7785_ACEOF
7786cat confdefs.h >>conftest.$ac_ext
7787cat >>conftest.$ac_ext <<_ACEOF
7788/* end confdefs.h.  */
7789$ac_includes_default
7790#include <$ac_header>
7791_ACEOF
7792rm -f conftest.$ac_objext
7793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7794  (eval $ac_compile) 2>conftest.er1
7795  ac_status=$?
7796  grep -v '^ *+' conftest.er1 >conftest.err
7797  rm -f conftest.er1
7798  cat conftest.err >&5
7799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800  (exit $ac_status); } &&
7801         { ac_try='test -z "$ac_c_werror_flag"
7802                         || test ! -s conftest.err'
7803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7804  (eval $ac_try) 2>&5
7805  ac_status=$?
7806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807  (exit $ac_status); }; } &&
7808         { ac_try='test -s conftest.$ac_objext'
7809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7810  (eval $ac_try) 2>&5
7811  ac_status=$?
7812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813  (exit $ac_status); }; }; then
7814  ac_header_compiler=yes
7815else
7816  echo "$as_me: failed program was:" >&5
7817sed 's/^/| /' conftest.$ac_ext >&5
7818
7819ac_header_compiler=no
7820fi
7821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7822echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7823echo "${ECHO_T}$ac_header_compiler" >&6
7824
7825# Is the header present?
7826echo "$as_me:$LINENO: checking $ac_header presence" >&5
7827echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7828cat >conftest.$ac_ext <<_ACEOF
7829/* confdefs.h.  */
7830_ACEOF
7831cat confdefs.h >>conftest.$ac_ext
7832cat >>conftest.$ac_ext <<_ACEOF
7833/* end confdefs.h.  */
7834#include <$ac_header>
7835_ACEOF
7836if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7837  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7838  ac_status=$?
7839  grep -v '^ *+' conftest.er1 >conftest.err
7840  rm -f conftest.er1
7841  cat conftest.err >&5
7842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843  (exit $ac_status); } >/dev/null; then
7844  if test -s conftest.err; then
7845    ac_cpp_err=$ac_c_preproc_warn_flag
7846    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7847  else
7848    ac_cpp_err=
7849  fi
7850else
7851  ac_cpp_err=yes
7852fi
7853if test -z "$ac_cpp_err"; then
7854  ac_header_preproc=yes
7855else
7856  echo "$as_me: failed program was:" >&5
7857sed 's/^/| /' conftest.$ac_ext >&5
7858
7859  ac_header_preproc=no
7860fi
7861rm -f conftest.err conftest.$ac_ext
7862echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7863echo "${ECHO_T}$ac_header_preproc" >&6
7864
7865# So?  What about this header?
7866case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7867  yes:no: )
7868    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7869echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7870    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7871echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7872    ac_header_preproc=yes
7873    ;;
7874  no:yes:* )
7875    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7876echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7877    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7878echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7879    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7880echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7881    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7882echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7883    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7884echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7885    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7886echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7887    (
7888      cat <<\_ASBOX
7889## ---------------------------------------------- ##
7890## Report this to orxonox-dev at mail.datacore.ch ##
7891## ---------------------------------------------- ##
7892_ASBOX
7893    ) |
7894      sed "s/^/$as_me: WARNING:     /" >&2
7895    ;;
7896esac
7897echo "$as_me:$LINENO: checking for $ac_header" >&5
7898echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7899if eval "test \"\${$as_ac_Header+set}\" = set"; then
7900  echo $ECHO_N "(cached) $ECHO_C" >&6
7901else
7902  eval "$as_ac_Header=\$ac_header_preproc"
7903fi
7904echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7905echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7906
7907fi
7908if test `eval echo '${'$as_ac_Header'}'` = yes; then
7909  cat >>confdefs.h <<_ACEOF
7910#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7911_ACEOF
7912
7913fi
7914
7915done
7916
7917
7918# Checks for typedefs, structures, and compiler characteristics.
7919echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7920echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
7921if test "${ac_cv_header_stdbool_h+set}" = set; then
7922  echo $ECHO_N "(cached) $ECHO_C" >&6
7923else
7924  cat >conftest.$ac_ext <<_ACEOF
7925/* confdefs.h.  */
7926_ACEOF
7927cat confdefs.h >>conftest.$ac_ext
7928cat >>conftest.$ac_ext <<_ACEOF
7929/* end confdefs.h.  */
7930
7931#include <stdbool.h>
7932#ifndef bool
7933# error bool is not defined
7934#endif
7935#ifndef false
7936# error false is not defined
7937#endif
7938#if false
7939# error false is not 0
7940#endif
7941#ifndef true
7942# error true is not defined
7943#endif
7944#if true != 1
7945# error true is not 1
7946#endif
7947#ifndef __bool_true_false_are_defined
7948# error __bool_true_false_are_defined is not defined
7949#endif
7950
7951        struct s { _Bool s: 1; _Bool t; } s;
7952
7953        char a[true == 1 ? 1 : -1];
7954        char b[false == 0 ? 1 : -1];
7955        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7956        char d[(bool) -0.5 == true ? 1 : -1];
7957        bool e = &s;
7958        char f[(_Bool) -0.0 == false ? 1 : -1];
7959        char g[true];
7960        char h[sizeof (_Bool)];
7961        char i[sizeof s.t];
7962
7963int
7964main ()
7965{
7966 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
7967  ;
7968  return 0;
7969}
7970_ACEOF
7971rm -f conftest.$ac_objext
7972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7973  (eval $ac_compile) 2>conftest.er1
7974  ac_status=$?
7975  grep -v '^ *+' conftest.er1 >conftest.err
7976  rm -f conftest.er1
7977  cat conftest.err >&5
7978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979  (exit $ac_status); } &&
7980         { ac_try='test -z "$ac_c_werror_flag"
7981                         || test ! -s conftest.err'
7982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983  (eval $ac_try) 2>&5
7984  ac_status=$?
7985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986  (exit $ac_status); }; } &&
7987         { ac_try='test -s conftest.$ac_objext'
7988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989  (eval $ac_try) 2>&5
7990  ac_status=$?
7991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992  (exit $ac_status); }; }; then
7993  ac_cv_header_stdbool_h=yes
7994else
7995  echo "$as_me: failed program was:" >&5
7996sed 's/^/| /' conftest.$ac_ext >&5
7997
7998ac_cv_header_stdbool_h=no
7999fi
8000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8001fi
8002echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
8003echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
8004echo "$as_me:$LINENO: checking for _Bool" >&5
8005echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
8006if test "${ac_cv_type__Bool+set}" = set; then
8007  echo $ECHO_N "(cached) $ECHO_C" >&6
8008else
8009  cat >conftest.$ac_ext <<_ACEOF
8010/* confdefs.h.  */
8011_ACEOF
8012cat confdefs.h >>conftest.$ac_ext
8013cat >>conftest.$ac_ext <<_ACEOF
8014/* end confdefs.h.  */
8015$ac_includes_default
8016int
8017main ()
8018{
8019if ((_Bool *) 0)
8020  return 0;
8021if (sizeof (_Bool))
8022  return 0;
8023  ;
8024  return 0;
8025}
8026_ACEOF
8027rm -f conftest.$ac_objext
8028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8029  (eval $ac_compile) 2>conftest.er1
8030  ac_status=$?
8031  grep -v '^ *+' conftest.er1 >conftest.err
8032  rm -f conftest.er1
8033  cat conftest.err >&5
8034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035  (exit $ac_status); } &&
8036         { ac_try='test -z "$ac_c_werror_flag"
8037                         || test ! -s conftest.err'
8038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8039  (eval $ac_try) 2>&5
8040  ac_status=$?
8041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042  (exit $ac_status); }; } &&
8043         { ac_try='test -s conftest.$ac_objext'
8044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8045  (eval $ac_try) 2>&5
8046  ac_status=$?
8047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048  (exit $ac_status); }; }; then
8049  ac_cv_type__Bool=yes
8050else
8051  echo "$as_me: failed program was:" >&5
8052sed 's/^/| /' conftest.$ac_ext >&5
8053
8054ac_cv_type__Bool=no
8055fi
8056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8057fi
8058echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
8059echo "${ECHO_T}$ac_cv_type__Bool" >&6
8060if test $ac_cv_type__Bool = yes; then
8061
8062cat >>confdefs.h <<_ACEOF
8063#define HAVE__BOOL 1
8064_ACEOF
8065
8066
8067fi
8068
8069if test $ac_cv_header_stdbool_h = yes; then
8070
8071cat >>confdefs.h <<\_ACEOF
8072#define HAVE_STDBOOL_H 1
8073_ACEOF
8074
8075fi
8076
8077
8078# Checks for library functions.
8079
8080for ac_header in stdlib.h
8081do
8082as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8083if eval "test \"\${$as_ac_Header+set}\" = set"; then
8084  echo "$as_me:$LINENO: checking for $ac_header" >&5
8085echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8086if eval "test \"\${$as_ac_Header+set}\" = set"; then
8087  echo $ECHO_N "(cached) $ECHO_C" >&6
8088fi
8089echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8090echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8091else
8092  # Is the header compilable?
8093echo "$as_me:$LINENO: checking $ac_header usability" >&5
8094echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8095cat >conftest.$ac_ext <<_ACEOF
8096/* confdefs.h.  */
8097_ACEOF
8098cat confdefs.h >>conftest.$ac_ext
8099cat >>conftest.$ac_ext <<_ACEOF
8100/* end confdefs.h.  */
8101$ac_includes_default
8102#include <$ac_header>
8103_ACEOF
8104rm -f conftest.$ac_objext
8105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8106  (eval $ac_compile) 2>conftest.er1
8107  ac_status=$?
8108  grep -v '^ *+' conftest.er1 >conftest.err
8109  rm -f conftest.er1
8110  cat conftest.err >&5
8111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112  (exit $ac_status); } &&
8113         { ac_try='test -z "$ac_c_werror_flag"
8114                         || test ! -s conftest.err'
8115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116  (eval $ac_try) 2>&5
8117  ac_status=$?
8118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119  (exit $ac_status); }; } &&
8120         { ac_try='test -s conftest.$ac_objext'
8121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8122  (eval $ac_try) 2>&5
8123  ac_status=$?
8124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125  (exit $ac_status); }; }; then
8126  ac_header_compiler=yes
8127else
8128  echo "$as_me: failed program was:" >&5
8129sed 's/^/| /' conftest.$ac_ext >&5
8130
8131ac_header_compiler=no
8132fi
8133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8134echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8135echo "${ECHO_T}$ac_header_compiler" >&6
8136
8137# Is the header present?
8138echo "$as_me:$LINENO: checking $ac_header presence" >&5
8139echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8140cat >conftest.$ac_ext <<_ACEOF
8141/* confdefs.h.  */
8142_ACEOF
8143cat confdefs.h >>conftest.$ac_ext
8144cat >>conftest.$ac_ext <<_ACEOF
8145/* end confdefs.h.  */
8146#include <$ac_header>
8147_ACEOF
8148if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8149  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8150  ac_status=$?
8151  grep -v '^ *+' conftest.er1 >conftest.err
8152  rm -f conftest.er1
8153  cat conftest.err >&5
8154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155  (exit $ac_status); } >/dev/null; then
8156  if test -s conftest.err; then
8157    ac_cpp_err=$ac_c_preproc_warn_flag
8158    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8159  else
8160    ac_cpp_err=
8161  fi
8162else
8163  ac_cpp_err=yes
8164fi
8165if test -z "$ac_cpp_err"; then
8166  ac_header_preproc=yes
8167else
8168  echo "$as_me: failed program was:" >&5
8169sed 's/^/| /' conftest.$ac_ext >&5
8170
8171  ac_header_preproc=no
8172fi
8173rm -f conftest.err conftest.$ac_ext
8174echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8175echo "${ECHO_T}$ac_header_preproc" >&6
8176
8177# So?  What about this header?
8178case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8179  yes:no: )
8180    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8181echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8182    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8183echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8184    ac_header_preproc=yes
8185    ;;
8186  no:yes:* )
8187    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8188echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8189    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8190echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8191    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8192echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8193    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8194echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8195    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8196echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8197    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8198echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8199    (
8200      cat <<\_ASBOX
8201## ---------------------------------------------- ##
8202## Report this to orxonox-dev at mail.datacore.ch ##
8203## ---------------------------------------------- ##
8204_ASBOX
8205    ) |
8206      sed "s/^/$as_me: WARNING:     /" >&2
8207    ;;
8208esac
8209echo "$as_me:$LINENO: checking for $ac_header" >&5
8210echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8211if eval "test \"\${$as_ac_Header+set}\" = set"; then
8212  echo $ECHO_N "(cached) $ECHO_C" >&6
8213else
8214  eval "$as_ac_Header=\$ac_header_preproc"
8215fi
8216echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8217echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8218
8219fi
8220if test `eval echo '${'$as_ac_Header'}'` = yes; then
8221  cat >>confdefs.h <<_ACEOF
8222#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8223_ACEOF
8224
8225fi
8226
8227done
8228
8229echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
8230echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
8231if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
8232  echo $ECHO_N "(cached) $ECHO_C" >&6
8233else
8234  if test "$cross_compiling" = yes; then
8235  ac_cv_func_malloc_0_nonnull=no
8236else
8237  cat >conftest.$ac_ext <<_ACEOF
8238/* confdefs.h.  */
8239_ACEOF
8240cat confdefs.h >>conftest.$ac_ext
8241cat >>conftest.$ac_ext <<_ACEOF
8242/* end confdefs.h.  */
8243#if STDC_HEADERS || HAVE_STDLIB_H
8244# include <stdlib.h>
8245#else
8246char *malloc ();
8247#endif
8248
8249int
8250main ()
8251{
8252exit (malloc (0) ? 0 : 1);
8253  ;
8254  return 0;
8255}
8256_ACEOF
8257rm -f conftest$ac_exeext
8258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8259  (eval $ac_link) 2>&5
8260  ac_status=$?
8261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8263  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8264  (eval $ac_try) 2>&5
8265  ac_status=$?
8266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267  (exit $ac_status); }; }; then
8268  ac_cv_func_malloc_0_nonnull=yes
8269else
8270  echo "$as_me: program exited with status $ac_status" >&5
8271echo "$as_me: failed program was:" >&5
8272sed 's/^/| /' conftest.$ac_ext >&5
8273
8274( exit $ac_status )
8275ac_cv_func_malloc_0_nonnull=no
8276fi
8277rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8278fi
8279fi
8280echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
8281echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
8282if test $ac_cv_func_malloc_0_nonnull = yes; then
8283
8284cat >>confdefs.h <<\_ACEOF
8285#define HAVE_MALLOC 1
8286_ACEOF
8287
8288else
8289  cat >>confdefs.h <<\_ACEOF
8290#define HAVE_MALLOC 0
8291_ACEOF
8292
8293   case $LIBOBJS in
8294    "malloc.$ac_objext"   | \
8295  *" malloc.$ac_objext"   | \
8296    "malloc.$ac_objext "* | \
8297  *" malloc.$ac_objext "* ) ;;
8298  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
8299esac
8300
8301
8302cat >>confdefs.h <<\_ACEOF
8303#define malloc rpl_malloc
8304_ACEOF
8305
8306fi
8307
8308
8309
8310
8311
8312for ac_func in bzero sqrt
8313do
8314as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8315echo "$as_me:$LINENO: checking for $ac_func" >&5
8316echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8317if eval "test \"\${$as_ac_var+set}\" = set"; then
8318  echo $ECHO_N "(cached) $ECHO_C" >&6
8319else
8320  cat >conftest.$ac_ext <<_ACEOF
8321/* confdefs.h.  */
8322_ACEOF
8323cat confdefs.h >>conftest.$ac_ext
8324cat >>conftest.$ac_ext <<_ACEOF
8325/* end confdefs.h.  */
8326/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8327   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8328#define $ac_func innocuous_$ac_func
8329
8330/* System header to define __stub macros and hopefully few prototypes,
8331    which can conflict with char $ac_func (); below.
8332    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8333    <limits.h> exists even on freestanding compilers.  */
8334
8335#ifdef __STDC__
8336# include <limits.h>
8337#else
8338# include <assert.h>
8339#endif
8340
8341#undef $ac_func
8342
8343/* Override any gcc2 internal prototype to avoid an error.  */
8344#ifdef __cplusplus
8345extern "C"
8346{
8347#endif
8348/* We use char because int might match the return type of a gcc2
8349   builtin and then its argument prototype would still apply.  */
8350char $ac_func ();
8351/* The GNU C library defines this for functions which it implements
8352    to always fail with ENOSYS.  Some functions are actually named
8353    something starting with __ and the normal name is an alias.  */
8354#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8355choke me
8356#else
8357char (*f) () = $ac_func;
8358#endif
8359#ifdef __cplusplus
8360}
8361#endif
8362
8363int
8364main ()
8365{
8366return f != $ac_func;
8367  ;
8368  return 0;
8369}
8370_ACEOF
8371rm -f conftest.$ac_objext conftest$ac_exeext
8372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8373  (eval $ac_link) 2>conftest.er1
8374  ac_status=$?
8375  grep -v '^ *+' conftest.er1 >conftest.err
8376  rm -f conftest.er1
8377  cat conftest.err >&5
8378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379  (exit $ac_status); } &&
8380         { ac_try='test -z "$ac_c_werror_flag"
8381                         || test ! -s conftest.err'
8382  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383  (eval $ac_try) 2>&5
8384  ac_status=$?
8385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386  (exit $ac_status); }; } &&
8387         { ac_try='test -s conftest$ac_exeext'
8388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8389  (eval $ac_try) 2>&5
8390  ac_status=$?
8391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392  (exit $ac_status); }; }; then
8393  eval "$as_ac_var=yes"
8394else
8395  echo "$as_me: failed program was:" >&5
8396sed 's/^/| /' conftest.$ac_ext >&5
8397
8398eval "$as_ac_var=no"
8399fi
8400rm -f conftest.err conftest.$ac_objext \
8401      conftest$ac_exeext conftest.$ac_ext
8402fi
8403echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8404echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8405if test `eval echo '${'$as_ac_var'}'` = yes; then
8406  cat >>confdefs.h <<_ACEOF
8407#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8408_ACEOF
8409
8410fi
8411done
8412
8413
8414######################
8415## OUTPUT CONFIGURE ##
8416######################
8417                                                  ac_config_files="$ac_config_files Makefile src/Makefile src/importer/Makefile src/console/Makefile src/gui/Makefile"
8418
8419
8420cat >confcache <<\_ACEOF
8421# This file is a shell script that caches the results of configure
8422# tests run on this system so they can be shared between configure
8423# scripts and configure runs, see configure's option --config-cache.
8424# It is not useful on other systems.  If it contains results you don't
8425# want to keep, you may remove or edit it.
8426#
8427# config.status only pays attention to the cache file if you give it
8428# the --recheck option to rerun configure.
8429#
8430# `ac_cv_env_foo' variables (set or unset) will be overridden when
8431# loading this file, other *unset* `ac_cv_foo' will be assigned the
8432# following values.
8433
8434_ACEOF
8435
8436# The following way of writing the cache mishandles newlines in values,
8437# but we know of no workaround that is simple, portable, and efficient.
8438# So, don't put newlines in cache variables' values.
8439# Ultrix sh set writes to stderr and can't be redirected directly,
8440# and sets the high bit in the cache file unless we assign to the vars.
8441{
8442  (set) 2>&1 |
8443    case `(ac_space=' '; set | grep ac_space) 2>&1` in
8444    *ac_space=\ *)
8445      # `set' does not quote correctly, so add quotes (double-quote
8446      # substitution turns \\\\ into \\, and sed turns \\ into \).
8447      sed -n \
8448        "s/'/'\\\\''/g;
8449          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8450      ;;
8451    *)
8452      # `set' quotes correctly as required by POSIX, so do not add quotes.
8453      sed -n \
8454        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8455      ;;
8456    esac;
8457} |
8458  sed '
8459     t clear
8460     : clear
8461     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8462     t end
8463     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8464     : end' >>confcache
8465if diff $cache_file confcache >/dev/null 2>&1; then :; else
8466  if test -w $cache_file; then
8467    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8468    cat confcache >$cache_file
8469  else
8470    echo "not updating unwritable cache $cache_file"
8471  fi
8472fi
8473rm -f confcache
8474
8475test "x$prefix" = xNONE && prefix=$ac_default_prefix
8476# Let make expand exec_prefix.
8477test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8478
8479# VPATH may cause trouble with some makes, so we remove $(srcdir),
8480# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8481# trailing colons and then remove the whole line if VPATH becomes empty
8482# (actually we leave an empty line to preserve line numbers).
8483if test "x$srcdir" = x.; then
8484  ac_vpsub='/^[  ]*VPATH[        ]*=/{
8485s/:*\$(srcdir):*/:/;
8486s/:*\${srcdir}:*/:/;
8487s/:*@srcdir@:*/:/;
8488s/^\([^=]*=[     ]*\):*/\1/;
8489s/:*$//;
8490s/^[^=]*=[       ]*$//;
8491}'
8492fi
8493
8494DEFS=-DHAVE_CONFIG_H
8495
8496ac_libobjs=
8497ac_ltlibobjs=
8498for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8499  # 1. Remove the extension, and $U if already installed.
8500  ac_i=`echo "$ac_i" |
8501         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8502  # 2. Add them.
8503  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8504  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8505done
8506LIBOBJS=$ac_libobjs
8507
8508LTLIBOBJS=$ac_ltlibobjs
8509
8510
8511if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8512  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8513Usually this means the macro was only invoked conditionally." >&5
8514echo "$as_me: error: conditional \"AMDEP\" was never defined.
8515Usually this means the macro was only invoked conditionally." >&2;}
8516   { (exit 1); exit 1; }; }
8517fi
8518if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
8519  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
8520Usually this means the macro was only invoked conditionally." >&5
8521echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
8522Usually this means the macro was only invoked conditionally." >&2;}
8523   { (exit 1); exit 1; }; }
8524fi
8525if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8526  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8527Usually this means the macro was only invoked conditionally." >&5
8528echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8529Usually this means the macro was only invoked conditionally." >&2;}
8530   { (exit 1); exit 1; }; }
8531fi
8532if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then
8533  { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined.
8534Usually this means the macro was only invoked conditionally." >&5
8535echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined.
8536Usually this means the macro was only invoked conditionally." >&2;}
8537   { (exit 1); exit 1; }; }
8538fi
8539if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
8540  { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined.
8541Usually this means the macro was only invoked conditionally." >&5
8542echo "$as_me: error: conditional \"DOXYGEN\" was never defined.
8543Usually this means the macro was only invoked conditionally." >&2;}
8544   { (exit 1); exit 1; }; }
8545fi
8546if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then
8547  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined.
8548Usually this means the macro was only invoked conditionally." >&5
8549echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined.
8550Usually this means the macro was only invoked conditionally." >&2;}
8551   { (exit 1); exit 1; }; }
8552fi
8553if test -z "${HAVE_GTHREAD_TRUE}" && test -z "${HAVE_GTHREAD_FALSE}"; then
8554  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTHREAD\" was never defined.
8555Usually this means the macro was only invoked conditionally." >&5
8556echo "$as_me: error: conditional \"HAVE_GTHREAD\" was never defined.
8557Usually this means the macro was only invoked conditionally." >&2;}
8558   { (exit 1); exit 1; }; }
8559fi
8560if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then
8561  { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined.
8562Usually this means the macro was only invoked conditionally." >&5
8563echo "$as_me: error: conditional \"HAVE_CURL\" was never defined.
8564Usually this means the macro was only invoked conditionally." >&2;}
8565   { (exit 1); exit 1; }; }
8566fi
8567
8568: ${CONFIG_STATUS=./config.status}
8569ac_clean_files_save=$ac_clean_files
8570ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8571{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8572echo "$as_me: creating $CONFIG_STATUS" >&6;}
8573cat >$CONFIG_STATUS <<_ACEOF
8574#! $SHELL
8575# Generated by $as_me.
8576# Run this file to recreate the current configuration.
8577# Compiler output produced by configure, useful for debugging
8578# configure, is in config.log if it exists.
8579
8580debug=false
8581ac_cs_recheck=false
8582ac_cs_silent=false
8583SHELL=\${CONFIG_SHELL-$SHELL}
8584_ACEOF
8585
8586cat >>$CONFIG_STATUS <<\_ACEOF
8587## --------------------- ##
8588## M4sh Initialization.  ##
8589## --------------------- ##
8590
8591# Be Bourne compatible
8592if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8593  emulate sh
8594  NULLCMD=:
8595  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8596  # is contrary to our usage.  Disable this feature.
8597  alias -g '${1+"$@"}'='"$@"'
8598elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8599  set -o posix
8600fi
8601DUALCASE=1; export DUALCASE # for MKS sh
8602
8603# Support unset when possible.
8604if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8605  as_unset=unset
8606else
8607  as_unset=false
8608fi
8609
8610
8611# Work around bugs in pre-3.0 UWIN ksh.
8612$as_unset ENV MAIL MAILPATH
8613PS1='$ '
8614PS2='> '
8615PS4='+ '
8616
8617# NLS nuisances.
8618for as_var in \
8619  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8620  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8621  LC_TELEPHONE LC_TIME
8622do
8623  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8624    eval $as_var=C; export $as_var
8625  else
8626    $as_unset $as_var
8627  fi
8628done
8629
8630# Required to use basename.
8631if expr a : '\(a\)' >/dev/null 2>&1; then
8632  as_expr=expr
8633else
8634  as_expr=false
8635fi
8636
8637if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8638  as_basename=basename
8639else
8640  as_basename=false
8641fi
8642
8643
8644# Name of the executable.
8645as_me=`$as_basename "$0" ||
8646$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8647         X"$0" : 'X\(//\)$' \| \
8648         X"$0" : 'X\(/\)$' \| \
8649         .     : '\(.\)' 2>/dev/null ||
8650echo X/"$0" |
8651    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8652          /^X\/\(\/\/\)$/{ s//\1/; q; }
8653          /^X\/\(\/\).*/{ s//\1/; q; }
8654          s/.*/./; q'`
8655
8656
8657# PATH needs CR, and LINENO needs CR and PATH.
8658# Avoid depending upon Character Ranges.
8659as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8660as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8661as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8662as_cr_digits='0123456789'
8663as_cr_alnum=$as_cr_Letters$as_cr_digits
8664
8665# The user is always right.
8666if test "${PATH_SEPARATOR+set}" != set; then
8667  echo "#! /bin/sh" >conf$$.sh
8668  echo  "exit 0"   >>conf$$.sh
8669  chmod +x conf$$.sh
8670  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8671    PATH_SEPARATOR=';'
8672  else
8673    PATH_SEPARATOR=:
8674  fi
8675  rm -f conf$$.sh
8676fi
8677
8678
8679  as_lineno_1=$LINENO
8680  as_lineno_2=$LINENO
8681  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8682  test "x$as_lineno_1" != "x$as_lineno_2" &&
8683  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
8684  # Find who we are.  Look in the path if we contain no path at all
8685  # relative or not.
8686  case $0 in
8687    *[\\/]* ) as_myself=$0 ;;
8688    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8689for as_dir in $PATH
8690do
8691  IFS=$as_save_IFS
8692  test -z "$as_dir" && as_dir=.
8693  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8694done
8695
8696       ;;
8697  esac
8698  # We did not find ourselves, most probably we were run as `sh COMMAND'
8699  # in which case we are not to be found in the path.
8700  if test "x$as_myself" = x; then
8701    as_myself=$0
8702  fi
8703  if test ! -f "$as_myself"; then
8704    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8705echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8706   { (exit 1); exit 1; }; }
8707  fi
8708  case $CONFIG_SHELL in
8709  '')
8710    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8711for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8712do
8713  IFS=$as_save_IFS
8714  test -z "$as_dir" && as_dir=.
8715  for as_base in sh bash ksh sh5; do
8716         case $as_dir in
8717         /*)
8718           if ("$as_dir/$as_base" -c '
8719  as_lineno_1=$LINENO
8720  as_lineno_2=$LINENO
8721  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8722  test "x$as_lineno_1" != "x$as_lineno_2" &&
8723  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
8724             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8725             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8726             CONFIG_SHELL=$as_dir/$as_base
8727             export CONFIG_SHELL
8728             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8729           fi;;
8730         esac
8731       done
8732done
8733;;
8734  esac
8735
8736  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8737  # uniformly replaced by the line number.  The first 'sed' inserts a
8738  # line-number line before each line; the second 'sed' does the real
8739  # work.  The second script uses 'N' to pair each line-number line
8740  # with the numbered line, and appends trailing '-' during
8741  # substitution so that $LINENO is not a special case at line end.
8742  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8743  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
8744  sed '=' <$as_myself |
8745    sed '
8746      N
8747      s,$,-,
8748      : loop
8749      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8750      t loop
8751      s,-$,,
8752      s,^['$as_cr_digits']*\n,,
8753    ' >$as_me.lineno &&
8754  chmod +x $as_me.lineno ||
8755    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8756echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8757   { (exit 1); exit 1; }; }
8758
8759  # Don't try to exec as it changes $[0], causing all sort of problems
8760  # (the dirname of $[0] is not the place where we might find the
8761  # original and so on.  Autoconf is especially sensible to this).
8762  . ./$as_me.lineno
8763  # Exit status is that of the last command.
8764  exit
8765}
8766
8767
8768case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8769  *c*,-n*) ECHO_N= ECHO_C='
8770' ECHO_T='      ' ;;
8771  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8772  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
8773esac
8774
8775if expr a : '\(a\)' >/dev/null 2>&1; then
8776  as_expr=expr
8777else
8778  as_expr=false
8779fi
8780
8781rm -f conf$$ conf$$.exe conf$$.file
8782echo >conf$$.file
8783if ln -s conf$$.file conf$$ 2>/dev/null; then
8784  # We could just check for DJGPP; but this test a) works b) is more generic
8785  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8786  if test -f conf$$.exe; then
8787    # Don't use ln at all; we don't have any links
8788    as_ln_s='cp -p'
8789  else
8790    as_ln_s='ln -s'
8791  fi
8792elif ln conf$$.file conf$$ 2>/dev/null; then
8793  as_ln_s=ln
8794else
8795  as_ln_s='cp -p'
8796fi
8797rm -f conf$$ conf$$.exe conf$$.file
8798
8799if mkdir -p . 2>/dev/null; then
8800  as_mkdir_p=:
8801else
8802  test -d ./-p && rmdir ./-p
8803  as_mkdir_p=false
8804fi
8805
8806as_executable_p="test -f"
8807
8808# Sed expression to map a string onto a valid CPP name.
8809as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8810
8811# Sed expression to map a string onto a valid variable name.
8812as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8813
8814
8815# IFS
8816# We need space, tab and new line, in precisely that order.
8817as_nl='
8818'
8819IFS="   $as_nl"
8820
8821# CDPATH.
8822$as_unset CDPATH
8823
8824exec 6>&1
8825
8826# Open the log real soon, to keep \$[0] and so on meaningful, and to
8827# report actual input values of CONFIG_FILES etc. instead of their
8828# values after options handling.  Logging --version etc. is OK.
8829exec 5>>config.log
8830{
8831  echo
8832  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8833## Running $as_me. ##
8834_ASBOX
8835} >&5
8836cat >&5 <<_CSEOF
8837
8838This file was extended by orxonox $as_me 0.2.1-pre-alpha, which was
8839generated by GNU Autoconf 2.59.  Invocation command line was
8840
8841  CONFIG_FILES    = $CONFIG_FILES
8842  CONFIG_HEADERS  = $CONFIG_HEADERS
8843  CONFIG_LINKS    = $CONFIG_LINKS
8844  CONFIG_COMMANDS = $CONFIG_COMMANDS
8845  $ $0 $@
8846
8847_CSEOF
8848echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8849echo >&5
8850_ACEOF
8851
8852# Files that config.status was made for.
8853if test -n "$ac_config_files"; then
8854  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8855fi
8856
8857if test -n "$ac_config_headers"; then
8858  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8859fi
8860
8861if test -n "$ac_config_links"; then
8862  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8863fi
8864
8865if test -n "$ac_config_commands"; then
8866  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8867fi
8868
8869cat >>$CONFIG_STATUS <<\_ACEOF
8870
8871ac_cs_usage="\
8872\`$as_me' instantiates files from templates according to the
8873current configuration.
8874
8875Usage: $0 [OPTIONS] [FILE]...
8876
8877  -h, --help       print this help, then exit
8878  -V, --version    print version number, then exit
8879  -q, --quiet      do not print progress messages
8880  -d, --debug      don't remove temporary files
8881      --recheck    update $as_me by reconfiguring in the same conditions
8882  --file=FILE[:TEMPLATE]
8883                   instantiate the configuration file FILE
8884  --header=FILE[:TEMPLATE]
8885                   instantiate the configuration header FILE
8886
8887Configuration files:
8888$config_files
8889
8890Configuration headers:
8891$config_headers
8892
8893Configuration commands:
8894$config_commands
8895
8896Report bugs to <bug-autoconf@gnu.org>."
8897_ACEOF
8898
8899cat >>$CONFIG_STATUS <<_ACEOF
8900ac_cs_version="\\
8901orxonox config.status 0.2.1-pre-alpha
8902configured by $0, generated by GNU Autoconf 2.59,
8903  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8904
8905Copyright (C) 2003 Free Software Foundation, Inc.
8906This config.status script is free software; the Free Software Foundation
8907gives unlimited permission to copy, distribute and modify it."
8908srcdir=$srcdir
8909INSTALL="$INSTALL"
8910_ACEOF
8911
8912cat >>$CONFIG_STATUS <<\_ACEOF
8913# If no file are specified by the user, then we need to provide default
8914# value.  By we need to know if files were specified by the user.
8915ac_need_defaults=:
8916while test $# != 0
8917do
8918  case $1 in
8919  --*=*)
8920    ac_option=`expr "x$1" : 'x\([^=]*\)='`
8921    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8922    ac_shift=:
8923    ;;
8924  -*)
8925    ac_option=$1
8926    ac_optarg=$2
8927    ac_shift=shift
8928    ;;
8929  *) # This is not an option, so the user has probably given explicit
8930     # arguments.
8931     ac_option=$1
8932     ac_need_defaults=false;;
8933  esac
8934
8935  case $ac_option in
8936  # Handling of the options.
8937_ACEOF
8938cat >>$CONFIG_STATUS <<\_ACEOF
8939  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8940    ac_cs_recheck=: ;;
8941  --version | --vers* | -V )
8942    echo "$ac_cs_version"; exit 0 ;;
8943  --he | --h)
8944    # Conflict between --help and --header
8945    { { echo "$as_me:$LINENO: error: ambiguous option: $1
8946Try \`$0 --help' for more information." >&5
8947echo "$as_me: error: ambiguous option: $1
8948Try \`$0 --help' for more information." >&2;}
8949   { (exit 1); exit 1; }; };;
8950  --help | --hel | -h )
8951    echo "$ac_cs_usage"; exit 0 ;;
8952  --debug | --d* | -d )
8953    debug=: ;;
8954  --file | --fil | --fi | --f )
8955    $ac_shift
8956    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8957    ac_need_defaults=false;;
8958  --header | --heade | --head | --hea )
8959    $ac_shift
8960    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8961    ac_need_defaults=false;;
8962  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8963  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8964    ac_cs_silent=: ;;
8965
8966  # This is an error.
8967  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8968Try \`$0 --help' for more information." >&5
8969echo "$as_me: error: unrecognized option: $1
8970Try \`$0 --help' for more information." >&2;}
8971   { (exit 1); exit 1; }; } ;;
8972
8973  *) ac_config_targets="$ac_config_targets $1" ;;
8974
8975  esac
8976  shift
8977done
8978
8979ac_configure_extra_args=
8980
8981if $ac_cs_silent; then
8982  exec 6>/dev/null
8983  ac_configure_extra_args="$ac_configure_extra_args --silent"
8984fi
8985
8986_ACEOF
8987cat >>$CONFIG_STATUS <<_ACEOF
8988if \$ac_cs_recheck; then
8989  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8990  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8991fi
8992
8993_ACEOF
8994
8995cat >>$CONFIG_STATUS <<_ACEOF
8996#
8997# INIT-COMMANDS section.
8998#
8999
9000AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9001
9002_ACEOF
9003
9004
9005
9006cat >>$CONFIG_STATUS <<\_ACEOF
9007for ac_config_target in $ac_config_targets
9008do
9009  case "$ac_config_target" in
9010  # Handling of arguments.
9011  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9012  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9013  "src/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/importer/Makefile" ;;
9014  "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
9015  "src/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gui/Makefile" ;;
9016  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9017  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9018  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9019echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9020   { (exit 1); exit 1; }; };;
9021  esac
9022done
9023
9024# If the user did not use the arguments to specify the items to instantiate,
9025# then the envvar interface is used.  Set only those that are not.
9026# We use the long form for the default assignment because of an extremely
9027# bizarre bug on SunOS 4.1.3.
9028if $ac_need_defaults; then
9029  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9030  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9031  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9032fi
9033
9034# Have a temporary directory for convenience.  Make it in the build tree
9035# simply because there is no reason to put it here, and in addition,
9036# creating and moving files from /tmp can sometimes cause problems.
9037# Create a temporary directory, and hook for its removal unless debugging.
9038$debug ||
9039{
9040  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9041  trap '{ (exit 1); exit 1; }' 1 2 13 15
9042}
9043
9044# Create a (secure) tmp directory for tmp files.
9045
9046{
9047  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9048  test -n "$tmp" && test -d "$tmp"
9049}  ||
9050{
9051  tmp=./confstat$$-$RANDOM
9052  (umask 077 && mkdir $tmp)
9053} ||
9054{
9055   echo "$me: cannot create a temporary directory in ." >&2
9056   { (exit 1); exit 1; }
9057}
9058
9059_ACEOF
9060
9061cat >>$CONFIG_STATUS <<_ACEOF
9062
9063#
9064# CONFIG_FILES section.
9065#
9066
9067# No need to generate the scripts if there are no CONFIG_FILES.
9068# This happens for instance when ./config.status config.h
9069if test -n "\$CONFIG_FILES"; then
9070  # Protect against being on the right side of a sed subst in config.status.
9071  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9072   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9073s,@SHELL@,$SHELL,;t t
9074s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9075s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9076s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9077s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9078s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9079s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9080s,@exec_prefix@,$exec_prefix,;t t
9081s,@prefix@,$prefix,;t t
9082s,@program_transform_name@,$program_transform_name,;t t
9083s,@bindir@,$bindir,;t t
9084s,@sbindir@,$sbindir,;t t
9085s,@libexecdir@,$libexecdir,;t t
9086s,@datadir@,$datadir,;t t
9087s,@sysconfdir@,$sysconfdir,;t t
9088s,@sharedstatedir@,$sharedstatedir,;t t
9089s,@localstatedir@,$localstatedir,;t t
9090s,@libdir@,$libdir,;t t
9091s,@includedir@,$includedir,;t t
9092s,@oldincludedir@,$oldincludedir,;t t
9093s,@infodir@,$infodir,;t t
9094s,@mandir@,$mandir,;t t
9095s,@build_alias@,$build_alias,;t t
9096s,@host_alias@,$host_alias,;t t
9097s,@target_alias@,$target_alias,;t t
9098s,@DEFS@,$DEFS,;t t
9099s,@ECHO_C@,$ECHO_C,;t t
9100s,@ECHO_N@,$ECHO_N,;t t
9101s,@ECHO_T@,$ECHO_T,;t t
9102s,@LIBS@,$LIBS,;t t
9103s,@build@,$build,;t t
9104s,@build_cpu@,$build_cpu,;t t
9105s,@build_vendor@,$build_vendor,;t t
9106s,@build_os@,$build_os,;t t
9107s,@host@,$host,;t t
9108s,@host_cpu@,$host_cpu,;t t
9109s,@host_vendor@,$host_vendor,;t t
9110s,@host_os@,$host_os,;t t
9111s,@target@,$target,;t t
9112s,@target_cpu@,$target_cpu,;t t
9113s,@target_vendor@,$target_vendor,;t t
9114s,@target_os@,$target_os,;t t
9115s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9116s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9117s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9118s,@CYGPATH_W@,$CYGPATH_W,;t t
9119s,@PACKAGE@,$PACKAGE,;t t
9120s,@VERSION@,$VERSION,;t t
9121s,@ACLOCAL@,$ACLOCAL,;t t
9122s,@AUTOCONF@,$AUTOCONF,;t t
9123s,@AUTOMAKE@,$AUTOMAKE,;t t
9124s,@AUTOHEADER@,$AUTOHEADER,;t t
9125s,@MAKEINFO@,$MAKEINFO,;t t
9126s,@AMTAR@,$AMTAR,;t t
9127s,@install_sh@,$install_sh,;t t
9128s,@STRIP@,$STRIP,;t t
9129s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9130s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9131s,@mkdir_p@,$mkdir_p,;t t
9132s,@AWK@,$AWK,;t t
9133s,@SET_MAKE@,$SET_MAKE,;t t
9134s,@am__leading_dot@,$am__leading_dot,;t t
9135s,@CXX@,$CXX,;t t
9136s,@CXXFLAGS@,$CXXFLAGS,;t t
9137s,@LDFLAGS@,$LDFLAGS,;t t
9138s,@CPPFLAGS@,$CPPFLAGS,;t t
9139s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9140s,@EXEEXT@,$EXEEXT,;t t
9141s,@OBJEXT@,$OBJEXT,;t t
9142s,@DEPDIR@,$DEPDIR,;t t
9143s,@am__include@,$am__include,;t t
9144s,@am__quote@,$am__quote,;t t
9145s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9146s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9147s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9148s,@CXXDEPMODE@,$CXXDEPMODE,;t t
9149s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
9150s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
9151s,@CC@,$CC,;t t
9152s,@CFLAGS@,$CFLAGS,;t t
9153s,@ac_ct_CC@,$ac_ct_CC,;t t
9154s,@CCDEPMODE@,$CCDEPMODE,;t t
9155s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9156s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9157s,@CPP@,$CPP,;t t
9158s,@EGREP@,$EGREP,;t t
9159s,@DEBUG@,$DEBUG,;t t
9160s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t
9161s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t
9162s,@DOXYGEN@,$DOXYGEN,;t t
9163s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t
9164s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t
9165s,@MSBITFIELDS@,$MSBITFIELDS,;t t
9166s,@GTK2_LIBS@,$GTK2_LIBS,;t t
9167s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
9168s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t
9169s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t
9170s,@GTHREAD_LIBS@,$GTHREAD_LIBS,;t t
9171s,@GTHREAD_CFLAGS@,$GTHREAD_CFLAGS,;t t
9172s,@HAVE_GTHREAD_TRUE@,$HAVE_GTHREAD_TRUE,;t t
9173s,@HAVE_GTHREAD_FALSE@,$HAVE_GTHREAD_FALSE,;t t
9174s,@CURL_LIBS@,$CURL_LIBS,;t t
9175s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t
9176s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t
9177s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t
9178s,@LIBOBJS@,$LIBOBJS,;t t
9179s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9180CEOF
9181
9182_ACEOF
9183
9184  cat >>$CONFIG_STATUS <<\_ACEOF
9185  # Split the substitutions into bite-sized pieces for seds with
9186  # small command number limits, like on Digital OSF/1 and HP-UX.
9187  ac_max_sed_lines=48
9188  ac_sed_frag=1 # Number of current file.
9189  ac_beg=1 # First line for current file.
9190  ac_end=$ac_max_sed_lines # Line after last line for current file.
9191  ac_more_lines=:
9192  ac_sed_cmds=
9193  while $ac_more_lines; do
9194    if test $ac_beg -gt 1; then
9195      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9196    else
9197      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9198    fi
9199    if test ! -s $tmp/subs.frag; then
9200      ac_more_lines=false
9201    else
9202      # The purpose of the label and of the branching condition is to
9203      # speed up the sed processing (if there are no `@' at all, there
9204      # is no need to browse any of the substitutions).
9205      # These are the two extra sed commands mentioned above.
9206      (echo ':t
9207  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9208      if test -z "$ac_sed_cmds"; then
9209        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9210      else
9211        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9212      fi
9213      ac_sed_frag=`expr $ac_sed_frag + 1`
9214      ac_beg=$ac_end
9215      ac_end=`expr $ac_end + $ac_max_sed_lines`
9216    fi
9217  done
9218  if test -z "$ac_sed_cmds"; then
9219    ac_sed_cmds=cat
9220  fi
9221fi # test -n "$CONFIG_FILES"
9222
9223_ACEOF
9224cat >>$CONFIG_STATUS <<\_ACEOF
9225for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9226  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9227  case $ac_file in
9228  - | *:- | *:-:* ) # input from stdin
9229        cat >$tmp/stdin
9230        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9231        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9232  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9233        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9234  * )   ac_file_in=$ac_file.in ;;
9235  esac
9236
9237  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9238  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9239$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9240         X"$ac_file" : 'X\(//\)[^/]' \| \
9241         X"$ac_file" : 'X\(//\)$' \| \
9242         X"$ac_file" : 'X\(/\)' \| \
9243         .     : '\(.\)' 2>/dev/null ||
9244echo X"$ac_file" |
9245    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9246          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9247          /^X\(\/\/\)$/{ s//\1/; q; }
9248          /^X\(\/\).*/{ s//\1/; q; }
9249          s/.*/./; q'`
9250  { if $as_mkdir_p; then
9251    mkdir -p "$ac_dir"
9252  else
9253    as_dir="$ac_dir"
9254    as_dirs=
9255    while test ! -d "$as_dir"; do
9256      as_dirs="$as_dir $as_dirs"
9257      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9258$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9259         X"$as_dir" : 'X\(//\)[^/]' \| \
9260         X"$as_dir" : 'X\(//\)$' \| \
9261         X"$as_dir" : 'X\(/\)' \| \
9262         .     : '\(.\)' 2>/dev/null ||
9263echo X"$as_dir" |
9264    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9265          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9266          /^X\(\/\/\)$/{ s//\1/; q; }
9267          /^X\(\/\).*/{ s//\1/; q; }
9268          s/.*/./; q'`
9269    done
9270    test ! -n "$as_dirs" || mkdir $as_dirs
9271  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9272echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9273   { (exit 1); exit 1; }; }; }
9274
9275  ac_builddir=.
9276
9277if test "$ac_dir" != .; then
9278  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9279  # A "../" for each directory in $ac_dir_suffix.
9280  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9281else
9282  ac_dir_suffix= ac_top_builddir=
9283fi
9284
9285case $srcdir in
9286  .)  # No --srcdir option.  We are building in place.
9287    ac_srcdir=.
9288    if test -z "$ac_top_builddir"; then
9289       ac_top_srcdir=.
9290    else
9291       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9292    fi ;;
9293  [\\/]* | ?:[\\/]* )  # Absolute path.
9294    ac_srcdir=$srcdir$ac_dir_suffix;
9295    ac_top_srcdir=$srcdir ;;
9296  *) # Relative path.
9297    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9298    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9299esac
9300
9301# Do not use `cd foo && pwd` to compute absolute paths, because
9302# the directories may not exist.
9303case `pwd` in
9304.) ac_abs_builddir="$ac_dir";;
9305*)
9306  case "$ac_dir" in
9307  .) ac_abs_builddir=`pwd`;;
9308  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9309  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9310  esac;;
9311esac
9312case $ac_abs_builddir in
9313.) ac_abs_top_builddir=${ac_top_builddir}.;;
9314*)
9315  case ${ac_top_builddir}. in
9316  .) ac_abs_top_builddir=$ac_abs_builddir;;
9317  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9318  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9319  esac;;
9320esac
9321case $ac_abs_builddir in
9322.) ac_abs_srcdir=$ac_srcdir;;
9323*)
9324  case $ac_srcdir in
9325  .) ac_abs_srcdir=$ac_abs_builddir;;
9326  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9327  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9328  esac;;
9329esac
9330case $ac_abs_builddir in
9331.) ac_abs_top_srcdir=$ac_top_srcdir;;
9332*)
9333  case $ac_top_srcdir in
9334  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9335  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9336  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9337  esac;;
9338esac
9339
9340
9341  case $INSTALL in
9342  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9343  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9344  esac
9345
9346  if test x"$ac_file" != x-; then
9347    { echo "$as_me:$LINENO: creating $ac_file" >&5
9348echo "$as_me: creating $ac_file" >&6;}
9349    rm -f "$ac_file"
9350  fi
9351  # Let's still pretend it is `configure' which instantiates (i.e., don't
9352  # use $as_me), people would be surprised to read:
9353  #    /* config.h.  Generated by config.status.  */
9354  if test x"$ac_file" = x-; then
9355    configure_input=
9356  else
9357    configure_input="$ac_file.  "
9358  fi
9359  configure_input=$configure_input"Generated from `echo $ac_file_in |
9360                                     sed 's,.*/,,'` by configure."
9361
9362  # First look for the input files in the build tree, otherwise in the
9363  # src tree.
9364  ac_file_inputs=`IFS=:
9365    for f in $ac_file_in; do
9366      case $f in
9367      -) echo $tmp/stdin ;;
9368      [\\/$]*)
9369         # Absolute (can't be DOS-style, as IFS=:)
9370         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9371echo "$as_me: error: cannot find input file: $f" >&2;}
9372   { (exit 1); exit 1; }; }
9373         echo "$f";;
9374      *) # Relative
9375         if test -f "$f"; then
9376           # Build tree
9377           echo "$f"
9378         elif test -f "$srcdir/$f"; then
9379           # Source tree
9380           echo "$srcdir/$f"
9381         else
9382           # /dev/null tree
9383           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9384echo "$as_me: error: cannot find input file: $f" >&2;}
9385   { (exit 1); exit 1; }; }
9386         fi;;
9387      esac
9388    done` || { (exit 1); exit 1; }
9389_ACEOF
9390cat >>$CONFIG_STATUS <<_ACEOF
9391  sed "$ac_vpsub
9392$extrasub
9393_ACEOF
9394cat >>$CONFIG_STATUS <<\_ACEOF
9395:t
9396/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9397s,@configure_input@,$configure_input,;t t
9398s,@srcdir@,$ac_srcdir,;t t
9399s,@abs_srcdir@,$ac_abs_srcdir,;t t
9400s,@top_srcdir@,$ac_top_srcdir,;t t
9401s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9402s,@builddir@,$ac_builddir,;t t
9403s,@abs_builddir@,$ac_abs_builddir,;t t
9404s,@top_builddir@,$ac_top_builddir,;t t
9405s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9406s,@INSTALL@,$ac_INSTALL,;t t
9407" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9408  rm -f $tmp/stdin
9409  if test x"$ac_file" != x-; then
9410    mv $tmp/out $ac_file
9411  else
9412    cat $tmp/out
9413    rm -f $tmp/out
9414  fi
9415
9416done
9417_ACEOF
9418cat >>$CONFIG_STATUS <<\_ACEOF
9419
9420#
9421# CONFIG_HEADER section.
9422#
9423
9424# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9425# NAME is the cpp macro being defined and VALUE is the value it is being given.
9426#
9427# ac_d sets the value in "#define NAME VALUE" lines.
9428ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
9429ac_dB='[         ].*$,\1#\2'
9430ac_dC=' '
9431ac_dD=',;t'
9432# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9433ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9434ac_uB='$,\1#\2define\3'
9435ac_uC=' '
9436ac_uD=',;t'
9437
9438for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9439  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9440  case $ac_file in
9441  - | *:- | *:-:* ) # input from stdin
9442        cat >$tmp/stdin
9443        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9444        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9445  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9446        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9447  * )   ac_file_in=$ac_file.in ;;
9448  esac
9449
9450  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9451echo "$as_me: creating $ac_file" >&6;}
9452
9453  # First look for the input files in the build tree, otherwise in the
9454  # src tree.
9455  ac_file_inputs=`IFS=:
9456    for f in $ac_file_in; do
9457      case $f in
9458      -) echo $tmp/stdin ;;
9459      [\\/$]*)
9460         # Absolute (can't be DOS-style, as IFS=:)
9461         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9462echo "$as_me: error: cannot find input file: $f" >&2;}
9463   { (exit 1); exit 1; }; }
9464         # Do quote $f, to prevent DOS paths from being IFS'd.
9465         echo "$f";;
9466      *) # Relative
9467         if test -f "$f"; then
9468           # Build tree
9469           echo "$f"
9470         elif test -f "$srcdir/$f"; then
9471           # Source tree
9472           echo "$srcdir/$f"
9473         else
9474           # /dev/null tree
9475           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9476echo "$as_me: error: cannot find input file: $f" >&2;}
9477   { (exit 1); exit 1; }; }
9478         fi;;
9479      esac
9480    done` || { (exit 1); exit 1; }
9481  # Remove the trailing spaces.
9482  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
9483
9484_ACEOF
9485
9486# Transform confdefs.h into two sed scripts, `conftest.defines' and
9487# `conftest.undefs', that substitutes the proper values into
9488# config.h.in to produce config.h.  The first handles `#define'
9489# templates, and the second `#undef' templates.
9490# And first: Protect against being on the right side of a sed subst in
9491# config.status.  Protect against being in an unquoted here document
9492# in config.status.
9493rm -f conftest.defines conftest.undefs
9494# Using a here document instead of a string reduces the quoting nightmare.
9495# Putting comments in sed scripts is not portable.
9496#
9497# `end' is used to avoid that the second main sed command (meant for
9498# 0-ary CPP macros) applies to n-ary macro definitions.
9499# See the Autoconf documentation for `clear'.
9500cat >confdef2sed.sed <<\_ACEOF
9501s/[\\&,]/\\&/g
9502s,[\\$`],\\&,g
9503t clear
9504: clear
9505s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9506t end
9507s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9508: end
9509_ACEOF
9510# If some macros were called several times there might be several times
9511# the same #defines, which is useless.  Nevertheless, we may not want to
9512# sort them, since we want the *last* AC-DEFINE to be honored.
9513uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9514sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9515rm -f confdef2sed.sed
9516
9517# This sed command replaces #undef with comments.  This is necessary, for
9518# example, in the case of _POSIX_SOURCE, which is predefined and required
9519# on some systems where configure will not decide to define it.
9520cat >>conftest.undefs <<\_ACEOF
9521s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9522_ACEOF
9523
9524# Break up conftest.defines because some shells have a limit on the size
9525# of here documents, and old seds have small limits too (100 cmds).
9526echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9527echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9528echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9529echo '  :' >>$CONFIG_STATUS
9530rm -f conftest.tail
9531while grep . conftest.defines >/dev/null
9532do
9533  # Write a limited-size here document to $tmp/defines.sed.
9534  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9535  # Speed up: don't consider the non `#define' lines.
9536  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
9537  # Work around the forget-to-reset-the-flag bug.
9538  echo 't clr' >>$CONFIG_STATUS
9539  echo ': clr' >>$CONFIG_STATUS
9540  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9541  echo 'CEOF
9542  sed -f $tmp/defines.sed $tmp/in >$tmp/out
9543  rm -f $tmp/in
9544  mv $tmp/out $tmp/in
9545' >>$CONFIG_STATUS
9546  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9547  rm -f conftest.defines
9548  mv conftest.tail conftest.defines
9549done
9550rm -f conftest.defines
9551echo '  fi # grep' >>$CONFIG_STATUS
9552echo >>$CONFIG_STATUS
9553
9554# Break up conftest.undefs because some shells have a limit on the size
9555# of here documents, and old seds have small limits too (100 cmds).
9556echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
9557rm -f conftest.tail
9558while grep . conftest.undefs >/dev/null
9559do
9560  # Write a limited-size here document to $tmp/undefs.sed.
9561  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9562  # Speed up: don't consider the non `#undef'
9563  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
9564  # Work around the forget-to-reset-the-flag bug.
9565  echo 't clr' >>$CONFIG_STATUS
9566  echo ': clr' >>$CONFIG_STATUS
9567  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9568  echo 'CEOF
9569  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9570  rm -f $tmp/in
9571  mv $tmp/out $tmp/in
9572' >>$CONFIG_STATUS
9573  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9574  rm -f conftest.undefs
9575  mv conftest.tail conftest.undefs
9576done
9577rm -f conftest.undefs
9578
9579cat >>$CONFIG_STATUS <<\_ACEOF
9580  # Let's still pretend it is `configure' which instantiates (i.e., don't
9581  # use $as_me), people would be surprised to read:
9582  #    /* config.h.  Generated by config.status.  */
9583  if test x"$ac_file" = x-; then
9584    echo "/* Generated by configure.  */" >$tmp/config.h
9585  else
9586    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
9587  fi
9588  cat $tmp/in >>$tmp/config.h
9589  rm -f $tmp/in
9590  if test x"$ac_file" != x-; then
9591    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9592      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9593echo "$as_me: $ac_file is unchanged" >&6;}
9594    else
9595      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9596$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9597         X"$ac_file" : 'X\(//\)[^/]' \| \
9598         X"$ac_file" : 'X\(//\)$' \| \
9599         X"$ac_file" : 'X\(/\)' \| \
9600         .     : '\(.\)' 2>/dev/null ||
9601echo X"$ac_file" |
9602    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9603          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9604          /^X\(\/\/\)$/{ s//\1/; q; }
9605          /^X\(\/\).*/{ s//\1/; q; }
9606          s/.*/./; q'`
9607      { if $as_mkdir_p; then
9608    mkdir -p "$ac_dir"
9609  else
9610    as_dir="$ac_dir"
9611    as_dirs=
9612    while test ! -d "$as_dir"; do
9613      as_dirs="$as_dir $as_dirs"
9614      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9615$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9616         X"$as_dir" : 'X\(//\)[^/]' \| \
9617         X"$as_dir" : 'X\(//\)$' \| \
9618         X"$as_dir" : 'X\(/\)' \| \
9619         .     : '\(.\)' 2>/dev/null ||
9620echo X"$as_dir" |
9621    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9622          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9623          /^X\(\/\/\)$/{ s//\1/; q; }
9624          /^X\(\/\).*/{ s//\1/; q; }
9625          s/.*/./; q'`
9626    done
9627    test ! -n "$as_dirs" || mkdir $as_dirs
9628  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9629echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9630   { (exit 1); exit 1; }; }; }
9631
9632      rm -f $ac_file
9633      mv $tmp/config.h $ac_file
9634    fi
9635  else
9636    cat $tmp/config.h
9637    rm -f $tmp/config.h
9638  fi
9639# Compute $ac_file's index in $config_headers.
9640_am_stamp_count=1
9641for _am_header in $config_headers :; do
9642  case $_am_header in
9643    $ac_file | $ac_file:* )
9644      break ;;
9645    * )
9646      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9647  esac
9648done
9649echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
9650$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9651         X$ac_file : 'X\(//\)[^/]' \| \
9652         X$ac_file : 'X\(//\)$' \| \
9653         X$ac_file : 'X\(/\)' \| \
9654         .     : '\(.\)' 2>/dev/null ||
9655echo X$ac_file |
9656    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9657          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9658          /^X\(\/\/\)$/{ s//\1/; q; }
9659          /^X\(\/\).*/{ s//\1/; q; }
9660          s/.*/./; q'`/stamp-h$_am_stamp_count
9661done
9662_ACEOF
9663cat >>$CONFIG_STATUS <<\_ACEOF
9664
9665#
9666# CONFIG_COMMANDS section.
9667#
9668for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9669  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9670  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9671  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9672$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9673         X"$ac_dest" : 'X\(//\)[^/]' \| \
9674         X"$ac_dest" : 'X\(//\)$' \| \
9675         X"$ac_dest" : 'X\(/\)' \| \
9676         .     : '\(.\)' 2>/dev/null ||
9677echo X"$ac_dest" |
9678    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9679          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9680          /^X\(\/\/\)$/{ s//\1/; q; }
9681          /^X\(\/\).*/{ s//\1/; q; }
9682          s/.*/./; q'`
9683  { if $as_mkdir_p; then
9684    mkdir -p "$ac_dir"
9685  else
9686    as_dir="$ac_dir"
9687    as_dirs=
9688    while test ! -d "$as_dir"; do
9689      as_dirs="$as_dir $as_dirs"
9690      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9691$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9692         X"$as_dir" : 'X\(//\)[^/]' \| \
9693         X"$as_dir" : 'X\(//\)$' \| \
9694         X"$as_dir" : 'X\(/\)' \| \
9695         .     : '\(.\)' 2>/dev/null ||
9696echo X"$as_dir" |
9697    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9698          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9699          /^X\(\/\/\)$/{ s//\1/; q; }
9700          /^X\(\/\).*/{ s//\1/; q; }
9701          s/.*/./; q'`
9702    done
9703    test ! -n "$as_dirs" || mkdir $as_dirs
9704  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9705echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9706   { (exit 1); exit 1; }; }; }
9707
9708  ac_builddir=.
9709
9710if test "$ac_dir" != .; then
9711  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9712  # A "../" for each directory in $ac_dir_suffix.
9713  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9714else
9715  ac_dir_suffix= ac_top_builddir=
9716fi
9717
9718case $srcdir in
9719  .)  # No --srcdir option.  We are building in place.
9720    ac_srcdir=.
9721    if test -z "$ac_top_builddir"; then
9722       ac_top_srcdir=.
9723    else
9724       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9725    fi ;;
9726  [\\/]* | ?:[\\/]* )  # Absolute path.
9727    ac_srcdir=$srcdir$ac_dir_suffix;
9728    ac_top_srcdir=$srcdir ;;
9729  *) # Relative path.
9730    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9731    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9732esac
9733
9734# Do not use `cd foo && pwd` to compute absolute paths, because
9735# the directories may not exist.
9736case `pwd` in
9737.) ac_abs_builddir="$ac_dir";;
9738*)
9739  case "$ac_dir" in
9740  .) ac_abs_builddir=`pwd`;;
9741  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9742  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9743  esac;;
9744esac
9745case $ac_abs_builddir in
9746.) ac_abs_top_builddir=${ac_top_builddir}.;;
9747*)
9748  case ${ac_top_builddir}. in
9749  .) ac_abs_top_builddir=$ac_abs_builddir;;
9750  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9751  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9752  esac;;
9753esac
9754case $ac_abs_builddir in
9755.) ac_abs_srcdir=$ac_srcdir;;
9756*)
9757  case $ac_srcdir in
9758  .) ac_abs_srcdir=$ac_abs_builddir;;
9759  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9760  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9761  esac;;
9762esac
9763case $ac_abs_builddir in
9764.) ac_abs_top_srcdir=$ac_top_srcdir;;
9765*)
9766  case $ac_top_srcdir in
9767  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9768  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9769  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9770  esac;;
9771esac
9772
9773
9774  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9775echo "$as_me: executing $ac_dest commands" >&6;}
9776  case $ac_dest in
9777    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9778  # Strip MF so we end up with the name of the file.
9779  mf=`echo "$mf" | sed -e 's/:.*$//'`
9780  # Check whether this is an Automake generated Makefile or not.
9781  # We used to match only the files named `Makefile.in', but
9782  # some people rename them; so instead we look at the file content.
9783  # Grep'ing the first line is not enough: some people post-process
9784  # each Makefile.in and add a new line on top of each file to say so.
9785  # So let's grep whole file.
9786  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9787    dirpart=`(dirname "$mf") 2>/dev/null ||
9788$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9789         X"$mf" : 'X\(//\)[^/]' \| \
9790         X"$mf" : 'X\(//\)$' \| \
9791         X"$mf" : 'X\(/\)' \| \
9792         .     : '\(.\)' 2>/dev/null ||
9793echo X"$mf" |
9794    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9795          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9796          /^X\(\/\/\)$/{ s//\1/; q; }
9797          /^X\(\/\).*/{ s//\1/; q; }
9798          s/.*/./; q'`
9799  else
9800    continue
9801  fi
9802  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
9803  # Extract the definition of DEP_FILES from the Makefile without
9804  # running `make'.
9805  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9806  test -z "$DEPDIR" && continue
9807  # When using ansi2knr, U may be empty or an underscore; expand it
9808  U=`sed -n 's/^U = //p' < "$mf"`
9809  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9810  # We invoke sed twice because it is the simplest approach to
9811  # changing $(DEPDIR) to its actual value in the expansion.
9812  for file in `sed -n '
9813    /^DEP_FILES = .*\\\\$/ {
9814      s/^DEP_FILES = //
9815      :loop
9816        s/\\\\$//
9817        p
9818        n
9819        /\\\\$/ b loop
9820      p
9821    }
9822    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9823       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9824    # Make sure the directory exists.
9825    test -f "$dirpart/$file" && continue
9826    fdir=`(dirname "$file") 2>/dev/null ||
9827$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9828         X"$file" : 'X\(//\)[^/]' \| \
9829         X"$file" : 'X\(//\)$' \| \
9830         X"$file" : 'X\(/\)' \| \
9831         .     : '\(.\)' 2>/dev/null ||
9832echo X"$file" |
9833    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9834          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9835          /^X\(\/\/\)$/{ s//\1/; q; }
9836          /^X\(\/\).*/{ s//\1/; q; }
9837          s/.*/./; q'`
9838    { if $as_mkdir_p; then
9839    mkdir -p $dirpart/$fdir
9840  else
9841    as_dir=$dirpart/$fdir
9842    as_dirs=
9843    while test ! -d "$as_dir"; do
9844      as_dirs="$as_dir $as_dirs"
9845      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9846$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9847         X"$as_dir" : 'X\(//\)[^/]' \| \
9848         X"$as_dir" : 'X\(//\)$' \| \
9849         X"$as_dir" : 'X\(/\)' \| \
9850         .     : '\(.\)' 2>/dev/null ||
9851echo X"$as_dir" |
9852    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9853          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9854          /^X\(\/\/\)$/{ s//\1/; q; }
9855          /^X\(\/\).*/{ s//\1/; q; }
9856          s/.*/./; q'`
9857    done
9858    test ! -n "$as_dirs" || mkdir $as_dirs
9859  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9860echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9861   { (exit 1); exit 1; }; }; }
9862
9863    # echo "creating $dirpart/$file"
9864    echo '# dummy' > "$dirpart/$file"
9865  done
9866done
9867 ;;
9868  esac
9869done
9870_ACEOF
9871
9872cat >>$CONFIG_STATUS <<\_ACEOF
9873
9874{ (exit 0); exit 0; }
9875_ACEOF
9876chmod +x $CONFIG_STATUS
9877ac_clean_files=$ac_clean_files_save
9878
9879
9880# configure is writing to config.log, and then calls config.status.
9881# config.status does its own redirection, appending to config.log.
9882# Unfortunately, on DOS this fails, as config.log is still kept open
9883# by configure, so config.status won't be able to write to it; its
9884# output is simply discarded.  So we exec the FD to /dev/null,
9885# effectively closing config.log, so it can be properly (re)opened and
9886# appended to by config.status.  When coming back to configure, we
9887# need to make the FD available again.
9888if test "$no_create" != yes; then
9889  ac_cs_success=:
9890  ac_config_status_args=
9891  test "$silent" = yes &&
9892    ac_config_status_args="$ac_config_status_args --quiet"
9893  exec 5>/dev/null
9894  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9895  exec 5>>config.log
9896  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9897  # would make configure fail if this is the last instruction.
9898  $ac_cs_success || { (exit 1); exit 1; }
9899fi
9900
Note: See TracBrowser for help on using the repository browser.