Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/sound/configure @ 2931

Last change on this file since 2931 was 2854, checked in by simon, 20 years ago

/branches/sound: finally a running version. To test, you can switch the parameters in the test class sound_test. A .ogg file named music.ogg from the directory . is played. The test class is really ugly, I know.

  • Property svn:executable set to *
File size: 219.3 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 MSBITFIELDS 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 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
1729echo "$as_me:$LINENO: checking for mingw" >&5
1730echo $ECHO_N "checking for mingw... $ECHO_C" >&6
1731case `uname` in
1732  *MINGW*)
1733    mingw="yes"
1734    MSBITFIELDS="-mms-bitfields"
1735    MWINDOWS="-mwindows"
1736    ;;
1737  *)
1738    mingw="no"
1739    ;;
1740esac
1741echo "$as_me:$LINENO: result: $mingw" >&5
1742echo "${ECHO_T}$mingw" >&6
1743
1744
1745
1746# Checks for programs.
1747ac_ext=cc
1748ac_cpp='$CXXCPP $CPPFLAGS'
1749ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1750ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1751ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1752if test -n "$ac_tool_prefix"; then
1753  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1754  do
1755    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1756set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1757echo "$as_me:$LINENO: checking for $ac_word" >&5
1758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1759if test "${ac_cv_prog_CXX+set}" = set; then
1760  echo $ECHO_N "(cached) $ECHO_C" >&6
1761else
1762  if test -n "$CXX"; then
1763  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1764else
1765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1766for as_dir in $PATH
1767do
1768  IFS=$as_save_IFS
1769  test -z "$as_dir" && as_dir=.
1770  for ac_exec_ext in '' $ac_executable_extensions; do
1771  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1772    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1773    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1774    break 2
1775  fi
1776done
1777done
1778
1779fi
1780fi
1781CXX=$ac_cv_prog_CXX
1782if test -n "$CXX"; then
1783  echo "$as_me:$LINENO: result: $CXX" >&5
1784echo "${ECHO_T}$CXX" >&6
1785else
1786  echo "$as_me:$LINENO: result: no" >&5
1787echo "${ECHO_T}no" >&6
1788fi
1789
1790    test -n "$CXX" && break
1791  done
1792fi
1793if test -z "$CXX"; then
1794  ac_ct_CXX=$CXX
1795  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1796do
1797  # Extract the first word of "$ac_prog", so it can be a program name with args.
1798set dummy $ac_prog; ac_word=$2
1799echo "$as_me:$LINENO: checking for $ac_word" >&5
1800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1801if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1802  echo $ECHO_N "(cached) $ECHO_C" >&6
1803else
1804  if test -n "$ac_ct_CXX"; then
1805  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1806else
1807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1808for as_dir in $PATH
1809do
1810  IFS=$as_save_IFS
1811  test -z "$as_dir" && as_dir=.
1812  for ac_exec_ext in '' $ac_executable_extensions; do
1813  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1814    ac_cv_prog_ac_ct_CXX="$ac_prog"
1815    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1816    break 2
1817  fi
1818done
1819done
1820
1821fi
1822fi
1823ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1824if test -n "$ac_ct_CXX"; then
1825  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1826echo "${ECHO_T}$ac_ct_CXX" >&6
1827else
1828  echo "$as_me:$LINENO: result: no" >&5
1829echo "${ECHO_T}no" >&6
1830fi
1831
1832  test -n "$ac_ct_CXX" && break
1833done
1834test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1835
1836  CXX=$ac_ct_CXX
1837fi
1838
1839
1840# Provide some information about the compiler.
1841echo "$as_me:$LINENO:" \
1842     "checking for C++ compiler version" >&5
1843ac_compiler=`set X $ac_compile; echo $2`
1844{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1845  (eval $ac_compiler --version </dev/null >&5) 2>&5
1846  ac_status=$?
1847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848  (exit $ac_status); }
1849{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1850  (eval $ac_compiler -v </dev/null >&5) 2>&5
1851  ac_status=$?
1852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853  (exit $ac_status); }
1854{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1855  (eval $ac_compiler -V </dev/null >&5) 2>&5
1856  ac_status=$?
1857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1858  (exit $ac_status); }
1859
1860cat >conftest.$ac_ext <<_ACEOF
1861/* confdefs.h.  */
1862_ACEOF
1863cat confdefs.h >>conftest.$ac_ext
1864cat >>conftest.$ac_ext <<_ACEOF
1865/* end confdefs.h.  */
1866
1867int
1868main ()
1869{
1870
1871  ;
1872  return 0;
1873}
1874_ACEOF
1875ac_clean_files_save=$ac_clean_files
1876ac_clean_files="$ac_clean_files a.out a.exe b.out"
1877# Try to create an executable without -o first, disregard a.out.
1878# It will help us diagnose broken compilers, and finding out an intuition
1879# of exeext.
1880echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1881echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1882ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1883if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1884  (eval $ac_link_default) 2>&5
1885  ac_status=$?
1886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887  (exit $ac_status); }; then
1888  # Find the output, starting from the most likely.  This scheme is
1889# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1890# resort.
1891
1892# Be careful to initialize this variable, since it used to be cached.
1893# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1894ac_cv_exeext=
1895# b.out is created by i960 compilers.
1896for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1897do
1898  test -f "$ac_file" || continue
1899  case $ac_file in
1900    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1901        ;;
1902    conftest.$ac_ext )
1903        # This is the source file.
1904        ;;
1905    [ab].out )
1906        # We found the default executable, but exeext='' is most
1907        # certainly right.
1908        break;;
1909    *.* )
1910        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1911        # FIXME: I believe we export ac_cv_exeext for Libtool,
1912        # but it would be cool to find out if it's true.  Does anybody
1913        # maintain Libtool? --akim.
1914        export ac_cv_exeext
1915        break;;
1916    * )
1917        break;;
1918  esac
1919done
1920else
1921  echo "$as_me: failed program was:" >&5
1922sed 's/^/| /' conftest.$ac_ext >&5
1923
1924{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1925See \`config.log' for more details." >&5
1926echo "$as_me: error: C++ compiler cannot create executables
1927See \`config.log' for more details." >&2;}
1928   { (exit 77); exit 77; }; }
1929fi
1930
1931ac_exeext=$ac_cv_exeext
1932echo "$as_me:$LINENO: result: $ac_file" >&5
1933echo "${ECHO_T}$ac_file" >&6
1934
1935# Check the compiler produces executables we can run.  If not, either
1936# the compiler is broken, or we cross compile.
1937echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1938echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1939# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1940# If not cross compiling, check that we can run a simple program.
1941if test "$cross_compiling" != yes; then
1942  if { ac_try='./$ac_file'
1943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1944  (eval $ac_try) 2>&5
1945  ac_status=$?
1946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947  (exit $ac_status); }; }; then
1948    cross_compiling=no
1949  else
1950    if test "$cross_compiling" = maybe; then
1951        cross_compiling=yes
1952    else
1953        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1954If you meant to cross compile, use \`--host'.
1955See \`config.log' for more details." >&5
1956echo "$as_me: error: cannot run C++ compiled programs.
1957If you meant to cross compile, use \`--host'.
1958See \`config.log' for more details." >&2;}
1959   { (exit 1); exit 1; }; }
1960    fi
1961  fi
1962fi
1963echo "$as_me:$LINENO: result: yes" >&5
1964echo "${ECHO_T}yes" >&6
1965
1966rm -f a.out a.exe conftest$ac_cv_exeext b.out
1967ac_clean_files=$ac_clean_files_save
1968# Check the compiler produces executables we can run.  If not, either
1969# the compiler is broken, or we cross compile.
1970echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1971echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1972echo "$as_me:$LINENO: result: $cross_compiling" >&5
1973echo "${ECHO_T}$cross_compiling" >&6
1974
1975echo "$as_me:$LINENO: checking for suffix of executables" >&5
1976echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1978  (eval $ac_link) 2>&5
1979  ac_status=$?
1980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981  (exit $ac_status); }; then
1982  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1983# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1984# work properly (i.e., refer to `conftest.exe'), while it won't with
1985# `rm'.
1986for ac_file in conftest.exe conftest conftest.*; do
1987  test -f "$ac_file" || continue
1988  case $ac_file in
1989    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1990    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1991          export ac_cv_exeext
1992          break;;
1993    * ) break;;
1994  esac
1995done
1996else
1997  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1998See \`config.log' for more details." >&5
1999echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2000See \`config.log' for more details." >&2;}
2001   { (exit 1); exit 1; }; }
2002fi
2003
2004rm -f conftest$ac_cv_exeext
2005echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2006echo "${ECHO_T}$ac_cv_exeext" >&6
2007
2008rm -f conftest.$ac_ext
2009EXEEXT=$ac_cv_exeext
2010ac_exeext=$EXEEXT
2011echo "$as_me:$LINENO: checking for suffix of object files" >&5
2012echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2013if test "${ac_cv_objext+set}" = set; then
2014  echo $ECHO_N "(cached) $ECHO_C" >&6
2015else
2016  cat >conftest.$ac_ext <<_ACEOF
2017/* confdefs.h.  */
2018_ACEOF
2019cat confdefs.h >>conftest.$ac_ext
2020cat >>conftest.$ac_ext <<_ACEOF
2021/* end confdefs.h.  */
2022
2023int
2024main ()
2025{
2026
2027  ;
2028  return 0;
2029}
2030_ACEOF
2031rm -f conftest.o conftest.obj
2032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2033  (eval $ac_compile) 2>&5
2034  ac_status=$?
2035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036  (exit $ac_status); }; then
2037  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2038  case $ac_file in
2039    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2040    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2041       break;;
2042  esac
2043done
2044else
2045  echo "$as_me: failed program was:" >&5
2046sed 's/^/| /' conftest.$ac_ext >&5
2047
2048{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2049See \`config.log' for more details." >&5
2050echo "$as_me: error: cannot compute suffix of object files: cannot compile
2051See \`config.log' for more details." >&2;}
2052   { (exit 1); exit 1; }; }
2053fi
2054
2055rm -f conftest.$ac_cv_objext conftest.$ac_ext
2056fi
2057echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2058echo "${ECHO_T}$ac_cv_objext" >&6
2059OBJEXT=$ac_cv_objext
2060ac_objext=$OBJEXT
2061echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2062echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2063if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2064  echo $ECHO_N "(cached) $ECHO_C" >&6
2065else
2066  cat >conftest.$ac_ext <<_ACEOF
2067/* confdefs.h.  */
2068_ACEOF
2069cat confdefs.h >>conftest.$ac_ext
2070cat >>conftest.$ac_ext <<_ACEOF
2071/* end confdefs.h.  */
2072
2073int
2074main ()
2075{
2076#ifndef __GNUC__
2077       choke me
2078#endif
2079
2080  ;
2081  return 0;
2082}
2083_ACEOF
2084rm -f conftest.$ac_objext
2085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2086  (eval $ac_compile) 2>conftest.er1
2087  ac_status=$?
2088  grep -v '^ *+' conftest.er1 >conftest.err
2089  rm -f conftest.er1
2090  cat conftest.err >&5
2091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092  (exit $ac_status); } &&
2093         { ac_try='test -z "$ac_cxx_werror_flag"
2094                         || test ! -s conftest.err'
2095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096  (eval $ac_try) 2>&5
2097  ac_status=$?
2098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099  (exit $ac_status); }; } &&
2100         { ac_try='test -s conftest.$ac_objext'
2101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2102  (eval $ac_try) 2>&5
2103  ac_status=$?
2104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105  (exit $ac_status); }; }; then
2106  ac_compiler_gnu=yes
2107else
2108  echo "$as_me: failed program was:" >&5
2109sed 's/^/| /' conftest.$ac_ext >&5
2110
2111ac_compiler_gnu=no
2112fi
2113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2114ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2115
2116fi
2117echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2118echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2119GXX=`test $ac_compiler_gnu = yes && echo yes`
2120ac_test_CXXFLAGS=${CXXFLAGS+set}
2121ac_save_CXXFLAGS=$CXXFLAGS
2122CXXFLAGS="-g"
2123echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2124echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2125if test "${ac_cv_prog_cxx_g+set}" = set; then
2126  echo $ECHO_N "(cached) $ECHO_C" >&6
2127else
2128  cat >conftest.$ac_ext <<_ACEOF
2129/* confdefs.h.  */
2130_ACEOF
2131cat confdefs.h >>conftest.$ac_ext
2132cat >>conftest.$ac_ext <<_ACEOF
2133/* end confdefs.h.  */
2134
2135int
2136main ()
2137{
2138
2139  ;
2140  return 0;
2141}
2142_ACEOF
2143rm -f conftest.$ac_objext
2144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2145  (eval $ac_compile) 2>conftest.er1
2146  ac_status=$?
2147  grep -v '^ *+' conftest.er1 >conftest.err
2148  rm -f conftest.er1
2149  cat conftest.err >&5
2150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151  (exit $ac_status); } &&
2152         { ac_try='test -z "$ac_cxx_werror_flag"
2153                         || test ! -s conftest.err'
2154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2155  (eval $ac_try) 2>&5
2156  ac_status=$?
2157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158  (exit $ac_status); }; } &&
2159         { ac_try='test -s conftest.$ac_objext'
2160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2161  (eval $ac_try) 2>&5
2162  ac_status=$?
2163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164  (exit $ac_status); }; }; then
2165  ac_cv_prog_cxx_g=yes
2166else
2167  echo "$as_me: failed program was:" >&5
2168sed 's/^/| /' conftest.$ac_ext >&5
2169
2170ac_cv_prog_cxx_g=no
2171fi
2172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2173fi
2174echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2175echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2176if test "$ac_test_CXXFLAGS" = set; then
2177  CXXFLAGS=$ac_save_CXXFLAGS
2178elif test $ac_cv_prog_cxx_g = yes; then
2179  if test "$GXX" = yes; then
2180    CXXFLAGS="-g -O2"
2181  else
2182    CXXFLAGS="-g"
2183  fi
2184else
2185  if test "$GXX" = yes; then
2186    CXXFLAGS="-O2"
2187  else
2188    CXXFLAGS=
2189  fi
2190fi
2191for ac_declaration in \
2192   '' \
2193   'extern "C" void std::exit (int) throw (); using std::exit;' \
2194   'extern "C" void std::exit (int); using std::exit;' \
2195   'extern "C" void exit (int) throw ();' \
2196   'extern "C" void exit (int);' \
2197   'void exit (int);'
2198do
2199  cat >conftest.$ac_ext <<_ACEOF
2200/* confdefs.h.  */
2201_ACEOF
2202cat confdefs.h >>conftest.$ac_ext
2203cat >>conftest.$ac_ext <<_ACEOF
2204/* end confdefs.h.  */
2205$ac_declaration
2206#include <stdlib.h>
2207int
2208main ()
2209{
2210exit (42);
2211  ;
2212  return 0;
2213}
2214_ACEOF
2215rm -f conftest.$ac_objext
2216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2217  (eval $ac_compile) 2>conftest.er1
2218  ac_status=$?
2219  grep -v '^ *+' conftest.er1 >conftest.err
2220  rm -f conftest.er1
2221  cat conftest.err >&5
2222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223  (exit $ac_status); } &&
2224         { ac_try='test -z "$ac_cxx_werror_flag"
2225                         || test ! -s conftest.err'
2226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2227  (eval $ac_try) 2>&5
2228  ac_status=$?
2229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230  (exit $ac_status); }; } &&
2231         { ac_try='test -s conftest.$ac_objext'
2232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233  (eval $ac_try) 2>&5
2234  ac_status=$?
2235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236  (exit $ac_status); }; }; then
2237  :
2238else
2239  echo "$as_me: failed program was:" >&5
2240sed 's/^/| /' conftest.$ac_ext >&5
2241
2242continue
2243fi
2244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2245  cat >conftest.$ac_ext <<_ACEOF
2246/* confdefs.h.  */
2247_ACEOF
2248cat confdefs.h >>conftest.$ac_ext
2249cat >>conftest.$ac_ext <<_ACEOF
2250/* end confdefs.h.  */
2251$ac_declaration
2252int
2253main ()
2254{
2255exit (42);
2256  ;
2257  return 0;
2258}
2259_ACEOF
2260rm -f conftest.$ac_objext
2261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2262  (eval $ac_compile) 2>conftest.er1
2263  ac_status=$?
2264  grep -v '^ *+' conftest.er1 >conftest.err
2265  rm -f conftest.er1
2266  cat conftest.err >&5
2267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268  (exit $ac_status); } &&
2269         { ac_try='test -z "$ac_cxx_werror_flag"
2270                         || test ! -s conftest.err'
2271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272  (eval $ac_try) 2>&5
2273  ac_status=$?
2274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275  (exit $ac_status); }; } &&
2276         { ac_try='test -s conftest.$ac_objext'
2277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278  (eval $ac_try) 2>&5
2279  ac_status=$?
2280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281  (exit $ac_status); }; }; then
2282  break
2283else
2284  echo "$as_me: failed program was:" >&5
2285sed 's/^/| /' conftest.$ac_ext >&5
2286
2287fi
2288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2289done
2290rm -f conftest*
2291if test -n "$ac_declaration"; then
2292  echo '#ifdef __cplusplus' >>confdefs.h
2293  echo $ac_declaration      >>confdefs.h
2294  echo '#endif'             >>confdefs.h
2295fi
2296
2297ac_ext=c
2298ac_cpp='$CPP $CPPFLAGS'
2299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2301ac_compiler_gnu=$ac_cv_c_compiler_gnu
2302DEPDIR="${am__leading_dot}deps"
2303
2304          ac_config_commands="$ac_config_commands depfiles"
2305
2306
2307am_make=${MAKE-make}
2308cat > confinc << 'END'
2309am__doit:
2310        @echo done
2311.PHONY: am__doit
2312END
2313# If we don't find an include directive, just comment out the code.
2314echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2315echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2316am__include="#"
2317am__quote=
2318_am_result=none
2319# First try GNU make style include.
2320echo "include confinc" > confmf
2321# We grep out `Entering directory' and `Leaving directory'
2322# messages which can occur if `w' ends up in MAKEFLAGS.
2323# In particular we don't look at `^make:' because GNU make might
2324# be invoked under some other name (usually "gmake"), in which
2325# case it prints its new name instead of `make'.
2326if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2327   am__include=include
2328   am__quote=
2329   _am_result=GNU
2330fi
2331# Now try BSD make style include.
2332if test "$am__include" = "#"; then
2333   echo '.include "confinc"' > confmf
2334   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2335      am__include=.include
2336      am__quote="\""
2337      _am_result=BSD
2338   fi
2339fi
2340
2341
2342echo "$as_me:$LINENO: result: $_am_result" >&5
2343echo "${ECHO_T}$_am_result" >&6
2344rm -f confinc confmf
2345
2346# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2347if test "${enable_dependency_tracking+set}" = set; then
2348  enableval="$enable_dependency_tracking"
2349
2350fi;
2351if test "x$enable_dependency_tracking" != xno; then
2352  am_depcomp="$ac_aux_dir/depcomp"
2353  AMDEPBACKSLASH='\'
2354fi
2355
2356
2357if test "x$enable_dependency_tracking" != xno; then
2358  AMDEP_TRUE=
2359  AMDEP_FALSE='#'
2360else
2361  AMDEP_TRUE='#'
2362  AMDEP_FALSE=
2363fi
2364
2365
2366
2367
2368depcc="$CXX"  am_compiler_list=
2369
2370echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2371echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2372if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2373  echo $ECHO_N "(cached) $ECHO_C" >&6
2374else
2375  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2376  # We make a subdir and do the tests there.  Otherwise we can end up
2377  # making bogus files that we don't know about and never remove.  For
2378  # instance it was reported that on HP-UX the gcc test will end up
2379  # making a dummy file named `D' -- because `-MD' means `put the output
2380  # in D'.
2381  mkdir conftest.dir
2382  # Copy depcomp to subdir because otherwise we won't find it if we're
2383  # using a relative directory.
2384  cp "$am_depcomp" conftest.dir
2385  cd conftest.dir
2386  # We will build objects and dependencies in a subdirectory because
2387  # it helps to detect inapplicable dependency modes.  For instance
2388  # both Tru64's cc and ICC support -MD to output dependencies as a
2389  # side effect of compilation, but ICC will put the dependencies in
2390  # the current directory while Tru64 will put them in the object
2391  # directory.
2392  mkdir sub
2393
2394  am_cv_CXX_dependencies_compiler_type=none
2395  if test "$am_compiler_list" = ""; then
2396     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2397  fi
2398  for depmode in $am_compiler_list; do
2399    # Setup a source with many dependencies, because some compilers
2400    # like to wrap large dependency lists on column 80 (with \), and
2401    # we should not choose a depcomp mode which is confused by this.
2402    #
2403    # We need to recreate these files for each test, as the compiler may
2404    # overwrite some of them when testing with obscure command lines.
2405    # This happens at least with the AIX C compiler.
2406    : > sub/conftest.c
2407    for i in 1 2 3 4 5 6; do
2408      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2409      : > sub/conftst$i.h
2410    done
2411    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2412
2413    case $depmode in
2414    nosideeffect)
2415      # after this tag, mechanisms are not by side-effect, so they'll
2416      # only be used when explicitly requested
2417      if test "x$enable_dependency_tracking" = xyes; then
2418        continue
2419      else
2420        break
2421      fi
2422      ;;
2423    none) break ;;
2424    esac
2425    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2426    # mode.  It turns out that the SunPro C++ compiler does not properly
2427    # handle `-M -o', and we need to detect this.
2428    if depmode=$depmode \
2429       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2430       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2431       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2432         >/dev/null 2>conftest.err &&
2433       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2434       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2435       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2436      # icc doesn't choke on unknown options, it will just issue warnings
2437      # (even with -Werror).  So we grep stderr for any message
2438      # that says an option was ignored.
2439      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2440        am_cv_CXX_dependencies_compiler_type=$depmode
2441        break
2442      fi
2443    fi
2444  done
2445
2446  cd ..
2447  rm -rf conftest.dir
2448else
2449  am_cv_CXX_dependencies_compiler_type=none
2450fi
2451
2452fi
2453echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2454echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2455CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2456
2457
2458
2459if
2460  test "x$enable_dependency_tracking" != xno \
2461  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2462  am__fastdepCXX_TRUE=
2463  am__fastdepCXX_FALSE='#'
2464else
2465  am__fastdepCXX_TRUE='#'
2466  am__fastdepCXX_FALSE=
2467fi
2468
2469
2470ac_ext=c
2471ac_cpp='$CPP $CPPFLAGS'
2472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2474ac_compiler_gnu=$ac_cv_c_compiler_gnu
2475if test -n "$ac_tool_prefix"; then
2476  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2477set dummy ${ac_tool_prefix}gcc; ac_word=$2
2478echo "$as_me:$LINENO: checking for $ac_word" >&5
2479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2480if test "${ac_cv_prog_CC+set}" = set; then
2481  echo $ECHO_N "(cached) $ECHO_C" >&6
2482else
2483  if test -n "$CC"; then
2484  ac_cv_prog_CC="$CC" # Let the user override the test.
2485else
2486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487for as_dir in $PATH
2488do
2489  IFS=$as_save_IFS
2490  test -z "$as_dir" && as_dir=.
2491  for ac_exec_ext in '' $ac_executable_extensions; do
2492  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2493    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2494    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495    break 2
2496  fi
2497done
2498done
2499
2500fi
2501fi
2502CC=$ac_cv_prog_CC
2503if test -n "$CC"; then
2504  echo "$as_me:$LINENO: result: $CC" >&5
2505echo "${ECHO_T}$CC" >&6
2506else
2507  echo "$as_me:$LINENO: result: no" >&5
2508echo "${ECHO_T}no" >&6
2509fi
2510
2511fi
2512if test -z "$ac_cv_prog_CC"; then
2513  ac_ct_CC=$CC
2514  # Extract the first word of "gcc", so it can be a program name with args.
2515set dummy gcc; ac_word=$2
2516echo "$as_me:$LINENO: checking for $ac_word" >&5
2517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2518if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2519  echo $ECHO_N "(cached) $ECHO_C" >&6
2520else
2521  if test -n "$ac_ct_CC"; then
2522  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2523else
2524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525for as_dir in $PATH
2526do
2527  IFS=$as_save_IFS
2528  test -z "$as_dir" && as_dir=.
2529  for ac_exec_ext in '' $ac_executable_extensions; do
2530  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2531    ac_cv_prog_ac_ct_CC="gcc"
2532    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2533    break 2
2534  fi
2535done
2536done
2537
2538fi
2539fi
2540ac_ct_CC=$ac_cv_prog_ac_ct_CC
2541if test -n "$ac_ct_CC"; then
2542  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2543echo "${ECHO_T}$ac_ct_CC" >&6
2544else
2545  echo "$as_me:$LINENO: result: no" >&5
2546echo "${ECHO_T}no" >&6
2547fi
2548
2549  CC=$ac_ct_CC
2550else
2551  CC="$ac_cv_prog_CC"
2552fi
2553
2554if test -z "$CC"; then
2555  if test -n "$ac_tool_prefix"; then
2556  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2557set dummy ${ac_tool_prefix}cc; ac_word=$2
2558echo "$as_me:$LINENO: checking for $ac_word" >&5
2559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2560if test "${ac_cv_prog_CC+set}" = set; then
2561  echo $ECHO_N "(cached) $ECHO_C" >&6
2562else
2563  if test -n "$CC"; then
2564  ac_cv_prog_CC="$CC" # Let the user override the test.
2565else
2566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567for as_dir in $PATH
2568do
2569  IFS=$as_save_IFS
2570  test -z "$as_dir" && as_dir=.
2571  for ac_exec_ext in '' $ac_executable_extensions; do
2572  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2573    ac_cv_prog_CC="${ac_tool_prefix}cc"
2574    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2575    break 2
2576  fi
2577done
2578done
2579
2580fi
2581fi
2582CC=$ac_cv_prog_CC
2583if test -n "$CC"; then
2584  echo "$as_me:$LINENO: result: $CC" >&5
2585echo "${ECHO_T}$CC" >&6
2586else
2587  echo "$as_me:$LINENO: result: no" >&5
2588echo "${ECHO_T}no" >&6
2589fi
2590
2591fi
2592if test -z "$ac_cv_prog_CC"; then
2593  ac_ct_CC=$CC
2594  # Extract the first word of "cc", so it can be a program name with args.
2595set dummy cc; ac_word=$2
2596echo "$as_me:$LINENO: checking for $ac_word" >&5
2597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2598if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2599  echo $ECHO_N "(cached) $ECHO_C" >&6
2600else
2601  if test -n "$ac_ct_CC"; then
2602  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2603else
2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605for as_dir in $PATH
2606do
2607  IFS=$as_save_IFS
2608  test -z "$as_dir" && as_dir=.
2609  for ac_exec_ext in '' $ac_executable_extensions; do
2610  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2611    ac_cv_prog_ac_ct_CC="cc"
2612    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613    break 2
2614  fi
2615done
2616done
2617
2618fi
2619fi
2620ac_ct_CC=$ac_cv_prog_ac_ct_CC
2621if test -n "$ac_ct_CC"; then
2622  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2623echo "${ECHO_T}$ac_ct_CC" >&6
2624else
2625  echo "$as_me:$LINENO: result: no" >&5
2626echo "${ECHO_T}no" >&6
2627fi
2628
2629  CC=$ac_ct_CC
2630else
2631  CC="$ac_cv_prog_CC"
2632fi
2633
2634fi
2635if test -z "$CC"; then
2636  # Extract the first word of "cc", so it can be a program name with args.
2637set dummy cc; ac_word=$2
2638echo "$as_me:$LINENO: checking for $ac_word" >&5
2639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2640if test "${ac_cv_prog_CC+set}" = set; then
2641  echo $ECHO_N "(cached) $ECHO_C" >&6
2642else
2643  if test -n "$CC"; then
2644  ac_cv_prog_CC="$CC" # Let the user override the test.
2645else
2646  ac_prog_rejected=no
2647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648for as_dir in $PATH
2649do
2650  IFS=$as_save_IFS
2651  test -z "$as_dir" && as_dir=.
2652  for ac_exec_ext in '' $ac_executable_extensions; do
2653  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2654    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2655       ac_prog_rejected=yes
2656       continue
2657     fi
2658    ac_cv_prog_CC="cc"
2659    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660    break 2
2661  fi
2662done
2663done
2664
2665if test $ac_prog_rejected = yes; then
2666  # We found a bogon in the path, so make sure we never use it.
2667  set dummy $ac_cv_prog_CC
2668  shift
2669  if test $# != 0; then
2670    # We chose a different compiler from the bogus one.
2671    # However, it has the same basename, so the bogon will be chosen
2672    # first if we set CC to just the basename; use the full file name.
2673    shift
2674    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2675  fi
2676fi
2677fi
2678fi
2679CC=$ac_cv_prog_CC
2680if test -n "$CC"; then
2681  echo "$as_me:$LINENO: result: $CC" >&5
2682echo "${ECHO_T}$CC" >&6
2683else
2684  echo "$as_me:$LINENO: result: no" >&5
2685echo "${ECHO_T}no" >&6
2686fi
2687
2688fi
2689if test -z "$CC"; then
2690  if test -n "$ac_tool_prefix"; then
2691  for ac_prog in cl
2692  do
2693    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2694set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2695echo "$as_me:$LINENO: checking for $ac_word" >&5
2696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2697if test "${ac_cv_prog_CC+set}" = set; then
2698  echo $ECHO_N "(cached) $ECHO_C" >&6
2699else
2700  if test -n "$CC"; then
2701  ac_cv_prog_CC="$CC" # Let the user override the test.
2702else
2703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704for as_dir in $PATH
2705do
2706  IFS=$as_save_IFS
2707  test -z "$as_dir" && as_dir=.
2708  for ac_exec_ext in '' $ac_executable_extensions; do
2709  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2710    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2711    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2712    break 2
2713  fi
2714done
2715done
2716
2717fi
2718fi
2719CC=$ac_cv_prog_CC
2720if test -n "$CC"; then
2721  echo "$as_me:$LINENO: result: $CC" >&5
2722echo "${ECHO_T}$CC" >&6
2723else
2724  echo "$as_me:$LINENO: result: no" >&5
2725echo "${ECHO_T}no" >&6
2726fi
2727
2728    test -n "$CC" && break
2729  done
2730fi
2731if test -z "$CC"; then
2732  ac_ct_CC=$CC
2733  for ac_prog in cl
2734do
2735  # Extract the first word of "$ac_prog", so it can be a program name with args.
2736set dummy $ac_prog; ac_word=$2
2737echo "$as_me:$LINENO: checking for $ac_word" >&5
2738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2739if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2740  echo $ECHO_N "(cached) $ECHO_C" >&6
2741else
2742  if test -n "$ac_ct_CC"; then
2743  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2744else
2745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746for as_dir in $PATH
2747do
2748  IFS=$as_save_IFS
2749  test -z "$as_dir" && as_dir=.
2750  for ac_exec_ext in '' $ac_executable_extensions; do
2751  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2752    ac_cv_prog_ac_ct_CC="$ac_prog"
2753    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2754    break 2
2755  fi
2756done
2757done
2758
2759fi
2760fi
2761ac_ct_CC=$ac_cv_prog_ac_ct_CC
2762if test -n "$ac_ct_CC"; then
2763  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2764echo "${ECHO_T}$ac_ct_CC" >&6
2765else
2766  echo "$as_me:$LINENO: result: no" >&5
2767echo "${ECHO_T}no" >&6
2768fi
2769
2770  test -n "$ac_ct_CC" && break
2771done
2772
2773  CC=$ac_ct_CC
2774fi
2775
2776fi
2777
2778
2779test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2780See \`config.log' for more details." >&5
2781echo "$as_me: error: no acceptable C compiler found in \$PATH
2782See \`config.log' for more details." >&2;}
2783   { (exit 1); exit 1; }; }
2784
2785# Provide some information about the compiler.
2786echo "$as_me:$LINENO:" \
2787     "checking for C compiler version" >&5
2788ac_compiler=`set X $ac_compile; echo $2`
2789{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2790  (eval $ac_compiler --version </dev/null >&5) 2>&5
2791  ac_status=$?
2792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793  (exit $ac_status); }
2794{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2795  (eval $ac_compiler -v </dev/null >&5) 2>&5
2796  ac_status=$?
2797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798  (exit $ac_status); }
2799{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2800  (eval $ac_compiler -V </dev/null >&5) 2>&5
2801  ac_status=$?
2802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803  (exit $ac_status); }
2804
2805echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2806echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2807if test "${ac_cv_c_compiler_gnu+set}" = set; then
2808  echo $ECHO_N "(cached) $ECHO_C" >&6
2809else
2810  cat >conftest.$ac_ext <<_ACEOF
2811/* confdefs.h.  */
2812_ACEOF
2813cat confdefs.h >>conftest.$ac_ext
2814cat >>conftest.$ac_ext <<_ACEOF
2815/* end confdefs.h.  */
2816
2817int
2818main ()
2819{
2820#ifndef __GNUC__
2821       choke me
2822#endif
2823
2824  ;
2825  return 0;
2826}
2827_ACEOF
2828rm -f conftest.$ac_objext
2829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830  (eval $ac_compile) 2>conftest.er1
2831  ac_status=$?
2832  grep -v '^ *+' conftest.er1 >conftest.err
2833  rm -f conftest.er1
2834  cat conftest.err >&5
2835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836  (exit $ac_status); } &&
2837         { ac_try='test -z "$ac_c_werror_flag"
2838                         || test ! -s conftest.err'
2839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840  (eval $ac_try) 2>&5
2841  ac_status=$?
2842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843  (exit $ac_status); }; } &&
2844         { ac_try='test -s conftest.$ac_objext'
2845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846  (eval $ac_try) 2>&5
2847  ac_status=$?
2848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849  (exit $ac_status); }; }; then
2850  ac_compiler_gnu=yes
2851else
2852  echo "$as_me: failed program was:" >&5
2853sed 's/^/| /' conftest.$ac_ext >&5
2854
2855ac_compiler_gnu=no
2856fi
2857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2858ac_cv_c_compiler_gnu=$ac_compiler_gnu
2859
2860fi
2861echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2862echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2863GCC=`test $ac_compiler_gnu = yes && echo yes`
2864ac_test_CFLAGS=${CFLAGS+set}
2865ac_save_CFLAGS=$CFLAGS
2866CFLAGS="-g"
2867echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2868echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2869if test "${ac_cv_prog_cc_g+set}" = set; then
2870  echo $ECHO_N "(cached) $ECHO_C" >&6
2871else
2872  cat >conftest.$ac_ext <<_ACEOF
2873/* confdefs.h.  */
2874_ACEOF
2875cat confdefs.h >>conftest.$ac_ext
2876cat >>conftest.$ac_ext <<_ACEOF
2877/* end confdefs.h.  */
2878
2879int
2880main ()
2881{
2882
2883  ;
2884  return 0;
2885}
2886_ACEOF
2887rm -f conftest.$ac_objext
2888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2889  (eval $ac_compile) 2>conftest.er1
2890  ac_status=$?
2891  grep -v '^ *+' conftest.er1 >conftest.err
2892  rm -f conftest.er1
2893  cat conftest.err >&5
2894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895  (exit $ac_status); } &&
2896         { ac_try='test -z "$ac_c_werror_flag"
2897                         || test ! -s conftest.err'
2898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899  (eval $ac_try) 2>&5
2900  ac_status=$?
2901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902  (exit $ac_status); }; } &&
2903         { ac_try='test -s conftest.$ac_objext'
2904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905  (eval $ac_try) 2>&5
2906  ac_status=$?
2907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908  (exit $ac_status); }; }; then
2909  ac_cv_prog_cc_g=yes
2910else
2911  echo "$as_me: failed program was:" >&5
2912sed 's/^/| /' conftest.$ac_ext >&5
2913
2914ac_cv_prog_cc_g=no
2915fi
2916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2917fi
2918echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2919echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2920if test "$ac_test_CFLAGS" = set; then
2921  CFLAGS=$ac_save_CFLAGS
2922elif test $ac_cv_prog_cc_g = yes; then
2923  if test "$GCC" = yes; then
2924    CFLAGS="-g -O2"
2925  else
2926    CFLAGS="-g"
2927  fi
2928else
2929  if test "$GCC" = yes; then
2930    CFLAGS="-O2"
2931  else
2932    CFLAGS=
2933  fi
2934fi
2935echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2936echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2937if test "${ac_cv_prog_cc_stdc+set}" = set; then
2938  echo $ECHO_N "(cached) $ECHO_C" >&6
2939else
2940  ac_cv_prog_cc_stdc=no
2941ac_save_CC=$CC
2942cat >conftest.$ac_ext <<_ACEOF
2943/* confdefs.h.  */
2944_ACEOF
2945cat confdefs.h >>conftest.$ac_ext
2946cat >>conftest.$ac_ext <<_ACEOF
2947/* end confdefs.h.  */
2948#include <stdarg.h>
2949#include <stdio.h>
2950#include <sys/types.h>
2951#include <sys/stat.h>
2952/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2953struct buf { int x; };
2954FILE * (*rcsopen) (struct buf *, struct stat *, int);
2955static char *e (p, i)
2956     char **p;
2957     int i;
2958{
2959  return p[i];
2960}
2961static char *f (char * (*g) (char **, int), char **p, ...)
2962{
2963  char *s;
2964  va_list v;
2965  va_start (v,p);
2966  s = g (p, va_arg (v,int));
2967  va_end (v);
2968  return s;
2969}
2970
2971/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2972   function prototypes and stuff, but not '\xHH' hex character constants.
2973   These don't provoke an error unfortunately, instead are silently treated
2974   as 'x'.  The following induces an error, until -std1 is added to get
2975   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2976   array size at least.  It's necessary to write '\x00'==0 to get something
2977   that's true only with -std1.  */
2978int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2979
2980int test (int i, double x);
2981struct s1 {int (*f) (int a);};
2982struct s2 {int (*f) (double a);};
2983int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2984int argc;
2985char **argv;
2986int
2987main ()
2988{
2989return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2990  ;
2991  return 0;
2992}
2993_ACEOF
2994# Don't try gcc -ansi; that turns off useful extensions and
2995# breaks some systems' header files.
2996# AIX                   -qlanglvl=ansi
2997# Ultrix and OSF/1      -std1
2998# HP-UX 10.20 and later -Ae
2999# HP-UX older versions  -Aa -D_HPUX_SOURCE
3000# SVR4                  -Xc -D__EXTENSIONS__
3001for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3002do
3003  CC="$ac_save_CC $ac_arg"
3004  rm -f conftest.$ac_objext
3005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3006  (eval $ac_compile) 2>conftest.er1
3007  ac_status=$?
3008  grep -v '^ *+' conftest.er1 >conftest.err
3009  rm -f conftest.er1
3010  cat conftest.err >&5
3011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012  (exit $ac_status); } &&
3013         { ac_try='test -z "$ac_c_werror_flag"
3014                         || test ! -s conftest.err'
3015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3016  (eval $ac_try) 2>&5
3017  ac_status=$?
3018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019  (exit $ac_status); }; } &&
3020         { ac_try='test -s conftest.$ac_objext'
3021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022  (eval $ac_try) 2>&5
3023  ac_status=$?
3024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025  (exit $ac_status); }; }; then
3026  ac_cv_prog_cc_stdc=$ac_arg
3027break
3028else
3029  echo "$as_me: failed program was:" >&5
3030sed 's/^/| /' conftest.$ac_ext >&5
3031
3032fi
3033rm -f conftest.err conftest.$ac_objext
3034done
3035rm -f conftest.$ac_ext conftest.$ac_objext
3036CC=$ac_save_CC
3037
3038fi
3039
3040case "x$ac_cv_prog_cc_stdc" in
3041  x|xno)
3042    echo "$as_me:$LINENO: result: none needed" >&5
3043echo "${ECHO_T}none needed" >&6 ;;
3044  *)
3045    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3046echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3047    CC="$CC $ac_cv_prog_cc_stdc" ;;
3048esac
3049
3050# Some people use a C++ compiler to compile C.  Since we use `exit',
3051# in C++ we need to declare it.  In case someone uses the same compiler
3052# for both compiling C and C++ we need to have the C++ compiler decide
3053# the declaration of exit, since it's the most demanding environment.
3054cat >conftest.$ac_ext <<_ACEOF
3055#ifndef __cplusplus
3056  choke me
3057#endif
3058_ACEOF
3059rm -f conftest.$ac_objext
3060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3061  (eval $ac_compile) 2>conftest.er1
3062  ac_status=$?
3063  grep -v '^ *+' conftest.er1 >conftest.err
3064  rm -f conftest.er1
3065  cat conftest.err >&5
3066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067  (exit $ac_status); } &&
3068         { ac_try='test -z "$ac_c_werror_flag"
3069                         || test ! -s conftest.err'
3070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3071  (eval $ac_try) 2>&5
3072  ac_status=$?
3073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074  (exit $ac_status); }; } &&
3075         { ac_try='test -s conftest.$ac_objext'
3076  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3077  (eval $ac_try) 2>&5
3078  ac_status=$?
3079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080  (exit $ac_status); }; }; then
3081  for ac_declaration in \
3082   '' \
3083   'extern "C" void std::exit (int) throw (); using std::exit;' \
3084   'extern "C" void std::exit (int); using std::exit;' \
3085   'extern "C" void exit (int) throw ();' \
3086   'extern "C" void exit (int);' \
3087   'void exit (int);'
3088do
3089  cat >conftest.$ac_ext <<_ACEOF
3090/* confdefs.h.  */
3091_ACEOF
3092cat confdefs.h >>conftest.$ac_ext
3093cat >>conftest.$ac_ext <<_ACEOF
3094/* end confdefs.h.  */
3095$ac_declaration
3096#include <stdlib.h>
3097int
3098main ()
3099{
3100exit (42);
3101  ;
3102  return 0;
3103}
3104_ACEOF
3105rm -f conftest.$ac_objext
3106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3107  (eval $ac_compile) 2>conftest.er1
3108  ac_status=$?
3109  grep -v '^ *+' conftest.er1 >conftest.err
3110  rm -f conftest.er1
3111  cat conftest.err >&5
3112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113  (exit $ac_status); } &&
3114         { ac_try='test -z "$ac_c_werror_flag"
3115                         || test ! -s conftest.err'
3116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3117  (eval $ac_try) 2>&5
3118  ac_status=$?
3119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120  (exit $ac_status); }; } &&
3121         { ac_try='test -s conftest.$ac_objext'
3122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3123  (eval $ac_try) 2>&5
3124  ac_status=$?
3125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126  (exit $ac_status); }; }; then
3127  :
3128else
3129  echo "$as_me: failed program was:" >&5
3130sed 's/^/| /' conftest.$ac_ext >&5
3131
3132continue
3133fi
3134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3135  cat >conftest.$ac_ext <<_ACEOF
3136/* confdefs.h.  */
3137_ACEOF
3138cat confdefs.h >>conftest.$ac_ext
3139cat >>conftest.$ac_ext <<_ACEOF
3140/* end confdefs.h.  */
3141$ac_declaration
3142int
3143main ()
3144{
3145exit (42);
3146  ;
3147  return 0;
3148}
3149_ACEOF
3150rm -f conftest.$ac_objext
3151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3152  (eval $ac_compile) 2>conftest.er1
3153  ac_status=$?
3154  grep -v '^ *+' conftest.er1 >conftest.err
3155  rm -f conftest.er1
3156  cat conftest.err >&5
3157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158  (exit $ac_status); } &&
3159         { ac_try='test -z "$ac_c_werror_flag"
3160                         || test ! -s conftest.err'
3161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3162  (eval $ac_try) 2>&5
3163  ac_status=$?
3164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165  (exit $ac_status); }; } &&
3166         { ac_try='test -s conftest.$ac_objext'
3167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3168  (eval $ac_try) 2>&5
3169  ac_status=$?
3170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171  (exit $ac_status); }; }; then
3172  break
3173else
3174  echo "$as_me: failed program was:" >&5
3175sed 's/^/| /' conftest.$ac_ext >&5
3176
3177fi
3178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3179done
3180rm -f conftest*
3181if test -n "$ac_declaration"; then
3182  echo '#ifdef __cplusplus' >>confdefs.h
3183  echo $ac_declaration      >>confdefs.h
3184  echo '#endif'             >>confdefs.h
3185fi
3186
3187else
3188  echo "$as_me: failed program was:" >&5
3189sed 's/^/| /' conftest.$ac_ext >&5
3190
3191fi
3192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3193ac_ext=c
3194ac_cpp='$CPP $CPPFLAGS'
3195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3197ac_compiler_gnu=$ac_cv_c_compiler_gnu
3198
3199depcc="$CC"   am_compiler_list=
3200
3201echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3202echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3203if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3204  echo $ECHO_N "(cached) $ECHO_C" >&6
3205else
3206  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3207  # We make a subdir and do the tests there.  Otherwise we can end up
3208  # making bogus files that we don't know about and never remove.  For
3209  # instance it was reported that on HP-UX the gcc test will end up
3210  # making a dummy file named `D' -- because `-MD' means `put the output
3211  # in D'.
3212  mkdir conftest.dir
3213  # Copy depcomp to subdir because otherwise we won't find it if we're
3214  # using a relative directory.
3215  cp "$am_depcomp" conftest.dir
3216  cd conftest.dir
3217  # We will build objects and dependencies in a subdirectory because
3218  # it helps to detect inapplicable dependency modes.  For instance
3219  # both Tru64's cc and ICC support -MD to output dependencies as a
3220  # side effect of compilation, but ICC will put the dependencies in
3221  # the current directory while Tru64 will put them in the object
3222  # directory.
3223  mkdir sub
3224
3225  am_cv_CC_dependencies_compiler_type=none
3226  if test "$am_compiler_list" = ""; then
3227     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3228  fi
3229  for depmode in $am_compiler_list; do
3230    # Setup a source with many dependencies, because some compilers
3231    # like to wrap large dependency lists on column 80 (with \), and
3232    # we should not choose a depcomp mode which is confused by this.
3233    #
3234    # We need to recreate these files for each test, as the compiler may
3235    # overwrite some of them when testing with obscure command lines.
3236    # This happens at least with the AIX C compiler.
3237    : > sub/conftest.c
3238    for i in 1 2 3 4 5 6; do
3239      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3240      : > sub/conftst$i.h
3241    done
3242    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3243
3244    case $depmode in
3245    nosideeffect)
3246      # after this tag, mechanisms are not by side-effect, so they'll
3247      # only be used when explicitly requested
3248      if test "x$enable_dependency_tracking" = xyes; then
3249        continue
3250      else
3251        break
3252      fi
3253      ;;
3254    none) break ;;
3255    esac
3256    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3257    # mode.  It turns out that the SunPro C++ compiler does not properly
3258    # handle `-M -o', and we need to detect this.
3259    if depmode=$depmode \
3260       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3261       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3262       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3263         >/dev/null 2>conftest.err &&
3264       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3265       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3266       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3267      # icc doesn't choke on unknown options, it will just issue warnings
3268      # (even with -Werror).  So we grep stderr for any message
3269      # that says an option was ignored.
3270      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3271        am_cv_CC_dependencies_compiler_type=$depmode
3272        break
3273      fi
3274    fi
3275  done
3276
3277  cd ..
3278  rm -rf conftest.dir
3279else
3280  am_cv_CC_dependencies_compiler_type=none
3281fi
3282
3283fi
3284echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3285echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3286CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3287
3288
3289
3290if
3291  test "x$enable_dependency_tracking" != xno \
3292  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3293  am__fastdepCC_TRUE=
3294  am__fastdepCC_FALSE='#'
3295else
3296  am__fastdepCC_TRUE='#'
3297  am__fastdepCC_FALSE=
3298fi
3299
3300
3301
3302# Checks for libraries.
3303
3304#  cheking for libGL
3305
3306ac_ext=c
3307ac_cpp='$CPP $CPPFLAGS'
3308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3310ac_compiler_gnu=$ac_cv_c_compiler_gnu
3311echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3312echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3313# On Suns, sometimes $CPP names a directory.
3314if test -n "$CPP" && test -d "$CPP"; then
3315  CPP=
3316fi
3317if test -z "$CPP"; then
3318  if test "${ac_cv_prog_CPP+set}" = set; then
3319  echo $ECHO_N "(cached) $ECHO_C" >&6
3320else
3321      # Double quotes because CPP needs to be expanded
3322    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3323    do
3324      ac_preproc_ok=false
3325for ac_c_preproc_warn_flag in '' yes
3326do
3327  # Use a header file that comes with gcc, so configuring glibc
3328  # with a fresh cross-compiler works.
3329  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3330  # <limits.h> exists even on freestanding compilers.
3331  # On the NeXT, cc -E runs the code through the compiler's parser,
3332  # not just through cpp. "Syntax error" is here to catch this case.
3333  cat >conftest.$ac_ext <<_ACEOF
3334/* confdefs.h.  */
3335_ACEOF
3336cat confdefs.h >>conftest.$ac_ext
3337cat >>conftest.$ac_ext <<_ACEOF
3338/* end confdefs.h.  */
3339#ifdef __STDC__
3340# include <limits.h>
3341#else
3342# include <assert.h>
3343#endif
3344                     Syntax error
3345_ACEOF
3346if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3347  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3348  ac_status=$?
3349  grep -v '^ *+' conftest.er1 >conftest.err
3350  rm -f conftest.er1
3351  cat conftest.err >&5
3352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353  (exit $ac_status); } >/dev/null; then
3354  if test -s conftest.err; then
3355    ac_cpp_err=$ac_c_preproc_warn_flag
3356    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3357  else
3358    ac_cpp_err=
3359  fi
3360else
3361  ac_cpp_err=yes
3362fi
3363if test -z "$ac_cpp_err"; then
3364  :
3365else
3366  echo "$as_me: failed program was:" >&5
3367sed 's/^/| /' conftest.$ac_ext >&5
3368
3369  # Broken: fails on valid input.
3370continue
3371fi
3372rm -f conftest.err conftest.$ac_ext
3373
3374  # OK, works on sane cases.  Now check whether non-existent headers
3375  # can be detected and how.
3376  cat >conftest.$ac_ext <<_ACEOF
3377/* confdefs.h.  */
3378_ACEOF
3379cat confdefs.h >>conftest.$ac_ext
3380cat >>conftest.$ac_ext <<_ACEOF
3381/* end confdefs.h.  */
3382#include <ac_nonexistent.h>
3383_ACEOF
3384if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3385  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3386  ac_status=$?
3387  grep -v '^ *+' conftest.er1 >conftest.err
3388  rm -f conftest.er1
3389  cat conftest.err >&5
3390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391  (exit $ac_status); } >/dev/null; then
3392  if test -s conftest.err; then
3393    ac_cpp_err=$ac_c_preproc_warn_flag
3394    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3395  else
3396    ac_cpp_err=
3397  fi
3398else
3399  ac_cpp_err=yes
3400fi
3401if test -z "$ac_cpp_err"; then
3402  # Broken: success on invalid input.
3403continue
3404else
3405  echo "$as_me: failed program was:" >&5
3406sed 's/^/| /' conftest.$ac_ext >&5
3407
3408  # Passes both tests.
3409ac_preproc_ok=:
3410break
3411fi
3412rm -f conftest.err conftest.$ac_ext
3413
3414done
3415# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3416rm -f conftest.err conftest.$ac_ext
3417if $ac_preproc_ok; then
3418  break
3419fi
3420
3421    done
3422    ac_cv_prog_CPP=$CPP
3423
3424fi
3425  CPP=$ac_cv_prog_CPP
3426else
3427  ac_cv_prog_CPP=$CPP
3428fi
3429echo "$as_me:$LINENO: result: $CPP" >&5
3430echo "${ECHO_T}$CPP" >&6
3431ac_preproc_ok=false
3432for ac_c_preproc_warn_flag in '' yes
3433do
3434  # Use a header file that comes with gcc, so configuring glibc
3435  # with a fresh cross-compiler works.
3436  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3437  # <limits.h> exists even on freestanding compilers.
3438  # On the NeXT, cc -E runs the code through the compiler's parser,
3439  # not just through cpp. "Syntax error" is here to catch this case.
3440  cat >conftest.$ac_ext <<_ACEOF
3441/* confdefs.h.  */
3442_ACEOF
3443cat confdefs.h >>conftest.$ac_ext
3444cat >>conftest.$ac_ext <<_ACEOF
3445/* end confdefs.h.  */
3446#ifdef __STDC__
3447# include <limits.h>
3448#else
3449# include <assert.h>
3450#endif
3451                     Syntax error
3452_ACEOF
3453if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3454  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3455  ac_status=$?
3456  grep -v '^ *+' conftest.er1 >conftest.err
3457  rm -f conftest.er1
3458  cat conftest.err >&5
3459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460  (exit $ac_status); } >/dev/null; then
3461  if test -s conftest.err; then
3462    ac_cpp_err=$ac_c_preproc_warn_flag
3463    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3464  else
3465    ac_cpp_err=
3466  fi
3467else
3468  ac_cpp_err=yes
3469fi
3470if test -z "$ac_cpp_err"; then
3471  :
3472else
3473  echo "$as_me: failed program was:" >&5
3474sed 's/^/| /' conftest.$ac_ext >&5
3475
3476  # Broken: fails on valid input.
3477continue
3478fi
3479rm -f conftest.err conftest.$ac_ext
3480
3481  # OK, works on sane cases.  Now check whether non-existent headers
3482  # can be detected and how.
3483  cat >conftest.$ac_ext <<_ACEOF
3484/* confdefs.h.  */
3485_ACEOF
3486cat confdefs.h >>conftest.$ac_ext
3487cat >>conftest.$ac_ext <<_ACEOF
3488/* end confdefs.h.  */
3489#include <ac_nonexistent.h>
3490_ACEOF
3491if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3492  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3493  ac_status=$?
3494  grep -v '^ *+' conftest.er1 >conftest.err
3495  rm -f conftest.er1
3496  cat conftest.err >&5
3497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498  (exit $ac_status); } >/dev/null; then
3499  if test -s conftest.err; then
3500    ac_cpp_err=$ac_c_preproc_warn_flag
3501    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3502  else
3503    ac_cpp_err=
3504  fi
3505else
3506  ac_cpp_err=yes
3507fi
3508if test -z "$ac_cpp_err"; then
3509  # Broken: success on invalid input.
3510continue
3511else
3512  echo "$as_me: failed program was:" >&5
3513sed 's/^/| /' conftest.$ac_ext >&5
3514
3515  # Passes both tests.
3516ac_preproc_ok=:
3517break
3518fi
3519rm -f conftest.err conftest.$ac_ext
3520
3521done
3522# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3523rm -f conftest.err conftest.$ac_ext
3524if $ac_preproc_ok; then
3525  :
3526else
3527  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3528See \`config.log' for more details." >&5
3529echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3530See \`config.log' for more details." >&2;}
3531   { (exit 1); exit 1; }; }
3532fi
3533
3534ac_ext=c
3535ac_cpp='$CPP $CPPFLAGS'
3536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538ac_compiler_gnu=$ac_cv_c_compiler_gnu
3539
3540
3541echo "$as_me:$LINENO: checking for egrep" >&5
3542echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3543if test "${ac_cv_prog_egrep+set}" = set; then
3544  echo $ECHO_N "(cached) $ECHO_C" >&6
3545else
3546  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3547    then ac_cv_prog_egrep='grep -E'
3548    else ac_cv_prog_egrep='egrep'
3549    fi
3550fi
3551echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3552echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3553 EGREP=$ac_cv_prog_egrep
3554
3555
3556echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3557echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3558if test "${ac_cv_header_stdc+set}" = set; then
3559  echo $ECHO_N "(cached) $ECHO_C" >&6
3560else
3561  cat >conftest.$ac_ext <<_ACEOF
3562/* confdefs.h.  */
3563_ACEOF
3564cat confdefs.h >>conftest.$ac_ext
3565cat >>conftest.$ac_ext <<_ACEOF
3566/* end confdefs.h.  */
3567#include <stdlib.h>
3568#include <stdarg.h>
3569#include <string.h>
3570#include <float.h>
3571
3572int
3573main ()
3574{
3575
3576  ;
3577  return 0;
3578}
3579_ACEOF
3580rm -f conftest.$ac_objext
3581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3582  (eval $ac_compile) 2>conftest.er1
3583  ac_status=$?
3584  grep -v '^ *+' conftest.er1 >conftest.err
3585  rm -f conftest.er1
3586  cat conftest.err >&5
3587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588  (exit $ac_status); } &&
3589         { ac_try='test -z "$ac_c_werror_flag"
3590                         || test ! -s conftest.err'
3591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592  (eval $ac_try) 2>&5
3593  ac_status=$?
3594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595  (exit $ac_status); }; } &&
3596         { ac_try='test -s conftest.$ac_objext'
3597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3598  (eval $ac_try) 2>&5
3599  ac_status=$?
3600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601  (exit $ac_status); }; }; then
3602  ac_cv_header_stdc=yes
3603else
3604  echo "$as_me: failed program was:" >&5
3605sed 's/^/| /' conftest.$ac_ext >&5
3606
3607ac_cv_header_stdc=no
3608fi
3609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3610
3611if test $ac_cv_header_stdc = yes; then
3612  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3613  cat >conftest.$ac_ext <<_ACEOF
3614/* confdefs.h.  */
3615_ACEOF
3616cat confdefs.h >>conftest.$ac_ext
3617cat >>conftest.$ac_ext <<_ACEOF
3618/* end confdefs.h.  */
3619#include <string.h>
3620
3621_ACEOF
3622if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3623  $EGREP "memchr" >/dev/null 2>&1; then
3624  :
3625else
3626  ac_cv_header_stdc=no
3627fi
3628rm -f conftest*
3629
3630fi
3631
3632if test $ac_cv_header_stdc = yes; then
3633  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3634  cat >conftest.$ac_ext <<_ACEOF
3635/* confdefs.h.  */
3636_ACEOF
3637cat confdefs.h >>conftest.$ac_ext
3638cat >>conftest.$ac_ext <<_ACEOF
3639/* end confdefs.h.  */
3640#include <stdlib.h>
3641
3642_ACEOF
3643if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3644  $EGREP "free" >/dev/null 2>&1; then
3645  :
3646else
3647  ac_cv_header_stdc=no
3648fi
3649rm -f conftest*
3650
3651fi
3652
3653if test $ac_cv_header_stdc = yes; then
3654  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3655  if test "$cross_compiling" = yes; then
3656  :
3657else
3658  cat >conftest.$ac_ext <<_ACEOF
3659/* confdefs.h.  */
3660_ACEOF
3661cat confdefs.h >>conftest.$ac_ext
3662cat >>conftest.$ac_ext <<_ACEOF
3663/* end confdefs.h.  */
3664#include <ctype.h>
3665#if ((' ' & 0x0FF) == 0x020)
3666# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3667# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3668#else
3669# define ISLOWER(c) \
3670                   (('a' <= (c) && (c) <= 'i') \
3671                     || ('j' <= (c) && (c) <= 'r') \
3672                     || ('s' <= (c) && (c) <= 'z'))
3673# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3674#endif
3675
3676#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3677int
3678main ()
3679{
3680  int i;
3681  for (i = 0; i < 256; i++)
3682    if (XOR (islower (i), ISLOWER (i))
3683        || toupper (i) != TOUPPER (i))
3684      exit(2);
3685  exit (0);
3686}
3687_ACEOF
3688rm -f conftest$ac_exeext
3689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3690  (eval $ac_link) 2>&5
3691  ac_status=$?
3692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3695  (eval $ac_try) 2>&5
3696  ac_status=$?
3697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698  (exit $ac_status); }; }; then
3699  :
3700else
3701  echo "$as_me: program exited with status $ac_status" >&5
3702echo "$as_me: failed program was:" >&5
3703sed 's/^/| /' conftest.$ac_ext >&5
3704
3705( exit $ac_status )
3706ac_cv_header_stdc=no
3707fi
3708rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3709fi
3710fi
3711fi
3712echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3713echo "${ECHO_T}$ac_cv_header_stdc" >&6
3714if test $ac_cv_header_stdc = yes; then
3715
3716cat >>confdefs.h <<\_ACEOF
3717#define STDC_HEADERS 1
3718_ACEOF
3719
3720fi
3721
3722# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3733                  inttypes.h stdint.h unistd.h
3734do
3735as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3736echo "$as_me:$LINENO: checking for $ac_header" >&5
3737echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3738if eval "test \"\${$as_ac_Header+set}\" = set"; then
3739  echo $ECHO_N "(cached) $ECHO_C" >&6
3740else
3741  cat >conftest.$ac_ext <<_ACEOF
3742/* confdefs.h.  */
3743_ACEOF
3744cat confdefs.h >>conftest.$ac_ext
3745cat >>conftest.$ac_ext <<_ACEOF
3746/* end confdefs.h.  */
3747$ac_includes_default
3748
3749#include <$ac_header>
3750_ACEOF
3751rm -f conftest.$ac_objext
3752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3753  (eval $ac_compile) 2>conftest.er1
3754  ac_status=$?
3755  grep -v '^ *+' conftest.er1 >conftest.err
3756  rm -f conftest.er1
3757  cat conftest.err >&5
3758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759  (exit $ac_status); } &&
3760         { ac_try='test -z "$ac_c_werror_flag"
3761                         || test ! -s conftest.err'
3762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763  (eval $ac_try) 2>&5
3764  ac_status=$?
3765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766  (exit $ac_status); }; } &&
3767         { ac_try='test -s conftest.$ac_objext'
3768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3769  (eval $ac_try) 2>&5
3770  ac_status=$?
3771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772  (exit $ac_status); }; }; then
3773  eval "$as_ac_Header=yes"
3774else
3775  echo "$as_me: failed program was:" >&5
3776sed 's/^/| /' conftest.$ac_ext >&5
3777
3778eval "$as_ac_Header=no"
3779fi
3780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3781fi
3782echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3783echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3784if test `eval echo '${'$as_ac_Header'}'` = yes; then
3785  cat >>confdefs.h <<_ACEOF
3786#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3787_ACEOF
3788
3789fi
3790
3791done
3792
3793
3794
3795for ac_header in GL/gl.h
3796do
3797as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3798if eval "test \"\${$as_ac_Header+set}\" = set"; then
3799  echo "$as_me:$LINENO: checking for $ac_header" >&5
3800echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3801if eval "test \"\${$as_ac_Header+set}\" = set"; then
3802  echo $ECHO_N "(cached) $ECHO_C" >&6
3803fi
3804echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3805echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3806else
3807  # Is the header compilable?
3808echo "$as_me:$LINENO: checking $ac_header usability" >&5
3809echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3810cat >conftest.$ac_ext <<_ACEOF
3811/* confdefs.h.  */
3812_ACEOF
3813cat confdefs.h >>conftest.$ac_ext
3814cat >>conftest.$ac_ext <<_ACEOF
3815/* end confdefs.h.  */
3816$ac_includes_default
3817#include <$ac_header>
3818_ACEOF
3819rm -f conftest.$ac_objext
3820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3821  (eval $ac_compile) 2>conftest.er1
3822  ac_status=$?
3823  grep -v '^ *+' conftest.er1 >conftest.err
3824  rm -f conftest.er1
3825  cat conftest.err >&5
3826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827  (exit $ac_status); } &&
3828         { ac_try='test -z "$ac_c_werror_flag"
3829                         || test ! -s conftest.err'
3830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3831  (eval $ac_try) 2>&5
3832  ac_status=$?
3833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834  (exit $ac_status); }; } &&
3835         { ac_try='test -s conftest.$ac_objext'
3836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3837  (eval $ac_try) 2>&5
3838  ac_status=$?
3839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840  (exit $ac_status); }; }; then
3841  ac_header_compiler=yes
3842else
3843  echo "$as_me: failed program was:" >&5
3844sed 's/^/| /' conftest.$ac_ext >&5
3845
3846ac_header_compiler=no
3847fi
3848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3849echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3850echo "${ECHO_T}$ac_header_compiler" >&6
3851
3852# Is the header present?
3853echo "$as_me:$LINENO: checking $ac_header presence" >&5
3854echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3855cat >conftest.$ac_ext <<_ACEOF
3856/* confdefs.h.  */
3857_ACEOF
3858cat confdefs.h >>conftest.$ac_ext
3859cat >>conftest.$ac_ext <<_ACEOF
3860/* end confdefs.h.  */
3861#include <$ac_header>
3862_ACEOF
3863if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3864  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3865  ac_status=$?
3866  grep -v '^ *+' conftest.er1 >conftest.err
3867  rm -f conftest.er1
3868  cat conftest.err >&5
3869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870  (exit $ac_status); } >/dev/null; then
3871  if test -s conftest.err; then
3872    ac_cpp_err=$ac_c_preproc_warn_flag
3873    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3874  else
3875    ac_cpp_err=
3876  fi
3877else
3878  ac_cpp_err=yes
3879fi
3880if test -z "$ac_cpp_err"; then
3881  ac_header_preproc=yes
3882else
3883  echo "$as_me: failed program was:" >&5
3884sed 's/^/| /' conftest.$ac_ext >&5
3885
3886  ac_header_preproc=no
3887fi
3888rm -f conftest.err conftest.$ac_ext
3889echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3890echo "${ECHO_T}$ac_header_preproc" >&6
3891
3892# So?  What about this header?
3893case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3894  yes:no: )
3895    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3896echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3897    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3898echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3899    ac_header_preproc=yes
3900    ;;
3901  no:yes:* )
3902    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3903echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3904    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3905echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3906    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3907echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3908    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3909echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3910    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3911echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3912    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3913echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3914    (
3915      cat <<\_ASBOX
3916## ------------------------------------------- ##
3917## Report this to orxonox-dev@mail.datacore.ch ##
3918## ------------------------------------------- ##
3919_ASBOX
3920    ) |
3921      sed "s/^/$as_me: WARNING:     /" >&2
3922    ;;
3923esac
3924echo "$as_me:$LINENO: checking for $ac_header" >&5
3925echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3926if eval "test \"\${$as_ac_Header+set}\" = set"; then
3927  echo $ECHO_N "(cached) $ECHO_C" >&6
3928else
3929  eval "$as_ac_Header=\$ac_header_preproc"
3930fi
3931echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3932echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3933
3934fi
3935if test `eval echo '${'$as_ac_Header'}'` = yes; then
3936  cat >>confdefs.h <<_ACEOF
3937#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3938_ACEOF
3939
3940else
3941  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
3942echo "$as_me: error: cannot find opengl headers" >&2;}
3943   { (exit 1); exit 1; }; }
3944fi
3945
3946done
3947
3948
3949#   checking for Unix GL
3950echo "$as_me:$LINENO: checking for main in -lGL" >&5
3951echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
3952if test "${ac_cv_lib_GL_main+set}" = set; then
3953  echo $ECHO_N "(cached) $ECHO_C" >&6
3954else
3955  ac_check_lib_save_LIBS=$LIBS
3956LIBS="-lGL  $LIBS"
3957cat >conftest.$ac_ext <<_ACEOF
3958/* confdefs.h.  */
3959_ACEOF
3960cat confdefs.h >>conftest.$ac_ext
3961cat >>conftest.$ac_ext <<_ACEOF
3962/* end confdefs.h.  */
3963
3964
3965int
3966main ()
3967{
3968main ();
3969  ;
3970  return 0;
3971}
3972_ACEOF
3973rm -f conftest.$ac_objext conftest$ac_exeext
3974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3975  (eval $ac_link) 2>conftest.er1
3976  ac_status=$?
3977  grep -v '^ *+' conftest.er1 >conftest.err
3978  rm -f conftest.er1
3979  cat conftest.err >&5
3980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981  (exit $ac_status); } &&
3982         { ac_try='test -z "$ac_c_werror_flag"
3983                         || test ! -s conftest.err'
3984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3985  (eval $ac_try) 2>&5
3986  ac_status=$?
3987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988  (exit $ac_status); }; } &&
3989         { ac_try='test -s conftest$ac_exeext'
3990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991  (eval $ac_try) 2>&5
3992  ac_status=$?
3993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994  (exit $ac_status); }; }; then
3995  ac_cv_lib_GL_main=yes
3996else
3997  echo "$as_me: failed program was:" >&5
3998sed 's/^/| /' conftest.$ac_ext >&5
3999
4000ac_cv_lib_GL_main=no
4001fi
4002rm -f conftest.err conftest.$ac_objext \
4003      conftest$ac_exeext conftest.$ac_ext
4004LIBS=$ac_check_lib_save_LIBS
4005fi
4006echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
4007echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
4008if test $ac_cv_lib_GL_main = yes; then
4009  FOUND_GL=yes
4010fi
4011
4012if test "$FOUND_GL" = "yes" ; then
4013    LIBS="$LIBS -lGL"
4014    #   checking for Windows openGl library
4015else
4016    echo "We did not find the Linux opengl Library. Checking for Windows Library"
4017    echo "$as_me:$LINENO: checking for main in -lopengl32" >&5
4018echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6
4019if test "${ac_cv_lib_opengl32_main+set}" = set; then
4020  echo $ECHO_N "(cached) $ECHO_C" >&6
4021else
4022  ac_check_lib_save_LIBS=$LIBS
4023LIBS="-lopengl32  $LIBS"
4024cat >conftest.$ac_ext <<_ACEOF
4025/* confdefs.h.  */
4026_ACEOF
4027cat confdefs.h >>conftest.$ac_ext
4028cat >>conftest.$ac_ext <<_ACEOF
4029/* end confdefs.h.  */
4030
4031
4032int
4033main ()
4034{
4035main ();
4036  ;
4037  return 0;
4038}
4039_ACEOF
4040rm -f conftest.$ac_objext conftest$ac_exeext
4041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4042  (eval $ac_link) 2>conftest.er1
4043  ac_status=$?
4044  grep -v '^ *+' conftest.er1 >conftest.err
4045  rm -f conftest.er1
4046  cat conftest.err >&5
4047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048  (exit $ac_status); } &&
4049         { ac_try='test -z "$ac_c_werror_flag"
4050                         || test ! -s conftest.err'
4051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4052  (eval $ac_try) 2>&5
4053  ac_status=$?
4054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055  (exit $ac_status); }; } &&
4056         { ac_try='test -s conftest$ac_exeext'
4057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058  (eval $ac_try) 2>&5
4059  ac_status=$?
4060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061  (exit $ac_status); }; }; then
4062  ac_cv_lib_opengl32_main=yes
4063else
4064  echo "$as_me: failed program was:" >&5
4065sed 's/^/| /' conftest.$ac_ext >&5
4066
4067ac_cv_lib_opengl32_main=no
4068fi
4069rm -f conftest.err conftest.$ac_objext \
4070      conftest$ac_exeext conftest.$ac_ext
4071LIBS=$ac_check_lib_save_LIBS
4072fi
4073echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5
4074echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6
4075if test $ac_cv_lib_opengl32_main = yes; then
4076  FOUND_opengl32=yes
4077else
4078  "gl/gl.h"
4079fi
4080
4081    if test "$FOUND_opengl32" = "yes" ; then
4082        LIBS="$LIBS -lopengl32"
4083
4084    else
4085         echo "------------------"
4086         echo "opengl not found."
4087         echo "please install the opengl package which can be found at http://www.opengl.org"
4088         echo "------------------"
4089         exit -1
4090    fi
4091fi
4092
4093#  cheking for libGLU
4094
4095for ac_header in GL/glu.h
4096do
4097as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4098if eval "test \"\${$as_ac_Header+set}\" = set"; then
4099  echo "$as_me:$LINENO: checking for $ac_header" >&5
4100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4101if eval "test \"\${$as_ac_Header+set}\" = set"; then
4102  echo $ECHO_N "(cached) $ECHO_C" >&6
4103fi
4104echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4105echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4106else
4107  # Is the header compilable?
4108echo "$as_me:$LINENO: checking $ac_header usability" >&5
4109echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4110cat >conftest.$ac_ext <<_ACEOF
4111/* confdefs.h.  */
4112_ACEOF
4113cat confdefs.h >>conftest.$ac_ext
4114cat >>conftest.$ac_ext <<_ACEOF
4115/* end confdefs.h.  */
4116$ac_includes_default
4117#include <$ac_header>
4118_ACEOF
4119rm -f conftest.$ac_objext
4120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4121  (eval $ac_compile) 2>conftest.er1
4122  ac_status=$?
4123  grep -v '^ *+' conftest.er1 >conftest.err
4124  rm -f conftest.er1
4125  cat conftest.err >&5
4126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127  (exit $ac_status); } &&
4128         { ac_try='test -z "$ac_c_werror_flag"
4129                         || test ! -s conftest.err'
4130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4131  (eval $ac_try) 2>&5
4132  ac_status=$?
4133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134  (exit $ac_status); }; } &&
4135         { ac_try='test -s conftest.$ac_objext'
4136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4137  (eval $ac_try) 2>&5
4138  ac_status=$?
4139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140  (exit $ac_status); }; }; then
4141  ac_header_compiler=yes
4142else
4143  echo "$as_me: failed program was:" >&5
4144sed 's/^/| /' conftest.$ac_ext >&5
4145
4146ac_header_compiler=no
4147fi
4148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4149echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4150echo "${ECHO_T}$ac_header_compiler" >&6
4151
4152# Is the header present?
4153echo "$as_me:$LINENO: checking $ac_header presence" >&5
4154echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4155cat >conftest.$ac_ext <<_ACEOF
4156/* confdefs.h.  */
4157_ACEOF
4158cat confdefs.h >>conftest.$ac_ext
4159cat >>conftest.$ac_ext <<_ACEOF
4160/* end confdefs.h.  */
4161#include <$ac_header>
4162_ACEOF
4163if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4164  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4165  ac_status=$?
4166  grep -v '^ *+' conftest.er1 >conftest.err
4167  rm -f conftest.er1
4168  cat conftest.err >&5
4169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170  (exit $ac_status); } >/dev/null; then
4171  if test -s conftest.err; then
4172    ac_cpp_err=$ac_c_preproc_warn_flag
4173    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4174  else
4175    ac_cpp_err=
4176  fi
4177else
4178  ac_cpp_err=yes
4179fi
4180if test -z "$ac_cpp_err"; then
4181  ac_header_preproc=yes
4182else
4183  echo "$as_me: failed program was:" >&5
4184sed 's/^/| /' conftest.$ac_ext >&5
4185
4186  ac_header_preproc=no
4187fi
4188rm -f conftest.err conftest.$ac_ext
4189echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4190echo "${ECHO_T}$ac_header_preproc" >&6
4191
4192# So?  What about this header?
4193case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4194  yes:no: )
4195    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4196echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4197    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4198echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4199    ac_header_preproc=yes
4200    ;;
4201  no:yes:* )
4202    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4203echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4204    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4205echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4206    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4207echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4208    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4209echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4210    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4211echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4212    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4213echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4214    (
4215      cat <<\_ASBOX
4216## ------------------------------------------- ##
4217## Report this to orxonox-dev@mail.datacore.ch ##
4218## ------------------------------------------- ##
4219_ASBOX
4220    ) |
4221      sed "s/^/$as_me: WARNING:     /" >&2
4222    ;;
4223esac
4224echo "$as_me:$LINENO: checking for $ac_header" >&5
4225echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4226if eval "test \"\${$as_ac_Header+set}\" = set"; then
4227  echo $ECHO_N "(cached) $ECHO_C" >&6
4228else
4229  eval "$as_ac_Header=\$ac_header_preproc"
4230fi
4231echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4232echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4233
4234fi
4235if test `eval echo '${'$as_ac_Header'}'` = yes; then
4236  cat >>confdefs.h <<_ACEOF
4237#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4238_ACEOF
4239
4240else
4241  { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5
4242echo "$as_me: error: cannot find opengl headers" >&2;}
4243   { (exit 1); exit 1; }; }
4244fi
4245
4246done
4247
4248
4249echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5
4250echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6
4251if test "${ac_cv_lib_GLU_gluProject+set}" = set; then
4252  echo $ECHO_N "(cached) $ECHO_C" >&6
4253else
4254  ac_check_lib_save_LIBS=$LIBS
4255LIBS="-lGLU  $LIBS"
4256cat >conftest.$ac_ext <<_ACEOF
4257/* confdefs.h.  */
4258_ACEOF
4259cat confdefs.h >>conftest.$ac_ext
4260cat >>conftest.$ac_ext <<_ACEOF
4261/* end confdefs.h.  */
4262
4263/* Override any gcc2 internal prototype to avoid an error.  */
4264#ifdef __cplusplus
4265extern "C"
4266#endif
4267/* We use char because int might match the return type of a gcc2
4268   builtin and then its argument prototype would still apply.  */
4269char gluProject ();
4270int
4271main ()
4272{
4273gluProject ();
4274  ;
4275  return 0;
4276}
4277_ACEOF
4278rm -f conftest.$ac_objext conftest$ac_exeext
4279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4280  (eval $ac_link) 2>conftest.er1
4281  ac_status=$?
4282  grep -v '^ *+' conftest.er1 >conftest.err
4283  rm -f conftest.er1
4284  cat conftest.err >&5
4285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286  (exit $ac_status); } &&
4287         { ac_try='test -z "$ac_c_werror_flag"
4288                         || test ! -s conftest.err'
4289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290  (eval $ac_try) 2>&5
4291  ac_status=$?
4292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293  (exit $ac_status); }; } &&
4294         { ac_try='test -s conftest$ac_exeext'
4295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296  (eval $ac_try) 2>&5
4297  ac_status=$?
4298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299  (exit $ac_status); }; }; then
4300  ac_cv_lib_GLU_gluProject=yes
4301else
4302  echo "$as_me: failed program was:" >&5
4303sed 's/^/| /' conftest.$ac_ext >&5
4304
4305ac_cv_lib_GLU_gluProject=no
4306fi
4307rm -f conftest.err conftest.$ac_objext \
4308      conftest$ac_exeext conftest.$ac_ext
4309LIBS=$ac_check_lib_save_LIBS
4310fi
4311echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5
4312echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6
4313if test $ac_cv_lib_GLU_gluProject = yes; then
4314  FOUND_GLU=yes
4315fi
4316
4317if test "$FOUND_GLU" = "yes" ; then
4318    LIBS="$LIBS -lGLU"
4319    #   checking for Windows GLU32 library
4320else
4321    echo "We did not find the Linux GLU Library. Checking for Windows Library"
4322    echo "$as_me:$LINENO: checking for main in -lglu32" >&5
4323echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6
4324if test "${ac_cv_lib_glu32_main+set}" = set; then
4325  echo $ECHO_N "(cached) $ECHO_C" >&6
4326else
4327  ac_check_lib_save_LIBS=$LIBS
4328LIBS="-lglu32  $LIBS"
4329cat >conftest.$ac_ext <<_ACEOF
4330/* confdefs.h.  */
4331_ACEOF
4332cat confdefs.h >>conftest.$ac_ext
4333cat >>conftest.$ac_ext <<_ACEOF
4334/* end confdefs.h.  */
4335
4336
4337int
4338main ()
4339{
4340main ();
4341  ;
4342  return 0;
4343}
4344_ACEOF
4345rm -f conftest.$ac_objext conftest$ac_exeext
4346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4347  (eval $ac_link) 2>conftest.er1
4348  ac_status=$?
4349  grep -v '^ *+' conftest.er1 >conftest.err
4350  rm -f conftest.er1
4351  cat conftest.err >&5
4352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353  (exit $ac_status); } &&
4354         { ac_try='test -z "$ac_c_werror_flag"
4355                         || test ! -s conftest.err'
4356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357  (eval $ac_try) 2>&5
4358  ac_status=$?
4359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360  (exit $ac_status); }; } &&
4361         { ac_try='test -s conftest$ac_exeext'
4362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363  (eval $ac_try) 2>&5
4364  ac_status=$?
4365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366  (exit $ac_status); }; }; then
4367  ac_cv_lib_glu32_main=yes
4368else
4369  echo "$as_me: failed program was:" >&5
4370sed 's/^/| /' conftest.$ac_ext >&5
4371
4372ac_cv_lib_glu32_main=no
4373fi
4374rm -f conftest.err conftest.$ac_objext \
4375      conftest$ac_exeext conftest.$ac_ext
4376LIBS=$ac_check_lib_save_LIBS
4377fi
4378echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5
4379echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6
4380if test $ac_cv_lib_glu32_main = yes; then
4381  FOUND_glu32=yes
4382fi
4383
4384    if test "$FOUND_glu32" = "yes" ; then
4385        LIBS="$LIBS -lGLU32"
4386
4387        else
4388         echo "------------------"
4389         echo "GLU library not found."
4390         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
4391         echo "------------------"
4392         exit -1
4393    fi
4394fi
4395
4396
4397for ac_header in SDL/SDL_mixer.h
4398do
4399as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4400if eval "test \"\${$as_ac_Header+set}\" = set"; then
4401  echo "$as_me:$LINENO: checking for $ac_header" >&5
4402echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4403if eval "test \"\${$as_ac_Header+set}\" = set"; then
4404  echo $ECHO_N "(cached) $ECHO_C" >&6
4405fi
4406echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4407echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4408else
4409  # Is the header compilable?
4410echo "$as_me:$LINENO: checking $ac_header usability" >&5
4411echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4412cat >conftest.$ac_ext <<_ACEOF
4413/* confdefs.h.  */
4414_ACEOF
4415cat confdefs.h >>conftest.$ac_ext
4416cat >>conftest.$ac_ext <<_ACEOF
4417/* end confdefs.h.  */
4418$ac_includes_default
4419#include <$ac_header>
4420_ACEOF
4421rm -f conftest.$ac_objext
4422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4423  (eval $ac_compile) 2>conftest.er1
4424  ac_status=$?
4425  grep -v '^ *+' conftest.er1 >conftest.err
4426  rm -f conftest.er1
4427  cat conftest.err >&5
4428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429  (exit $ac_status); } &&
4430         { ac_try='test -z "$ac_c_werror_flag"
4431                         || test ! -s conftest.err'
4432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433  (eval $ac_try) 2>&5
4434  ac_status=$?
4435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436  (exit $ac_status); }; } &&
4437         { ac_try='test -s conftest.$ac_objext'
4438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439  (eval $ac_try) 2>&5
4440  ac_status=$?
4441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442  (exit $ac_status); }; }; then
4443  ac_header_compiler=yes
4444else
4445  echo "$as_me: failed program was:" >&5
4446sed 's/^/| /' conftest.$ac_ext >&5
4447
4448ac_header_compiler=no
4449fi
4450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4451echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4452echo "${ECHO_T}$ac_header_compiler" >&6
4453
4454# Is the header present?
4455echo "$as_me:$LINENO: checking $ac_header presence" >&5
4456echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4457cat >conftest.$ac_ext <<_ACEOF
4458/* confdefs.h.  */
4459_ACEOF
4460cat confdefs.h >>conftest.$ac_ext
4461cat >>conftest.$ac_ext <<_ACEOF
4462/* end confdefs.h.  */
4463#include <$ac_header>
4464_ACEOF
4465if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4466  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4467  ac_status=$?
4468  grep -v '^ *+' conftest.er1 >conftest.err
4469  rm -f conftest.er1
4470  cat conftest.err >&5
4471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472  (exit $ac_status); } >/dev/null; then
4473  if test -s conftest.err; then
4474    ac_cpp_err=$ac_c_preproc_warn_flag
4475    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4476  else
4477    ac_cpp_err=
4478  fi
4479else
4480  ac_cpp_err=yes
4481fi
4482if test -z "$ac_cpp_err"; then
4483  ac_header_preproc=yes
4484else
4485  echo "$as_me: failed program was:" >&5
4486sed 's/^/| /' conftest.$ac_ext >&5
4487
4488  ac_header_preproc=no
4489fi
4490rm -f conftest.err conftest.$ac_ext
4491echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4492echo "${ECHO_T}$ac_header_preproc" >&6
4493
4494# So?  What about this header?
4495case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4496  yes:no: )
4497    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4498echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4499    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4500echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4501    ac_header_preproc=yes
4502    ;;
4503  no:yes:* )
4504    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4505echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4506    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4507echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4508    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4509echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4510    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4511echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4512    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4513echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4514    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4515echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4516    (
4517      cat <<\_ASBOX
4518## ------------------------------------------- ##
4519## Report this to orxonox-dev@mail.datacore.ch ##
4520## ------------------------------------------- ##
4521_ASBOX
4522    ) |
4523      sed "s/^/$as_me: WARNING:     /" >&2
4524    ;;
4525esac
4526echo "$as_me:$LINENO: checking for $ac_header" >&5
4527echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4528if eval "test \"\${$as_ac_Header+set}\" = set"; then
4529  echo $ECHO_N "(cached) $ECHO_C" >&6
4530else
4531  eval "$as_ac_Header=\$ac_header_preproc"
4532fi
4533echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4534echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4535
4536fi
4537if test `eval echo '${'$as_ac_Header'}'` = yes; then
4538  cat >>confdefs.h <<_ACEOF
4539#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4540_ACEOF
4541
4542else
4543  { { echo "$as_me:$LINENO: error: cannot find sdlmixer headers" >&5
4544echo "$as_me: error: cannot find sdlmixer headers" >&2;}
4545   { (exit 1); exit 1; }; }
4546fi
4547
4548done
4549
4550
4551LIBS="$LIBS -lSDL_mixer"
4552
4553# FIXME: Replace `main' with a function in `-lOSMesa':
4554
4555echo "$as_me:$LINENO: checking for main in -lOSMesa" >&5
4556echo $ECHO_N "checking for main in -lOSMesa... $ECHO_C" >&6
4557if test "${ac_cv_lib_OSMesa_main+set}" = set; then
4558  echo $ECHO_N "(cached) $ECHO_C" >&6
4559else
4560  ac_check_lib_save_LIBS=$LIBS
4561LIBS="-lOSMesa  $LIBS"
4562cat >conftest.$ac_ext <<_ACEOF
4563/* confdefs.h.  */
4564_ACEOF
4565cat confdefs.h >>conftest.$ac_ext
4566cat >>conftest.$ac_ext <<_ACEOF
4567/* end confdefs.h.  */
4568
4569
4570int
4571main ()
4572{
4573main ();
4574  ;
4575  return 0;
4576}
4577_ACEOF
4578rm -f conftest.$ac_objext conftest$ac_exeext
4579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4580  (eval $ac_link) 2>conftest.er1
4581  ac_status=$?
4582  grep -v '^ *+' conftest.er1 >conftest.err
4583  rm -f conftest.er1
4584  cat conftest.err >&5
4585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586  (exit $ac_status); } &&
4587         { ac_try='test -z "$ac_c_werror_flag"
4588                         || test ! -s conftest.err'
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); }; } &&
4594         { ac_try='test -s conftest$ac_exeext'
4595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596  (eval $ac_try) 2>&5
4597  ac_status=$?
4598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599  (exit $ac_status); }; }; then
4600  ac_cv_lib_OSMesa_main=yes
4601else
4602  echo "$as_me: failed program was:" >&5
4603sed 's/^/| /' conftest.$ac_ext >&5
4604
4605ac_cv_lib_OSMesa_main=no
4606fi
4607rm -f conftest.err conftest.$ac_objext \
4608      conftest$ac_exeext conftest.$ac_ext
4609LIBS=$ac_check_lib_save_LIBS
4610fi
4611echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_main" >&5
4612echo "${ECHO_T}$ac_cv_lib_OSMesa_main" >&6
4613if test $ac_cv_lib_OSMesa_main = yes; then
4614  cat >>confdefs.h <<_ACEOF
4615#define HAVE_LIBOSMESA 1
4616_ACEOF
4617
4618  LIBS="-lOSMesa $LIBS"
4619
4620fi
4621
4622# FIXME: Replace `main' with a function in `-lX11':
4623
4624echo "$as_me:$LINENO: checking for main in -lX11" >&5
4625echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6
4626if test "${ac_cv_lib_X11_main+set}" = set; then
4627  echo $ECHO_N "(cached) $ECHO_C" >&6
4628else
4629  ac_check_lib_save_LIBS=$LIBS
4630LIBS="-lX11  $LIBS"
4631cat >conftest.$ac_ext <<_ACEOF
4632/* confdefs.h.  */
4633_ACEOF
4634cat confdefs.h >>conftest.$ac_ext
4635cat >>conftest.$ac_ext <<_ACEOF
4636/* end confdefs.h.  */
4637
4638
4639int
4640main ()
4641{
4642main ();
4643  ;
4644  return 0;
4645}
4646_ACEOF
4647rm -f conftest.$ac_objext conftest$ac_exeext
4648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4649  (eval $ac_link) 2>conftest.er1
4650  ac_status=$?
4651  grep -v '^ *+' conftest.er1 >conftest.err
4652  rm -f conftest.er1
4653  cat conftest.err >&5
4654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655  (exit $ac_status); } &&
4656         { ac_try='test -z "$ac_c_werror_flag"
4657                         || test ! -s conftest.err'
4658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4659  (eval $ac_try) 2>&5
4660  ac_status=$?
4661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662  (exit $ac_status); }; } &&
4663         { ac_try='test -s conftest$ac_exeext'
4664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665  (eval $ac_try) 2>&5
4666  ac_status=$?
4667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668  (exit $ac_status); }; }; then
4669  ac_cv_lib_X11_main=yes
4670else
4671  echo "$as_me: failed program was:" >&5
4672sed 's/^/| /' conftest.$ac_ext >&5
4673
4674ac_cv_lib_X11_main=no
4675fi
4676rm -f conftest.err conftest.$ac_objext \
4677      conftest$ac_exeext conftest.$ac_ext
4678LIBS=$ac_check_lib_save_LIBS
4679fi
4680echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5
4681echo "${ECHO_T}$ac_cv_lib_X11_main" >&6
4682if test $ac_cv_lib_X11_main = yes; then
4683  cat >>confdefs.h <<_ACEOF
4684#define HAVE_LIBX11 1
4685_ACEOF
4686
4687  LIBS="-lX11 $LIBS"
4688
4689fi
4690
4691# FIXME: Replace `main' with a function in `-lXt':
4692
4693echo "$as_me:$LINENO: checking for main in -lXt" >&5
4694echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6
4695if test "${ac_cv_lib_Xt_main+set}" = set; then
4696  echo $ECHO_N "(cached) $ECHO_C" >&6
4697else
4698  ac_check_lib_save_LIBS=$LIBS
4699LIBS="-lXt  $LIBS"
4700cat >conftest.$ac_ext <<_ACEOF
4701/* confdefs.h.  */
4702_ACEOF
4703cat confdefs.h >>conftest.$ac_ext
4704cat >>conftest.$ac_ext <<_ACEOF
4705/* end confdefs.h.  */
4706
4707
4708int
4709main ()
4710{
4711main ();
4712  ;
4713  return 0;
4714}
4715_ACEOF
4716rm -f conftest.$ac_objext conftest$ac_exeext
4717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4718  (eval $ac_link) 2>conftest.er1
4719  ac_status=$?
4720  grep -v '^ *+' conftest.er1 >conftest.err
4721  rm -f conftest.er1
4722  cat conftest.err >&5
4723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724  (exit $ac_status); } &&
4725         { ac_try='test -z "$ac_c_werror_flag"
4726                         || test ! -s conftest.err'
4727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728  (eval $ac_try) 2>&5
4729  ac_status=$?
4730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731  (exit $ac_status); }; } &&
4732         { ac_try='test -s conftest$ac_exeext'
4733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734  (eval $ac_try) 2>&5
4735  ac_status=$?
4736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737  (exit $ac_status); }; }; then
4738  ac_cv_lib_Xt_main=yes
4739else
4740  echo "$as_me: failed program was:" >&5
4741sed 's/^/| /' conftest.$ac_ext >&5
4742
4743ac_cv_lib_Xt_main=no
4744fi
4745rm -f conftest.err conftest.$ac_objext \
4746      conftest$ac_exeext conftest.$ac_ext
4747LIBS=$ac_check_lib_save_LIBS
4748fi
4749echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&5
4750echo "${ECHO_T}$ac_cv_lib_Xt_main" >&6
4751if test $ac_cv_lib_Xt_main = yes; then
4752  cat >>confdefs.h <<_ACEOF
4753#define HAVE_LIBXT 1
4754_ACEOF
4755
4756  LIBS="-lXt $LIBS"
4757
4758fi
4759
4760
4761## mingw CHECK
4762if test $mingw = yes ; then
4763        echo "$as_me:$LINENO: checking for main in -lmingw32" >&5
4764echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6
4765if test "${ac_cv_lib_mingw32_main+set}" = set; then
4766  echo $ECHO_N "(cached) $ECHO_C" >&6
4767else
4768  ac_check_lib_save_LIBS=$LIBS
4769LIBS="-lmingw32  $LIBS"
4770cat >conftest.$ac_ext <<_ACEOF
4771/* confdefs.h.  */
4772_ACEOF
4773cat confdefs.h >>conftest.$ac_ext
4774cat >>conftest.$ac_ext <<_ACEOF
4775/* end confdefs.h.  */
4776
4777
4778int
4779main ()
4780{
4781main ();
4782  ;
4783  return 0;
4784}
4785_ACEOF
4786rm -f conftest.$ac_objext conftest$ac_exeext
4787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4788  (eval $ac_link) 2>conftest.er1
4789  ac_status=$?
4790  grep -v '^ *+' conftest.er1 >conftest.err
4791  rm -f conftest.er1
4792  cat conftest.err >&5
4793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794  (exit $ac_status); } &&
4795         { ac_try='test -z "$ac_c_werror_flag"
4796                         || test ! -s conftest.err'
4797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798  (eval $ac_try) 2>&5
4799  ac_status=$?
4800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801  (exit $ac_status); }; } &&
4802         { ac_try='test -s conftest$ac_exeext'
4803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804  (eval $ac_try) 2>&5
4805  ac_status=$?
4806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807  (exit $ac_status); }; }; then
4808  ac_cv_lib_mingw32_main=yes
4809else
4810  echo "$as_me: failed program was:" >&5
4811sed 's/^/| /' conftest.$ac_ext >&5
4812
4813ac_cv_lib_mingw32_main=no
4814fi
4815rm -f conftest.err conftest.$ac_objext \
4816      conftest$ac_exeext conftest.$ac_ext
4817LIBS=$ac_check_lib_save_LIBS
4818fi
4819echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5
4820echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6
4821if test $ac_cv_lib_mingw32_main = yes; then
4822  FOUND_mingw32=yes
4823fi
4824
4825        if test $FOUND_mingw32 = "yes"; then
4826                LIBS="$LIBS -lmingw32"
4827        fi
4828fi
4829
4830## SDL CHECK
4831
4832#checking for SDL libs
4833
4834for ac_header in SDL/SDL.h
4835do
4836as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4837if eval "test \"\${$as_ac_Header+set}\" = set"; then
4838  echo "$as_me:$LINENO: checking for $ac_header" >&5
4839echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4840if eval "test \"\${$as_ac_Header+set}\" = set"; then
4841  echo $ECHO_N "(cached) $ECHO_C" >&6
4842fi
4843echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4844echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4845else
4846  # Is the header compilable?
4847echo "$as_me:$LINENO: checking $ac_header usability" >&5
4848echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4849cat >conftest.$ac_ext <<_ACEOF
4850/* confdefs.h.  */
4851_ACEOF
4852cat confdefs.h >>conftest.$ac_ext
4853cat >>conftest.$ac_ext <<_ACEOF
4854/* end confdefs.h.  */
4855$ac_includes_default
4856#include <$ac_header>
4857_ACEOF
4858rm -f conftest.$ac_objext
4859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4860  (eval $ac_compile) 2>conftest.er1
4861  ac_status=$?
4862  grep -v '^ *+' conftest.er1 >conftest.err
4863  rm -f conftest.er1
4864  cat conftest.err >&5
4865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866  (exit $ac_status); } &&
4867         { ac_try='test -z "$ac_c_werror_flag"
4868                         || test ! -s conftest.err'
4869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870  (eval $ac_try) 2>&5
4871  ac_status=$?
4872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873  (exit $ac_status); }; } &&
4874         { ac_try='test -s conftest.$ac_objext'
4875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876  (eval $ac_try) 2>&5
4877  ac_status=$?
4878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879  (exit $ac_status); }; }; then
4880  ac_header_compiler=yes
4881else
4882  echo "$as_me: failed program was:" >&5
4883sed 's/^/| /' conftest.$ac_ext >&5
4884
4885ac_header_compiler=no
4886fi
4887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4888echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4889echo "${ECHO_T}$ac_header_compiler" >&6
4890
4891# Is the header present?
4892echo "$as_me:$LINENO: checking $ac_header presence" >&5
4893echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4894cat >conftest.$ac_ext <<_ACEOF
4895/* confdefs.h.  */
4896_ACEOF
4897cat confdefs.h >>conftest.$ac_ext
4898cat >>conftest.$ac_ext <<_ACEOF
4899/* end confdefs.h.  */
4900#include <$ac_header>
4901_ACEOF
4902if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4903  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4904  ac_status=$?
4905  grep -v '^ *+' conftest.er1 >conftest.err
4906  rm -f conftest.er1
4907  cat conftest.err >&5
4908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909  (exit $ac_status); } >/dev/null; then
4910  if test -s conftest.err; then
4911    ac_cpp_err=$ac_c_preproc_warn_flag
4912    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4913  else
4914    ac_cpp_err=
4915  fi
4916else
4917  ac_cpp_err=yes
4918fi
4919if test -z "$ac_cpp_err"; then
4920  ac_header_preproc=yes
4921else
4922  echo "$as_me: failed program was:" >&5
4923sed 's/^/| /' conftest.$ac_ext >&5
4924
4925  ac_header_preproc=no
4926fi
4927rm -f conftest.err conftest.$ac_ext
4928echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4929echo "${ECHO_T}$ac_header_preproc" >&6
4930
4931# So?  What about this header?
4932case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4933  yes:no: )
4934    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4935echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4936    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4937echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4938    ac_header_preproc=yes
4939    ;;
4940  no:yes:* )
4941    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4942echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4943    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4944echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4945    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4946echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4947    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4948echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4949    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4950echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4951    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4952echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4953    (
4954      cat <<\_ASBOX
4955## ------------------------------------------- ##
4956## Report this to orxonox-dev@mail.datacore.ch ##
4957## ------------------------------------------- ##
4958_ASBOX
4959    ) |
4960      sed "s/^/$as_me: WARNING:     /" >&2
4961    ;;
4962esac
4963echo "$as_me:$LINENO: checking for $ac_header" >&5
4964echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4965if eval "test \"\${$as_ac_Header+set}\" = set"; then
4966  echo $ECHO_N "(cached) $ECHO_C" >&6
4967else
4968  eval "$as_ac_Header=\$ac_header_preproc"
4969fi
4970echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4971echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4972
4973fi
4974if test `eval echo '${'$as_ac_Header'}'` = yes; then
4975  cat >>confdefs.h <<_ACEOF
4976#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4977_ACEOF
4978
4979else
4980  { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5
4981echo "$as_me: error: cannot find SDL headers" >&2;}
4982   { (exit 1); exit 1; }; }
4983fi
4984
4985done
4986
4987if test $mingw = no ; then
4988        echo "$as_me:$LINENO: checking for main in -lSDL" >&5
4989echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6
4990if test "${ac_cv_lib_SDL_main+set}" = set; then
4991  echo $ECHO_N "(cached) $ECHO_C" >&6
4992else
4993  ac_check_lib_save_LIBS=$LIBS
4994LIBS="-lSDL  $LIBS"
4995cat >conftest.$ac_ext <<_ACEOF
4996/* confdefs.h.  */
4997_ACEOF
4998cat confdefs.h >>conftest.$ac_ext
4999cat >>conftest.$ac_ext <<_ACEOF
5000/* end confdefs.h.  */
5001
5002
5003int
5004main ()
5005{
5006main ();
5007  ;
5008  return 0;
5009}
5010_ACEOF
5011rm -f conftest.$ac_objext conftest$ac_exeext
5012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5013  (eval $ac_link) 2>conftest.er1
5014  ac_status=$?
5015  grep -v '^ *+' conftest.er1 >conftest.err
5016  rm -f conftest.er1
5017  cat conftest.err >&5
5018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019  (exit $ac_status); } &&
5020         { ac_try='test -z "$ac_c_werror_flag"
5021                         || test ! -s conftest.err'
5022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023  (eval $ac_try) 2>&5
5024  ac_status=$?
5025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026  (exit $ac_status); }; } &&
5027         { ac_try='test -s conftest$ac_exeext'
5028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5029  (eval $ac_try) 2>&5
5030  ac_status=$?
5031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032  (exit $ac_status); }; }; then
5033  ac_cv_lib_SDL_main=yes
5034else
5035  echo "$as_me: failed program was:" >&5
5036sed 's/^/| /' conftest.$ac_ext >&5
5037
5038ac_cv_lib_SDL_main=no
5039fi
5040rm -f conftest.err conftest.$ac_objext \
5041      conftest$ac_exeext conftest.$ac_ext
5042LIBS=$ac_check_lib_save_LIBS
5043fi
5044echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5
5045echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6
5046if test $ac_cv_lib_SDL_main = yes; then
5047  FOUND_SDL=yes
5048fi
5049
5050        if test "$FOUND_SDL" = "yes" ; then
5051                LIBS="$LIBS -lSDL"
5052        fi
5053#   checking for Windows sdl library
5054else
5055    echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5
5056echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6
5057if test "${ac_cv_lib_sdlmain_main+set}" = set; then
5058  echo $ECHO_N "(cached) $ECHO_C" >&6
5059else
5060  ac_check_lib_save_LIBS=$LIBS
5061LIBS="-lsdlmain  $LIBS"
5062cat >conftest.$ac_ext <<_ACEOF
5063/* confdefs.h.  */
5064_ACEOF
5065cat confdefs.h >>conftest.$ac_ext
5066cat >>conftest.$ac_ext <<_ACEOF
5067/* end confdefs.h.  */
5068
5069
5070int
5071main ()
5072{
5073main ();
5074  ;
5075  return 0;
5076}
5077_ACEOF
5078rm -f conftest.$ac_objext conftest$ac_exeext
5079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5080  (eval $ac_link) 2>conftest.er1
5081  ac_status=$?
5082  grep -v '^ *+' conftest.er1 >conftest.err
5083  rm -f conftest.er1
5084  cat conftest.err >&5
5085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086  (exit $ac_status); } &&
5087         { ac_try='test -z "$ac_c_werror_flag"
5088                         || test ! -s conftest.err'
5089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090  (eval $ac_try) 2>&5
5091  ac_status=$?
5092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093  (exit $ac_status); }; } &&
5094         { ac_try='test -s conftest$ac_exeext'
5095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096  (eval $ac_try) 2>&5
5097  ac_status=$?
5098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099  (exit $ac_status); }; }; then
5100  ac_cv_lib_sdlmain_main=yes
5101else
5102  echo "$as_me: failed program was:" >&5
5103sed 's/^/| /' conftest.$ac_ext >&5
5104
5105ac_cv_lib_sdlmain_main=no
5106fi
5107rm -f conftest.err conftest.$ac_objext \
5108      conftest$ac_exeext conftest.$ac_ext
5109LIBS=$ac_check_lib_save_LIBS
5110fi
5111echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5
5112echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6
5113if test $ac_cv_lib_sdlmain_main = yes; then
5114  FOUND_sdlmain=yes
5115fi
5116
5117    if test "$FOUND_sdlmain" = "yes" ; then
5118        LIBS="$LIBS -lsdlmain"
5119    fi
5120        echo "$as_me:$LINENO: checking for main in -lsdl" >&5
5121echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6
5122if test "${ac_cv_lib_sdl_main+set}" = set; then
5123  echo $ECHO_N "(cached) $ECHO_C" >&6
5124else
5125  ac_check_lib_save_LIBS=$LIBS
5126LIBS="-lsdl  $LIBS"
5127cat >conftest.$ac_ext <<_ACEOF
5128/* confdefs.h.  */
5129_ACEOF
5130cat confdefs.h >>conftest.$ac_ext
5131cat >>conftest.$ac_ext <<_ACEOF
5132/* end confdefs.h.  */
5133
5134
5135int
5136main ()
5137{
5138main ();
5139  ;
5140  return 0;
5141}
5142_ACEOF
5143rm -f conftest.$ac_objext conftest$ac_exeext
5144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5145  (eval $ac_link) 2>conftest.er1
5146  ac_status=$?
5147  grep -v '^ *+' conftest.er1 >conftest.err
5148  rm -f conftest.er1
5149  cat conftest.err >&5
5150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151  (exit $ac_status); } &&
5152         { ac_try='test -z "$ac_c_werror_flag"
5153                         || test ! -s conftest.err'
5154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5155  (eval $ac_try) 2>&5
5156  ac_status=$?
5157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158  (exit $ac_status); }; } &&
5159         { ac_try='test -s conftest$ac_exeext'
5160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161  (eval $ac_try) 2>&5
5162  ac_status=$?
5163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164  (exit $ac_status); }; }; then
5165  ac_cv_lib_sdl_main=yes
5166else
5167  echo "$as_me: failed program was:" >&5
5168sed 's/^/| /' conftest.$ac_ext >&5
5169
5170ac_cv_lib_sdl_main=no
5171fi
5172rm -f conftest.err conftest.$ac_objext \
5173      conftest$ac_exeext conftest.$ac_ext
5174LIBS=$ac_check_lib_save_LIBS
5175fi
5176echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5
5177echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6
5178if test $ac_cv_lib_sdl_main = yes; then
5179  FOUND_sdl=yes
5180fi
5181
5182        if test "$FOUND_sdl" = "yes" ; then
5183                LIBS="$LIBS -lsdl"
5184        fi
5185fi
5186
5187#checking for pthread libs
5188echo "$as_me:$LINENO: checking for main in -lpthread" >&5
5189echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
5190if test "${ac_cv_lib_pthread_main+set}" = set; then
5191  echo $ECHO_N "(cached) $ECHO_C" >&6
5192else
5193  ac_check_lib_save_LIBS=$LIBS
5194LIBS="-lpthread  $LIBS"
5195cat >conftest.$ac_ext <<_ACEOF
5196/* confdefs.h.  */
5197_ACEOF
5198cat confdefs.h >>conftest.$ac_ext
5199cat >>conftest.$ac_ext <<_ACEOF
5200/* end confdefs.h.  */
5201
5202
5203int
5204main ()
5205{
5206main ();
5207  ;
5208  return 0;
5209}
5210_ACEOF
5211rm -f conftest.$ac_objext conftest$ac_exeext
5212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5213  (eval $ac_link) 2>conftest.er1
5214  ac_status=$?
5215  grep -v '^ *+' conftest.er1 >conftest.err
5216  rm -f conftest.er1
5217  cat conftest.err >&5
5218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219  (exit $ac_status); } &&
5220         { ac_try='test -z "$ac_c_werror_flag"
5221                         || test ! -s conftest.err'
5222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5223  (eval $ac_try) 2>&5
5224  ac_status=$?
5225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226  (exit $ac_status); }; } &&
5227         { ac_try='test -s conftest$ac_exeext'
5228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5229  (eval $ac_try) 2>&5
5230  ac_status=$?
5231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232  (exit $ac_status); }; }; then
5233  ac_cv_lib_pthread_main=yes
5234else
5235  echo "$as_me: failed program was:" >&5
5236sed 's/^/| /' conftest.$ac_ext >&5
5237
5238ac_cv_lib_pthread_main=no
5239fi
5240rm -f conftest.err conftest.$ac_objext \
5241      conftest$ac_exeext conftest.$ac_ext
5242LIBS=$ac_check_lib_save_LIBS
5243fi
5244echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
5245echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
5246if test $ac_cv_lib_pthread_main = yes; then
5247  FOUND_pthread=yes
5248fi
5249
5250if test "$FOUND_pthread" = "yes" ; then
5251    LIBS="$LIBS -lpthread"
5252fi
5253
5254
5255
5256
5257# FIXME: Replace `main' with a function in `-lm':
5258
5259echo "$as_me:$LINENO: checking for main in -lm" >&5
5260echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5261if test "${ac_cv_lib_m_main+set}" = set; then
5262  echo $ECHO_N "(cached) $ECHO_C" >&6
5263else
5264  ac_check_lib_save_LIBS=$LIBS
5265LIBS="-lm  $LIBS"
5266cat >conftest.$ac_ext <<_ACEOF
5267/* confdefs.h.  */
5268_ACEOF
5269cat confdefs.h >>conftest.$ac_ext
5270cat >>conftest.$ac_ext <<_ACEOF
5271/* end confdefs.h.  */
5272
5273
5274int
5275main ()
5276{
5277main ();
5278  ;
5279  return 0;
5280}
5281_ACEOF
5282rm -f conftest.$ac_objext conftest$ac_exeext
5283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5284  (eval $ac_link) 2>conftest.er1
5285  ac_status=$?
5286  grep -v '^ *+' conftest.er1 >conftest.err
5287  rm -f conftest.er1
5288  cat conftest.err >&5
5289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290  (exit $ac_status); } &&
5291         { ac_try='test -z "$ac_c_werror_flag"
5292                         || test ! -s conftest.err'
5293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5294  (eval $ac_try) 2>&5
5295  ac_status=$?
5296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297  (exit $ac_status); }; } &&
5298         { ac_try='test -s conftest$ac_exeext'
5299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5300  (eval $ac_try) 2>&5
5301  ac_status=$?
5302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303  (exit $ac_status); }; }; then
5304  ac_cv_lib_m_main=yes
5305else
5306  echo "$as_me: failed program was:" >&5
5307sed 's/^/| /' conftest.$ac_ext >&5
5308
5309ac_cv_lib_m_main=no
5310fi
5311rm -f conftest.err conftest.$ac_objext \
5312      conftest$ac_exeext conftest.$ac_ext
5313LIBS=$ac_check_lib_save_LIBS
5314fi
5315echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5316echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5317if test $ac_cv_lib_m_main = yes; then
5318  cat >>confdefs.h <<_ACEOF
5319#define HAVE_LIBM 1
5320_ACEOF
5321
5322  LIBS="-lm $LIBS"
5323
5324fi
5325
5326
5327LIBS="$LIBS `pkg-config --libs  gtk+-2.0`"
5328
5329
5330# Checks for header files.
5331echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5332echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5333if test "${ac_cv_header_stdc+set}" = set; then
5334  echo $ECHO_N "(cached) $ECHO_C" >&6
5335else
5336  cat >conftest.$ac_ext <<_ACEOF
5337/* confdefs.h.  */
5338_ACEOF
5339cat confdefs.h >>conftest.$ac_ext
5340cat >>conftest.$ac_ext <<_ACEOF
5341/* end confdefs.h.  */
5342#include <stdlib.h>
5343#include <stdarg.h>
5344#include <string.h>
5345#include <float.h>
5346
5347int
5348main ()
5349{
5350
5351  ;
5352  return 0;
5353}
5354_ACEOF
5355rm -f conftest.$ac_objext
5356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5357  (eval $ac_compile) 2>conftest.er1
5358  ac_status=$?
5359  grep -v '^ *+' conftest.er1 >conftest.err
5360  rm -f conftest.er1
5361  cat conftest.err >&5
5362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363  (exit $ac_status); } &&
5364         { ac_try='test -z "$ac_c_werror_flag"
5365                         || test ! -s conftest.err'
5366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367  (eval $ac_try) 2>&5
5368  ac_status=$?
5369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370  (exit $ac_status); }; } &&
5371         { ac_try='test -s conftest.$ac_objext'
5372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373  (eval $ac_try) 2>&5
5374  ac_status=$?
5375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376  (exit $ac_status); }; }; then
5377  ac_cv_header_stdc=yes
5378else
5379  echo "$as_me: failed program was:" >&5
5380sed 's/^/| /' conftest.$ac_ext >&5
5381
5382ac_cv_header_stdc=no
5383fi
5384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5385
5386if test $ac_cv_header_stdc = yes; then
5387  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5388  cat >conftest.$ac_ext <<_ACEOF
5389/* confdefs.h.  */
5390_ACEOF
5391cat confdefs.h >>conftest.$ac_ext
5392cat >>conftest.$ac_ext <<_ACEOF
5393/* end confdefs.h.  */
5394#include <string.h>
5395
5396_ACEOF
5397if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5398  $EGREP "memchr" >/dev/null 2>&1; then
5399  :
5400else
5401  ac_cv_header_stdc=no
5402fi
5403rm -f conftest*
5404
5405fi
5406
5407if test $ac_cv_header_stdc = yes; then
5408  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5409  cat >conftest.$ac_ext <<_ACEOF
5410/* confdefs.h.  */
5411_ACEOF
5412cat confdefs.h >>conftest.$ac_ext
5413cat >>conftest.$ac_ext <<_ACEOF
5414/* end confdefs.h.  */
5415#include <stdlib.h>
5416
5417_ACEOF
5418if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5419  $EGREP "free" >/dev/null 2>&1; then
5420  :
5421else
5422  ac_cv_header_stdc=no
5423fi
5424rm -f conftest*
5425
5426fi
5427
5428if test $ac_cv_header_stdc = yes; then
5429  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5430  if test "$cross_compiling" = yes; then
5431  :
5432else
5433  cat >conftest.$ac_ext <<_ACEOF
5434/* confdefs.h.  */
5435_ACEOF
5436cat confdefs.h >>conftest.$ac_ext
5437cat >>conftest.$ac_ext <<_ACEOF
5438/* end confdefs.h.  */
5439#include <ctype.h>
5440#if ((' ' & 0x0FF) == 0x020)
5441# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5442# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5443#else
5444# define ISLOWER(c) \
5445                   (('a' <= (c) && (c) <= 'i') \
5446                     || ('j' <= (c) && (c) <= 'r') \
5447                     || ('s' <= (c) && (c) <= 'z'))
5448# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5449#endif
5450
5451#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5452int
5453main ()
5454{
5455  int i;
5456  for (i = 0; i < 256; i++)
5457    if (XOR (islower (i), ISLOWER (i))
5458        || toupper (i) != TOUPPER (i))
5459      exit(2);
5460  exit (0);
5461}
5462_ACEOF
5463rm -f conftest$ac_exeext
5464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5465  (eval $ac_link) 2>&5
5466  ac_status=$?
5467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470  (eval $ac_try) 2>&5
5471  ac_status=$?
5472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473  (exit $ac_status); }; }; then
5474  :
5475else
5476  echo "$as_me: program exited with status $ac_status" >&5
5477echo "$as_me: failed program was:" >&5
5478sed 's/^/| /' conftest.$ac_ext >&5
5479
5480( exit $ac_status )
5481ac_cv_header_stdc=no
5482fi
5483rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5484fi
5485fi
5486fi
5487echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5488echo "${ECHO_T}$ac_cv_header_stdc" >&6
5489if test $ac_cv_header_stdc = yes; then
5490
5491cat >>confdefs.h <<\_ACEOF
5492#define STDC_HEADERS 1
5493_ACEOF
5494
5495fi
5496
5497
5498
5499for ac_header in stdlib.h string.h
5500do
5501as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5502if eval "test \"\${$as_ac_Header+set}\" = set"; then
5503  echo "$as_me:$LINENO: checking for $ac_header" >&5
5504echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5505if eval "test \"\${$as_ac_Header+set}\" = set"; then
5506  echo $ECHO_N "(cached) $ECHO_C" >&6
5507fi
5508echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5509echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5510else
5511  # Is the header compilable?
5512echo "$as_me:$LINENO: checking $ac_header usability" >&5
5513echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5514cat >conftest.$ac_ext <<_ACEOF
5515/* confdefs.h.  */
5516_ACEOF
5517cat confdefs.h >>conftest.$ac_ext
5518cat >>conftest.$ac_ext <<_ACEOF
5519/* end confdefs.h.  */
5520$ac_includes_default
5521#include <$ac_header>
5522_ACEOF
5523rm -f conftest.$ac_objext
5524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5525  (eval $ac_compile) 2>conftest.er1
5526  ac_status=$?
5527  grep -v '^ *+' conftest.er1 >conftest.err
5528  rm -f conftest.er1
5529  cat conftest.err >&5
5530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531  (exit $ac_status); } &&
5532         { ac_try='test -z "$ac_c_werror_flag"
5533                         || test ! -s conftest.err'
5534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5535  (eval $ac_try) 2>&5
5536  ac_status=$?
5537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538  (exit $ac_status); }; } &&
5539         { ac_try='test -s conftest.$ac_objext'
5540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541  (eval $ac_try) 2>&5
5542  ac_status=$?
5543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544  (exit $ac_status); }; }; then
5545  ac_header_compiler=yes
5546else
5547  echo "$as_me: failed program was:" >&5
5548sed 's/^/| /' conftest.$ac_ext >&5
5549
5550ac_header_compiler=no
5551fi
5552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5553echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5554echo "${ECHO_T}$ac_header_compiler" >&6
5555
5556# Is the header present?
5557echo "$as_me:$LINENO: checking $ac_header presence" >&5
5558echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5559cat >conftest.$ac_ext <<_ACEOF
5560/* confdefs.h.  */
5561_ACEOF
5562cat confdefs.h >>conftest.$ac_ext
5563cat >>conftest.$ac_ext <<_ACEOF
5564/* end confdefs.h.  */
5565#include <$ac_header>
5566_ACEOF
5567if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5568  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5569  ac_status=$?
5570  grep -v '^ *+' conftest.er1 >conftest.err
5571  rm -f conftest.er1
5572  cat conftest.err >&5
5573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574  (exit $ac_status); } >/dev/null; then
5575  if test -s conftest.err; then
5576    ac_cpp_err=$ac_c_preproc_warn_flag
5577    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5578  else
5579    ac_cpp_err=
5580  fi
5581else
5582  ac_cpp_err=yes
5583fi
5584if test -z "$ac_cpp_err"; then
5585  ac_header_preproc=yes
5586else
5587  echo "$as_me: failed program was:" >&5
5588sed 's/^/| /' conftest.$ac_ext >&5
5589
5590  ac_header_preproc=no
5591fi
5592rm -f conftest.err conftest.$ac_ext
5593echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5594echo "${ECHO_T}$ac_header_preproc" >&6
5595
5596# So?  What about this header?
5597case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5598  yes:no: )
5599    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5600echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5601    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5602echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5603    ac_header_preproc=yes
5604    ;;
5605  no:yes:* )
5606    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5607echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5608    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5609echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5610    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5611echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5612    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5613echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5614    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5615echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5616    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5617echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5618    (
5619      cat <<\_ASBOX
5620## ------------------------------------------- ##
5621## Report this to orxonox-dev@mail.datacore.ch ##
5622## ------------------------------------------- ##
5623_ASBOX
5624    ) |
5625      sed "s/^/$as_me: WARNING:     /" >&2
5626    ;;
5627esac
5628echo "$as_me:$LINENO: checking for $ac_header" >&5
5629echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5630if eval "test \"\${$as_ac_Header+set}\" = set"; then
5631  echo $ECHO_N "(cached) $ECHO_C" >&6
5632else
5633  eval "$as_ac_Header=\$ac_header_preproc"
5634fi
5635echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5636echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5637
5638fi
5639if test `eval echo '${'$as_ac_Header'}'` = yes; then
5640  cat >>confdefs.h <<_ACEOF
5641#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5642_ACEOF
5643
5644fi
5645
5646done
5647
5648
5649# Checks for typedefs, structures, and compiler characteristics.
5650echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
5651echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
5652if test "${ac_cv_header_stdbool_h+set}" = set; then
5653  echo $ECHO_N "(cached) $ECHO_C" >&6
5654else
5655  cat >conftest.$ac_ext <<_ACEOF
5656/* confdefs.h.  */
5657_ACEOF
5658cat confdefs.h >>conftest.$ac_ext
5659cat >>conftest.$ac_ext <<_ACEOF
5660/* end confdefs.h.  */
5661
5662#include <stdbool.h>
5663#ifndef bool
5664# error bool is not defined
5665#endif
5666#ifndef false
5667# error false is not defined
5668#endif
5669#if false
5670# error false is not 0
5671#endif
5672#ifndef true
5673# error true is not defined
5674#endif
5675#if true != 1
5676# error true is not 1
5677#endif
5678#ifndef __bool_true_false_are_defined
5679# error __bool_true_false_are_defined is not defined
5680#endif
5681
5682        struct s { _Bool s: 1; _Bool t; } s;
5683
5684        char a[true == 1 ? 1 : -1];
5685        char b[false == 0 ? 1 : -1];
5686        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
5687        char d[(bool) -0.5 == true ? 1 : -1];
5688        bool e = &s;
5689        char f[(_Bool) -0.0 == false ? 1 : -1];
5690        char g[true];
5691        char h[sizeof (_Bool)];
5692        char i[sizeof s.t];
5693
5694int
5695main ()
5696{
5697 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
5698  ;
5699  return 0;
5700}
5701_ACEOF
5702rm -f conftest.$ac_objext
5703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5704  (eval $ac_compile) 2>conftest.er1
5705  ac_status=$?
5706  grep -v '^ *+' conftest.er1 >conftest.err
5707  rm -f conftest.er1
5708  cat conftest.err >&5
5709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710  (exit $ac_status); } &&
5711         { ac_try='test -z "$ac_c_werror_flag"
5712                         || test ! -s conftest.err'
5713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5714  (eval $ac_try) 2>&5
5715  ac_status=$?
5716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717  (exit $ac_status); }; } &&
5718         { ac_try='test -s conftest.$ac_objext'
5719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5720  (eval $ac_try) 2>&5
5721  ac_status=$?
5722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723  (exit $ac_status); }; }; then
5724  ac_cv_header_stdbool_h=yes
5725else
5726  echo "$as_me: failed program was:" >&5
5727sed 's/^/| /' conftest.$ac_ext >&5
5728
5729ac_cv_header_stdbool_h=no
5730fi
5731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5732fi
5733echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5734echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5735echo "$as_me:$LINENO: checking for _Bool" >&5
5736echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
5737if test "${ac_cv_type__Bool+set}" = set; then
5738  echo $ECHO_N "(cached) $ECHO_C" >&6
5739else
5740  cat >conftest.$ac_ext <<_ACEOF
5741/* confdefs.h.  */
5742_ACEOF
5743cat confdefs.h >>conftest.$ac_ext
5744cat >>conftest.$ac_ext <<_ACEOF
5745/* end confdefs.h.  */
5746$ac_includes_default
5747int
5748main ()
5749{
5750if ((_Bool *) 0)
5751  return 0;
5752if (sizeof (_Bool))
5753  return 0;
5754  ;
5755  return 0;
5756}
5757_ACEOF
5758rm -f conftest.$ac_objext
5759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5760  (eval $ac_compile) 2>conftest.er1
5761  ac_status=$?
5762  grep -v '^ *+' conftest.er1 >conftest.err
5763  rm -f conftest.er1
5764  cat conftest.err >&5
5765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766  (exit $ac_status); } &&
5767         { ac_try='test -z "$ac_c_werror_flag"
5768                         || test ! -s conftest.err'
5769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770  (eval $ac_try) 2>&5
5771  ac_status=$?
5772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773  (exit $ac_status); }; } &&
5774         { ac_try='test -s conftest.$ac_objext'
5775  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776  (eval $ac_try) 2>&5
5777  ac_status=$?
5778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779  (exit $ac_status); }; }; then
5780  ac_cv_type__Bool=yes
5781else
5782  echo "$as_me: failed program was:" >&5
5783sed 's/^/| /' conftest.$ac_ext >&5
5784
5785ac_cv_type__Bool=no
5786fi
5787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5788fi
5789echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
5790echo "${ECHO_T}$ac_cv_type__Bool" >&6
5791if test $ac_cv_type__Bool = yes; then
5792
5793cat >>confdefs.h <<_ACEOF
5794#define HAVE__BOOL 1
5795_ACEOF
5796
5797
5798fi
5799
5800if test $ac_cv_header_stdbool_h = yes; then
5801
5802cat >>confdefs.h <<\_ACEOF
5803#define HAVE_STDBOOL_H 1
5804_ACEOF
5805
5806fi
5807
5808
5809# Checks for library functions.
5810
5811for ac_header in stdlib.h
5812do
5813as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5814if eval "test \"\${$as_ac_Header+set}\" = set"; then
5815  echo "$as_me:$LINENO: checking for $ac_header" >&5
5816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5817if eval "test \"\${$as_ac_Header+set}\" = set"; then
5818  echo $ECHO_N "(cached) $ECHO_C" >&6
5819fi
5820echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5821echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5822else
5823  # Is the header compilable?
5824echo "$as_me:$LINENO: checking $ac_header usability" >&5
5825echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5826cat >conftest.$ac_ext <<_ACEOF
5827/* confdefs.h.  */
5828_ACEOF
5829cat confdefs.h >>conftest.$ac_ext
5830cat >>conftest.$ac_ext <<_ACEOF
5831/* end confdefs.h.  */
5832$ac_includes_default
5833#include <$ac_header>
5834_ACEOF
5835rm -f conftest.$ac_objext
5836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5837  (eval $ac_compile) 2>conftest.er1
5838  ac_status=$?
5839  grep -v '^ *+' conftest.er1 >conftest.err
5840  rm -f conftest.er1
5841  cat conftest.err >&5
5842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843  (exit $ac_status); } &&
5844         { ac_try='test -z "$ac_c_werror_flag"
5845                         || test ! -s conftest.err'
5846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847  (eval $ac_try) 2>&5
5848  ac_status=$?
5849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850  (exit $ac_status); }; } &&
5851         { ac_try='test -s conftest.$ac_objext'
5852  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5853  (eval $ac_try) 2>&5
5854  ac_status=$?
5855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856  (exit $ac_status); }; }; then
5857  ac_header_compiler=yes
5858else
5859  echo "$as_me: failed program was:" >&5
5860sed 's/^/| /' conftest.$ac_ext >&5
5861
5862ac_header_compiler=no
5863fi
5864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5865echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5866echo "${ECHO_T}$ac_header_compiler" >&6
5867
5868# Is the header present?
5869echo "$as_me:$LINENO: checking $ac_header presence" >&5
5870echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5871cat >conftest.$ac_ext <<_ACEOF
5872/* confdefs.h.  */
5873_ACEOF
5874cat confdefs.h >>conftest.$ac_ext
5875cat >>conftest.$ac_ext <<_ACEOF
5876/* end confdefs.h.  */
5877#include <$ac_header>
5878_ACEOF
5879if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5880  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5881  ac_status=$?
5882  grep -v '^ *+' conftest.er1 >conftest.err
5883  rm -f conftest.er1
5884  cat conftest.err >&5
5885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886  (exit $ac_status); } >/dev/null; then
5887  if test -s conftest.err; then
5888    ac_cpp_err=$ac_c_preproc_warn_flag
5889    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5890  else
5891    ac_cpp_err=
5892  fi
5893else
5894  ac_cpp_err=yes
5895fi
5896if test -z "$ac_cpp_err"; then
5897  ac_header_preproc=yes
5898else
5899  echo "$as_me: failed program was:" >&5
5900sed 's/^/| /' conftest.$ac_ext >&5
5901
5902  ac_header_preproc=no
5903fi
5904rm -f conftest.err conftest.$ac_ext
5905echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5906echo "${ECHO_T}$ac_header_preproc" >&6
5907
5908# So?  What about this header?
5909case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5910  yes:no: )
5911    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5912echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5913    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5914echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5915    ac_header_preproc=yes
5916    ;;
5917  no:yes:* )
5918    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5919echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5920    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5921echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5922    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5923echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5924    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5925echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5926    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5927echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5928    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5929echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5930    (
5931      cat <<\_ASBOX
5932## ------------------------------------------- ##
5933## Report this to orxonox-dev@mail.datacore.ch ##
5934## ------------------------------------------- ##
5935_ASBOX
5936    ) |
5937      sed "s/^/$as_me: WARNING:     /" >&2
5938    ;;
5939esac
5940echo "$as_me:$LINENO: checking for $ac_header" >&5
5941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5942if eval "test \"\${$as_ac_Header+set}\" = set"; then
5943  echo $ECHO_N "(cached) $ECHO_C" >&6
5944else
5945  eval "$as_ac_Header=\$ac_header_preproc"
5946fi
5947echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5948echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5949
5950fi
5951if test `eval echo '${'$as_ac_Header'}'` = yes; then
5952  cat >>confdefs.h <<_ACEOF
5953#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5954_ACEOF
5955
5956fi
5957
5958done
5959
5960echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
5961echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
5962if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
5963  echo $ECHO_N "(cached) $ECHO_C" >&6
5964else
5965  if test "$cross_compiling" = yes; then
5966  ac_cv_func_malloc_0_nonnull=no
5967else
5968  cat >conftest.$ac_ext <<_ACEOF
5969/* confdefs.h.  */
5970_ACEOF
5971cat confdefs.h >>conftest.$ac_ext
5972cat >>conftest.$ac_ext <<_ACEOF
5973/* end confdefs.h.  */
5974#if STDC_HEADERS || HAVE_STDLIB_H
5975# include <stdlib.h>
5976#else
5977char *malloc ();
5978#endif
5979
5980int
5981main ()
5982{
5983exit (malloc (0) ? 0 : 1);
5984  ;
5985  return 0;
5986}
5987_ACEOF
5988rm -f conftest$ac_exeext
5989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5990  (eval $ac_link) 2>&5
5991  ac_status=$?
5992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5994  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995  (eval $ac_try) 2>&5
5996  ac_status=$?
5997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998  (exit $ac_status); }; }; then
5999  ac_cv_func_malloc_0_nonnull=yes
6000else
6001  echo "$as_me: program exited with status $ac_status" >&5
6002echo "$as_me: failed program was:" >&5
6003sed 's/^/| /' conftest.$ac_ext >&5
6004
6005( exit $ac_status )
6006ac_cv_func_malloc_0_nonnull=no
6007fi
6008rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6009fi
6010fi
6011echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
6012echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
6013if test $ac_cv_func_malloc_0_nonnull = yes; then
6014
6015cat >>confdefs.h <<\_ACEOF
6016#define HAVE_MALLOC 1
6017_ACEOF
6018
6019else
6020  cat >>confdefs.h <<\_ACEOF
6021#define HAVE_MALLOC 0
6022_ACEOF
6023
6024   case $LIBOBJS in
6025    "malloc.$ac_objext"   | \
6026  *" malloc.$ac_objext"   | \
6027    "malloc.$ac_objext "* | \
6028  *" malloc.$ac_objext "* ) ;;
6029  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
6030esac
6031
6032
6033cat >>confdefs.h <<\_ACEOF
6034#define malloc rpl_malloc
6035_ACEOF
6036
6037fi
6038
6039
6040
6041
6042
6043for ac_func in bzero sqrt
6044do
6045as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6046echo "$as_me:$LINENO: checking for $ac_func" >&5
6047echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6048if eval "test \"\${$as_ac_var+set}\" = set"; then
6049  echo $ECHO_N "(cached) $ECHO_C" >&6
6050else
6051  cat >conftest.$ac_ext <<_ACEOF
6052/* confdefs.h.  */
6053_ACEOF
6054cat confdefs.h >>conftest.$ac_ext
6055cat >>conftest.$ac_ext <<_ACEOF
6056/* end confdefs.h.  */
6057/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6058   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6059#define $ac_func innocuous_$ac_func
6060
6061/* System header to define __stub macros and hopefully few prototypes,
6062    which can conflict with char $ac_func (); below.
6063    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6064    <limits.h> exists even on freestanding compilers.  */
6065
6066#ifdef __STDC__
6067# include <limits.h>
6068#else
6069# include <assert.h>
6070#endif
6071
6072#undef $ac_func
6073
6074/* Override any gcc2 internal prototype to avoid an error.  */
6075#ifdef __cplusplus
6076extern "C"
6077{
6078#endif
6079/* We use char because int might match the return type of a gcc2
6080   builtin and then its argument prototype would still apply.  */
6081char $ac_func ();
6082/* The GNU C library defines this for functions which it implements
6083    to always fail with ENOSYS.  Some functions are actually named
6084    something starting with __ and the normal name is an alias.  */
6085#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6086choke me
6087#else
6088char (*f) () = $ac_func;
6089#endif
6090#ifdef __cplusplus
6091}
6092#endif
6093
6094int
6095main ()
6096{
6097return f != $ac_func;
6098  ;
6099  return 0;
6100}
6101_ACEOF
6102rm -f conftest.$ac_objext conftest$ac_exeext
6103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6104  (eval $ac_link) 2>conftest.er1
6105  ac_status=$?
6106  grep -v '^ *+' conftest.er1 >conftest.err
6107  rm -f conftest.er1
6108  cat conftest.err >&5
6109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110  (exit $ac_status); } &&
6111         { ac_try='test -z "$ac_c_werror_flag"
6112                         || test ! -s conftest.err'
6113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114  (eval $ac_try) 2>&5
6115  ac_status=$?
6116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117  (exit $ac_status); }; } &&
6118         { ac_try='test -s conftest$ac_exeext'
6119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6120  (eval $ac_try) 2>&5
6121  ac_status=$?
6122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123  (exit $ac_status); }; }; then
6124  eval "$as_ac_var=yes"
6125else
6126  echo "$as_me: failed program was:" >&5
6127sed 's/^/| /' conftest.$ac_ext >&5
6128
6129eval "$as_ac_var=no"
6130fi
6131rm -f conftest.err conftest.$ac_objext \
6132      conftest$ac_exeext conftest.$ac_ext
6133fi
6134echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6135echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6136if test `eval echo '${'$as_ac_var'}'` = yes; then
6137  cat >>confdefs.h <<_ACEOF
6138#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6139_ACEOF
6140
6141fi
6142done
6143
6144
6145                                        ac_config_files="$ac_config_files Makefile console/Makefile gui/Makefile src/Makefile"
6146
6147cat >confcache <<\_ACEOF
6148# This file is a shell script that caches the results of configure
6149# tests run on this system so they can be shared between configure
6150# scripts and configure runs, see configure's option --config-cache.
6151# It is not useful on other systems.  If it contains results you don't
6152# want to keep, you may remove or edit it.
6153#
6154# config.status only pays attention to the cache file if you give it
6155# the --recheck option to rerun configure.
6156#
6157# `ac_cv_env_foo' variables (set or unset) will be overridden when
6158# loading this file, other *unset* `ac_cv_foo' will be assigned the
6159# following values.
6160
6161_ACEOF
6162
6163# The following way of writing the cache mishandles newlines in values,
6164# but we know of no workaround that is simple, portable, and efficient.
6165# So, don't put newlines in cache variables' values.
6166# Ultrix sh set writes to stderr and can't be redirected directly,
6167# and sets the high bit in the cache file unless we assign to the vars.
6168{
6169  (set) 2>&1 |
6170    case `(ac_space=' '; set | grep ac_space) 2>&1` in
6171    *ac_space=\ *)
6172      # `set' does not quote correctly, so add quotes (double-quote
6173      # substitution turns \\\\ into \\, and sed turns \\ into \).
6174      sed -n \
6175        "s/'/'\\\\''/g;
6176          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6177      ;;
6178    *)
6179      # `set' quotes correctly as required by POSIX, so do not add quotes.
6180      sed -n \
6181        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6182      ;;
6183    esac;
6184} |
6185  sed '
6186     t clear
6187     : clear
6188     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6189     t end
6190     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6191     : end' >>confcache
6192if diff $cache_file confcache >/dev/null 2>&1; then :; else
6193  if test -w $cache_file; then
6194    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6195    cat confcache >$cache_file
6196  else
6197    echo "not updating unwritable cache $cache_file"
6198  fi
6199fi
6200rm -f confcache
6201
6202test "x$prefix" = xNONE && prefix=$ac_default_prefix
6203# Let make expand exec_prefix.
6204test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6205
6206# VPATH may cause trouble with some makes, so we remove $(srcdir),
6207# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6208# trailing colons and then remove the whole line if VPATH becomes empty
6209# (actually we leave an empty line to preserve line numbers).
6210if test "x$srcdir" = x.; then
6211  ac_vpsub='/^[  ]*VPATH[        ]*=/{
6212s/:*\$(srcdir):*/:/;
6213s/:*\${srcdir}:*/:/;
6214s/:*@srcdir@:*/:/;
6215s/^\([^=]*=[     ]*\):*/\1/;
6216s/:*$//;
6217s/^[^=]*=[       ]*$//;
6218}'
6219fi
6220
6221DEFS=-DHAVE_CONFIG_H
6222
6223ac_libobjs=
6224ac_ltlibobjs=
6225for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6226  # 1. Remove the extension, and $U if already installed.
6227  ac_i=`echo "$ac_i" |
6228         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6229  # 2. Add them.
6230  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6231  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6232done
6233LIBOBJS=$ac_libobjs
6234
6235LTLIBOBJS=$ac_ltlibobjs
6236
6237
6238if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6239  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6240Usually this means the macro was only invoked conditionally." >&5
6241echo "$as_me: error: conditional \"AMDEP\" was never defined.
6242Usually this means the macro was only invoked conditionally." >&2;}
6243   { (exit 1); exit 1; }; }
6244fi
6245if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
6246  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
6247Usually this means the macro was only invoked conditionally." >&5
6248echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
6249Usually this means the macro was only invoked conditionally." >&2;}
6250   { (exit 1); exit 1; }; }
6251fi
6252if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6253  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6254Usually this means the macro was only invoked conditionally." >&5
6255echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6256Usually this means the macro was only invoked conditionally." >&2;}
6257   { (exit 1); exit 1; }; }
6258fi
6259
6260: ${CONFIG_STATUS=./config.status}
6261ac_clean_files_save=$ac_clean_files
6262ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6263{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6264echo "$as_me: creating $CONFIG_STATUS" >&6;}
6265cat >$CONFIG_STATUS <<_ACEOF
6266#! $SHELL
6267# Generated by $as_me.
6268# Run this file to recreate the current configuration.
6269# Compiler output produced by configure, useful for debugging
6270# configure, is in config.log if it exists.
6271
6272debug=false
6273ac_cs_recheck=false
6274ac_cs_silent=false
6275SHELL=\${CONFIG_SHELL-$SHELL}
6276_ACEOF
6277
6278cat >>$CONFIG_STATUS <<\_ACEOF
6279## --------------------- ##
6280## M4sh Initialization.  ##
6281## --------------------- ##
6282
6283# Be Bourne compatible
6284if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6285  emulate sh
6286  NULLCMD=:
6287  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6288  # is contrary to our usage.  Disable this feature.
6289  alias -g '${1+"$@"}'='"$@"'
6290elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6291  set -o posix
6292fi
6293DUALCASE=1; export DUALCASE # for MKS sh
6294
6295# Support unset when possible.
6296if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6297  as_unset=unset
6298else
6299  as_unset=false
6300fi
6301
6302
6303# Work around bugs in pre-3.0 UWIN ksh.
6304$as_unset ENV MAIL MAILPATH
6305PS1='$ '
6306PS2='> '
6307PS4='+ '
6308
6309# NLS nuisances.
6310for as_var in \
6311  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6312  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6313  LC_TELEPHONE LC_TIME
6314do
6315  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6316    eval $as_var=C; export $as_var
6317  else
6318    $as_unset $as_var
6319  fi
6320done
6321
6322# Required to use basename.
6323if expr a : '\(a\)' >/dev/null 2>&1; then
6324  as_expr=expr
6325else
6326  as_expr=false
6327fi
6328
6329if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6330  as_basename=basename
6331else
6332  as_basename=false
6333fi
6334
6335
6336# Name of the executable.
6337as_me=`$as_basename "$0" ||
6338$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6339         X"$0" : 'X\(//\)$' \| \
6340         X"$0" : 'X\(/\)$' \| \
6341         .     : '\(.\)' 2>/dev/null ||
6342echo X/"$0" |
6343    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6344          /^X\/\(\/\/\)$/{ s//\1/; q; }
6345          /^X\/\(\/\).*/{ s//\1/; q; }
6346          s/.*/./; q'`
6347
6348
6349# PATH needs CR, and LINENO needs CR and PATH.
6350# Avoid depending upon Character Ranges.
6351as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6352as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6353as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6354as_cr_digits='0123456789'
6355as_cr_alnum=$as_cr_Letters$as_cr_digits
6356
6357# The user is always right.
6358if test "${PATH_SEPARATOR+set}" != set; then
6359  echo "#! /bin/sh" >conf$$.sh
6360  echo  "exit 0"   >>conf$$.sh
6361  chmod +x conf$$.sh
6362  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6363    PATH_SEPARATOR=';'
6364  else
6365    PATH_SEPARATOR=:
6366  fi
6367  rm -f conf$$.sh
6368fi
6369
6370
6371  as_lineno_1=$LINENO
6372  as_lineno_2=$LINENO
6373  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6374  test "x$as_lineno_1" != "x$as_lineno_2" &&
6375  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
6376  # Find who we are.  Look in the path if we contain no path at all
6377  # relative or not.
6378  case $0 in
6379    *[\\/]* ) as_myself=$0 ;;
6380    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381for as_dir in $PATH
6382do
6383  IFS=$as_save_IFS
6384  test -z "$as_dir" && as_dir=.
6385  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6386done
6387
6388       ;;
6389  esac
6390  # We did not find ourselves, most probably we were run as `sh COMMAND'
6391  # in which case we are not to be found in the path.
6392  if test "x$as_myself" = x; then
6393    as_myself=$0
6394  fi
6395  if test ! -f "$as_myself"; then
6396    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6397echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6398   { (exit 1); exit 1; }; }
6399  fi
6400  case $CONFIG_SHELL in
6401  '')
6402    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6404do
6405  IFS=$as_save_IFS
6406  test -z "$as_dir" && as_dir=.
6407  for as_base in sh bash ksh sh5; do
6408         case $as_dir in
6409         /*)
6410           if ("$as_dir/$as_base" -c '
6411  as_lineno_1=$LINENO
6412  as_lineno_2=$LINENO
6413  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6414  test "x$as_lineno_1" != "x$as_lineno_2" &&
6415  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
6416             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6417             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6418             CONFIG_SHELL=$as_dir/$as_base
6419             export CONFIG_SHELL
6420             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6421           fi;;
6422         esac
6423       done
6424done
6425;;
6426  esac
6427
6428  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6429  # uniformly replaced by the line number.  The first 'sed' inserts a
6430  # line-number line before each line; the second 'sed' does the real
6431  # work.  The second script uses 'N' to pair each line-number line
6432  # with the numbered line, and appends trailing '-' during
6433  # substitution so that $LINENO is not a special case at line end.
6434  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6435  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
6436  sed '=' <$as_myself |
6437    sed '
6438      N
6439      s,$,-,
6440      : loop
6441      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6442      t loop
6443      s,-$,,
6444      s,^['$as_cr_digits']*\n,,
6445    ' >$as_me.lineno &&
6446  chmod +x $as_me.lineno ||
6447    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6448echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6449   { (exit 1); exit 1; }; }
6450
6451  # Don't try to exec as it changes $[0], causing all sort of problems
6452  # (the dirname of $[0] is not the place where we might find the
6453  # original and so on.  Autoconf is especially sensible to this).
6454  . ./$as_me.lineno
6455  # Exit status is that of the last command.
6456  exit
6457}
6458
6459
6460case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6461  *c*,-n*) ECHO_N= ECHO_C='
6462' ECHO_T='      ' ;;
6463  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6464  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
6465esac
6466
6467if expr a : '\(a\)' >/dev/null 2>&1; then
6468  as_expr=expr
6469else
6470  as_expr=false
6471fi
6472
6473rm -f conf$$ conf$$.exe conf$$.file
6474echo >conf$$.file
6475if ln -s conf$$.file conf$$ 2>/dev/null; then
6476  # We could just check for DJGPP; but this test a) works b) is more generic
6477  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6478  if test -f conf$$.exe; then
6479    # Don't use ln at all; we don't have any links
6480    as_ln_s='cp -p'
6481  else
6482    as_ln_s='ln -s'
6483  fi
6484elif ln conf$$.file conf$$ 2>/dev/null; then
6485  as_ln_s=ln
6486else
6487  as_ln_s='cp -p'
6488fi
6489rm -f conf$$ conf$$.exe conf$$.file
6490
6491if mkdir -p . 2>/dev/null; then
6492  as_mkdir_p=:
6493else
6494  test -d ./-p && rmdir ./-p
6495  as_mkdir_p=false
6496fi
6497
6498as_executable_p="test -f"
6499
6500# Sed expression to map a string onto a valid CPP name.
6501as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6502
6503# Sed expression to map a string onto a valid variable name.
6504as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6505
6506
6507# IFS
6508# We need space, tab and new line, in precisely that order.
6509as_nl='
6510'
6511IFS="   $as_nl"
6512
6513# CDPATH.
6514$as_unset CDPATH
6515
6516exec 6>&1
6517
6518# Open the log real soon, to keep \$[0] and so on meaningful, and to
6519# report actual input values of CONFIG_FILES etc. instead of their
6520# values after options handling.  Logging --version etc. is OK.
6521exec 5>>config.log
6522{
6523  echo
6524  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6525## Running $as_me. ##
6526_ASBOX
6527} >&5
6528cat >&5 <<_CSEOF
6529
6530This file was extended by orxonox $as_me 0.1-pre-alpha, which was
6531generated by GNU Autoconf 2.59.  Invocation command line was
6532
6533  CONFIG_FILES    = $CONFIG_FILES
6534  CONFIG_HEADERS  = $CONFIG_HEADERS
6535  CONFIG_LINKS    = $CONFIG_LINKS
6536  CONFIG_COMMANDS = $CONFIG_COMMANDS
6537  $ $0 $@
6538
6539_CSEOF
6540echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6541echo >&5
6542_ACEOF
6543
6544# Files that config.status was made for.
6545if test -n "$ac_config_files"; then
6546  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6547fi
6548
6549if test -n "$ac_config_headers"; then
6550  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6551fi
6552
6553if test -n "$ac_config_links"; then
6554  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6555fi
6556
6557if test -n "$ac_config_commands"; then
6558  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6559fi
6560
6561cat >>$CONFIG_STATUS <<\_ACEOF
6562
6563ac_cs_usage="\
6564\`$as_me' instantiates files from templates according to the
6565current configuration.
6566
6567Usage: $0 [OPTIONS] [FILE]...
6568
6569  -h, --help       print this help, then exit
6570  -V, --version    print version number, then exit
6571  -q, --quiet      do not print progress messages
6572  -d, --debug      don't remove temporary files
6573      --recheck    update $as_me by reconfiguring in the same conditions
6574  --file=FILE[:TEMPLATE]
6575                   instantiate the configuration file FILE
6576  --header=FILE[:TEMPLATE]
6577                   instantiate the configuration header FILE
6578
6579Configuration files:
6580$config_files
6581
6582Configuration headers:
6583$config_headers
6584
6585Configuration commands:
6586$config_commands
6587
6588Report bugs to <bug-autoconf@gnu.org>."
6589_ACEOF
6590
6591cat >>$CONFIG_STATUS <<_ACEOF
6592ac_cs_version="\\
6593orxonox config.status 0.1-pre-alpha
6594configured by $0, generated by GNU Autoconf 2.59,
6595  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6596
6597Copyright (C) 2003 Free Software Foundation, Inc.
6598This config.status script is free software; the Free Software Foundation
6599gives unlimited permission to copy, distribute and modify it."
6600srcdir=$srcdir
6601INSTALL="$INSTALL"
6602_ACEOF
6603
6604cat >>$CONFIG_STATUS <<\_ACEOF
6605# If no file are specified by the user, then we need to provide default
6606# value.  By we need to know if files were specified by the user.
6607ac_need_defaults=:
6608while test $# != 0
6609do
6610  case $1 in
6611  --*=*)
6612    ac_option=`expr "x$1" : 'x\([^=]*\)='`
6613    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6614    ac_shift=:
6615    ;;
6616  -*)
6617    ac_option=$1
6618    ac_optarg=$2
6619    ac_shift=shift
6620    ;;
6621  *) # This is not an option, so the user has probably given explicit
6622     # arguments.
6623     ac_option=$1
6624     ac_need_defaults=false;;
6625  esac
6626
6627  case $ac_option in
6628  # Handling of the options.
6629_ACEOF
6630cat >>$CONFIG_STATUS <<\_ACEOF
6631  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6632    ac_cs_recheck=: ;;
6633  --version | --vers* | -V )
6634    echo "$ac_cs_version"; exit 0 ;;
6635  --he | --h)
6636    # Conflict between --help and --header
6637    { { echo "$as_me:$LINENO: error: ambiguous option: $1
6638Try \`$0 --help' for more information." >&5
6639echo "$as_me: error: ambiguous option: $1
6640Try \`$0 --help' for more information." >&2;}
6641   { (exit 1); exit 1; }; };;
6642  --help | --hel | -h )
6643    echo "$ac_cs_usage"; exit 0 ;;
6644  --debug | --d* | -d )
6645    debug=: ;;
6646  --file | --fil | --fi | --f )
6647    $ac_shift
6648    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6649    ac_need_defaults=false;;
6650  --header | --heade | --head | --hea )
6651    $ac_shift
6652    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6653    ac_need_defaults=false;;
6654  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6655  | -silent | --silent | --silen | --sile | --sil | --si | --s)
6656    ac_cs_silent=: ;;
6657
6658  # This is an error.
6659  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6660Try \`$0 --help' for more information." >&5
6661echo "$as_me: error: unrecognized option: $1
6662Try \`$0 --help' for more information." >&2;}
6663   { (exit 1); exit 1; }; } ;;
6664
6665  *) ac_config_targets="$ac_config_targets $1" ;;
6666
6667  esac
6668  shift
6669done
6670
6671ac_configure_extra_args=
6672
6673if $ac_cs_silent; then
6674  exec 6>/dev/null
6675  ac_configure_extra_args="$ac_configure_extra_args --silent"
6676fi
6677
6678_ACEOF
6679cat >>$CONFIG_STATUS <<_ACEOF
6680if \$ac_cs_recheck; then
6681  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6682  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6683fi
6684
6685_ACEOF
6686
6687cat >>$CONFIG_STATUS <<_ACEOF
6688#
6689# INIT-COMMANDS section.
6690#
6691
6692AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6693
6694_ACEOF
6695
6696
6697
6698cat >>$CONFIG_STATUS <<\_ACEOF
6699for ac_config_target in $ac_config_targets
6700do
6701  case "$ac_config_target" in
6702  # Handling of arguments.
6703  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6704  "console/Makefile" ) CONFIG_FILES="$CONFIG_FILES console/Makefile" ;;
6705  "gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;;
6706  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6707  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6708  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6709  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6710echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6711   { (exit 1); exit 1; }; };;
6712  esac
6713done
6714
6715# If the user did not use the arguments to specify the items to instantiate,
6716# then the envvar interface is used.  Set only those that are not.
6717# We use the long form for the default assignment because of an extremely
6718# bizarre bug on SunOS 4.1.3.
6719if $ac_need_defaults; then
6720  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6721  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6722  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6723fi
6724
6725# Have a temporary directory for convenience.  Make it in the build tree
6726# simply because there is no reason to put it here, and in addition,
6727# creating and moving files from /tmp can sometimes cause problems.
6728# Create a temporary directory, and hook for its removal unless debugging.
6729$debug ||
6730{
6731  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6732  trap '{ (exit 1); exit 1; }' 1 2 13 15
6733}
6734
6735# Create a (secure) tmp directory for tmp files.
6736
6737{
6738  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6739  test -n "$tmp" && test -d "$tmp"
6740}  ||
6741{
6742  tmp=./confstat$$-$RANDOM
6743  (umask 077 && mkdir $tmp)
6744} ||
6745{
6746   echo "$me: cannot create a temporary directory in ." >&2
6747   { (exit 1); exit 1; }
6748}
6749
6750_ACEOF
6751
6752cat >>$CONFIG_STATUS <<_ACEOF
6753
6754#
6755# CONFIG_FILES section.
6756#
6757
6758# No need to generate the scripts if there are no CONFIG_FILES.
6759# This happens for instance when ./config.status config.h
6760if test -n "\$CONFIG_FILES"; then
6761  # Protect against being on the right side of a sed subst in config.status.
6762  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6763   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6764s,@SHELL@,$SHELL,;t t
6765s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6766s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6767s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6768s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6769s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6770s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6771s,@exec_prefix@,$exec_prefix,;t t
6772s,@prefix@,$prefix,;t t
6773s,@program_transform_name@,$program_transform_name,;t t
6774s,@bindir@,$bindir,;t t
6775s,@sbindir@,$sbindir,;t t
6776s,@libexecdir@,$libexecdir,;t t
6777s,@datadir@,$datadir,;t t
6778s,@sysconfdir@,$sysconfdir,;t t
6779s,@sharedstatedir@,$sharedstatedir,;t t
6780s,@localstatedir@,$localstatedir,;t t
6781s,@libdir@,$libdir,;t t
6782s,@includedir@,$includedir,;t t
6783s,@oldincludedir@,$oldincludedir,;t t
6784s,@infodir@,$infodir,;t t
6785s,@mandir@,$mandir,;t t
6786s,@build_alias@,$build_alias,;t t
6787s,@host_alias@,$host_alias,;t t
6788s,@target_alias@,$target_alias,;t t
6789s,@DEFS@,$DEFS,;t t
6790s,@ECHO_C@,$ECHO_C,;t t
6791s,@ECHO_N@,$ECHO_N,;t t
6792s,@ECHO_T@,$ECHO_T,;t t
6793s,@LIBS@,$LIBS,;t t
6794s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6795s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6796s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6797s,@CYGPATH_W@,$CYGPATH_W,;t t
6798s,@PACKAGE@,$PACKAGE,;t t
6799s,@VERSION@,$VERSION,;t t
6800s,@ACLOCAL@,$ACLOCAL,;t t
6801s,@AUTOCONF@,$AUTOCONF,;t t
6802s,@AUTOMAKE@,$AUTOMAKE,;t t
6803s,@AUTOHEADER@,$AUTOHEADER,;t t
6804s,@MAKEINFO@,$MAKEINFO,;t t
6805s,@AMTAR@,$AMTAR,;t t
6806s,@install_sh@,$install_sh,;t t
6807s,@STRIP@,$STRIP,;t t
6808s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6809s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6810s,@AWK@,$AWK,;t t
6811s,@SET_MAKE@,$SET_MAKE,;t t
6812s,@am__leading_dot@,$am__leading_dot,;t t
6813s,@MSBITFIELDS@,$MSBITFIELDS,;t t
6814s,@CXX@,$CXX,;t t
6815s,@CXXFLAGS@,$CXXFLAGS,;t t
6816s,@LDFLAGS@,$LDFLAGS,;t t
6817s,@CPPFLAGS@,$CPPFLAGS,;t t
6818s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6819s,@EXEEXT@,$EXEEXT,;t t
6820s,@OBJEXT@,$OBJEXT,;t t
6821s,@DEPDIR@,$DEPDIR,;t t
6822s,@am__include@,$am__include,;t t
6823s,@am__quote@,$am__quote,;t t
6824s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6825s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6826s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6827s,@CXXDEPMODE@,$CXXDEPMODE,;t t
6828s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
6829s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
6830s,@CC@,$CC,;t t
6831s,@CFLAGS@,$CFLAGS,;t t
6832s,@ac_ct_CC@,$ac_ct_CC,;t t
6833s,@CCDEPMODE@,$CCDEPMODE,;t t
6834s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
6835s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
6836s,@CPP@,$CPP,;t t
6837s,@EGREP@,$EGREP,;t t
6838s,@LIBOBJS@,$LIBOBJS,;t t
6839s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6840CEOF
6841
6842_ACEOF
6843
6844  cat >>$CONFIG_STATUS <<\_ACEOF
6845  # Split the substitutions into bite-sized pieces for seds with
6846  # small command number limits, like on Digital OSF/1 and HP-UX.
6847  ac_max_sed_lines=48
6848  ac_sed_frag=1 # Number of current file.
6849  ac_beg=1 # First line for current file.
6850  ac_end=$ac_max_sed_lines # Line after last line for current file.
6851  ac_more_lines=:
6852  ac_sed_cmds=
6853  while $ac_more_lines; do
6854    if test $ac_beg -gt 1; then
6855      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6856    else
6857      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6858    fi
6859    if test ! -s $tmp/subs.frag; then
6860      ac_more_lines=false
6861    else
6862      # The purpose of the label and of the branching condition is to
6863      # speed up the sed processing (if there are no `@' at all, there
6864      # is no need to browse any of the substitutions).
6865      # These are the two extra sed commands mentioned above.
6866      (echo ':t
6867  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6868      if test -z "$ac_sed_cmds"; then
6869        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6870      else
6871        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6872      fi
6873      ac_sed_frag=`expr $ac_sed_frag + 1`
6874      ac_beg=$ac_end
6875      ac_end=`expr $ac_end + $ac_max_sed_lines`
6876    fi
6877  done
6878  if test -z "$ac_sed_cmds"; then
6879    ac_sed_cmds=cat
6880  fi
6881fi # test -n "$CONFIG_FILES"
6882
6883_ACEOF
6884cat >>$CONFIG_STATUS <<\_ACEOF
6885for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6886  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6887  case $ac_file in
6888  - | *:- | *:-:* ) # input from stdin
6889        cat >$tmp/stdin
6890        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6891        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6892  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6893        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6894  * )   ac_file_in=$ac_file.in ;;
6895  esac
6896
6897  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6898  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6899$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6900         X"$ac_file" : 'X\(//\)[^/]' \| \
6901         X"$ac_file" : 'X\(//\)$' \| \
6902         X"$ac_file" : 'X\(/\)' \| \
6903         .     : '\(.\)' 2>/dev/null ||
6904echo X"$ac_file" |
6905    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6906          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6907          /^X\(\/\/\)$/{ s//\1/; q; }
6908          /^X\(\/\).*/{ s//\1/; q; }
6909          s/.*/./; q'`
6910  { if $as_mkdir_p; then
6911    mkdir -p "$ac_dir"
6912  else
6913    as_dir="$ac_dir"
6914    as_dirs=
6915    while test ! -d "$as_dir"; do
6916      as_dirs="$as_dir $as_dirs"
6917      as_dir=`(dirname "$as_dir") 2>/dev/null ||
6918$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6919         X"$as_dir" : 'X\(//\)[^/]' \| \
6920         X"$as_dir" : 'X\(//\)$' \| \
6921         X"$as_dir" : 'X\(/\)' \| \
6922         .     : '\(.\)' 2>/dev/null ||
6923echo X"$as_dir" |
6924    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6925          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6926          /^X\(\/\/\)$/{ s//\1/; q; }
6927          /^X\(\/\).*/{ s//\1/; q; }
6928          s/.*/./; q'`
6929    done
6930    test ! -n "$as_dirs" || mkdir $as_dirs
6931  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6932echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6933   { (exit 1); exit 1; }; }; }
6934
6935  ac_builddir=.
6936
6937if test "$ac_dir" != .; then
6938  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6939  # A "../" for each directory in $ac_dir_suffix.
6940  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6941else
6942  ac_dir_suffix= ac_top_builddir=
6943fi
6944
6945case $srcdir in
6946  .)  # No --srcdir option.  We are building in place.
6947    ac_srcdir=.
6948    if test -z "$ac_top_builddir"; then
6949       ac_top_srcdir=.
6950    else
6951       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6952    fi ;;
6953  [\\/]* | ?:[\\/]* )  # Absolute path.
6954    ac_srcdir=$srcdir$ac_dir_suffix;
6955    ac_top_srcdir=$srcdir ;;
6956  *) # Relative path.
6957    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6958    ac_top_srcdir=$ac_top_builddir$srcdir ;;
6959esac
6960
6961# Do not use `cd foo && pwd` to compute absolute paths, because
6962# the directories may not exist.
6963case `pwd` in
6964.) ac_abs_builddir="$ac_dir";;
6965*)
6966  case "$ac_dir" in
6967  .) ac_abs_builddir=`pwd`;;
6968  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6969  *) ac_abs_builddir=`pwd`/"$ac_dir";;
6970  esac;;
6971esac
6972case $ac_abs_builddir in
6973.) ac_abs_top_builddir=${ac_top_builddir}.;;
6974*)
6975  case ${ac_top_builddir}. in
6976  .) ac_abs_top_builddir=$ac_abs_builddir;;
6977  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6978  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6979  esac;;
6980esac
6981case $ac_abs_builddir in
6982.) ac_abs_srcdir=$ac_srcdir;;
6983*)
6984  case $ac_srcdir in
6985  .) ac_abs_srcdir=$ac_abs_builddir;;
6986  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6987  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6988  esac;;
6989esac
6990case $ac_abs_builddir in
6991.) ac_abs_top_srcdir=$ac_top_srcdir;;
6992*)
6993  case $ac_top_srcdir in
6994  .) ac_abs_top_srcdir=$ac_abs_builddir;;
6995  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6996  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6997  esac;;
6998esac
6999
7000
7001  case $INSTALL in
7002  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7003  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7004  esac
7005
7006  if test x"$ac_file" != x-; then
7007    { echo "$as_me:$LINENO: creating $ac_file" >&5
7008echo "$as_me: creating $ac_file" >&6;}
7009    rm -f "$ac_file"
7010  fi
7011  # Let's still pretend it is `configure' which instantiates (i.e., don't
7012  # use $as_me), people would be surprised to read:
7013  #    /* config.h.  Generated by config.status.  */
7014  if test x"$ac_file" = x-; then
7015    configure_input=
7016  else
7017    configure_input="$ac_file.  "
7018  fi
7019  configure_input=$configure_input"Generated from `echo $ac_file_in |
7020                                     sed 's,.*/,,'` by configure."
7021
7022  # First look for the input files in the build tree, otherwise in the
7023  # src tree.
7024  ac_file_inputs=`IFS=:
7025    for f in $ac_file_in; do
7026      case $f in
7027      -) echo $tmp/stdin ;;
7028      [\\/$]*)
7029         # Absolute (can't be DOS-style, as IFS=:)
7030         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7031echo "$as_me: error: cannot find input file: $f" >&2;}
7032   { (exit 1); exit 1; }; }
7033         echo "$f";;
7034      *) # Relative
7035         if test -f "$f"; then
7036           # Build tree
7037           echo "$f"
7038         elif test -f "$srcdir/$f"; then
7039           # Source tree
7040           echo "$srcdir/$f"
7041         else
7042           # /dev/null tree
7043           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7044echo "$as_me: error: cannot find input file: $f" >&2;}
7045   { (exit 1); exit 1; }; }
7046         fi;;
7047      esac
7048    done` || { (exit 1); exit 1; }
7049_ACEOF
7050cat >>$CONFIG_STATUS <<_ACEOF
7051  sed "$ac_vpsub
7052$extrasub
7053_ACEOF
7054cat >>$CONFIG_STATUS <<\_ACEOF
7055:t
7056/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7057s,@configure_input@,$configure_input,;t t
7058s,@srcdir@,$ac_srcdir,;t t
7059s,@abs_srcdir@,$ac_abs_srcdir,;t t
7060s,@top_srcdir@,$ac_top_srcdir,;t t
7061s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7062s,@builddir@,$ac_builddir,;t t
7063s,@abs_builddir@,$ac_abs_builddir,;t t
7064s,@top_builddir@,$ac_top_builddir,;t t
7065s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7066s,@INSTALL@,$ac_INSTALL,;t t
7067" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7068  rm -f $tmp/stdin
7069  if test x"$ac_file" != x-; then
7070    mv $tmp/out $ac_file
7071  else
7072    cat $tmp/out
7073    rm -f $tmp/out
7074  fi
7075
7076done
7077_ACEOF
7078cat >>$CONFIG_STATUS <<\_ACEOF
7079
7080#
7081# CONFIG_HEADER section.
7082#
7083
7084# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7085# NAME is the cpp macro being defined and VALUE is the value it is being given.
7086#
7087# ac_d sets the value in "#define NAME VALUE" lines.
7088ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
7089ac_dB='[         ].*$,\1#\2'
7090ac_dC=' '
7091ac_dD=',;t'
7092# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7093ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7094ac_uB='$,\1#\2define\3'
7095ac_uC=' '
7096ac_uD=',;t'
7097
7098for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7099  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7100  case $ac_file in
7101  - | *:- | *:-:* ) # input from stdin
7102        cat >$tmp/stdin
7103        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7104        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7105  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7106        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7107  * )   ac_file_in=$ac_file.in ;;
7108  esac
7109
7110  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7111echo "$as_me: creating $ac_file" >&6;}
7112
7113  # First look for the input files in the build tree, otherwise in the
7114  # src tree.
7115  ac_file_inputs=`IFS=:
7116    for f in $ac_file_in; do
7117      case $f in
7118      -) echo $tmp/stdin ;;
7119      [\\/$]*)
7120         # Absolute (can't be DOS-style, as IFS=:)
7121         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7122echo "$as_me: error: cannot find input file: $f" >&2;}
7123   { (exit 1); exit 1; }; }
7124         # Do quote $f, to prevent DOS paths from being IFS'd.
7125         echo "$f";;
7126      *) # Relative
7127         if test -f "$f"; then
7128           # Build tree
7129           echo "$f"
7130         elif test -f "$srcdir/$f"; then
7131           # Source tree
7132           echo "$srcdir/$f"
7133         else
7134           # /dev/null tree
7135           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7136echo "$as_me: error: cannot find input file: $f" >&2;}
7137   { (exit 1); exit 1; }; }
7138         fi;;
7139      esac
7140    done` || { (exit 1); exit 1; }
7141  # Remove the trailing spaces.
7142  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
7143
7144_ACEOF
7145
7146# Transform confdefs.h into two sed scripts, `conftest.defines' and
7147# `conftest.undefs', that substitutes the proper values into
7148# config.h.in to produce config.h.  The first handles `#define'
7149# templates, and the second `#undef' templates.
7150# And first: Protect against being on the right side of a sed subst in
7151# config.status.  Protect against being in an unquoted here document
7152# in config.status.
7153rm -f conftest.defines conftest.undefs
7154# Using a here document instead of a string reduces the quoting nightmare.
7155# Putting comments in sed scripts is not portable.
7156#
7157# `end' is used to avoid that the second main sed command (meant for
7158# 0-ary CPP macros) applies to n-ary macro definitions.
7159# See the Autoconf documentation for `clear'.
7160cat >confdef2sed.sed <<\_ACEOF
7161s/[\\&,]/\\&/g
7162s,[\\$`],\\&,g
7163t clear
7164: clear
7165s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7166t end
7167s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7168: end
7169_ACEOF
7170# If some macros were called several times there might be several times
7171# the same #defines, which is useless.  Nevertheless, we may not want to
7172# sort them, since we want the *last* AC-DEFINE to be honored.
7173uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7174sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7175rm -f confdef2sed.sed
7176
7177# This sed command replaces #undef with comments.  This is necessary, for
7178# example, in the case of _POSIX_SOURCE, which is predefined and required
7179# on some systems where configure will not decide to define it.
7180cat >>conftest.undefs <<\_ACEOF
7181s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7182_ACEOF
7183
7184# Break up conftest.defines because some shells have a limit on the size
7185# of here documents, and old seds have small limits too (100 cmds).
7186echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7187echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7188echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7189echo '  :' >>$CONFIG_STATUS
7190rm -f conftest.tail
7191while grep . conftest.defines >/dev/null
7192do
7193  # Write a limited-size here document to $tmp/defines.sed.
7194  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7195  # Speed up: don't consider the non `#define' lines.
7196  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
7197  # Work around the forget-to-reset-the-flag bug.
7198  echo 't clr' >>$CONFIG_STATUS
7199  echo ': clr' >>$CONFIG_STATUS
7200  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7201  echo 'CEOF
7202  sed -f $tmp/defines.sed $tmp/in >$tmp/out
7203  rm -f $tmp/in
7204  mv $tmp/out $tmp/in
7205' >>$CONFIG_STATUS
7206  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7207  rm -f conftest.defines
7208  mv conftest.tail conftest.defines
7209done
7210rm -f conftest.defines
7211echo '  fi # grep' >>$CONFIG_STATUS
7212echo >>$CONFIG_STATUS
7213
7214# Break up conftest.undefs because some shells have a limit on the size
7215# of here documents, and old seds have small limits too (100 cmds).
7216echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
7217rm -f conftest.tail
7218while grep . conftest.undefs >/dev/null
7219do
7220  # Write a limited-size here document to $tmp/undefs.sed.
7221  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7222  # Speed up: don't consider the non `#undef'
7223  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
7224  # Work around the forget-to-reset-the-flag bug.
7225  echo 't clr' >>$CONFIG_STATUS
7226  echo ': clr' >>$CONFIG_STATUS
7227  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7228  echo 'CEOF
7229  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7230  rm -f $tmp/in
7231  mv $tmp/out $tmp/in
7232' >>$CONFIG_STATUS
7233  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7234  rm -f conftest.undefs
7235  mv conftest.tail conftest.undefs
7236done
7237rm -f conftest.undefs
7238
7239cat >>$CONFIG_STATUS <<\_ACEOF
7240  # Let's still pretend it is `configure' which instantiates (i.e., don't
7241  # use $as_me), people would be surprised to read:
7242  #    /* config.h.  Generated by config.status.  */
7243  if test x"$ac_file" = x-; then
7244    echo "/* Generated by configure.  */" >$tmp/config.h
7245  else
7246    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
7247  fi
7248  cat $tmp/in >>$tmp/config.h
7249  rm -f $tmp/in
7250  if test x"$ac_file" != x-; then
7251    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7252      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7253echo "$as_me: $ac_file is unchanged" >&6;}
7254    else
7255      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7256$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7257         X"$ac_file" : 'X\(//\)[^/]' \| \
7258         X"$ac_file" : 'X\(//\)$' \| \
7259         X"$ac_file" : 'X\(/\)' \| \
7260         .     : '\(.\)' 2>/dev/null ||
7261echo X"$ac_file" |
7262    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7263          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7264          /^X\(\/\/\)$/{ s//\1/; q; }
7265          /^X\(\/\).*/{ s//\1/; q; }
7266          s/.*/./; q'`
7267      { if $as_mkdir_p; then
7268    mkdir -p "$ac_dir"
7269  else
7270    as_dir="$ac_dir"
7271    as_dirs=
7272    while test ! -d "$as_dir"; do
7273      as_dirs="$as_dir $as_dirs"
7274      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7275$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7276         X"$as_dir" : 'X\(//\)[^/]' \| \
7277         X"$as_dir" : 'X\(//\)$' \| \
7278         X"$as_dir" : 'X\(/\)' \| \
7279         .     : '\(.\)' 2>/dev/null ||
7280echo X"$as_dir" |
7281    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7282          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7283          /^X\(\/\/\)$/{ s//\1/; q; }
7284          /^X\(\/\).*/{ s//\1/; q; }
7285          s/.*/./; q'`
7286    done
7287    test ! -n "$as_dirs" || mkdir $as_dirs
7288  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7289echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7290   { (exit 1); exit 1; }; }; }
7291
7292      rm -f $ac_file
7293      mv $tmp/config.h $ac_file
7294    fi
7295  else
7296    cat $tmp/config.h
7297    rm -f $tmp/config.h
7298  fi
7299# Compute $ac_file's index in $config_headers.
7300_am_stamp_count=1
7301for _am_header in $config_headers :; do
7302  case $_am_header in
7303    $ac_file | $ac_file:* )
7304      break ;;
7305    * )
7306      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7307  esac
7308done
7309echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7310$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7311         X$ac_file : 'X\(//\)[^/]' \| \
7312         X$ac_file : 'X\(//\)$' \| \
7313         X$ac_file : 'X\(/\)' \| \
7314         .     : '\(.\)' 2>/dev/null ||
7315echo X$ac_file |
7316    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7317          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7318          /^X\(\/\/\)$/{ s//\1/; q; }
7319          /^X\(\/\).*/{ s//\1/; q; }
7320          s/.*/./; q'`/stamp-h$_am_stamp_count
7321done
7322_ACEOF
7323cat >>$CONFIG_STATUS <<\_ACEOF
7324
7325#
7326# CONFIG_COMMANDS section.
7327#
7328for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7329  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7330  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7331  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7332$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7333         X"$ac_dest" : 'X\(//\)[^/]' \| \
7334         X"$ac_dest" : 'X\(//\)$' \| \
7335         X"$ac_dest" : 'X\(/\)' \| \
7336         .     : '\(.\)' 2>/dev/null ||
7337echo X"$ac_dest" |
7338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7339          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7340          /^X\(\/\/\)$/{ s//\1/; q; }
7341          /^X\(\/\).*/{ s//\1/; q; }
7342          s/.*/./; q'`
7343  { if $as_mkdir_p; then
7344    mkdir -p "$ac_dir"
7345  else
7346    as_dir="$ac_dir"
7347    as_dirs=
7348    while test ! -d "$as_dir"; do
7349      as_dirs="$as_dir $as_dirs"
7350      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7352         X"$as_dir" : 'X\(//\)[^/]' \| \
7353         X"$as_dir" : 'X\(//\)$' \| \
7354         X"$as_dir" : 'X\(/\)' \| \
7355         .     : '\(.\)' 2>/dev/null ||
7356echo X"$as_dir" |
7357    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7358          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7359          /^X\(\/\/\)$/{ s//\1/; q; }
7360          /^X\(\/\).*/{ s//\1/; q; }
7361          s/.*/./; q'`
7362    done
7363    test ! -n "$as_dirs" || mkdir $as_dirs
7364  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7365echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7366   { (exit 1); exit 1; }; }; }
7367
7368  ac_builddir=.
7369
7370if test "$ac_dir" != .; then
7371  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7372  # A "../" for each directory in $ac_dir_suffix.
7373  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7374else
7375  ac_dir_suffix= ac_top_builddir=
7376fi
7377
7378case $srcdir in
7379  .)  # No --srcdir option.  We are building in place.
7380    ac_srcdir=.
7381    if test -z "$ac_top_builddir"; then
7382       ac_top_srcdir=.
7383    else
7384       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7385    fi ;;
7386  [\\/]* | ?:[\\/]* )  # Absolute path.
7387    ac_srcdir=$srcdir$ac_dir_suffix;
7388    ac_top_srcdir=$srcdir ;;
7389  *) # Relative path.
7390    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7391    ac_top_srcdir=$ac_top_builddir$srcdir ;;
7392esac
7393
7394# Do not use `cd foo && pwd` to compute absolute paths, because
7395# the directories may not exist.
7396case `pwd` in
7397.) ac_abs_builddir="$ac_dir";;
7398*)
7399  case "$ac_dir" in
7400  .) ac_abs_builddir=`pwd`;;
7401  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7402  *) ac_abs_builddir=`pwd`/"$ac_dir";;
7403  esac;;
7404esac
7405case $ac_abs_builddir in
7406.) ac_abs_top_builddir=${ac_top_builddir}.;;
7407*)
7408  case ${ac_top_builddir}. in
7409  .) ac_abs_top_builddir=$ac_abs_builddir;;
7410  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7411  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7412  esac;;
7413esac
7414case $ac_abs_builddir in
7415.) ac_abs_srcdir=$ac_srcdir;;
7416*)
7417  case $ac_srcdir in
7418  .) ac_abs_srcdir=$ac_abs_builddir;;
7419  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7420  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7421  esac;;
7422esac
7423case $ac_abs_builddir in
7424.) ac_abs_top_srcdir=$ac_top_srcdir;;
7425*)
7426  case $ac_top_srcdir in
7427  .) ac_abs_top_srcdir=$ac_abs_builddir;;
7428  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7429  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7430  esac;;
7431esac
7432
7433
7434  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7435echo "$as_me: executing $ac_dest commands" >&6;}
7436  case $ac_dest in
7437    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7438  # Strip MF so we end up with the name of the file.
7439  mf=`echo "$mf" | sed -e 's/:.*$//'`
7440  # Check whether this is an Automake generated Makefile or not.
7441  # We used to match only the files named `Makefile.in', but
7442  # some people rename them; so instead we look at the file content.
7443  # Grep'ing the first line is not enough: some people post-process
7444  # each Makefile.in and add a new line on top of each file to say so.
7445  # So let's grep whole file.
7446  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7447    dirpart=`(dirname "$mf") 2>/dev/null ||
7448$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7449         X"$mf" : 'X\(//\)[^/]' \| \
7450         X"$mf" : 'X\(//\)$' \| \
7451         X"$mf" : 'X\(/\)' \| \
7452         .     : '\(.\)' 2>/dev/null ||
7453echo X"$mf" |
7454    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7455          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7456          /^X\(\/\/\)$/{ s//\1/; q; }
7457          /^X\(\/\).*/{ s//\1/; q; }
7458          s/.*/./; q'`
7459  else
7460    continue
7461  fi
7462  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
7463  # Extract the definition of DEP_FILES from the Makefile without
7464  # running `make'.
7465  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
7466  test -z "$DEPDIR" && continue
7467  # When using ansi2knr, U may be empty or an underscore; expand it
7468  U=`sed -n -e '/^U = / s///p' < "$mf"`
7469  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
7470  # We invoke sed twice because it is the simplest approach to
7471  # changing $(DEPDIR) to its actual value in the expansion.
7472  for file in `sed -n -e '
7473    /^DEP_FILES = .*\\\\$/ {
7474      s/^DEP_FILES = //
7475      :loop
7476        s/\\\\$//
7477        p
7478        n
7479        /\\\\$/ b loop
7480      p
7481    }
7482    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
7483       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7484    # Make sure the directory exists.
7485    test -f "$dirpart/$file" && continue
7486    fdir=`(dirname "$file") 2>/dev/null ||
7487$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7488         X"$file" : 'X\(//\)[^/]' \| \
7489         X"$file" : 'X\(//\)$' \| \
7490         X"$file" : 'X\(/\)' \| \
7491         .     : '\(.\)' 2>/dev/null ||
7492echo X"$file" |
7493    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7494          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7495          /^X\(\/\/\)$/{ s//\1/; q; }
7496          /^X\(\/\).*/{ s//\1/; q; }
7497          s/.*/./; q'`
7498    { if $as_mkdir_p; then
7499    mkdir -p $dirpart/$fdir
7500  else
7501    as_dir=$dirpart/$fdir
7502    as_dirs=
7503    while test ! -d "$as_dir"; do
7504      as_dirs="$as_dir $as_dirs"
7505      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7506$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7507         X"$as_dir" : 'X\(//\)[^/]' \| \
7508         X"$as_dir" : 'X\(//\)$' \| \
7509         X"$as_dir" : 'X\(/\)' \| \
7510         .     : '\(.\)' 2>/dev/null ||
7511echo X"$as_dir" |
7512    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7513          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7514          /^X\(\/\/\)$/{ s//\1/; q; }
7515          /^X\(\/\).*/{ s//\1/; q; }
7516          s/.*/./; q'`
7517    done
7518    test ! -n "$as_dirs" || mkdir $as_dirs
7519  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
7520echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7521   { (exit 1); exit 1; }; }; }
7522
7523    # echo "creating $dirpart/$file"
7524    echo '# dummy' > "$dirpart/$file"
7525  done
7526done
7527 ;;
7528  esac
7529done
7530_ACEOF
7531
7532cat >>$CONFIG_STATUS <<\_ACEOF
7533
7534{ (exit 0); exit 0; }
7535_ACEOF
7536chmod +x $CONFIG_STATUS
7537ac_clean_files=$ac_clean_files_save
7538
7539
7540# configure is writing to config.log, and then calls config.status.
7541# config.status does its own redirection, appending to config.log.
7542# Unfortunately, on DOS this fails, as config.log is still kept open
7543# by configure, so config.status won't be able to write to it; its
7544# output is simply discarded.  So we exec the FD to /dev/null,
7545# effectively closing config.log, so it can be properly (re)opened and
7546# appended to by config.status.  When coming back to configure, we
7547# need to make the FD available again.
7548if test "$no_create" != yes; then
7549  ac_cs_success=:
7550  ac_config_status_args=
7551  test "$silent" = yes &&
7552    ac_config_status_args="$ac_config_status_args --quiet"
7553  exec 5>/dev/null
7554  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7555  exec 5>>config.log
7556  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7557  # would make configure fail if this is the last instruction.
7558  $ac_cs_success || { (exit 1); exit 1; }
7559fi
7560
Note: See TracBrowser for help on using the repository browser.