Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/updater/configure @ 3500

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

orxonox/branches/updater: now also works, if no pthread is found, but gthread is.

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