Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/chris/configure @ 2188

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

orxonox/branches/chris: now it compiles for Linux, but there remains a segmentation fault, when pushing a button, also the ship is not rendered

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