Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/osX/configure @ 2983

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

orxonox/branches/osX: merged back from trunk. command svn merge trunk/ branches/osX/ -r 2977:HEAD

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