Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: configure.ac updated, that it only checks for linux, Windows, aso. (ando so on…). This should improve the simplicity of autoconf

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