Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/trackManager/configure @ 3519

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

orxonox/branches/trackManager: merged trunk back to tracManager R3440:3497 → 3498
merged with command:
svn merge ../trunk/ trackManager/ -r 3430:HEAD
conflicts resolved in favor of the Trunk

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