Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: profiling support enabled

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