Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: finding sdl-image more flexible.

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