Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: no more multi-Threading-support… maybe again in the future, who knows

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