1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212  IFS=$as_save_IFS
213  test -z "$as_dir" && as_dir=.
214  as_found=:
215  case $as_dir in #(
216	 /*)
217	   for as_base in sh bash ksh sh5; do
218	     # Try only shells that exist, to save several forks.
219	     as_shell=$as_dir/$as_base
220	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233  CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238      if test "x$CONFIG_SHELL" != x; then :
239  export CONFIG_SHELL
240             # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260    if test x$as_have_required = xno; then :
261  $as_echo "$0: This script requires a shell more modern than all"
262  $as_echo "$0: the shells that I found on your system."
263  if test x${ZSH_VERSION+set} = xset ; then
264    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266  else
267    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271  fi
272  exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299  return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307  set +e
308  as_fn_set_status $1
309  exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318  case $as_dir in #(
319  -*) as_dir=./$as_dir;;
320  esac
321  test -d "$as_dir" || eval $as_mkdir_p || {
322    as_dirs=
323    while :; do
324      case $as_dir in #(
325      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326      *) as_qdir=$as_dir;;
327      esac
328      as_dirs="'$as_qdir' $as_dirs"
329      as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331	 X"$as_dir" : 'X\(//\)[^/]' \| \
332	 X"$as_dir" : 'X\(//\)$' \| \
333	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336	    s//\1/
337	    q
338	  }
339	  /^X\(\/\/\)[^/].*/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\).*/{
348	    s//\1/
349	    q
350	  }
351	  s/.*/./; q'`
352      test -d "$as_dir" && break
353    done
354    test -z "$as_dirs" || eval "mkdir $as_dirs"
355  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365  test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374  eval 'as_fn_append ()
375  {
376    eval $1+=\$2
377  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410  as_status=$1; test $as_status -eq 0 && as_status=1
411  if test "$4"; then
412    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414  fi
415  $as_echo "$as_me: error: $2" >&2
416  as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440	 X"$0" : 'X\(//\)$' \| \
441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443    sed '/^.*\/\([^/][^/]*\)\/*$/{
444	    s//\1/
445	    q
446	  }
447	  /^X\/\(\/\/\)$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\).*/{
452	    s//\1/
453	    q
454	  }
455	  s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470  sed -n '
471    p
472    /[$]LINENO/=
473  ' <$as_myself |
474    sed '
475      s/[$]LINENO.*/&-/
476      t lineno
477      b
478      :lineno
479      N
480      :loop
481      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482      t loop
483      s/-\n.*//
484    ' >$as_me.lineno &&
485  chmod +x "$as_me.lineno" ||
486    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489  # already done that, so ensure we don't try to do so again and fall
490  # in an infinite loop.  This has already happened in practice.
491  _as_can_reexec=no; export _as_can_reexec
492  # Don't try to exec as it changes $[0], causing all sort of problems
493  # (the dirname of $[0] is not the place where we might find the
494  # original and so on.  Autoconf is especially sensitive to this).
495  . "./$as_me.lineno"
496  # Exit status is that of the last command.
497  exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503  case `echo 'xy\c'` in
504  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505  xy)  ECHO_C='\c';;
506  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507       ECHO_T='	';;
508  esac;;
509*)
510  ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521  if ln -s conf$$.file conf$$ 2>/dev/null; then
522    as_ln_s='ln -s'
523    # ... but there are two gotchas:
524    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526    # In both cases, we have to default to `cp -pR'.
527    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528      as_ln_s='cp -pR'
529  elif ln conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s=ln
531  else
532    as_ln_s='cp -pR'
533  fi
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
583PACKAGE_URL=
584
585# Factoring default headers for most tests.
586ac_includes_default="\
587#include <stdio.h>
588#ifdef HAVE_SYS_TYPES_H
589# include <sys/types.h>
590#endif
591#ifdef HAVE_SYS_STAT_H
592# include <sys/stat.h>
593#endif
594#ifdef STDC_HEADERS
595# include <stdlib.h>
596# include <stddef.h>
597#else
598# ifdef HAVE_STDLIB_H
599#  include <stdlib.h>
600# endif
601#endif
602#ifdef HAVE_STRING_H
603# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604#  include <memory.h>
605# endif
606# include <string.h>
607#endif
608#ifdef HAVE_STRINGS_H
609# include <strings.h>
610#endif
611#ifdef HAVE_INTTYPES_H
612# include <inttypes.h>
613#endif
614#ifdef HAVE_STDINT_H
615# include <stdint.h>
616#endif
617#ifdef HAVE_UNISTD_H
618# include <unistd.h>
619#endif"
620
621ac_subst_vars='LTLIBOBJS
622LIBOBJS
623ANT
624JAVA
625JAVAC
626TESTICONSIZE2
627TESTICONSIZE
628BMPTOPNM
629RESOURCE_FILES
630STRDUP_O
631ARXSTRDUP_O
632DUMA_EXTRA_LIBS
633LIBDUMA_A
634EFENCE_EXTRA_LIBS
635LIBEFENCE_A
636C99
637SDL_JOYSTICK_LIBS
638SDL_JOYSTICK_SUBDIR
639SDLCFLAGS
640EGREP
641GREP
642RANLIB
643VRMLBROWSER
644COMMONFLAGS
645PARSER_CPP_CFLAG
646LD_OPTIONS
647X_EXTRA_LIBS
648X_LIBS
649X_PRE_LIBS
650X_CFLAGS
651CPP
652XMKMF
653RIB_TEXTURER
654IMAGECONVERTER
655CHECK_IN_COMMAND
656MOVIEEDITOR
657SOUNDEDITOR
658IMAGEEDITOR4KIDS
659IMAGEEDITOR
660WWWBROWSER
661TERM
662X11_EDITOR
663GREP_FLAGS
664EGREP_PROBLEMS
665NOUNISTD
666RC_LIBS
667LEXLIB
668LEX_OUTPUT_ROOT
669LEX
670RC_YACC
671YFLAGS
672YACC
673AWK
674STATIC
675OBJS
676NOFORT
677OPTBIG
678OPTIM
679NEBULA
680GIF
681HELPURL
682CXXCPP
683ac_ct_CXX
684CXXFLAGS
685CXX
686OBJEXT
687EXEEXT
688ac_ct_CC
689CPPFLAGS
690LDFLAGS
691CFLAGS
692CC
693target_alias
694host_alias
695build_alias
696LIBS
697ECHO_T
698ECHO_N
699ECHO_C
700DEFS
701mandir
702localedir
703libdir
704psdir
705pdfdir
706dvidir
707htmldir
708infodir
709docdir
710oldincludedir
711includedir
712localstatedir
713sharedstatedir
714sysconfdir
715datadir
716datarootdir
717libexecdir
718sbindir
719bindir
720program_transform_name
721prefix
722exec_prefix
723PACKAGE_URL
724PACKAGE_BUGREPORT
725PACKAGE_STRING
726PACKAGE_VERSION
727PACKAGE_TARNAME
728PACKAGE_NAME
729PATH_SEPARATOR
730SHELL'
731ac_subst_files=''
732ac_user_opts='
733enable_option_checking
734with_clang
735with_oldmotif
736with_olpc
737with_optimization
738with_partical_fortify
739with_iconscale2
740with_devil
741with_cgal
742with_cgalheaders
743with_omp
744with_aqsis
745with_ffmpeg
746with_png_handle_unknown
747with_sdljoystick
748with_helpurl
749with_vrmlnodesurl
750with_x3durl
751with_protobaseurl
752with_debian
753with_x3domurl
754with_coverwave
755with_covertuimap
756with_wwwbrowser
757with_vrmlbrowser
758with_x11_editor
759with_imageeditor
760with_imageeditor4kids
761with_soundeditor
762with_movieeditor
763with_checkincommand
764with_imageconverter
765with_ant
766with_usrlocalinclude
767with_kgcc
768with_eulerrotation
769with_routeatend
770with_uninstallcomment
771with_xj3drigidbodyphysicscomponent
772with_dontreplacevrmlscript
773with_stereo
774with_stereocommand
775with_updatedebug
776with_aflockdebug
777with_coredump
778with_ttf_file
779with_fpuinterrupts
780with_efence
781with_duma
782with_gif
783with_usb
784with_teachermenu
785with_testinmenu
786with_cut
787with_textedit
788with_nebula
789with_textureimagemode
790with_optbigfiles
791with_gprof
792with_gcov
793with_archives
794with_static
795with_ranlib
796with_osmesa
797with_debug
798with_x
799enable_input_events
800with_about
801with_allow_multiple_definition
802'
803      ac_precious_vars='build_alias
804host_alias
805target_alias
806CC
807CFLAGS
808LDFLAGS
809LIBS
810CPPFLAGS
811CXX
812CXXFLAGS
813CCC
814CXXCPP
815YACC
816YFLAGS
817XMKMF
818CPP'
819
820
821# Initialize some variables set by options.
822ac_init_help=
823ac_init_version=false
824ac_unrecognized_opts=
825ac_unrecognized_sep=
826# The variables have the same names as the options, with
827# dashes changed to underlines.
828cache_file=/dev/null
829exec_prefix=NONE
830no_create=
831no_recursion=
832prefix=NONE
833program_prefix=NONE
834program_suffix=NONE
835program_transform_name=s,x,x,
836silent=
837site=
838srcdir=
839verbose=
840x_includes=NONE
841x_libraries=NONE
842
843# Installation directory options.
844# These are left unexpanded so users can "make install exec_prefix=/foo"
845# and all the variables that are supposed to be based on exec_prefix
846# by default will actually change.
847# Use braces instead of parens because sh, perl, etc. also accept them.
848# (The list follows the same order as the GNU Coding Standards.)
849bindir='${exec_prefix}/bin'
850sbindir='${exec_prefix}/sbin'
851libexecdir='${exec_prefix}/libexec'
852datarootdir='${prefix}/share'
853datadir='${datarootdir}'
854sysconfdir='${prefix}/etc'
855sharedstatedir='${prefix}/com'
856localstatedir='${prefix}/var'
857includedir='${prefix}/include'
858oldincludedir='/usr/include'
859docdir='${datarootdir}/doc/${PACKAGE}'
860infodir='${datarootdir}/info'
861htmldir='${docdir}'
862dvidir='${docdir}'
863pdfdir='${docdir}'
864psdir='${docdir}'
865libdir='${exec_prefix}/lib'
866localedir='${datarootdir}/locale'
867mandir='${datarootdir}/man'
868
869ac_prev=
870ac_dashdash=
871for ac_option
872do
873  # If the previous option needs an argument, assign it.
874  if test -n "$ac_prev"; then
875    eval $ac_prev=\$ac_option
876    ac_prev=
877    continue
878  fi
879
880  case $ac_option in
881  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882  *=)   ac_optarg= ;;
883  *)    ac_optarg=yes ;;
884  esac
885
886  # Accept the important Cygnus configure options, so we can diagnose typos.
887
888  case $ac_dashdash$ac_option in
889  --)
890    ac_dashdash=yes ;;
891
892  -bindir | --bindir | --bindi | --bind | --bin | --bi)
893    ac_prev=bindir ;;
894  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895    bindir=$ac_optarg ;;
896
897  -build | --build | --buil | --bui | --bu)
898    ac_prev=build_alias ;;
899  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900    build_alias=$ac_optarg ;;
901
902  -cache-file | --cache-file | --cache-fil | --cache-fi \
903  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904    ac_prev=cache_file ;;
905  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907    cache_file=$ac_optarg ;;
908
909  --config-cache | -C)
910    cache_file=config.cache ;;
911
912  -datadir | --datadir | --datadi | --datad)
913    ac_prev=datadir ;;
914  -datadir=* | --datadir=* | --datadi=* | --datad=*)
915    datadir=$ac_optarg ;;
916
917  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918  | --dataroo | --dataro | --datar)
919    ac_prev=datarootdir ;;
920  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922    datarootdir=$ac_optarg ;;
923
924  -disable-* | --disable-*)
925    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926    # Reject names that are not valid shell variable names.
927    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928      as_fn_error $? "invalid feature name: $ac_useropt"
929    ac_useropt_orig=$ac_useropt
930    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931    case $ac_user_opts in
932      *"
933"enable_$ac_useropt"
934"*) ;;
935      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936	 ac_unrecognized_sep=', ';;
937    esac
938    eval enable_$ac_useropt=no ;;
939
940  -docdir | --docdir | --docdi | --doc | --do)
941    ac_prev=docdir ;;
942  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943    docdir=$ac_optarg ;;
944
945  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946    ac_prev=dvidir ;;
947  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948    dvidir=$ac_optarg ;;
949
950  -enable-* | --enable-*)
951    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952    # Reject names that are not valid shell variable names.
953    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954      as_fn_error $? "invalid feature name: $ac_useropt"
955    ac_useropt_orig=$ac_useropt
956    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957    case $ac_user_opts in
958      *"
959"enable_$ac_useropt"
960"*) ;;
961      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962	 ac_unrecognized_sep=', ';;
963    esac
964    eval enable_$ac_useropt=\$ac_optarg ;;
965
966  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968  | --exec | --exe | --ex)
969    ac_prev=exec_prefix ;;
970  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972  | --exec=* | --exe=* | --ex=*)
973    exec_prefix=$ac_optarg ;;
974
975  -gas | --gas | --ga | --g)
976    # Obsolete; use --with-gas.
977    with_gas=yes ;;
978
979  -help | --help | --hel | --he | -h)
980    ac_init_help=long ;;
981  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982    ac_init_help=recursive ;;
983  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984    ac_init_help=short ;;
985
986  -host | --host | --hos | --ho)
987    ac_prev=host_alias ;;
988  -host=* | --host=* | --hos=* | --ho=*)
989    host_alias=$ac_optarg ;;
990
991  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992    ac_prev=htmldir ;;
993  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994  | --ht=*)
995    htmldir=$ac_optarg ;;
996
997  -includedir | --includedir | --includedi | --included | --include \
998  | --includ | --inclu | --incl | --inc)
999    ac_prev=includedir ;;
1000  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001  | --includ=* | --inclu=* | --incl=* | --inc=*)
1002    includedir=$ac_optarg ;;
1003
1004  -infodir | --infodir | --infodi | --infod | --info | --inf)
1005    ac_prev=infodir ;;
1006  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007    infodir=$ac_optarg ;;
1008
1009  -libdir | --libdir | --libdi | --libd)
1010    ac_prev=libdir ;;
1011  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012    libdir=$ac_optarg ;;
1013
1014  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015  | --libexe | --libex | --libe)
1016    ac_prev=libexecdir ;;
1017  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018  | --libexe=* | --libex=* | --libe=*)
1019    libexecdir=$ac_optarg ;;
1020
1021  -localedir | --localedir | --localedi | --localed | --locale)
1022    ac_prev=localedir ;;
1023  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024    localedir=$ac_optarg ;;
1025
1026  -localstatedir | --localstatedir | --localstatedi | --localstated \
1027  | --localstate | --localstat | --localsta | --localst | --locals)
1028    ac_prev=localstatedir ;;
1029  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031    localstatedir=$ac_optarg ;;
1032
1033  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034    ac_prev=mandir ;;
1035  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036    mandir=$ac_optarg ;;
1037
1038  -nfp | --nfp | --nf)
1039    # Obsolete; use --without-fp.
1040    with_fp=no ;;
1041
1042  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043  | --no-cr | --no-c | -n)
1044    no_create=yes ;;
1045
1046  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048    no_recursion=yes ;;
1049
1050  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052  | --oldin | --oldi | --old | --ol | --o)
1053    ac_prev=oldincludedir ;;
1054  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057    oldincludedir=$ac_optarg ;;
1058
1059  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060    ac_prev=prefix ;;
1061  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062    prefix=$ac_optarg ;;
1063
1064  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065  | --program-pre | --program-pr | --program-p)
1066    ac_prev=program_prefix ;;
1067  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069    program_prefix=$ac_optarg ;;
1070
1071  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072  | --program-suf | --program-su | --program-s)
1073    ac_prev=program_suffix ;;
1074  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076    program_suffix=$ac_optarg ;;
1077
1078  -program-transform-name | --program-transform-name \
1079  | --program-transform-nam | --program-transform-na \
1080  | --program-transform-n | --program-transform- \
1081  | --program-transform | --program-transfor \
1082  | --program-transfo | --program-transf \
1083  | --program-trans | --program-tran \
1084  | --progr-tra | --program-tr | --program-t)
1085    ac_prev=program_transform_name ;;
1086  -program-transform-name=* | --program-transform-name=* \
1087  | --program-transform-nam=* | --program-transform-na=* \
1088  | --program-transform-n=* | --program-transform-=* \
1089  | --program-transform=* | --program-transfor=* \
1090  | --program-transfo=* | --program-transf=* \
1091  | --program-trans=* | --program-tran=* \
1092  | --progr-tra=* | --program-tr=* | --program-t=*)
1093    program_transform_name=$ac_optarg ;;
1094
1095  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096    ac_prev=pdfdir ;;
1097  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098    pdfdir=$ac_optarg ;;
1099
1100  -psdir | --psdir | --psdi | --psd | --ps)
1101    ac_prev=psdir ;;
1102  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103    psdir=$ac_optarg ;;
1104
1105  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106  | -silent | --silent | --silen | --sile | --sil)
1107    silent=yes ;;
1108
1109  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110    ac_prev=sbindir ;;
1111  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112  | --sbi=* | --sb=*)
1113    sbindir=$ac_optarg ;;
1114
1115  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117  | --sharedst | --shareds | --shared | --share | --shar \
1118  | --sha | --sh)
1119    ac_prev=sharedstatedir ;;
1120  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123  | --sha=* | --sh=*)
1124    sharedstatedir=$ac_optarg ;;
1125
1126  -site | --site | --sit)
1127    ac_prev=site ;;
1128  -site=* | --site=* | --sit=*)
1129    site=$ac_optarg ;;
1130
1131  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132    ac_prev=srcdir ;;
1133  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134    srcdir=$ac_optarg ;;
1135
1136  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137  | --syscon | --sysco | --sysc | --sys | --sy)
1138    ac_prev=sysconfdir ;;
1139  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141    sysconfdir=$ac_optarg ;;
1142
1143  -target | --target | --targe | --targ | --tar | --ta | --t)
1144    ac_prev=target_alias ;;
1145  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146    target_alias=$ac_optarg ;;
1147
1148  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149    verbose=yes ;;
1150
1151  -version | --version | --versio | --versi | --vers | -V)
1152    ac_init_version=: ;;
1153
1154  -with-* | --with-*)
1155    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156    # Reject names that are not valid shell variable names.
1157    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158      as_fn_error $? "invalid package name: $ac_useropt"
1159    ac_useropt_orig=$ac_useropt
1160    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161    case $ac_user_opts in
1162      *"
1163"with_$ac_useropt"
1164"*) ;;
1165      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166	 ac_unrecognized_sep=', ';;
1167    esac
1168    eval with_$ac_useropt=\$ac_optarg ;;
1169
1170  -without-* | --without-*)
1171    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172    # Reject names that are not valid shell variable names.
1173    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174      as_fn_error $? "invalid package name: $ac_useropt"
1175    ac_useropt_orig=$ac_useropt
1176    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177    case $ac_user_opts in
1178      *"
1179"with_$ac_useropt"
1180"*) ;;
1181      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182	 ac_unrecognized_sep=', ';;
1183    esac
1184    eval with_$ac_useropt=no ;;
1185
1186  --x)
1187    # Obsolete; use --with-x.
1188    with_x=yes ;;
1189
1190  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191  | --x-incl | --x-inc | --x-in | --x-i)
1192    ac_prev=x_includes ;;
1193  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195    x_includes=$ac_optarg ;;
1196
1197  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199    ac_prev=x_libraries ;;
1200  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202    x_libraries=$ac_optarg ;;
1203
1204  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1205Try \`$0 --help' for more information"
1206    ;;
1207
1208  *=*)
1209    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210    # Reject names that are not valid shell variable names.
1211    case $ac_envvar in #(
1212      '' | [0-9]* | *[!_$as_cr_alnum]* )
1213      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1214    esac
1215    eval $ac_envvar=\$ac_optarg
1216    export $ac_envvar ;;
1217
1218  *)
1219    # FIXME: should be removed in autoconf 3.0.
1220    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1224    ;;
1225
1226  esac
1227done
1228
1229if test -n "$ac_prev"; then
1230  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231  as_fn_error $? "missing argument to $ac_option"
1232fi
1233
1234if test -n "$ac_unrecognized_opts"; then
1235  case $enable_option_checking in
1236    no) ;;
1237    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1238    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239  esac
1240fi
1241
1242# Check all directory arguments for consistency.
1243for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244		datadir sysconfdir sharedstatedir localstatedir includedir \
1245		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246		libdir localedir mandir
1247do
1248  eval ac_val=\$$ac_var
1249  # Remove trailing slashes.
1250  case $ac_val in
1251    */ )
1252      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253      eval $ac_var=\$ac_val;;
1254  esac
1255  # Be sure to have absolute directory names.
1256  case $ac_val in
1257    [\\/$]* | ?:[\\/]* )  continue;;
1258    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259  esac
1260  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1261done
1262
1263# There might be people who depend on the old broken behavior: `$host'
1264# used to hold the argument of --host etc.
1265# FIXME: To remove some day.
1266build=$build_alias
1267host=$host_alias
1268target=$target_alias
1269
1270# FIXME: To remove some day.
1271if test "x$host_alias" != x; then
1272  if test "x$build_alias" = x; then
1273    cross_compiling=maybe
1274  elif test "x$build_alias" != "x$host_alias"; then
1275    cross_compiling=yes
1276  fi
1277fi
1278
1279ac_tool_prefix=
1280test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281
1282test "$silent" = yes && exec 6>/dev/null
1283
1284
1285ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286ac_ls_di=`ls -di .` &&
1287ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288  as_fn_error $? "working directory cannot be determined"
1289test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290  as_fn_error $? "pwd does not report name of working directory"
1291
1292
1293# Find the source files, if location was not specified.
1294if test -z "$srcdir"; then
1295  ac_srcdir_defaulted=yes
1296  # Try the directory containing this script, then the parent directory.
1297  ac_confdir=`$as_dirname -- "$as_myself" ||
1298$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299	 X"$as_myself" : 'X\(//\)[^/]' \| \
1300	 X"$as_myself" : 'X\(//\)$' \| \
1301	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302$as_echo X"$as_myself" |
1303    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1304	    s//\1/
1305	    q
1306	  }
1307	  /^X\(\/\/\)[^/].*/{
1308	    s//\1/
1309	    q
1310	  }
1311	  /^X\(\/\/\)$/{
1312	    s//\1/
1313	    q
1314	  }
1315	  /^X\(\/\).*/{
1316	    s//\1/
1317	    q
1318	  }
1319	  s/.*/./; q'`
1320  srcdir=$ac_confdir
1321  if test ! -r "$srcdir/$ac_unique_file"; then
1322    srcdir=..
1323  fi
1324else
1325  ac_srcdir_defaulted=no
1326fi
1327if test ! -r "$srcdir/$ac_unique_file"; then
1328  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1329  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1330fi
1331ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332ac_abs_confdir=`(
1333	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1334	pwd)`
1335# When building in place, set srcdir=.
1336if test "$ac_abs_confdir" = "$ac_pwd"; then
1337  srcdir=.
1338fi
1339# Remove unnecessary trailing slashes from srcdir.
1340# Double slashes in file names in object file debugging info
1341# mess up M-x gdb in Emacs.
1342case $srcdir in
1343*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344esac
1345for ac_var in $ac_precious_vars; do
1346  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347  eval ac_env_${ac_var}_value=\$${ac_var}
1348  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350done
1351
1352#
1353# Report the --help message.
1354#
1355if test "$ac_init_help" = "long"; then
1356  # Omit some internal or obsolete options to make the list less imposing.
1357  # This message is too long to be a string in the A/UX 3.1 sh.
1358  cat <<_ACEOF
1359\`configure' configures this package to adapt to many kinds of systems.
1360
1361Usage: $0 [OPTION]... [VAR=VALUE]...
1362
1363To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364VAR=VALUE.  See below for descriptions of some of the useful variables.
1365
1366Defaults for the options are specified in brackets.
1367
1368Configuration:
1369  -h, --help              display this help and exit
1370      --help=short        display options specific to this package
1371      --help=recursive    display the short help of all the included packages
1372  -V, --version           display version information and exit
1373  -q, --quiet, --silent   do not print \`checking ...' messages
1374      --cache-file=FILE   cache test results in FILE [disabled]
1375  -C, --config-cache      alias for \`--cache-file=config.cache'
1376  -n, --no-create         do not create output files
1377      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1378
1379Installation directories:
1380  --prefix=PREFIX         install architecture-independent files in PREFIX
1381                          [$ac_default_prefix]
1382  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1383                          [PREFIX]
1384
1385By default, \`make install' will install all the files in
1386\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1387an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388for instance \`--prefix=\$HOME'.
1389
1390For better control, use the options below.
1391
1392Fine tuning of the installation directories:
1393  --bindir=DIR            user executables [EPREFIX/bin]
1394  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1395  --libexecdir=DIR        program executables [EPREFIX/libexec]
1396  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1397  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1398  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1399  --libdir=DIR            object code libraries [EPREFIX/lib]
1400  --includedir=DIR        C header files [PREFIX/include]
1401  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1402  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1403  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1404  --infodir=DIR           info documentation [DATAROOTDIR/info]
1405  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1406  --mandir=DIR            man documentation [DATAROOTDIR/man]
1407  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1408  --htmldir=DIR           html documentation [DOCDIR]
1409  --dvidir=DIR            dvi documentation [DOCDIR]
1410  --pdfdir=DIR            pdf documentation [DOCDIR]
1411  --psdir=DIR             ps documentation [DOCDIR]
1412_ACEOF
1413
1414  cat <<\_ACEOF
1415
1416X features:
1417  --x-includes=DIR    X include files are in DIR
1418  --x-libraries=DIR   X library files are in DIR
1419_ACEOF
1420fi
1421
1422if test -n "$ac_init_help"; then
1423
1424  cat <<\_ACEOF
1425
1426Optional Features:
1427  --disable-option-checking  ignore unrecognized --enable/--with options
1428  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1429  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1430  --enable-input-events   use Linux 2.4 unified input interface default=yes
1431
1432Optional Packages:
1433  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1434  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1435--with-clang              use clang complier: detects gcc/g++ but uses clang
1436--with-oldmotif           used for compatibility with old motif/lesstif versions
1437--with-olpc               used for compatibility with the one laptop per child computer
1438--with-optimization       optimize for speed
1439--with-partical-fortify partical use -D_FORTIFY_SOURCE=2
1440--with-iconscale2         used to scale major icons by factor 2
1441--without-devil           do not use DevIL library to load textureimages
1442--without-cgal            do not use CGAL library e.g. to use convex hull
1443--with-cgalheaders        use the headers only version of the CGAL library
1444--without-omp             do not use OpenMP
1445--without-aqsis           do not use aqsis to render .RIB files
1446--without-ffmpeg          do not use ffmpeg libraries to load movie texture
1447--without-png_handle_unknown  use if link fails cause of png_handle_unknown
1448--with-sdljoystick 	  use SDL joystick code
1449--with-helpurl=\"helpurl\"  URL of the \"docs\" directory
1450--with-vrmlnodesurl=\"vrmlnodesurl\" URL of ISO standard vrml97 node list e.g. downloaded version of  http://www.web3d.org/documents/specifications/14772/V2.0/part1/nodesRef.html
1451--with-x3durl=\"x3durl\" URL of ISO standard X3D e.g. downloaded version of http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01
1452            X3DURL="$withval";export X3DURL
1453--with-protobaseurl=\"url\" URL of base directory of PROTOs for needed EXTERNPROTO statements
1454--with-debian             optimize library usage for debian
1455--with-x3domurl=\"x3domurl\" URL to X3DOM support files
1456--with-coverwave          allow creation of deprecated cover node Wave
1457--with-covertuimap        allow creation of incomplete cover node TUIMap
1458--with-wwwbrowser=wwwbrowser  webbrowser eg. netscape firefox mozilla...
1459--with-vrmlbrowser=vrmlbrowser  VRML browser eg. firefox view3dscene freewrl ...
1460--with-x11-editor=editor  X11 text editor eg. gedit gvim ...
1461--with-imageeditor=imageeditor  object editor for bitmap (.jpg/.png/.gif) files eg. gimp krita xpaint imgworks...
1462--with-imageeditor4kids=imageeditor  simple object editor for bitmap (.jpg/.png/.gif) files usefull for kids eg. kolourpaint gpaint...
1463--with-soundeditor=soundeditor  object editor for sound (.wav) files eg. audacity rezound wavesurfer gnusound sweep soundeditor...
1464--with-movieeditor=movieeditor  object editor for movie (.mpeg) files eg. cinelerra avidemux2 avidemux moviemaker...
1465--with-checkincommand=checkincommand  default check in command of a revision control system
1466--with-imageconverter=imageconverter  converter for bitmap (.jpg/.png/.gif) files to bmp files for ac3d export...
1467--with-ant=/path/to/ant   compile with support for ant "Another Neat Tool"
1468--without-usrlocalinclude use when the compiler refuse -I/usr/local/include
1469--with-kgcc 	 	  use to avoid the buggy Redhat/SuSE Linux \"gcc 2.96\"
1470--with-eulerrotation      use for euler angles instead of VRML like rotations
1471--with-routeatend         write route statement at end into file
1472--with-uninstallcomment=\"uninstallcomment\"  use to document a uninstall command
1473--with-xj3drigidbodyphysicscomponent  use special component name xj3d_RigidBodyPhysics
1474--with-dontreplacevrmlscript  do not replace vrmlscript: with javascript:
1475--without-stereo 	  use if you do not have shutterglases
1476--with-stereocommand=\"stereocommand\"   how to switch to stereomode (e.g. \"/usr/gfx/setmon -n 1024x768_96s\" on some SGI IRIX systems)
1477--with-updatedebug        use debug messages for updates between views
1478--with-aflockdebug        use debug messages for Ascention Flock of birds
1479--with-coredump 	  switch off emergencysave signalhandling
1480--with-ttf-file=ttffile     select .ttf file for UNIX/Linux font rendering
1481--with-fpuinterrupts      switch on interrupts on invalid fpu operations
1482--with-efence 	          use the efence malloc debugging routines
1483--with-duma               use the duma malloc debugging routines
1484--without-gif             avoid code to render gif textures
1485--without-usb             avoid code to use libusb/NXT inputdevice
1486--with-teachermenu        add a extra submenu useful for teaching things
1487--with-testinmenu         insert a extra menupoint for testing of developers
1488--with-cut                currently you better use copy/paste/delete instead...
1489--without-textedit        disable file -> textedit cause it would do not return
1490--with-nebula 	          use if you want to convert to The Nebula Device
1491--with-textureimagemode   use nonstandard mode field in TextureImage node
1492--without-optbigfiles     do not optimize compiling of big files
1493--with-gprof              compile with support for the gprof analyser
1494--with-gcov               compile with support for the gcov analyser
1495--with-archives           link via archives
1496--with-static             link with the -static option
1497--without-ranlib          avoid the usage of the ranlib command
1498--with-osmesa 	          use mesa off screen rendering (avoid with real OpenGL)
1499--with-debug 	          set -DDEBUG=1 to enable debugging code
1500  --with-x                use the X Window System
1501--with-about=\"about text\" about text
1502--with-allow-multiple-definition allow multiple linker symbols
1503
1504Some influential environment variables:
1505  CC          C compiler command
1506  CFLAGS      C compiler flags
1507  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1508              nonstandard directory <lib dir>
1509  LIBS        libraries to pass to the linker, e.g. -l<library>
1510  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1511              you have headers in a nonstandard directory <include dir>
1512  CXX         C++ compiler command
1513  CXXFLAGS    C++ compiler flags
1514  CXXCPP      C++ preprocessor
1515  YACC        The `Yet Another Compiler Compiler' implementation to use.
1516              Defaults to the first program found out of: `bison -o y.tab.c',
1517              `byacc', `yacc'.
1518  YFLAGS      The list of arguments that will be passed by default to $YACC.
1519              This script will default YFLAGS to the empty string to avoid a
1520              default value of `-d' given by some make applications.
1521  XMKMF       Path to xmkmf, Makefile generator for X Window System
1522  CPP         C preprocessor
1523
1524Use these variables to override the choices made by `configure' or to help
1525it to find libraries and programs with nonstandard names/locations.
1526
1527Report bugs to the package provider.
1528_ACEOF
1529ac_status=$?
1530fi
1531
1532if test "$ac_init_help" = "recursive"; then
1533  # If there are subdirs, report their specific --help.
1534  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1535    test -d "$ac_dir" ||
1536      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1537      continue
1538    ac_builddir=.
1539
1540case "$ac_dir" in
1541.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542*)
1543  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1544  # A ".." for each directory in $ac_dir_suffix.
1545  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1546  case $ac_top_builddir_sub in
1547  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1549  esac ;;
1550esac
1551ac_abs_top_builddir=$ac_pwd
1552ac_abs_builddir=$ac_pwd$ac_dir_suffix
1553# for backward compatibility:
1554ac_top_builddir=$ac_top_build_prefix
1555
1556case $srcdir in
1557  .)  # We are building in place.
1558    ac_srcdir=.
1559    ac_top_srcdir=$ac_top_builddir_sub
1560    ac_abs_top_srcdir=$ac_pwd ;;
1561  [\\/]* | ?:[\\/]* )  # Absolute name.
1562    ac_srcdir=$srcdir$ac_dir_suffix;
1563    ac_top_srcdir=$srcdir
1564    ac_abs_top_srcdir=$srcdir ;;
1565  *) # Relative name.
1566    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1567    ac_top_srcdir=$ac_top_build_prefix$srcdir
1568    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1569esac
1570ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1571
1572    cd "$ac_dir" || { ac_status=$?; continue; }
1573    # Check for guested configure.
1574    if test -f "$ac_srcdir/configure.gnu"; then
1575      echo &&
1576      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1577    elif test -f "$ac_srcdir/configure"; then
1578      echo &&
1579      $SHELL "$ac_srcdir/configure" --help=recursive
1580    else
1581      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1582    fi || ac_status=$?
1583    cd "$ac_pwd" || { ac_status=$?; break; }
1584  done
1585fi
1586
1587test -n "$ac_init_help" && exit $ac_status
1588if $ac_init_version; then
1589  cat <<\_ACEOF
1590configure
1591generated by GNU Autoconf 2.69
1592
1593Copyright (C) 2012 Free Software Foundation, Inc.
1594This configure script is free software; the Free Software Foundation
1595gives unlimited permission to copy, distribute and modify it.
1596_ACEOF
1597  exit
1598fi
1599
1600## ------------------------ ##
1601## Autoconf initialization. ##
1602## ------------------------ ##
1603
1604# ac_fn_c_try_compile LINENO
1605# --------------------------
1606# Try to compile conftest.$ac_ext, and return whether this succeeded.
1607ac_fn_c_try_compile ()
1608{
1609  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610  rm -f conftest.$ac_objext
1611  if { { ac_try="$ac_compile"
1612case "(($ac_try" in
1613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614  *) ac_try_echo=$ac_try;;
1615esac
1616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617$as_echo "$ac_try_echo"; } >&5
1618  (eval "$ac_compile") 2>conftest.err
1619  ac_status=$?
1620  if test -s conftest.err; then
1621    grep -v '^ *+' conftest.err >conftest.er1
1622    cat conftest.er1 >&5
1623    mv -f conftest.er1 conftest.err
1624  fi
1625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626  test $ac_status = 0; } && {
1627	 test -z "$ac_c_werror_flag" ||
1628	 test ! -s conftest.err
1629       } && test -s conftest.$ac_objext; then :
1630  ac_retval=0
1631else
1632  $as_echo "$as_me: failed program was:" >&5
1633sed 's/^/| /' conftest.$ac_ext >&5
1634
1635	ac_retval=1
1636fi
1637  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638  as_fn_set_status $ac_retval
1639
1640} # ac_fn_c_try_compile
1641
1642# ac_fn_cxx_try_compile LINENO
1643# ----------------------------
1644# Try to compile conftest.$ac_ext, and return whether this succeeded.
1645ac_fn_cxx_try_compile ()
1646{
1647  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648  rm -f conftest.$ac_objext
1649  if { { ac_try="$ac_compile"
1650case "(($ac_try" in
1651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652  *) ac_try_echo=$ac_try;;
1653esac
1654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655$as_echo "$ac_try_echo"; } >&5
1656  (eval "$ac_compile") 2>conftest.err
1657  ac_status=$?
1658  if test -s conftest.err; then
1659    grep -v '^ *+' conftest.err >conftest.er1
1660    cat conftest.er1 >&5
1661    mv -f conftest.er1 conftest.err
1662  fi
1663  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664  test $ac_status = 0; } && {
1665	 test -z "$ac_cxx_werror_flag" ||
1666	 test ! -s conftest.err
1667       } && test -s conftest.$ac_objext; then :
1668  ac_retval=0
1669else
1670  $as_echo "$as_me: failed program was:" >&5
1671sed 's/^/| /' conftest.$ac_ext >&5
1672
1673	ac_retval=1
1674fi
1675  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676  as_fn_set_status $ac_retval
1677
1678} # ac_fn_cxx_try_compile
1679
1680# ac_fn_cxx_try_cpp LINENO
1681# ------------------------
1682# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1683ac_fn_cxx_try_cpp ()
1684{
1685  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686  if { { ac_try="$ac_cpp conftest.$ac_ext"
1687case "(($ac_try" in
1688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689  *) ac_try_echo=$ac_try;;
1690esac
1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692$as_echo "$ac_try_echo"; } >&5
1693  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1694  ac_status=$?
1695  if test -s conftest.err; then
1696    grep -v '^ *+' conftest.err >conftest.er1
1697    cat conftest.er1 >&5
1698    mv -f conftest.er1 conftest.err
1699  fi
1700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701  test $ac_status = 0; } > conftest.i && {
1702	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1703	 test ! -s conftest.err
1704       }; then :
1705  ac_retval=0
1706else
1707  $as_echo "$as_me: failed program was:" >&5
1708sed 's/^/| /' conftest.$ac_ext >&5
1709
1710    ac_retval=1
1711fi
1712  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713  as_fn_set_status $ac_retval
1714
1715} # ac_fn_cxx_try_cpp
1716
1717# ac_fn_c_try_link LINENO
1718# -----------------------
1719# Try to link conftest.$ac_ext, and return whether this succeeded.
1720ac_fn_c_try_link ()
1721{
1722  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723  rm -f conftest.$ac_objext conftest$ac_exeext
1724  if { { ac_try="$ac_link"
1725case "(($ac_try" in
1726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727  *) ac_try_echo=$ac_try;;
1728esac
1729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730$as_echo "$ac_try_echo"; } >&5
1731  (eval "$ac_link") 2>conftest.err
1732  ac_status=$?
1733  if test -s conftest.err; then
1734    grep -v '^ *+' conftest.err >conftest.er1
1735    cat conftest.er1 >&5
1736    mv -f conftest.er1 conftest.err
1737  fi
1738  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739  test $ac_status = 0; } && {
1740	 test -z "$ac_c_werror_flag" ||
1741	 test ! -s conftest.err
1742       } && test -s conftest$ac_exeext && {
1743	 test "$cross_compiling" = yes ||
1744	 test -x conftest$ac_exeext
1745       }; then :
1746  ac_retval=0
1747else
1748  $as_echo "$as_me: failed program was:" >&5
1749sed 's/^/| /' conftest.$ac_ext >&5
1750
1751	ac_retval=1
1752fi
1753  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1754  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1755  # interfere with the next link command; also delete a directory that is
1756  # left behind by Apple's compiler.  We do this before executing the actions.
1757  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759  as_fn_set_status $ac_retval
1760
1761} # ac_fn_c_try_link
1762
1763# ac_fn_c_check_func LINENO FUNC VAR
1764# ----------------------------------
1765# Tests whether FUNC exists, setting the cache variable VAR accordingly
1766ac_fn_c_check_func ()
1767{
1768  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770$as_echo_n "checking for $2... " >&6; }
1771if eval \${$3+:} false; then :
1772  $as_echo_n "(cached) " >&6
1773else
1774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775/* end confdefs.h.  */
1776/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1777   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1778#define $2 innocuous_$2
1779
1780/* System header to define __stub macros and hopefully few prototypes,
1781    which can conflict with char $2 (); below.
1782    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1783    <limits.h> exists even on freestanding compilers.  */
1784
1785#ifdef __STDC__
1786# include <limits.h>
1787#else
1788# include <assert.h>
1789#endif
1790
1791#undef $2
1792
1793/* Override any GCC internal prototype to avoid an error.
1794   Use char because int might match the return type of a GCC
1795   builtin and then its argument prototype would still apply.  */
1796#ifdef __cplusplus
1797extern "C"
1798#endif
1799char $2 ();
1800/* The GNU C library defines this for functions which it implements
1801    to always fail with ENOSYS.  Some functions are actually named
1802    something starting with __ and the normal name is an alias.  */
1803#if defined __stub_$2 || defined __stub___$2
1804choke me
1805#endif
1806
1807int
1808main ()
1809{
1810return $2 ();
1811  ;
1812  return 0;
1813}
1814_ACEOF
1815if ac_fn_c_try_link "$LINENO"; then :
1816  eval "$3=yes"
1817else
1818  eval "$3=no"
1819fi
1820rm -f core conftest.err conftest.$ac_objext \
1821    conftest$ac_exeext conftest.$ac_ext
1822fi
1823eval ac_res=\$$3
1824	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825$as_echo "$ac_res" >&6; }
1826  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827
1828} # ac_fn_c_check_func
1829
1830# ac_fn_c_try_cpp LINENO
1831# ----------------------
1832# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1833ac_fn_c_try_cpp ()
1834{
1835  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836  if { { ac_try="$ac_cpp conftest.$ac_ext"
1837case "(($ac_try" in
1838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839  *) ac_try_echo=$ac_try;;
1840esac
1841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842$as_echo "$ac_try_echo"; } >&5
1843  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1844  ac_status=$?
1845  if test -s conftest.err; then
1846    grep -v '^ *+' conftest.err >conftest.er1
1847    cat conftest.er1 >&5
1848    mv -f conftest.er1 conftest.err
1849  fi
1850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851  test $ac_status = 0; } > conftest.i && {
1852	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1853	 test ! -s conftest.err
1854       }; then :
1855  ac_retval=0
1856else
1857  $as_echo "$as_me: failed program was:" >&5
1858sed 's/^/| /' conftest.$ac_ext >&5
1859
1860    ac_retval=1
1861fi
1862  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863  as_fn_set_status $ac_retval
1864
1865} # ac_fn_c_try_cpp
1866
1867# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1868# -------------------------------------------------------
1869# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1870# the include files in INCLUDES and setting the cache variable VAR
1871# accordingly.
1872ac_fn_c_check_header_mongrel ()
1873{
1874  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875  if eval \${$3+:} false; then :
1876  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1877$as_echo_n "checking for $2... " >&6; }
1878if eval \${$3+:} false; then :
1879  $as_echo_n "(cached) " >&6
1880fi
1881eval ac_res=\$$3
1882	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883$as_echo "$ac_res" >&6; }
1884else
1885  # Is the header compilable?
1886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1887$as_echo_n "checking $2 usability... " >&6; }
1888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889/* end confdefs.h.  */
1890$4
1891#include <$2>
1892_ACEOF
1893if ac_fn_c_try_compile "$LINENO"; then :
1894  ac_header_compiler=yes
1895else
1896  ac_header_compiler=no
1897fi
1898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1900$as_echo "$ac_header_compiler" >&6; }
1901
1902# Is the header present?
1903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1904$as_echo_n "checking $2 presence... " >&6; }
1905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906/* end confdefs.h.  */
1907#include <$2>
1908_ACEOF
1909if ac_fn_c_try_cpp "$LINENO"; then :
1910  ac_header_preproc=yes
1911else
1912  ac_header_preproc=no
1913fi
1914rm -f conftest.err conftest.i conftest.$ac_ext
1915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1916$as_echo "$ac_header_preproc" >&6; }
1917
1918# So?  What about this header?
1919case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1920  yes:no: )
1921    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1922$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1923    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1924$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1925    ;;
1926  no:yes:* )
1927    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1928$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1929    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1930$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1931    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1932$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1933    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1934$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1935    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1936$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1937    ;;
1938esac
1939  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940$as_echo_n "checking for $2... " >&6; }
1941if eval \${$3+:} false; then :
1942  $as_echo_n "(cached) " >&6
1943else
1944  eval "$3=\$ac_header_compiler"
1945fi
1946eval ac_res=\$$3
1947	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948$as_echo "$ac_res" >&6; }
1949fi
1950  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951
1952} # ac_fn_c_check_header_mongrel
1953
1954# ac_fn_c_try_run LINENO
1955# ----------------------
1956# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1957# that executables *can* be run.
1958ac_fn_c_try_run ()
1959{
1960  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961  if { { ac_try="$ac_link"
1962case "(($ac_try" in
1963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1964  *) ac_try_echo=$ac_try;;
1965esac
1966eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1967$as_echo "$ac_try_echo"; } >&5
1968  (eval "$ac_link") 2>&5
1969  ac_status=$?
1970  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1971  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1972  { { case "(($ac_try" in
1973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1974  *) ac_try_echo=$ac_try;;
1975esac
1976eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1977$as_echo "$ac_try_echo"; } >&5
1978  (eval "$ac_try") 2>&5
1979  ac_status=$?
1980  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1981  test $ac_status = 0; }; }; then :
1982  ac_retval=0
1983else
1984  $as_echo "$as_me: program exited with status $ac_status" >&5
1985       $as_echo "$as_me: failed program was:" >&5
1986sed 's/^/| /' conftest.$ac_ext >&5
1987
1988       ac_retval=$ac_status
1989fi
1990  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1991  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992  as_fn_set_status $ac_retval
1993
1994} # ac_fn_c_try_run
1995
1996# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1997# -------------------------------------------------------
1998# Tests whether HEADER exists and can be compiled using the include files in
1999# INCLUDES, setting the cache variable VAR accordingly.
2000ac_fn_c_check_header_compile ()
2001{
2002  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2004$as_echo_n "checking for $2... " >&6; }
2005if eval \${$3+:} false; then :
2006  $as_echo_n "(cached) " >&6
2007else
2008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009/* end confdefs.h.  */
2010$4
2011#include <$2>
2012_ACEOF
2013if ac_fn_c_try_compile "$LINENO"; then :
2014  eval "$3=yes"
2015else
2016  eval "$3=no"
2017fi
2018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019fi
2020eval ac_res=\$$3
2021	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022$as_echo "$ac_res" >&6; }
2023  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024
2025} # ac_fn_c_check_header_compile
2026
2027# ac_fn_cxx_try_link LINENO
2028# -------------------------
2029# Try to link conftest.$ac_ext, and return whether this succeeded.
2030ac_fn_cxx_try_link ()
2031{
2032  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033  rm -f conftest.$ac_objext conftest$ac_exeext
2034  if { { ac_try="$ac_link"
2035case "(($ac_try" in
2036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2037  *) ac_try_echo=$ac_try;;
2038esac
2039eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2040$as_echo "$ac_try_echo"; } >&5
2041  (eval "$ac_link") 2>conftest.err
2042  ac_status=$?
2043  if test -s conftest.err; then
2044    grep -v '^ *+' conftest.err >conftest.er1
2045    cat conftest.er1 >&5
2046    mv -f conftest.er1 conftest.err
2047  fi
2048  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2049  test $ac_status = 0; } && {
2050	 test -z "$ac_cxx_werror_flag" ||
2051	 test ! -s conftest.err
2052       } && test -s conftest$ac_exeext && {
2053	 test "$cross_compiling" = yes ||
2054	 test -x conftest$ac_exeext
2055       }; then :
2056  ac_retval=0
2057else
2058  $as_echo "$as_me: failed program was:" >&5
2059sed 's/^/| /' conftest.$ac_ext >&5
2060
2061	ac_retval=1
2062fi
2063  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2064  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2065  # interfere with the next link command; also delete a directory that is
2066  # left behind by Apple's compiler.  We do this before executing the actions.
2067  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2068  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2069  as_fn_set_status $ac_retval
2070
2071} # ac_fn_cxx_try_link
2072
2073# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2074# ---------------------------------------------------------
2075# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2076# the include files in INCLUDES and setting the cache variable VAR
2077# accordingly.
2078ac_fn_cxx_check_header_mongrel ()
2079{
2080  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081  if eval \${$3+:} false; then :
2082  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2083$as_echo_n "checking for $2... " >&6; }
2084if eval \${$3+:} false; then :
2085  $as_echo_n "(cached) " >&6
2086fi
2087eval ac_res=\$$3
2088	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2089$as_echo "$ac_res" >&6; }
2090else
2091  # Is the header compilable?
2092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2093$as_echo_n "checking $2 usability... " >&6; }
2094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095/* end confdefs.h.  */
2096$4
2097#include <$2>
2098_ACEOF
2099if ac_fn_cxx_try_compile "$LINENO"; then :
2100  ac_header_compiler=yes
2101else
2102  ac_header_compiler=no
2103fi
2104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2106$as_echo "$ac_header_compiler" >&6; }
2107
2108# Is the header present?
2109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2110$as_echo_n "checking $2 presence... " >&6; }
2111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112/* end confdefs.h.  */
2113#include <$2>
2114_ACEOF
2115if ac_fn_cxx_try_cpp "$LINENO"; then :
2116  ac_header_preproc=yes
2117else
2118  ac_header_preproc=no
2119fi
2120rm -f conftest.err conftest.i conftest.$ac_ext
2121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2122$as_echo "$ac_header_preproc" >&6; }
2123
2124# So?  What about this header?
2125case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2126  yes:no: )
2127    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2128$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2129    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2130$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2131    ;;
2132  no:yes:* )
2133    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2134$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2135    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2136$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2137    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2138$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2139    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2140$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2141    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2142$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2143    ;;
2144esac
2145  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2146$as_echo_n "checking for $2... " >&6; }
2147if eval \${$3+:} false; then :
2148  $as_echo_n "(cached) " >&6
2149else
2150  eval "$3=\$ac_header_compiler"
2151fi
2152eval ac_res=\$$3
2153	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2154$as_echo "$ac_res" >&6; }
2155fi
2156  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2157
2158} # ac_fn_cxx_check_header_mongrel
2159cat >config.log <<_ACEOF
2160This file contains any messages produced by compilers while
2161running configure, to aid debugging if configure makes a mistake.
2162
2163It was created by $as_me, which was
2164generated by GNU Autoconf 2.69.  Invocation command line was
2165
2166  $ $0 $@
2167
2168_ACEOF
2169exec 5>>config.log
2170{
2171cat <<_ASUNAME
2172## --------- ##
2173## Platform. ##
2174## --------- ##
2175
2176hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2177uname -m = `(uname -m) 2>/dev/null || echo unknown`
2178uname -r = `(uname -r) 2>/dev/null || echo unknown`
2179uname -s = `(uname -s) 2>/dev/null || echo unknown`
2180uname -v = `(uname -v) 2>/dev/null || echo unknown`
2181
2182/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2183/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2184
2185/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2186/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2187/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2188/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2189/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2190/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2191/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2192
2193_ASUNAME
2194
2195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196for as_dir in $PATH
2197do
2198  IFS=$as_save_IFS
2199  test -z "$as_dir" && as_dir=.
2200    $as_echo "PATH: $as_dir"
2201  done
2202IFS=$as_save_IFS
2203
2204} >&5
2205
2206cat >&5 <<_ACEOF
2207
2208
2209## ----------- ##
2210## Core tests. ##
2211## ----------- ##
2212
2213_ACEOF
2214
2215
2216# Keep a trace of the command line.
2217# Strip out --no-create and --no-recursion so they do not pile up.
2218# Strip out --silent because we don't want to record it for future runs.
2219# Also quote any args containing shell meta-characters.
2220# Make two passes to allow for proper duplicate-argument suppression.
2221ac_configure_args=
2222ac_configure_args0=
2223ac_configure_args1=
2224ac_must_keep_next=false
2225for ac_pass in 1 2
2226do
2227  for ac_arg
2228  do
2229    case $ac_arg in
2230    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2231    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2232    | -silent | --silent | --silen | --sile | --sil)
2233      continue ;;
2234    *\'*)
2235      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2236    esac
2237    case $ac_pass in
2238    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2239    2)
2240      as_fn_append ac_configure_args1 " '$ac_arg'"
2241      if test $ac_must_keep_next = true; then
2242	ac_must_keep_next=false # Got value, back to normal.
2243      else
2244	case $ac_arg in
2245	  *=* | --config-cache | -C | -disable-* | --disable-* \
2246	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2247	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2248	  | -with-* | --with-* | -without-* | --without-* | --x)
2249	    case "$ac_configure_args0 " in
2250	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2251	    esac
2252	    ;;
2253	  -* ) ac_must_keep_next=true ;;
2254	esac
2255      fi
2256      as_fn_append ac_configure_args " '$ac_arg'"
2257      ;;
2258    esac
2259  done
2260done
2261{ ac_configure_args0=; unset ac_configure_args0;}
2262{ ac_configure_args1=; unset ac_configure_args1;}
2263
2264# When interrupted or exit'd, cleanup temporary files, and complete
2265# config.log.  We remove comments because anyway the quotes in there
2266# would cause problems or look ugly.
2267# WARNING: Use '\'' to represent an apostrophe within the trap.
2268# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2269trap 'exit_status=$?
2270  # Save into config.log some information that might help in debugging.
2271  {
2272    echo
2273
2274    $as_echo "## ---------------- ##
2275## Cache variables. ##
2276## ---------------- ##"
2277    echo
2278    # The following way of writing the cache mishandles newlines in values,
2279(
2280  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2281    eval ac_val=\$$ac_var
2282    case $ac_val in #(
2283    *${as_nl}*)
2284      case $ac_var in #(
2285      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2286$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2287      esac
2288      case $ac_var in #(
2289      _ | IFS | as_nl) ;; #(
2290      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2291      *) { eval $ac_var=; unset $ac_var;} ;;
2292      esac ;;
2293    esac
2294  done
2295  (set) 2>&1 |
2296    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2297    *${as_nl}ac_space=\ *)
2298      sed -n \
2299	"s/'\''/'\''\\\\'\'''\''/g;
2300	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2301      ;; #(
2302    *)
2303      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2304      ;;
2305    esac |
2306    sort
2307)
2308    echo
2309
2310    $as_echo "## ----------------- ##
2311## Output variables. ##
2312## ----------------- ##"
2313    echo
2314    for ac_var in $ac_subst_vars
2315    do
2316      eval ac_val=\$$ac_var
2317      case $ac_val in
2318      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2319      esac
2320      $as_echo "$ac_var='\''$ac_val'\''"
2321    done | sort
2322    echo
2323
2324    if test -n "$ac_subst_files"; then
2325      $as_echo "## ------------------- ##
2326## File substitutions. ##
2327## ------------------- ##"
2328      echo
2329      for ac_var in $ac_subst_files
2330      do
2331	eval ac_val=\$$ac_var
2332	case $ac_val in
2333	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2334	esac
2335	$as_echo "$ac_var='\''$ac_val'\''"
2336      done | sort
2337      echo
2338    fi
2339
2340    if test -s confdefs.h; then
2341      $as_echo "## ----------- ##
2342## confdefs.h. ##
2343## ----------- ##"
2344      echo
2345      cat confdefs.h
2346      echo
2347    fi
2348    test "$ac_signal" != 0 &&
2349      $as_echo "$as_me: caught signal $ac_signal"
2350    $as_echo "$as_me: exit $exit_status"
2351  } >&5
2352  rm -f core *.core core.conftest.* &&
2353    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2354    exit $exit_status
2355' 0
2356for ac_signal in 1 2 13 15; do
2357  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2358done
2359ac_signal=0
2360
2361# confdefs.h avoids OS command line length limits that DEFS can exceed.
2362rm -f -r conftest* confdefs.h
2363
2364$as_echo "/* confdefs.h */" > confdefs.h
2365
2366# Predefined preprocessor variables.
2367
2368cat >>confdefs.h <<_ACEOF
2369#define PACKAGE_NAME "$PACKAGE_NAME"
2370_ACEOF
2371
2372cat >>confdefs.h <<_ACEOF
2373#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2374_ACEOF
2375
2376cat >>confdefs.h <<_ACEOF
2377#define PACKAGE_VERSION "$PACKAGE_VERSION"
2378_ACEOF
2379
2380cat >>confdefs.h <<_ACEOF
2381#define PACKAGE_STRING "$PACKAGE_STRING"
2382_ACEOF
2383
2384cat >>confdefs.h <<_ACEOF
2385#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2386_ACEOF
2387
2388cat >>confdefs.h <<_ACEOF
2389#define PACKAGE_URL "$PACKAGE_URL"
2390_ACEOF
2391
2392
2393# Let the site file select an alternate cache file if it wants to.
2394# Prefer an explicitly selected file to automatically selected ones.
2395ac_site_file1=NONE
2396ac_site_file2=NONE
2397if test -n "$CONFIG_SITE"; then
2398  # We do not want a PATH search for config.site.
2399  case $CONFIG_SITE in #((
2400    -*)  ac_site_file1=./$CONFIG_SITE;;
2401    */*) ac_site_file1=$CONFIG_SITE;;
2402    *)   ac_site_file1=./$CONFIG_SITE;;
2403  esac
2404elif test "x$prefix" != xNONE; then
2405  ac_site_file1=$prefix/share/config.site
2406  ac_site_file2=$prefix/etc/config.site
2407else
2408  ac_site_file1=$ac_default_prefix/share/config.site
2409  ac_site_file2=$ac_default_prefix/etc/config.site
2410fi
2411for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2412do
2413  test "x$ac_site_file" = xNONE && continue
2414  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2415    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2416$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2417    sed 's/^/| /' "$ac_site_file" >&5
2418    . "$ac_site_file" \
2419      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2420$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2421as_fn_error $? "failed to load site script $ac_site_file
2422See \`config.log' for more details" "$LINENO" 5; }
2423  fi
2424done
2425
2426if test -r "$cache_file"; then
2427  # Some versions of bash will fail to source /dev/null (special files
2428  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2429  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2430    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2431$as_echo "$as_me: loading cache $cache_file" >&6;}
2432    case $cache_file in
2433      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2434      *)                      . "./$cache_file";;
2435    esac
2436  fi
2437else
2438  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2439$as_echo "$as_me: creating cache $cache_file" >&6;}
2440  >$cache_file
2441fi
2442
2443# Check that the precious variables saved in the cache have kept the same
2444# value.
2445ac_cache_corrupted=false
2446for ac_var in $ac_precious_vars; do
2447  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2448  eval ac_new_set=\$ac_env_${ac_var}_set
2449  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2450  eval ac_new_val=\$ac_env_${ac_var}_value
2451  case $ac_old_set,$ac_new_set in
2452    set,)
2453      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2454$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2455      ac_cache_corrupted=: ;;
2456    ,set)
2457      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2458$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2459      ac_cache_corrupted=: ;;
2460    ,);;
2461    *)
2462      if test "x$ac_old_val" != "x$ac_new_val"; then
2463	# differences in whitespace do not lead to failure.
2464	ac_old_val_w=`echo x $ac_old_val`
2465	ac_new_val_w=`echo x $ac_new_val`
2466	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2467	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2468$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2469	  ac_cache_corrupted=:
2470	else
2471	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2472$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2473	  eval $ac_var=\$ac_old_val
2474	fi
2475	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2476$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2477	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2478$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2479      fi;;
2480  esac
2481  # Pass precious variables to config.status.
2482  if test "$ac_new_set" = set; then
2483    case $ac_new_val in
2484    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2485    *) ac_arg=$ac_var=$ac_new_val ;;
2486    esac
2487    case " $ac_configure_args " in
2488      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2489      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2490    esac
2491  fi
2492done
2493if $ac_cache_corrupted; then
2494  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2495$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2496  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2497$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2498  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2499fi
2500## -------------------- ##
2501## Main body of script. ##
2502## -------------------- ##
2503
2504ac_ext=c
2505ac_cpp='$CPP $CPPFLAGS'
2506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2508ac_compiler_gnu=$ac_cv_c_compiler_gnu
2509
2510
2511
2512SELFDIR=`dirname $0`/
2513
2514echo '#define FFMPEG 0' > $SELFDIR/src/config.h
2515
2516ac_config_headers="$ac_config_headers $SELFDIR/src/config.h"
2517
2518
2519OS=`uname`
2520
2521# snap compile is in directory build...
2522WHITE_DUNE_PATH=`pwd`
2523export WHITE_DUNE_PATH
2524if test X_`basename $WHITE_DUNE_PATH` = X_build ; then
2525   WHITE_DUNE_PATH=`(cd ../../../../.. && pwd)`
2526   DUNE_VERSION="white_dune `(cd ../../../../.. && sh ./batch/getversion.sh)`"
2527else
2528   DUNE_VERSION="white_dune `$SELFDIR/batch/getversion.sh`"
2529fi
2530cat >>confdefs.h <<_ACEOF
2531#define HAVE_DUNE_VERSION "${DUNE_VERSION}"
2532_ACEOF
2533
2534
2535echo fix unix filepermissions
2536sh $SELFDIR/batch/fixpermissions.sh
2537
2538OLD_CFLAGS="$CFLAGS"
2539OLD_CXXFLAGS="$CXXFLAGS"
2540
2541VCGLIB_FLAGS=`pkg-config --cflags vcglib 2> /dev/null`
2542if test "X_$VCGLIB_FLAGS" != "X_" ; then
2543   CPPFLAGS="$CPPFLAGS $VCGLIB_FLAGS"
2544else
2545   CPPFLAGS="$CPPFLAGS -I/usr/local/include -I/usr/local/include/eigenlib -I/usr/include/vcglib -I$SELFDIR/src -I$SELFDIR/vcglib -I$SELFDIR/vcglib/eigenlib -I$HOME/vcglib -I$SELFDIR/../vcglib -I$HOME/vcglib/eigenlib -I$SELFDIR/../vcglib/eigenlib"
2546fi
2547
2548FREETYPE2_FLAGS=`pkg-config --cflags freetype2 2> /dev/null`
2549if test "X_$FREETYPE2_FLAGS" != "X_" ; then
2550   CPPFLAGS="$CPPFLAGS $FREETYPE2_FLAGS"
2551else
2552   CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2/ -I/opt/X11/include/freetype2/"
2553fi
2554export CPPFLAGS
2555
2556if test "X_'ls -d I/usr/include/ffmpeg/ 2>/dev/null" != "X_" ; then
2557      CPPFLAGS="$CPPFLAGS -I/usr/include/ffmpeg/ "
2558   export CPPFLAGS
2559else
2560   # avoid ffmpget check for mageia Linux which misses something in /usr/include
2561   FFMPEG=no
2562fi
2563
2564
2565export OLD_CFLAGS="-g -O0"
2566export OLD_CXXFLAGS="-g -O0 $CXXFLAGS"
2567
2568ac_ext=c
2569ac_cpp='$CPP $CPPFLAGS'
2570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2572ac_compiler_gnu=$ac_cv_c_compiler_gnu
2573if test -n "$ac_tool_prefix"; then
2574  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2575set dummy ${ac_tool_prefix}gcc; ac_word=$2
2576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2577$as_echo_n "checking for $ac_word... " >&6; }
2578if ${ac_cv_prog_CC+:} false; then :
2579  $as_echo_n "(cached) " >&6
2580else
2581  if test -n "$CC"; then
2582  ac_cv_prog_CC="$CC" # Let the user override the test.
2583else
2584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585for as_dir in $PATH
2586do
2587  IFS=$as_save_IFS
2588  test -z "$as_dir" && as_dir=.
2589    for ac_exec_ext in '' $ac_executable_extensions; do
2590  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2591    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2592    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2593    break 2
2594  fi
2595done
2596  done
2597IFS=$as_save_IFS
2598
2599fi
2600fi
2601CC=$ac_cv_prog_CC
2602if test -n "$CC"; then
2603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2604$as_echo "$CC" >&6; }
2605else
2606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2607$as_echo "no" >&6; }
2608fi
2609
2610
2611fi
2612if test -z "$ac_cv_prog_CC"; then
2613  ac_ct_CC=$CC
2614  # Extract the first word of "gcc", so it can be a program name with args.
2615set dummy gcc; ac_word=$2
2616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2617$as_echo_n "checking for $ac_word... " >&6; }
2618if ${ac_cv_prog_ac_ct_CC+:} false; then :
2619  $as_echo_n "(cached) " >&6
2620else
2621  if test -n "$ac_ct_CC"; then
2622  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2623else
2624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625for as_dir in $PATH
2626do
2627  IFS=$as_save_IFS
2628  test -z "$as_dir" && as_dir=.
2629    for ac_exec_ext in '' $ac_executable_extensions; do
2630  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2631    ac_cv_prog_ac_ct_CC="gcc"
2632    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2633    break 2
2634  fi
2635done
2636  done
2637IFS=$as_save_IFS
2638
2639fi
2640fi
2641ac_ct_CC=$ac_cv_prog_ac_ct_CC
2642if test -n "$ac_ct_CC"; then
2643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2644$as_echo "$ac_ct_CC" >&6; }
2645else
2646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2647$as_echo "no" >&6; }
2648fi
2649
2650  if test "x$ac_ct_CC" = x; then
2651    CC=""
2652  else
2653    case $cross_compiling:$ac_tool_warned in
2654yes:)
2655{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2656$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2657ac_tool_warned=yes ;;
2658esac
2659    CC=$ac_ct_CC
2660  fi
2661else
2662  CC="$ac_cv_prog_CC"
2663fi
2664
2665if test -z "$CC"; then
2666          if test -n "$ac_tool_prefix"; then
2667    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2668set dummy ${ac_tool_prefix}cc; ac_word=$2
2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2670$as_echo_n "checking for $ac_word... " >&6; }
2671if ${ac_cv_prog_CC+:} false; then :
2672  $as_echo_n "(cached) " >&6
2673else
2674  if test -n "$CC"; then
2675  ac_cv_prog_CC="$CC" # Let the user override the test.
2676else
2677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678for as_dir in $PATH
2679do
2680  IFS=$as_save_IFS
2681  test -z "$as_dir" && as_dir=.
2682    for ac_exec_ext in '' $ac_executable_extensions; do
2683  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2684    ac_cv_prog_CC="${ac_tool_prefix}cc"
2685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2686    break 2
2687  fi
2688done
2689  done
2690IFS=$as_save_IFS
2691
2692fi
2693fi
2694CC=$ac_cv_prog_CC
2695if test -n "$CC"; then
2696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2697$as_echo "$CC" >&6; }
2698else
2699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2700$as_echo "no" >&6; }
2701fi
2702
2703
2704  fi
2705fi
2706if test -z "$CC"; then
2707  # Extract the first word of "cc", so it can be a program name with args.
2708set dummy cc; ac_word=$2
2709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2710$as_echo_n "checking for $ac_word... " >&6; }
2711if ${ac_cv_prog_CC+:} false; then :
2712  $as_echo_n "(cached) " >&6
2713else
2714  if test -n "$CC"; then
2715  ac_cv_prog_CC="$CC" # Let the user override the test.
2716else
2717  ac_prog_rejected=no
2718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719for as_dir in $PATH
2720do
2721  IFS=$as_save_IFS
2722  test -z "$as_dir" && as_dir=.
2723    for ac_exec_ext in '' $ac_executable_extensions; do
2724  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2725    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2726       ac_prog_rejected=yes
2727       continue
2728     fi
2729    ac_cv_prog_CC="cc"
2730    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731    break 2
2732  fi
2733done
2734  done
2735IFS=$as_save_IFS
2736
2737if test $ac_prog_rejected = yes; then
2738  # We found a bogon in the path, so make sure we never use it.
2739  set dummy $ac_cv_prog_CC
2740  shift
2741  if test $# != 0; then
2742    # We chose a different compiler from the bogus one.
2743    # However, it has the same basename, so the bogon will be chosen
2744    # first if we set CC to just the basename; use the full file name.
2745    shift
2746    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2747  fi
2748fi
2749fi
2750fi
2751CC=$ac_cv_prog_CC
2752if test -n "$CC"; then
2753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2754$as_echo "$CC" >&6; }
2755else
2756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757$as_echo "no" >&6; }
2758fi
2759
2760
2761fi
2762if test -z "$CC"; then
2763  if test -n "$ac_tool_prefix"; then
2764  for ac_prog in cl.exe
2765  do
2766    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2767set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769$as_echo_n "checking for $ac_word... " >&6; }
2770if ${ac_cv_prog_CC+:} false; then :
2771  $as_echo_n "(cached) " >&6
2772else
2773  if test -n "$CC"; then
2774  ac_cv_prog_CC="$CC" # Let the user override the test.
2775else
2776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777for as_dir in $PATH
2778do
2779  IFS=$as_save_IFS
2780  test -z "$as_dir" && as_dir=.
2781    for ac_exec_ext in '' $ac_executable_extensions; do
2782  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2783    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2784    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785    break 2
2786  fi
2787done
2788  done
2789IFS=$as_save_IFS
2790
2791fi
2792fi
2793CC=$ac_cv_prog_CC
2794if test -n "$CC"; then
2795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2796$as_echo "$CC" >&6; }
2797else
2798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799$as_echo "no" >&6; }
2800fi
2801
2802
2803    test -n "$CC" && break
2804  done
2805fi
2806if test -z "$CC"; then
2807  ac_ct_CC=$CC
2808  for ac_prog in cl.exe
2809do
2810  # Extract the first word of "$ac_prog", so it can be a program name with args.
2811set dummy $ac_prog; ac_word=$2
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2813$as_echo_n "checking for $ac_word... " >&6; }
2814if ${ac_cv_prog_ac_ct_CC+:} false; then :
2815  $as_echo_n "(cached) " >&6
2816else
2817  if test -n "$ac_ct_CC"; then
2818  ac_cv_prog_ac_ct_CC="$ac_ct_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_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2827    ac_cv_prog_ac_ct_CC="$ac_prog"
2828    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2829    break 2
2830  fi
2831done
2832  done
2833IFS=$as_save_IFS
2834
2835fi
2836fi
2837ac_ct_CC=$ac_cv_prog_ac_ct_CC
2838if test -n "$ac_ct_CC"; then
2839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2840$as_echo "$ac_ct_CC" >&6; }
2841else
2842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843$as_echo "no" >&6; }
2844fi
2845
2846
2847  test -n "$ac_ct_CC" && break
2848done
2849
2850  if test "x$ac_ct_CC" = x; then
2851    CC=""
2852  else
2853    case $cross_compiling:$ac_tool_warned in
2854yes:)
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2857ac_tool_warned=yes ;;
2858esac
2859    CC=$ac_ct_CC
2860  fi
2861fi
2862
2863fi
2864
2865
2866test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2867$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2868as_fn_error $? "no acceptable C compiler found in \$PATH
2869See \`config.log' for more details" "$LINENO" 5; }
2870
2871# Provide some information about the compiler.
2872$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2873set X $ac_compile
2874ac_compiler=$2
2875for ac_option in --version -v -V -qversion; do
2876  { { ac_try="$ac_compiler $ac_option >&5"
2877case "(($ac_try" in
2878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879  *) ac_try_echo=$ac_try;;
2880esac
2881eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2882$as_echo "$ac_try_echo"; } >&5
2883  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2884  ac_status=$?
2885  if test -s conftest.err; then
2886    sed '10a\
2887... rest of stderr output deleted ...
2888         10q' conftest.err >conftest.er1
2889    cat conftest.er1 >&5
2890  fi
2891  rm -f conftest.er1 conftest.err
2892  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2893  test $ac_status = 0; }
2894done
2895
2896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2897/* end confdefs.h.  */
2898
2899int
2900main ()
2901{
2902
2903  ;
2904  return 0;
2905}
2906_ACEOF
2907ac_clean_files_save=$ac_clean_files
2908ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2909# Try to create an executable without -o first, disregard a.out.
2910# It will help us diagnose broken compilers, and finding out an intuition
2911# of exeext.
2912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2913$as_echo_n "checking whether the C compiler works... " >&6; }
2914ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2915
2916# The possible output files:
2917ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2918
2919ac_rmfiles=
2920for ac_file in $ac_files
2921do
2922  case $ac_file in
2923    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2924    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2925  esac
2926done
2927rm -f $ac_rmfiles
2928
2929if { { ac_try="$ac_link_default"
2930case "(($ac_try" in
2931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932  *) ac_try_echo=$ac_try;;
2933esac
2934eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2935$as_echo "$ac_try_echo"; } >&5
2936  (eval "$ac_link_default") 2>&5
2937  ac_status=$?
2938  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2939  test $ac_status = 0; }; then :
2940  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2941# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2942# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2943# so that the user can short-circuit this test for compilers unknown to
2944# Autoconf.
2945for ac_file in $ac_files ''
2946do
2947  test -f "$ac_file" || continue
2948  case $ac_file in
2949    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2950	;;
2951    [ab].out )
2952	# We found the default executable, but exeext='' is most
2953	# certainly right.
2954	break;;
2955    *.* )
2956	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2957	then :; else
2958	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2959	fi
2960	# We set ac_cv_exeext here because the later test for it is not
2961	# safe: cross compilers may not add the suffix if given an `-o'
2962	# argument, so we may need to know it at that point already.
2963	# Even if this section looks crufty: it has the advantage of
2964	# actually working.
2965	break;;
2966    * )
2967	break;;
2968  esac
2969done
2970test "$ac_cv_exeext" = no && ac_cv_exeext=
2971
2972else
2973  ac_file=''
2974fi
2975if test -z "$ac_file"; then :
2976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977$as_echo "no" >&6; }
2978$as_echo "$as_me: failed program was:" >&5
2979sed 's/^/| /' conftest.$ac_ext >&5
2980
2981{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2982$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2983as_fn_error 77 "C compiler cannot create executables
2984See \`config.log' for more details" "$LINENO" 5; }
2985else
2986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2987$as_echo "yes" >&6; }
2988fi
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2990$as_echo_n "checking for C compiler default output file name... " >&6; }
2991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2992$as_echo "$ac_file" >&6; }
2993ac_exeext=$ac_cv_exeext
2994
2995rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2996ac_clean_files=$ac_clean_files_save
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2998$as_echo_n "checking for suffix of executables... " >&6; }
2999if { { ac_try="$ac_link"
3000case "(($ac_try" in
3001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002  *) ac_try_echo=$ac_try;;
3003esac
3004eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3005$as_echo "$ac_try_echo"; } >&5
3006  (eval "$ac_link") 2>&5
3007  ac_status=$?
3008  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3009  test $ac_status = 0; }; then :
3010  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3011# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3012# work properly (i.e., refer to `conftest.exe'), while it won't with
3013# `rm'.
3014for ac_file in conftest.exe conftest conftest.*; do
3015  test -f "$ac_file" || continue
3016  case $ac_file in
3017    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3018    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3019	  break;;
3020    * ) break;;
3021  esac
3022done
3023else
3024  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3026as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3027See \`config.log' for more details" "$LINENO" 5; }
3028fi
3029rm -f conftest conftest$ac_cv_exeext
3030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3031$as_echo "$ac_cv_exeext" >&6; }
3032
3033rm -f conftest.$ac_ext
3034EXEEXT=$ac_cv_exeext
3035ac_exeext=$EXEEXT
3036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3037/* end confdefs.h.  */
3038#include <stdio.h>
3039int
3040main ()
3041{
3042FILE *f = fopen ("conftest.out", "w");
3043 return ferror (f) || fclose (f) != 0;
3044
3045  ;
3046  return 0;
3047}
3048_ACEOF
3049ac_clean_files="$ac_clean_files conftest.out"
3050# Check that the compiler produces executables we can run.  If not, either
3051# the compiler is broken, or we cross compile.
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3053$as_echo_n "checking whether we are cross compiling... " >&6; }
3054if test "$cross_compiling" != yes; then
3055  { { ac_try="$ac_link"
3056case "(($ac_try" in
3057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058  *) ac_try_echo=$ac_try;;
3059esac
3060eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3061$as_echo "$ac_try_echo"; } >&5
3062  (eval "$ac_link") 2>&5
3063  ac_status=$?
3064  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3065  test $ac_status = 0; }
3066  if { ac_try='./conftest$ac_cv_exeext'
3067  { { case "(($ac_try" in
3068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069  *) ac_try_echo=$ac_try;;
3070esac
3071eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3072$as_echo "$ac_try_echo"; } >&5
3073  (eval "$ac_try") 2>&5
3074  ac_status=$?
3075  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3076  test $ac_status = 0; }; }; then
3077    cross_compiling=no
3078  else
3079    if test "$cross_compiling" = maybe; then
3080	cross_compiling=yes
3081    else
3082	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3083$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3084as_fn_error $? "cannot run C compiled programs.
3085If you meant to cross compile, use \`--host'.
3086See \`config.log' for more details" "$LINENO" 5; }
3087    fi
3088  fi
3089fi
3090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3091$as_echo "$cross_compiling" >&6; }
3092
3093rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3094ac_clean_files=$ac_clean_files_save
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3096$as_echo_n "checking for suffix of object files... " >&6; }
3097if ${ac_cv_objext+:} false; then :
3098  $as_echo_n "(cached) " >&6
3099else
3100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3101/* end confdefs.h.  */
3102
3103int
3104main ()
3105{
3106
3107  ;
3108  return 0;
3109}
3110_ACEOF
3111rm -f conftest.o conftest.obj
3112if { { ac_try="$ac_compile"
3113case "(($ac_try" in
3114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115  *) ac_try_echo=$ac_try;;
3116esac
3117eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3118$as_echo "$ac_try_echo"; } >&5
3119  (eval "$ac_compile") 2>&5
3120  ac_status=$?
3121  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3122  test $ac_status = 0; }; then :
3123  for ac_file in conftest.o conftest.obj conftest.*; do
3124  test -f "$ac_file" || continue;
3125  case $ac_file in
3126    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3127    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3128       break;;
3129  esac
3130done
3131else
3132  $as_echo "$as_me: failed program was:" >&5
3133sed 's/^/| /' conftest.$ac_ext >&5
3134
3135{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3136$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3137as_fn_error $? "cannot compute suffix of object files: cannot compile
3138See \`config.log' for more details" "$LINENO" 5; }
3139fi
3140rm -f conftest.$ac_cv_objext conftest.$ac_ext
3141fi
3142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3143$as_echo "$ac_cv_objext" >&6; }
3144OBJEXT=$ac_cv_objext
3145ac_objext=$OBJEXT
3146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3147$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3148if ${ac_cv_c_compiler_gnu+:} false; then :
3149  $as_echo_n "(cached) " >&6
3150else
3151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3152/* end confdefs.h.  */
3153
3154int
3155main ()
3156{
3157#ifndef __GNUC__
3158       choke me
3159#endif
3160
3161  ;
3162  return 0;
3163}
3164_ACEOF
3165if ac_fn_c_try_compile "$LINENO"; then :
3166  ac_compiler_gnu=yes
3167else
3168  ac_compiler_gnu=no
3169fi
3170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3171ac_cv_c_compiler_gnu=$ac_compiler_gnu
3172
3173fi
3174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3175$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3176if test $ac_compiler_gnu = yes; then
3177  GCC=yes
3178else
3179  GCC=
3180fi
3181ac_test_CFLAGS=${CFLAGS+set}
3182ac_save_CFLAGS=$CFLAGS
3183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3184$as_echo_n "checking whether $CC accepts -g... " >&6; }
3185if ${ac_cv_prog_cc_g+:} false; then :
3186  $as_echo_n "(cached) " >&6
3187else
3188  ac_save_c_werror_flag=$ac_c_werror_flag
3189   ac_c_werror_flag=yes
3190   ac_cv_prog_cc_g=no
3191   CFLAGS="-g"
3192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3193/* end confdefs.h.  */
3194
3195int
3196main ()
3197{
3198
3199  ;
3200  return 0;
3201}
3202_ACEOF
3203if ac_fn_c_try_compile "$LINENO"; then :
3204  ac_cv_prog_cc_g=yes
3205else
3206  CFLAGS=""
3207      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3208/* end confdefs.h.  */
3209
3210int
3211main ()
3212{
3213
3214  ;
3215  return 0;
3216}
3217_ACEOF
3218if ac_fn_c_try_compile "$LINENO"; then :
3219
3220else
3221  ac_c_werror_flag=$ac_save_c_werror_flag
3222	 CFLAGS="-g"
3223	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3224/* end confdefs.h.  */
3225
3226int
3227main ()
3228{
3229
3230  ;
3231  return 0;
3232}
3233_ACEOF
3234if ac_fn_c_try_compile "$LINENO"; then :
3235  ac_cv_prog_cc_g=yes
3236fi
3237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238fi
3239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240fi
3241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242   ac_c_werror_flag=$ac_save_c_werror_flag
3243fi
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3245$as_echo "$ac_cv_prog_cc_g" >&6; }
3246if test "$ac_test_CFLAGS" = set; then
3247  CFLAGS=$ac_save_CFLAGS
3248elif test $ac_cv_prog_cc_g = yes; then
3249  if test "$GCC" = yes; then
3250    CFLAGS="-g -O2"
3251  else
3252    CFLAGS="-g"
3253  fi
3254else
3255  if test "$GCC" = yes; then
3256    CFLAGS="-O2"
3257  else
3258    CFLAGS=
3259  fi
3260fi
3261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3262$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3263if ${ac_cv_prog_cc_c89+:} false; then :
3264  $as_echo_n "(cached) " >&6
3265else
3266  ac_cv_prog_cc_c89=no
3267ac_save_CC=$CC
3268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269/* end confdefs.h.  */
3270#include <stdarg.h>
3271#include <stdio.h>
3272struct stat;
3273/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3274struct buf { int x; };
3275FILE * (*rcsopen) (struct buf *, struct stat *, int);
3276static char *e (p, i)
3277     char **p;
3278     int i;
3279{
3280  return p[i];
3281}
3282static char *f (char * (*g) (char **, int), char **p, ...)
3283{
3284  char *s;
3285  va_list v;
3286  va_start (v,p);
3287  s = g (p, va_arg (v,int));
3288  va_end (v);
3289  return s;
3290}
3291
3292/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3293   function prototypes and stuff, but not '\xHH' hex character constants.
3294   These don't provoke an error unfortunately, instead are silently treated
3295   as 'x'.  The following induces an error, until -std is added to get
3296   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3297   array size at least.  It's necessary to write '\x00'==0 to get something
3298   that's true only with -std.  */
3299int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3300
3301/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3302   inside strings and character constants.  */
3303#define FOO(x) 'x'
3304int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3305
3306int test (int i, double x);
3307struct s1 {int (*f) (int a);};
3308struct s2 {int (*f) (double a);};
3309int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3310int argc;
3311char **argv;
3312int
3313main ()
3314{
3315return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3316  ;
3317  return 0;
3318}
3319_ACEOF
3320for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3321	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3322do
3323  CC="$ac_save_CC $ac_arg"
3324  if ac_fn_c_try_compile "$LINENO"; then :
3325  ac_cv_prog_cc_c89=$ac_arg
3326fi
3327rm -f core conftest.err conftest.$ac_objext
3328  test "x$ac_cv_prog_cc_c89" != "xno" && break
3329done
3330rm -f conftest.$ac_ext
3331CC=$ac_save_CC
3332
3333fi
3334# AC_CACHE_VAL
3335case "x$ac_cv_prog_cc_c89" in
3336  x)
3337    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3338$as_echo "none needed" >&6; } ;;
3339  xno)
3340    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3341$as_echo "unsupported" >&6; } ;;
3342  *)
3343    CC="$CC $ac_cv_prog_cc_c89"
3344    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3345$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3346esac
3347if test "x$ac_cv_prog_cc_c89" != xno; then :
3348
3349fi
3350
3351ac_ext=c
3352ac_cpp='$CPP $CPPFLAGS'
3353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355ac_compiler_gnu=$ac_cv_c_compiler_gnu
3356
3357ac_ext=cpp
3358ac_cpp='$CXXCPP $CPPFLAGS'
3359ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3360ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3361ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3362if test -z "$CXX"; then
3363  if test -n "$CCC"; then
3364    CXX=$CCC
3365  else
3366    if test -n "$ac_tool_prefix"; then
3367  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3368  do
3369    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3370set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3372$as_echo_n "checking for $ac_word... " >&6; }
3373if ${ac_cv_prog_CXX+:} false; then :
3374  $as_echo_n "(cached) " >&6
3375else
3376  if test -n "$CXX"; then
3377  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3378else
3379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380for as_dir in $PATH
3381do
3382  IFS=$as_save_IFS
3383  test -z "$as_dir" && as_dir=.
3384    for ac_exec_ext in '' $ac_executable_extensions; do
3385  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3386    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3387    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3388    break 2
3389  fi
3390done
3391  done
3392IFS=$as_save_IFS
3393
3394fi
3395fi
3396CXX=$ac_cv_prog_CXX
3397if test -n "$CXX"; then
3398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3399$as_echo "$CXX" >&6; }
3400else
3401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3402$as_echo "no" >&6; }
3403fi
3404
3405
3406    test -n "$CXX" && break
3407  done
3408fi
3409if test -z "$CXX"; then
3410  ac_ct_CXX=$CXX
3411  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3412do
3413  # Extract the first word of "$ac_prog", so it can be a program name with args.
3414set dummy $ac_prog; ac_word=$2
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3416$as_echo_n "checking for $ac_word... " >&6; }
3417if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3418  $as_echo_n "(cached) " >&6
3419else
3420  if test -n "$ac_ct_CXX"; then
3421  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3422else
3423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424for as_dir in $PATH
3425do
3426  IFS=$as_save_IFS
3427  test -z "$as_dir" && as_dir=.
3428    for ac_exec_ext in '' $ac_executable_extensions; do
3429  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3430    ac_cv_prog_ac_ct_CXX="$ac_prog"
3431    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3432    break 2
3433  fi
3434done
3435  done
3436IFS=$as_save_IFS
3437
3438fi
3439fi
3440ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3441if test -n "$ac_ct_CXX"; then
3442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3443$as_echo "$ac_ct_CXX" >&6; }
3444else
3445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446$as_echo "no" >&6; }
3447fi
3448
3449
3450  test -n "$ac_ct_CXX" && break
3451done
3452
3453  if test "x$ac_ct_CXX" = x; then
3454    CXX="g++"
3455  else
3456    case $cross_compiling:$ac_tool_warned in
3457yes:)
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3459$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3460ac_tool_warned=yes ;;
3461esac
3462    CXX=$ac_ct_CXX
3463  fi
3464fi
3465
3466  fi
3467fi
3468# Provide some information about the compiler.
3469$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3470set X $ac_compile
3471ac_compiler=$2
3472for ac_option in --version -v -V -qversion; do
3473  { { ac_try="$ac_compiler $ac_option >&5"
3474case "(($ac_try" in
3475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476  *) ac_try_echo=$ac_try;;
3477esac
3478eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3479$as_echo "$ac_try_echo"; } >&5
3480  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3481  ac_status=$?
3482  if test -s conftest.err; then
3483    sed '10a\
3484... rest of stderr output deleted ...
3485         10q' conftest.err >conftest.er1
3486    cat conftest.er1 >&5
3487  fi
3488  rm -f conftest.er1 conftest.err
3489  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3490  test $ac_status = 0; }
3491done
3492
3493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3494$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3495if ${ac_cv_cxx_compiler_gnu+:} false; then :
3496  $as_echo_n "(cached) " >&6
3497else
3498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499/* end confdefs.h.  */
3500
3501int
3502main ()
3503{
3504#ifndef __GNUC__
3505       choke me
3506#endif
3507
3508  ;
3509  return 0;
3510}
3511_ACEOF
3512if ac_fn_cxx_try_compile "$LINENO"; then :
3513  ac_compiler_gnu=yes
3514else
3515  ac_compiler_gnu=no
3516fi
3517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3518ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3519
3520fi
3521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3522$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3523if test $ac_compiler_gnu = yes; then
3524  GXX=yes
3525else
3526  GXX=
3527fi
3528ac_test_CXXFLAGS=${CXXFLAGS+set}
3529ac_save_CXXFLAGS=$CXXFLAGS
3530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3531$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3532if ${ac_cv_prog_cxx_g+:} false; then :
3533  $as_echo_n "(cached) " >&6
3534else
3535  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3536   ac_cxx_werror_flag=yes
3537   ac_cv_prog_cxx_g=no
3538   CXXFLAGS="-g"
3539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540/* end confdefs.h.  */
3541
3542int
3543main ()
3544{
3545
3546  ;
3547  return 0;
3548}
3549_ACEOF
3550if ac_fn_cxx_try_compile "$LINENO"; then :
3551  ac_cv_prog_cxx_g=yes
3552else
3553  CXXFLAGS=""
3554      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555/* end confdefs.h.  */
3556
3557int
3558main ()
3559{
3560
3561  ;
3562  return 0;
3563}
3564_ACEOF
3565if ac_fn_cxx_try_compile "$LINENO"; then :
3566
3567else
3568  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3569	 CXXFLAGS="-g"
3570	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571/* end confdefs.h.  */
3572
3573int
3574main ()
3575{
3576
3577  ;
3578  return 0;
3579}
3580_ACEOF
3581if ac_fn_cxx_try_compile "$LINENO"; then :
3582  ac_cv_prog_cxx_g=yes
3583fi
3584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585fi
3586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587fi
3588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3590fi
3591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3592$as_echo "$ac_cv_prog_cxx_g" >&6; }
3593if test "$ac_test_CXXFLAGS" = set; then
3594  CXXFLAGS=$ac_save_CXXFLAGS
3595elif test $ac_cv_prog_cxx_g = yes; then
3596  if test "$GXX" = yes; then
3597    CXXFLAGS="-g -O2"
3598  else
3599    CXXFLAGS="-g"
3600  fi
3601else
3602  if test "$GXX" = yes; then
3603    CXXFLAGS="-O2"
3604  else
3605    CXXFLAGS=
3606  fi
3607fi
3608ac_ext=c
3609ac_cpp='$CPP $CPPFLAGS'
3610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612ac_compiler_gnu=$ac_cv_c_compiler_gnu
3613
3614ac_ext=cpp
3615ac_cpp='$CXXCPP $CPPFLAGS'
3616ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3617ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3618ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
3620$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3621if test -z "$CXXCPP"; then
3622  if ${ac_cv_prog_CXXCPP+:} false; then :
3623  $as_echo_n "(cached) " >&6
3624else
3625      # Double quotes because CXXCPP needs to be expanded
3626    for CXXCPP in "$CXX -E" "/lib/cpp"
3627    do
3628      ac_preproc_ok=false
3629for ac_cxx_preproc_warn_flag in '' yes
3630do
3631  # Use a header file that comes with gcc, so configuring glibc
3632  # with a fresh cross-compiler works.
3633  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3634  # <limits.h> exists even on freestanding compilers.
3635  # On the NeXT, cc -E runs the code through the compiler's parser,
3636  # not just through cpp. "Syntax error" is here to catch this case.
3637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638/* end confdefs.h.  */
3639#ifdef __STDC__
3640# include <limits.h>
3641#else
3642# include <assert.h>
3643#endif
3644		     Syntax error
3645_ACEOF
3646if ac_fn_cxx_try_cpp "$LINENO"; then :
3647
3648else
3649  # Broken: fails on valid input.
3650continue
3651fi
3652rm -f conftest.err conftest.i conftest.$ac_ext
3653
3654  # OK, works on sane cases.  Now check whether nonexistent headers
3655  # can be detected and how.
3656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657/* end confdefs.h.  */
3658#include <ac_nonexistent.h>
3659_ACEOF
3660if ac_fn_cxx_try_cpp "$LINENO"; then :
3661  # Broken: success on invalid input.
3662continue
3663else
3664  # Passes both tests.
3665ac_preproc_ok=:
3666break
3667fi
3668rm -f conftest.err conftest.i conftest.$ac_ext
3669
3670done
3671# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3672rm -f conftest.i conftest.err conftest.$ac_ext
3673if $ac_preproc_ok; then :
3674  break
3675fi
3676
3677    done
3678    ac_cv_prog_CXXCPP=$CXXCPP
3679
3680fi
3681  CXXCPP=$ac_cv_prog_CXXCPP
3682else
3683  ac_cv_prog_CXXCPP=$CXXCPP
3684fi
3685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
3686$as_echo "$CXXCPP" >&6; }
3687ac_preproc_ok=false
3688for ac_cxx_preproc_warn_flag in '' yes
3689do
3690  # Use a header file that comes with gcc, so configuring glibc
3691  # with a fresh cross-compiler works.
3692  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3693  # <limits.h> exists even on freestanding compilers.
3694  # On the NeXT, cc -E runs the code through the compiler's parser,
3695  # not just through cpp. "Syntax error" is here to catch this case.
3696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697/* end confdefs.h.  */
3698#ifdef __STDC__
3699# include <limits.h>
3700#else
3701# include <assert.h>
3702#endif
3703		     Syntax error
3704_ACEOF
3705if ac_fn_cxx_try_cpp "$LINENO"; then :
3706
3707else
3708  # Broken: fails on valid input.
3709continue
3710fi
3711rm -f conftest.err conftest.i conftest.$ac_ext
3712
3713  # OK, works on sane cases.  Now check whether nonexistent headers
3714  # can be detected and how.
3715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716/* end confdefs.h.  */
3717#include <ac_nonexistent.h>
3718_ACEOF
3719if ac_fn_cxx_try_cpp "$LINENO"; then :
3720  # Broken: success on invalid input.
3721continue
3722else
3723  # Passes both tests.
3724ac_preproc_ok=:
3725break
3726fi
3727rm -f conftest.err conftest.i conftest.$ac_ext
3728
3729done
3730# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3731rm -f conftest.i conftest.err conftest.$ac_ext
3732if $ac_preproc_ok; then :
3733
3734else
3735  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3736$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3737as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
3738See \`config.log' for more details" "$LINENO" 5; }
3739fi
3740
3741ac_ext=c
3742ac_cpp='$CPP $CPPFLAGS'
3743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746
3747
3748if test "$CFLAGS" != "$OLD_CFLAGS"; then
3749 CFLAGS="$OLD_CFLAGS"
3750 echo reseting CFLAGS to $CFLAGS
3751fi
3752
3753if test "$CXX_FLAGS" != "$OLD_CXXFLAGS"; then
3754 CXXFLAGS="$OLD_CXXFLAGS"
3755 echo reseting CXXFLAGS to $CXXFLAGS
3756fi
3757
3758
3759if test "X_$OS" = "X_Linux" ; then
3760 echo xxxxxxxxx Warning xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
3761 echo problems with the buggy Redhat/SuSE Linux \"gcc 2.96\" compiler '?' Use
3762 echo
3763 echo  rm -f config.cache
3764 echo  sh ./configure --with-kgcc
3765 echo xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
3766fi
3767
3768
3769
3770# Check whether --with-clang was given.
3771if test "${with_clang+set}" = set; then :
3772  withval=$with_clang; export CLANG=1;export CC=clang;export CXX=clang++;export CXXFLAGS=-Wno-tautological-undefined-compare
3773fi
3774
3775
3776
3777# Check whether --with-oldmotif was given.
3778if test "${with_oldmotif+set}" = set; then :
3779  withval=$with_oldmotif; $as_echo "#define HAVE_OLD_MOTIF 1" >>confdefs.h
3780
3781fi
3782
3783
3784
3785# Check whether --with-olpc was given.
3786if test "${with_olpc+set}" = set; then :
3787  withval=$with_olpc; HAVE_OLPC=1;CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2";export CPPFLAGS;OPTIM="$OPTIM -O3 -mmmx -m3dnow -ffast-math";export OPTIM;$as_echo "#define HAVE_OLPC 1" >>confdefs.h
3788
3789fi
3790
3791
3792if test "X_$OPTIM" = "X_" ;then
3793   OPTIM=-g
3794fi
3795
3796# Check whether --with-optimization was given.
3797if test "${with_optimization+set}" = set; then :
3798  withval=$with_optimization; OPTIM="-O2 -g";export OPTIM; NOFORT="-O2 -g";export NOFORT
3799fi
3800
3801
3802
3803# Check whether --with-partical-fortify was given.
3804if test "${with_partical_fortify+set}" = set; then :
3805  withval=$with_partical_fortify; OPTIM="-D_FORTIFY_SOURCE=2 -O2";export OPTIM; NOFORT="-O2";export NOFORT
3806fi
3807
3808
3809LIBS="$LIBS $EXTRA_LIBS"
3810export LIBS
3811
3812
3813# Check whether --with-iconscale2 was given.
3814if test "${with_iconscale2+set}" = set; then :
3815  withval=$with_iconscale2; $as_echo "#define HAVE_ICON_SCALE_2 1" >>confdefs.h
3816
3817fi
3818
3819
3820
3821# Check whether --with-devil was given.
3822if test "${with_devil+set}" = set; then :
3823  withval=$with_devil; DEVIL=no
3824fi
3825
3826
3827
3828# Check whether --with-cgal was given.
3829if test "${with_cgal+set}" = set; then :
3830  withval=$with_cgal; CGAL=no
3831fi
3832
3833
3834
3835# Check whether --with-cgalheaders was given.
3836if test "${with_cgalheaders+set}" = set; then :
3837  withval=$with_cgalheaders; $as_echo "#define HAVE_LIBCGAL 1" >>confdefs.h
3838 CGALHEADERS=yes
3839fi
3840
3841
3842
3843# Check whether --with-omp was given.
3844if test "${with_omp+set}" = set; then :
3845  withval=$with_omp; OMP=no
3846fi
3847
3848
3849
3850# Check whether --with-aqsis was given.
3851if test "${with_aqsis+set}" = set; then :
3852  withval=$with_aqsis; AQSIS=no
3853fi
3854
3855
3856
3857# Check whether --with-ffmpeg was given.
3858if test "${with_ffmpeg+set}" = set; then :
3859  withval=$with_ffmpeg; FFMPEG=no
3860fi
3861
3862
3863
3864# Check whether --with-png_handle_unknown was given.
3865if test "${with_png_handle_unknown+set}" = set; then :
3866  withval=$with_png_handle_unknown; $as_echo "#define HAVE_NO_PNG_HANDLE_UNKNOWN 1" >>confdefs.h
3867
3868fi
3869
3870
3871
3872# Check whether --with-sdljoystick was given.
3873if test "${with_sdljoystick+set}" = set; then :
3874  withval=$with_sdljoystick; SDL_JOYSTICK=yes
3875fi
3876
3877
3878
3879# Check whether --with-helpurl was given.
3880if test "${with_helpurl+set}" = set; then :
3881  withval=$with_helpurl; HELPURL="$withval";export HELPURL
3882fi
3883
3884if test "X_$HELPURL" != "X_" ; then
3885   cat >>confdefs.h <<_ACEOF
3886#define HAVE_HELP_URL "${HELPURL}"
3887_ACEOF
3888
3889
3890else
3891   if test -d docs ; then
3892      cat >>confdefs.h <<_ACEOF
3893#define HAVE_HELP_URL "${WHITE_DUNE_PATH}/docs/index.html"
3894_ACEOF
3895
3896      HELPURL="${WHITE_DUNE_PATH}/docs/index.html"
3897      export HELPURL
3898
3899   fi
3900   if test X_`basename $PWD` = X_build ; then
3901      cat >>confdefs.h <<_ACEOF
3902#define HAVE_HELP_URL "http://wdune.ourproject.org/docs/index.html"
3903_ACEOF
3904
3905   fi
3906fi
3907
3908
3909# Check whether --with-vrmlnodesurl was given.
3910if test "${with_vrmlnodesurl+set}" = set; then :
3911  withval=$with_vrmlnodesurl; VRMLNODESURL="$withval";export VRMLNODESURL
3912fi
3913
3914if test "X_$VRMLNODESURL" != "X_" ; then
3915   cat >>confdefs.h <<_ACEOF
3916#define HAVE_VRML_NODES_URL "${VRMLNODESURL}"
3917_ACEOF
3918
3919fi
3920
3921
3922# Check whether --with-x3durl was given.
3923if test "${with_x3durl+set}" = set; then :
3924  withval=$with_x3durl;
3925fi
3926
3927if test "X_$X3DURL" != "X_" ; then
3928   cat >>confdefs.h <<_ACEOF
3929#define HAVE_X3D_URL "${X3DURL}"
3930_ACEOF
3931
3932fi
3933
3934
3935# Check whether --with-protobaseurl was given.
3936if test "${with_protobaseurl+set}" = set; then :
3937  withval=$with_protobaseurl; PROTO_BASE_URL="$withval";export PROTO_BASE_URL
3938fi
3939
3940
3941
3942# Check whether --with-debian was given.
3943if test "${with_debian+set}" = set; then :
3944  withval=$with_debian; DEBIAN=yes;export DEBIAN
3945fi
3946
3947
3948
3949# Check whether --with-x3domurl was given.
3950if test "${with_x3domurl+set}" = set; then :
3951  withval=$with_x3domurl; X3DDOMURL="$withval";export X3DOMURL
3952fi
3953
3954if test "X_$X3DOMURL" != "X_" ; then
3955   cat >>confdefs.h <<_ACEOF
3956#define HAVE_X3DOM_PATH "${X3DOMURL}"
3957_ACEOF
3958
3959fi
3960
3961VRML97_AMENDMENT1=vrml97Amendment1
3962X3D=x3d
3963SCRIPTED_NODES=scripted_Nodes
3964COVER_NODES=coverNodes
3965EXPORT_CONTAINER=exportContainers
3966
3967for i in VRML97_AMENDMENT1 X3D SCRIPTED_NODES COVER_NODES EXPORT_CONTAINER; do
3968   x=`eval echo '$'"$i"`
3969   if test "X_$PROTO_BASE_URL" != "X_"; then
3970      url=HAVE_''$i''_PROTO_URL
3971      cat >>confdefs.h <<_ACEOF
3972#define $url "$PROTO_BASE_URL/$x"
3973_ACEOF
3974
3975   else
3976      if test -d docs/$x ; then
3977         url=HAVE_''$i''_PROTO_URL
3978         cat >>confdefs.h <<_ACEOF
3979#define $url "${SELFDIR}/docs/$x"
3980_ACEOF
3981
3982      fi
3983   fi
3984done
3985
3986
3987# Check whether --with-coverwave was given.
3988if test "${with_coverwave+set}" = set; then :
3989  withval=$with_coverwave; $as_echo "#define HAVE_COVER_WAVE 1" >>confdefs.h
3990
3991fi
3992
3993
3994
3995# Check whether --with-covertuimap was given.
3996if test "${with_covertuimap+set}" = set; then :
3997  withval=$with_covertuimap; $as_echo "#define HAVE_COVER_TUI_MAP 1" >>confdefs.h
3998
3999fi
4000
4001
4002
4003# Check whether --with-wwwbrowser was given.
4004if test "${with_wwwbrowser+set}" = set; then :
4005  withval=$with_wwwbrowser; WWWBROWSER="$withval";export WWWBROWSER
4006fi
4007
4008
4009
4010# Check whether --with-vrmlbrowser was given.
4011if test "${with_vrmlbrowser+set}" = set; then :
4012  withval=$with_vrmlbrowser; VRMLBROWSER="$withval";export VRMLBROWSER
4013fi
4014
4015if (echo "$VRMLBROWSER" | grep "freewrl" > /dev/null) ; then
4016   VRMLBROWSER="LD_LIBRARY_PATH=/usr/local/lib $VRMLBROWSER"
4017   export VRMLBROWSER
4018fi
4019
4020
4021# Check whether --with-x11-editor was given.
4022if test "${with_x11_editor+set}" = set; then :
4023  withval=$with_x11_editor; X11_EDITOR="$withval";export X11_EDITOR
4024fi
4025
4026if (echo "$X11_EDITOR" | grep "gvim" > /dev/null) ; then
4027    cat >>confdefs.h <<_ACEOF
4028#define HAVE_X11_EDITOR "$X11_EDITOR -f "
4029_ACEOF
4030
4031fi
4032
4033KNOWN_IMAGE_EDITORS="gimp imgworks krita kolourpaint xpaint gpaint"
4034
4035# Check whether --with-imageeditor was given.
4036if test "${with_imageeditor+set}" = set; then :
4037  withval=$with_imageeditor; IMAGEEDITOR="$withval";export IMAGEEDITOR
4038fi
4039
4040
4041KNOWN_IMAGE_EDITORS_4KIDS="imgworks kolourpaint gpaint krita xpaint gimp"
4042
4043# Check whether --with-imageeditor4kids was given.
4044if test "${with_imageeditor4kids+set}" = set; then :
4045  withval=$with_imageeditor4kids; IMAGEEDITOR4KIDS="$withval";export IMAGEEDITOR4KIDS
4046fi
4047
4048
4049KNOWN_SOUND_EDITORS="audacity rezound wavesurfer gnusound sweep soundeditor"
4050
4051# Check whether --with-soundeditor was given.
4052if test "${with_soundeditor+set}" = set; then :
4053  withval=$with_soundeditor; SOUNDEDITOR="$withval";export SOUNDEDITOR
4054fi
4055
4056
4057KNOWN_MOVIE_EDITORS="cinelerra avidemux2 avidemux moviemaker"
4058
4059# Check whether --with-movieeditor was given.
4060if test "${with_movieeditor+set}" = set; then :
4061  withval=$with_movieeditor; MOVIEEDITOR="$withval";export MOVIEEDITOR
4062fi
4063
4064
4065
4066# Check whether --with-checkincommand was given.
4067if test "${with_checkincommand+set}" = set; then :
4068  withval=$with_checkincommand; CHECK_IN_COMMAND="$withval";export CHECK_IN_COMMAND
4069fi
4070
4071
4072KNOWN_IMAGE_CONVERTERS="convert"
4073
4074# Check whether --with-imageconverter was given.
4075if test "${with_imageconverter+set}" = set; then :
4076  withval=$with_imageconverter; IMAGECONVERTER="$withval";export IMAGECONVERTER
4077fi
4078
4079
4080
4081# Check whether --with-ant was given.
4082if test "${with_ant+set}" = set; then :
4083  withval=$with_ant; ANT="$withval";export ANT
4084fi
4085
4086
4087
4088# Check whether --with-usrlocalinclude was given.
4089if test "${with_usrlocalinclude+set}" = set; then :
4090  withval=$with_usrlocalinclude; USRLOCALINCLUDE=no
4091fi
4092
4093
4094
4095# Check whether --with-kgcc was given.
4096if test "${with_kgcc+set}" = set; then :
4097  withval=$with_kgcc; CC=kgcc;export CC
4098fi
4099
4100
4101
4102# Check whether --with-eulerrotation was given.
4103if test "${with_eulerrotation+set}" = set; then :
4104  withval=$with_eulerrotation; $as_echo "#define HAVE_EULER_ROT 1" >>confdefs.h
4105
4106fi
4107
4108
4109
4110# Check whether --with-routeatend was given.
4111if test "${with_routeatend+set}" = set; then :
4112  withval=$with_routeatend; $as_echo "#define HAVE_ROUTE_AT_END 1" >>confdefs.h
4113
4114fi
4115
4116
4117
4118# Check whether --with-uninstallcomment was given.
4119if test "${with_uninstallcomment+set}" = set; then :
4120  withval=$with_uninstallcomment; UNINSTALL_COMMENT="$withval";export UNINSTALL_COMMENT
4121fi
4122
4123if test "X_$UNINSTALL_COMMENT" != "X_" ; then
4124   cat >>confdefs.h <<_ACEOF
4125#define HAVE_UNINSTALL_COMMENT "${UNINSTALL_COMMENT}"
4126_ACEOF
4127
4128else
4129   cat >>confdefs.h <<_ACEOF
4130#define HAVE_UNINSTALL_COMMENT "no information how to uninstall white_dune: possibly it has been installed from source"
4131_ACEOF
4132
4133fi
4134
4135
4136# Check whether --with-xj3drigidbodyphysicscomponent was given.
4137if test "${with_xj3drigidbodyphysicscomponent+set}" = set; then :
4138  withval=$with_xj3drigidbodyphysicscomponent; $as_echo "#define HAVE_XJ3D_RIGID_BODY_PHYSICS_COMPONENT 1" >>confdefs.h
4139
4140fi
4141
4142
4143
4144
4145# Check whether --with-dontreplacevrmlscript was given.
4146if test "${with_dontreplacevrmlscript+set}" = set; then :
4147  withval=$with_dontreplacevrmlscript; $as_echo "#define HAVE_DONT_REPLACE_VRMLSCRIPT 1" >>confdefs.h
4148
4149fi
4150
4151
4152
4153# Check whether --with-stereo was given.
4154if test "${with_stereo+set}" = set; then :
4155  withval=$with_stereo; $as_echo "#define HAVE_NO_STEREO 1" >>confdefs.h
4156
4157fi
4158
4159
4160
4161# Check whether --with-stereocommand was given.
4162if test "${with_stereocommand+set}" = set; then :
4163  withval=$with_stereocommand; STEREOCOMMAND="$withval";export STEREOCOMMAND
4164fi
4165
4166if test "X_$STEREOCOMMAND" != "X_" ;then
4167   cat >>confdefs.h <<_ACEOF
4168#define HAVE_STEREOCOMMAND "${STEREOCOMMAND}"
4169_ACEOF
4170
4171fi
4172
4173
4174# Check whether --with-updatedebug was given.
4175if test "${with_updatedebug+set}" = set; then :
4176  withval=$with_updatedebug; $as_echo "#define HAVE_UPDATE_DEBUG 1" >>confdefs.h
4177
4178fi
4179
4180
4181
4182# Check whether --with-aflockdebug was given.
4183if test "${with_aflockdebug+set}" = set; then :
4184  withval=$with_aflockdebug; $as_echo "#define HAVE_AFLOCK_DEBUG 1" >>confdefs.h
4185
4186fi
4187
4188
4189
4190# Check whether --with-coredump was given.
4191if test "${with_coredump+set}" = set; then :
4192  withval=$with_coredump; $as_echo "#define HAVE_WANT_CORE 1" >>confdefs.h
4193
4194fi
4195
4196
4197
4198# Check whether --with-ttf-file was given.
4199if test "${with_ttf_file+set}" = set; then :
4200  withval=$with_ttf_file; cat >>confdefs.h <<_ACEOF
4201#define HAVE_DEFAULT_TTF_FILE "$withval"
4202_ACEOF
4203
4204else
4205  TTF_FILE=0
4206fi
4207
4208
4209unset TEST_FPU_INTERRUPTS
4210
4211# Check whether --with-fpuinterrupts was given.
4212if test "${with_fpuinterrupts+set}" = set; then :
4213  withval=$with_fpuinterrupts; export TEST_FPU_INTERRUPTS="yes"
4214fi
4215
4216if test "X_$TEST_FPU_INTERRUPTS" != "X_" ; then
4217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FPU_SETCW" >&5
4218$as_echo_n "checking for _FPU_SETCW... " >&6; }
4219
4220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221/* end confdefs.h.  */
4222
4223                    #include "fpu_control.h"
4224
4225int
4226main ()
4227{
4228
4229                    unsigned int cw;_FPU_SETCW(cw);
4230
4231  ;
4232  return 0;
4233}
4234_ACEOF
4235if ac_fn_c_try_compile "$LINENO"; then :
4236  echo yes;$as_echo "#define HAVE_FPU_SETCW 1" >>confdefs.h
4237
4238else
4239  echo no
4240
4241fi
4242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4243  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for handle_sigfpes in -lfpe" >&5
4244$as_echo_n "checking for handle_sigfpes in -lfpe... " >&6; }
4245if ${ac_cv_lib_fpe_handle_sigfpes+:} false; then :
4246  $as_echo_n "(cached) " >&6
4247else
4248  ac_check_lib_save_LIBS=$LIBS
4249LIBS="-lfpe  $LIBS"
4250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251/* end confdefs.h.  */
4252
4253/* Override any GCC internal prototype to avoid an error.
4254   Use char because int might match the return type of a GCC
4255   builtin and then its argument prototype would still apply.  */
4256#ifdef __cplusplus
4257extern "C"
4258#endif
4259char handle_sigfpes ();
4260int
4261main ()
4262{
4263return handle_sigfpes ();
4264  ;
4265  return 0;
4266}
4267_ACEOF
4268if ac_fn_c_try_link "$LINENO"; then :
4269  ac_cv_lib_fpe_handle_sigfpes=yes
4270else
4271  ac_cv_lib_fpe_handle_sigfpes=no
4272fi
4273rm -f core conftest.err conftest.$ac_objext \
4274    conftest$ac_exeext conftest.$ac_ext
4275LIBS=$ac_check_lib_save_LIBS
4276fi
4277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpe_handle_sigfpes" >&5
4278$as_echo "$ac_cv_lib_fpe_handle_sigfpes" >&6; }
4279if test "x$ac_cv_lib_fpe_handle_sigfpes" = xyes; then :
4280  cat >>confdefs.h <<_ACEOF
4281#define HAVE_LIBFPE 1
4282_ACEOF
4283
4284  LIBS="-lfpe $LIBS"
4285
4286fi
4287
4288  for ac_func in handle_sigfpes
4289do :
4290  ac_fn_c_check_func "$LINENO" "handle_sigfpes" "ac_cv_func_handle_sigfpes"
4291if test "x$ac_cv_func_handle_sigfpes" = xyes; then :
4292  cat >>confdefs.h <<_ACEOF
4293#define HAVE_HANDLE_SIGFPES 1
4294_ACEOF
4295
4296fi
4297done
4298
4299fi
4300
4301
4302# Check whether --with-efence was given.
4303if test "${with_efence+set}" = set; then :
4304  withval=$with_efence; HAVE_WANT_EFENCE="yes"
4305fi
4306
4307
4308
4309# Check whether --with-duma was given.
4310if test "${with_duma+set}" = set; then :
4311  withval=$with_duma; HAVE_WANT_DUMA="yes"
4312fi
4313
4314
4315
4316# Check whether --with-gif was given.
4317if test "${with_gif+set}" = set; then :
4318  withval=$with_gif; HAVE_WANT_GIF=no
4319fi
4320
4321
4322if test "X_$HAVE_WANT_GIF" != "X_no" ; then
4323  GIF=gif.o
4324
4325  $as_echo "#define HAVE_GIF 1" >>confdefs.h
4326
4327fi
4328
4329
4330# Check whether --with-usb was given.
4331if test "${with_usb+set}" = set; then :
4332  withval=$with_usb; HAVE_WANT_USB=no
4333fi
4334
4335
4336
4337# Check whether --with-teachermenu was given.
4338if test "${with_teachermenu+set}" = set; then :
4339  withval=$with_teachermenu; $as_echo "#define HAVE_TEACHER_MENU 1" >>confdefs.h
4340
4341fi
4342
4343
4344
4345# Check whether --with-testinmenu was given.
4346if test "${with_testinmenu+set}" = set; then :
4347  withval=$with_testinmenu; $as_echo "#define HAVE_TEST_IN_MENU 1" >>confdefs.h
4348
4349fi
4350
4351
4352
4353# Check whether --with-cut was given.
4354if test "${with_cut+set}" = set; then :
4355  withval=$with_cut; $as_echo "#define HAVE_CUT 1" >>confdefs.h
4356
4357fi
4358
4359
4360
4361# Check whether --with-textedit was given.
4362if test "${with_textedit+set}" = set; then :
4363  withval=$with_textedit; $as_echo "#define HAVE_NO_TEXTEDIT 1" >>confdefs.h
4364
4365fi
4366
4367
4368
4369# Check whether --with-nebula was given.
4370if test "${with_nebula+set}" = set; then :
4371  withval=$with_nebula; NEBULA=nebula/ExportNebula.o;export NEBULA;$as_echo "#define HAVE_SAND 1" >>confdefs.h
4372
4373fi
4374
4375
4376
4377
4378# Check whether --with-textureimagemode was given.
4379if test "${with_textureimagemode+set}" = set; then :
4380  withval=$with_textureimagemode; $as_echo "#define HAVE_TEXTUREIMAGE_MODE 1" >>confdefs.h
4381
4382fi
4383
4384
4385
4386# Check whether --with-optbigfiles was given.
4387if test "${with_optbigfiles+set}" = set; then :
4388  withval=$with_optbigfiles; OPT_BIG_FILES=no
4389fi
4390
4391if test "X_$OPT_BIG_FILES" = "X_no" ;then
4392    OPTIM=-O2
4393    OPTBIG=-g
4394else
4395    OPTBIG=$OPTIM
4396fi
4397
4398
4399
4400
4401
4402# Check whether --with-gprof was given.
4403if test "${with_gprof+set}" = set; then :
4404  withval=$with_gprof; OPTIM="-pg -DNDEBUG=1";export OPTIM;$as_echo "#define HAVE_WANT_CORE 1" >>confdefs.h
4405
4406fi
4407
4408
4409# Check whether --with-gcov was given.
4410if test "${with_gcov+set}" = set; then :
4411  withval=$with_gcov; OPTIM="-fprofile-arcs -ftest-coverage -DNDEBUG=1";export OPTIM;$as_echo "#define HAVE_WANT_CORE 1" >>confdefs.h
4412
4413fi
4414
4415
4416
4417if test "X_$STATIC" = "X_" ;then
4418   STATIC=""
4419fi
4420
4421OBJS='$(OBJS)'
4422
4423# Check whether --with-archives was given.
4424if test "${with_archives+set}" = set; then :
4425  withval=$with_archives; OBJS='$(ARCHIVES)'
4426fi
4427
4428export OBJS
4429
4430
4431
4432# Check whether --with-static was given.
4433if test "${with_static+set}" = set; then :
4434  withval=$with_static; STATIC=-static;export STATIC
4435fi
4436
4437
4438
4439
4440# Check whether --with-ranlib was given.
4441if test "${with_ranlib+set}" = set; then :
4442  withval=$with_ranlib; AVOID_RANLIB="yes"
4443fi
4444
4445
4446
4447# Check whether --with-osmesa was given.
4448if test "${with_osmesa+set}" = set; then :
4449  withval=$with_osmesa; HAVE_WANT_OSMESA="yes"
4450fi
4451
4452
4453
4454# Check whether --with-debug was given.
4455if test "${with_debug+set}" = set; then :
4456  withval=$with_debug; CXXFLAGS="-DDEBUG=1 $CXXFLAGS";export CXXFLAGS;
4457            CFLAGS="-DDEBUG=1 $CFLAGS";export CFLAGS
4458fi
4459
4460
4461
4462
4463for ac_prog in gawk mawk nawk awk
4464do
4465  # Extract the first word of "$ac_prog", so it can be a program name with args.
4466set dummy $ac_prog; ac_word=$2
4467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4468$as_echo_n "checking for $ac_word... " >&6; }
4469if ${ac_cv_prog_AWK+:} false; then :
4470  $as_echo_n "(cached) " >&6
4471else
4472  if test -n "$AWK"; then
4473  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4474else
4475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476for as_dir in $PATH
4477do
4478  IFS=$as_save_IFS
4479  test -z "$as_dir" && as_dir=.
4480    for ac_exec_ext in '' $ac_executable_extensions; do
4481  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4482    ac_cv_prog_AWK="$ac_prog"
4483    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4484    break 2
4485  fi
4486done
4487  done
4488IFS=$as_save_IFS
4489
4490fi
4491fi
4492AWK=$ac_cv_prog_AWK
4493if test -n "$AWK"; then
4494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4495$as_echo "$AWK" >&6; }
4496else
4497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4498$as_echo "no" >&6; }
4499fi
4500
4501
4502  test -n "$AWK" && break
4503done
4504
4505for ac_prog in 'bison -o y.tab.c' byacc
4506do
4507  # Extract the first word of "$ac_prog", so it can be a program name with args.
4508set dummy $ac_prog; ac_word=$2
4509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510$as_echo_n "checking for $ac_word... " >&6; }
4511if ${ac_cv_prog_YACC+:} false; then :
4512  $as_echo_n "(cached) " >&6
4513else
4514  if test -n "$YACC"; then
4515  ac_cv_prog_YACC="$YACC" # Let the user override the test.
4516else
4517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518for as_dir in $PATH
4519do
4520  IFS=$as_save_IFS
4521  test -z "$as_dir" && as_dir=.
4522    for ac_exec_ext in '' $ac_executable_extensions; do
4523  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4524    ac_cv_prog_YACC="$ac_prog"
4525    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4526    break 2
4527  fi
4528done
4529  done
4530IFS=$as_save_IFS
4531
4532fi
4533fi
4534YACC=$ac_cv_prog_YACC
4535if test -n "$YACC"; then
4536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4537$as_echo "$YACC" >&6; }
4538else
4539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540$as_echo "no" >&6; }
4541fi
4542
4543
4544  test -n "$YACC" && break
4545done
4546test -n "$YACC" || YACC="yacc"
4547
4548if test "X_$YACC" = "X_yacc" ; then
4549    WARNING_YACC="Warning: not all versions of yacc will work, you better use bison instead"
4550    echo $WARNING_YACC 1>&2
4551fi
4552RC_YACC=$YACC
4553export RC_YACC
4554
4555for ac_prog in flex lex
4556do
4557  # Extract the first word of "$ac_prog", so it can be a program name with args.
4558set dummy $ac_prog; ac_word=$2
4559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4560$as_echo_n "checking for $ac_word... " >&6; }
4561if ${ac_cv_prog_LEX+:} false; then :
4562  $as_echo_n "(cached) " >&6
4563else
4564  if test -n "$LEX"; then
4565  ac_cv_prog_LEX="$LEX" # Let the user override the test.
4566else
4567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568for as_dir in $PATH
4569do
4570  IFS=$as_save_IFS
4571  test -z "$as_dir" && as_dir=.
4572    for ac_exec_ext in '' $ac_executable_extensions; do
4573  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4574    ac_cv_prog_LEX="$ac_prog"
4575    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4576    break 2
4577  fi
4578done
4579  done
4580IFS=$as_save_IFS
4581
4582fi
4583fi
4584LEX=$ac_cv_prog_LEX
4585if test -n "$LEX"; then
4586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4587$as_echo "$LEX" >&6; }
4588else
4589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4590$as_echo "no" >&6; }
4591fi
4592
4593
4594  test -n "$LEX" && break
4595done
4596test -n "$LEX" || LEX=":"
4597
4598if test "x$LEX" != "x:"; then
4599  cat >conftest.l <<_ACEOF
4600%%
4601a { ECHO; }
4602b { REJECT; }
4603c { yymore (); }
4604d { yyless (1); }
4605e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
4606    yyless ((input () != 0)); }
4607f { unput (yytext[0]); }
4608. { BEGIN INITIAL; }
4609%%
4610#ifdef YYTEXT_POINTER
4611extern char *yytext;
4612#endif
4613int
4614main (void)
4615{
4616  return ! yylex () + ! yywrap ();
4617}
4618_ACEOF
4619{ { ac_try="$LEX conftest.l"
4620case "(($ac_try" in
4621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622  *) ac_try_echo=$ac_try;;
4623esac
4624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4625$as_echo "$ac_try_echo"; } >&5
4626  (eval "$LEX conftest.l") 2>&5
4627  ac_status=$?
4628  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4629  test $ac_status = 0; }
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4631$as_echo_n "checking lex output file root... " >&6; }
4632if ${ac_cv_prog_lex_root+:} false; then :
4633  $as_echo_n "(cached) " >&6
4634else
4635
4636if test -f lex.yy.c; then
4637  ac_cv_prog_lex_root=lex.yy
4638elif test -f lexyy.c; then
4639  ac_cv_prog_lex_root=lexyy
4640else
4641  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4642fi
4643fi
4644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4645$as_echo "$ac_cv_prog_lex_root" >&6; }
4646LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4647
4648if test -z "${LEXLIB+set}"; then
4649  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4650$as_echo_n "checking lex library... " >&6; }
4651if ${ac_cv_lib_lex+:} false; then :
4652  $as_echo_n "(cached) " >&6
4653else
4654
4655    ac_save_LIBS=$LIBS
4656    ac_cv_lib_lex='none needed'
4657    for ac_lib in '' -lfl -ll; do
4658      LIBS="$ac_lib $ac_save_LIBS"
4659      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660/* end confdefs.h.  */
4661`cat $LEX_OUTPUT_ROOT.c`
4662_ACEOF
4663if ac_fn_c_try_link "$LINENO"; then :
4664  ac_cv_lib_lex=$ac_lib
4665fi
4666rm -f core conftest.err conftest.$ac_objext \
4667    conftest$ac_exeext conftest.$ac_ext
4668      test "$ac_cv_lib_lex" != 'none needed' && break
4669    done
4670    LIBS=$ac_save_LIBS
4671
4672fi
4673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4674$as_echo "$ac_cv_lib_lex" >&6; }
4675  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4676fi
4677
4678
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4680$as_echo_n "checking whether yytext is a pointer... " >&6; }
4681if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4682  $as_echo_n "(cached) " >&6
4683else
4684  # POSIX says lex can declare yytext either as a pointer or an array; the
4685# default is implementation-dependent.  Figure out which it is, since
4686# not all implementations provide the %pointer and %array declarations.
4687ac_cv_prog_lex_yytext_pointer=no
4688ac_save_LIBS=$LIBS
4689LIBS="$LEXLIB $ac_save_LIBS"
4690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691/* end confdefs.h.  */
4692
4693  #define YYTEXT_POINTER 1
4694`cat $LEX_OUTPUT_ROOT.c`
4695_ACEOF
4696if ac_fn_c_try_link "$LINENO"; then :
4697  ac_cv_prog_lex_yytext_pointer=yes
4698fi
4699rm -f core conftest.err conftest.$ac_objext \
4700    conftest$ac_exeext conftest.$ac_ext
4701LIBS=$ac_save_LIBS
4702
4703fi
4704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4705$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4706if test $ac_cv_prog_lex_yytext_pointer = yes; then
4707
4708$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4709
4710fi
4711rm -f conftest.l $LEX_OUTPUT_ROOT.c
4712
4713fi
4714
4715if test "X_$LEX" = "X_lex" ; then
4716    RC_LIBS=-ll
4717else
4718    if ls /usr/lib*/libfl.* /usr/local/lib*/libfl.* >/dev/null 2>/dev/null; then
4719       RC_LIBS=-lfl
4720    fi
4721fi
4722
4723export RC_LIBS
4724
4725
4726if test "X_$LEX" = "X_lex" ; then
4727    WARNING_LEX="Warning: not all versions of lex will work, you better use flex instead"
4728    echo $WARNING_LEX 1>&2
4729    export LEX
4730
4731fi
4732
4733NOUNISTD=""
4734if test "X_$LEX" = "X_flex" ; then
4735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex --nounistd option" >&5
4736$as_echo_n "checking for flex --nounistd option... " >&6; }
4737   if flex --help 2>&1 | grep '\--nounistd' > /dev/null ; then
4738       echo yes
4739       NOUNISTD="--nounistd"
4740   else
4741       echo no
4742   fi
4743fi
4744export NOUNISTD
4745
4746
4747EGREP_PROBLEMS="yes"
4748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for specific egrep pattern compatibility" >&5
4749$as_echo_n "checking for specific egrep pattern compatibility... " >&6; }
4750ONE=`echo '#include <unistd.h>' | egrep '#include *.unistd\.h.' | wc -l`
4751if test "X_$ONE" = "X_1" ; then
4752   echo yes
4753   EGREP_PROBLEMS="no"
4754else
4755   echo no
4756fi
4757export EGREP_PROBLEMS
4758
4759
4760GREP_FLAGS=""
4761echo file > /tmp/file_$$.txt
4762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep --binary-files=text compatibility" >&5
4763$as_echo_n "checking for grep --binary-files=text compatibility... " >&6; }
4764FILE=`grep --binary-files=text file /tmp/file_$$.txt`
4765rm /tmp/file_$$.txt
4766if test "X_$FILE" = "X_file" ; then
4767   echo yes
4768   GREP_FLAGS="--binary-files=text"
4769else
4770   echo no
4771fi
4772export GREP_FLAGS
4773
4774
4775if test "X_$X11_EDITOR" = "X_" ; then
4776   for ac_prog in gedit gvim
4777do
4778  # Extract the first word of "$ac_prog", so it can be a program name with args.
4779set dummy $ac_prog; ac_word=$2
4780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4781$as_echo_n "checking for $ac_word... " >&6; }
4782if ${ac_cv_path_X11_EDITOR+:} false; then :
4783  $as_echo_n "(cached) " >&6
4784else
4785  case $X11_EDITOR in
4786  [\\/]* | ?:[\\/]*)
4787  ac_cv_path_X11_EDITOR="$X11_EDITOR" # Let the user override the test with a path.
4788  ;;
4789  *)
4790  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791for as_dir in $PATH
4792do
4793  IFS=$as_save_IFS
4794  test -z "$as_dir" && as_dir=.
4795    for ac_exec_ext in '' $ac_executable_extensions; do
4796  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4797    ac_cv_path_X11_EDITOR="$as_dir/$ac_word$ac_exec_ext"
4798    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4799    break 2
4800  fi
4801done
4802  done
4803IFS=$as_save_IFS
4804
4805  ;;
4806esac
4807fi
4808X11_EDITOR=$ac_cv_path_X11_EDITOR
4809if test -n "$X11_EDITOR"; then
4810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $X11_EDITOR" >&5
4811$as_echo "$X11_EDITOR" >&6; }
4812else
4813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4814$as_echo "no" >&6; }
4815fi
4816
4817
4818  test -n "$X11_EDITOR" && break
4819done
4820
4821   if (echo "$X11_EDITOR" | grep "gvim" > /dev/null) ; then
4822      cat >>confdefs.h <<_ACEOF
4823#define HAVE_X11_EDITOR "$X11_EDITOR -f "
4824_ACEOF
4825
4826   else
4827      if test "X_$X11_EDITOR" != "X_" ; then
4828         cat >>confdefs.h <<_ACEOF
4829#define HAVE_X11_EDITOR "${X11_EDITOR}"
4830_ACEOF
4831
4832      else
4833                           for ac_prog in lxterminal xterm rxvt gnome-terminal konsole aterm eterm
4834do
4835  # Extract the first word of "$ac_prog", so it can be a program name with args.
4836set dummy $ac_prog; ac_word=$2
4837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4838$as_echo_n "checking for $ac_word... " >&6; }
4839if ${ac_cv_path_TERM+:} false; then :
4840  $as_echo_n "(cached) " >&6
4841else
4842  case $TERM in
4843  [\\/]* | ?:[\\/]*)
4844  ac_cv_path_TERM="$TERM" # Let the user override the test with a path.
4845  ;;
4846  *)
4847  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848for as_dir in $PATH
4849do
4850  IFS=$as_save_IFS
4851  test -z "$as_dir" && as_dir=.
4852    for ac_exec_ext in '' $ac_executable_extensions; do
4853  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4854    ac_cv_path_TERM="$as_dir/$ac_word$ac_exec_ext"
4855    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4856    break 2
4857  fi
4858done
4859  done
4860IFS=$as_save_IFS
4861
4862  ;;
4863esac
4864fi
4865TERM=$ac_cv_path_TERM
4866if test -n "$TERM"; then
4867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TERM" >&5
4868$as_echo "$TERM" >&6; }
4869else
4870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4871$as_echo "no" >&6; }
4872fi
4873
4874
4875  test -n "$TERM" && break
4876done
4877
4878         if (echo "$TERM" | grep "lxterminal" > /dev/null) ; then
4879             cat >>confdefs.h <<_ACEOF
4880#define HAVE_TERM "$TERM --no-remote "
4881_ACEOF
4882
4883         else
4884            if test "X_$TERM" != "X_" ; then
4885               cat >>confdefs.h <<_ACEOF
4886#define HAVE_TERM "${TERM}"
4887_ACEOF
4888
4889            fi
4890         fi
4891      fi
4892   fi
4893fi
4894
4895if test "X_$WWWBROWSER" = "X_" ; then
4896   for ac_prog in xdg-open firefox x-www-browser epiphany iceweasel phoenix galeon firebird opera mozilla seamonkey lynx links netscape
4897do
4898  # Extract the first word of "$ac_prog", so it can be a program name with args.
4899set dummy $ac_prog; ac_word=$2
4900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4901$as_echo_n "checking for $ac_word... " >&6; }
4902if ${ac_cv_path_WWWBROWSER+:} false; then :
4903  $as_echo_n "(cached) " >&6
4904else
4905  case $WWWBROWSER in
4906  [\\/]* | ?:[\\/]*)
4907  ac_cv_path_WWWBROWSER="$WWWBROWSER" # Let the user override the test with a path.
4908  ;;
4909  *)
4910  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911for as_dir in $PATH
4912do
4913  IFS=$as_save_IFS
4914  test -z "$as_dir" && as_dir=.
4915    for ac_exec_ext in '' $ac_executable_extensions; do
4916  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4917    ac_cv_path_WWWBROWSER="$as_dir/$ac_word$ac_exec_ext"
4918    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4919    break 2
4920  fi
4921done
4922  done
4923IFS=$as_save_IFS
4924
4925  ;;
4926esac
4927fi
4928WWWBROWSER=$ac_cv_path_WWWBROWSER
4929if test -n "$WWWBROWSER"; then
4930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWBROWSER" >&5
4931$as_echo "$WWWBROWSER" >&6; }
4932else
4933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4934$as_echo "no" >&6; }
4935fi
4936
4937
4938  test -n "$WWWBROWSER" && break
4939done
4940
4941fi
4942
4943if test "X_$WWWBROWSER" = "X_" ; then
4944   WWWBROWSER=firefox
4945else
4946
4947  if test "X_$TERM" != "X_" ; then
4948      TERM="$TERM -e"
4949   fi
4950
4951  if test "X_`basename \"$WWWBROWSER\"`" = "X_lynx" ; then
4952     WWWBROWSER="$TERM $WWWBROWSER"
4953  else
4954     if test "X_`basename \"$WWWBROWSER\"`" = "X_links" ; then
4955        WWWBROWSER="$TERM $WWWBROWSER"
4956     fi
4957  fi
4958fi
4959
4960if test "X_$IMAGEEDITOR" = "X_" ; then
4961   for ac_prog in $KNOWN_IMAGE_EDITORS
4962do
4963  # Extract the first word of "$ac_prog", so it can be a program name with args.
4964set dummy $ac_prog; ac_word=$2
4965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4966$as_echo_n "checking for $ac_word... " >&6; }
4967if ${ac_cv_path_IMAGEEDITOR+:} false; then :
4968  $as_echo_n "(cached) " >&6
4969else
4970  case $IMAGEEDITOR in
4971  [\\/]* | ?:[\\/]*)
4972  ac_cv_path_IMAGEEDITOR="$IMAGEEDITOR" # Let the user override the test with a path.
4973  ;;
4974  *)
4975  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976for as_dir in $PATH
4977do
4978  IFS=$as_save_IFS
4979  test -z "$as_dir" && as_dir=.
4980    for ac_exec_ext in '' $ac_executable_extensions; do
4981  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4982    ac_cv_path_IMAGEEDITOR="$as_dir/$ac_word$ac_exec_ext"
4983    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4984    break 2
4985  fi
4986done
4987  done
4988IFS=$as_save_IFS
4989
4990  ;;
4991esac
4992fi
4993IMAGEEDITOR=$ac_cv_path_IMAGEEDITOR
4994if test -n "$IMAGEEDITOR"; then
4995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEEDITOR" >&5
4996$as_echo "$IMAGEEDITOR" >&6; }
4997else
4998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999$as_echo "no" >&6; }
5000fi
5001
5002
5003  test -n "$IMAGEEDITOR" && break
5004done
5005
5006fi
5007cat >>confdefs.h <<_ACEOF
5008#define HAVE_IMAGE_EDITOR "${IMAGEEDITOR}"
5009_ACEOF
5010
5011
5012if test "X_$IMAGEEDITOR4KIDS" = "X_" ; then
5013   for ac_prog in $KNOWN_IMAGE_EDITORS_4KIDS
5014do
5015  # Extract the first word of "$ac_prog", so it can be a program name with args.
5016set dummy $ac_prog; ac_word=$2
5017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5018$as_echo_n "checking for $ac_word... " >&6; }
5019if ${ac_cv_path_IMAGEEDITOR4KIDS+:} false; then :
5020  $as_echo_n "(cached) " >&6
5021else
5022  case $IMAGEEDITOR4KIDS in
5023  [\\/]* | ?:[\\/]*)
5024  ac_cv_path_IMAGEEDITOR4KIDS="$IMAGEEDITOR4KIDS" # Let the user override the test with a path.
5025  ;;
5026  *)
5027  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028for as_dir in $PATH
5029do
5030  IFS=$as_save_IFS
5031  test -z "$as_dir" && as_dir=.
5032    for ac_exec_ext in '' $ac_executable_extensions; do
5033  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5034    ac_cv_path_IMAGEEDITOR4KIDS="$as_dir/$ac_word$ac_exec_ext"
5035    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5036    break 2
5037  fi
5038done
5039  done
5040IFS=$as_save_IFS
5041
5042  ;;
5043esac
5044fi
5045IMAGEEDITOR4KIDS=$ac_cv_path_IMAGEEDITOR4KIDS
5046if test -n "$IMAGEEDITOR4KIDS"; then
5047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEEDITOR4KIDS" >&5
5048$as_echo "$IMAGEEDITOR4KIDS" >&6; }
5049else
5050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5051$as_echo "no" >&6; }
5052fi
5053
5054
5055  test -n "$IMAGEEDITOR4KIDS" && break
5056done
5057
5058fi
5059cat >>confdefs.h <<_ACEOF
5060#define HAVE_IMAGE_EDITOR4KIDS "${IMAGEEDITOR4KIDS}"
5061_ACEOF
5062
5063
5064
5065if test "X_$SOUNDEDITOR" = "X_" ; then
5066   for ac_prog in $KNOWN_SOUND_EDITORS
5067do
5068  # Extract the first word of "$ac_prog", so it can be a program name with args.
5069set dummy $ac_prog; ac_word=$2
5070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5071$as_echo_n "checking for $ac_word... " >&6; }
5072if ${ac_cv_path_SOUNDEDITOR+:} false; then :
5073  $as_echo_n "(cached) " >&6
5074else
5075  case $SOUNDEDITOR in
5076  [\\/]* | ?:[\\/]*)
5077  ac_cv_path_SOUNDEDITOR="$SOUNDEDITOR" # Let the user override the test with a path.
5078  ;;
5079  *)
5080  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081for as_dir in $PATH
5082do
5083  IFS=$as_save_IFS
5084  test -z "$as_dir" && as_dir=.
5085    for ac_exec_ext in '' $ac_executable_extensions; do
5086  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5087    ac_cv_path_SOUNDEDITOR="$as_dir/$ac_word$ac_exec_ext"
5088    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5089    break 2
5090  fi
5091done
5092  done
5093IFS=$as_save_IFS
5094
5095  ;;
5096esac
5097fi
5098SOUNDEDITOR=$ac_cv_path_SOUNDEDITOR
5099if test -n "$SOUNDEDITOR"; then
5100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOUNDEDITOR" >&5
5101$as_echo "$SOUNDEDITOR" >&6; }
5102else
5103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104$as_echo "no" >&6; }
5105fi
5106
5107
5108  test -n "$SOUNDEDITOR" && break
5109done
5110
5111fi
5112cat >>confdefs.h <<_ACEOF
5113#define HAVE_SOUND_EDITOR "${SOUNDEDITOR}"
5114_ACEOF
5115
5116
5117if test "X_$MOVIEEDITOR" = "X_" ; then
5118   for ac_prog in $KNOWN_MOVIE_EDITORS
5119do
5120  # Extract the first word of "$ac_prog", so it can be a program name with args.
5121set dummy $ac_prog; ac_word=$2
5122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5123$as_echo_n "checking for $ac_word... " >&6; }
5124if ${ac_cv_path_MOVIEEDITOR+:} false; then :
5125  $as_echo_n "(cached) " >&6
5126else
5127  case $MOVIEEDITOR in
5128  [\\/]* | ?:[\\/]*)
5129  ac_cv_path_MOVIEEDITOR="$MOVIEEDITOR" # Let the user override the test with a path.
5130  ;;
5131  *)
5132  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133for as_dir in $PATH
5134do
5135  IFS=$as_save_IFS
5136  test -z "$as_dir" && as_dir=.
5137    for ac_exec_ext in '' $ac_executable_extensions; do
5138  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5139    ac_cv_path_MOVIEEDITOR="$as_dir/$ac_word$ac_exec_ext"
5140    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5141    break 2
5142  fi
5143done
5144  done
5145IFS=$as_save_IFS
5146
5147  ;;
5148esac
5149fi
5150MOVIEEDITOR=$ac_cv_path_MOVIEEDITOR
5151if test -n "$MOVIEEDITOR"; then
5152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOVIEEDITOR" >&5
5153$as_echo "$MOVIEEDITOR" >&6; }
5154else
5155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156$as_echo "no" >&6; }
5157fi
5158
5159
5160  test -n "$MOVIEEDITOR" && break
5161done
5162
5163fi
5164cat >>confdefs.h <<_ACEOF
5165#define HAVE_MOVIE_EDITOR "${MOVIEEDITOR}"
5166_ACEOF
5167
5168
5169if test "X_$CHECK_IN_COMMAND" = "X_" ; then
5170   for ac_prog in ci
5171do
5172  # Extract the first word of "$ac_prog", so it can be a program name with args.
5173set dummy $ac_prog; ac_word=$2
5174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175$as_echo_n "checking for $ac_word... " >&6; }
5176if ${ac_cv_path_CHECK_IN_COMMAND+:} false; then :
5177  $as_echo_n "(cached) " >&6
5178else
5179  case $CHECK_IN_COMMAND in
5180  [\\/]* | ?:[\\/]*)
5181  ac_cv_path_CHECK_IN_COMMAND="$CHECK_IN_COMMAND" # Let the user override the test with a path.
5182  ;;
5183  *)
5184  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185for as_dir in $PATH
5186do
5187  IFS=$as_save_IFS
5188  test -z "$as_dir" && as_dir=.
5189    for ac_exec_ext in '' $ac_executable_extensions; do
5190  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5191    ac_cv_path_CHECK_IN_COMMAND="$as_dir/$ac_word$ac_exec_ext"
5192    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5193    break 2
5194  fi
5195done
5196  done
5197IFS=$as_save_IFS
5198
5199  ;;
5200esac
5201fi
5202CHECK_IN_COMMAND=$ac_cv_path_CHECK_IN_COMMAND
5203if test -n "$CHECK_IN_COMMAND"; then
5204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_IN_COMMAND" >&5
5205$as_echo "$CHECK_IN_COMMAND" >&6; }
5206else
5207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208$as_echo "no" >&6; }
5209fi
5210
5211
5212  test -n "$CHECK_IN_COMMAND" && break
5213done
5214
5215fi
5216if test "X_$CHECK_IN_COMMAND" != "X_" ; then
5217   if test "X_`basename $CHECK_IN_COMMAND`" = "X_ci" ; then
5218      CHECK_IN_COMMAND="ci -l -q -f \\\"%s\\\" < /dev/null"
5219      echo using ${CHECK_IN_COMMAND} as revision control checkin command
5220   fi
5221   cat >>confdefs.h <<_ACEOF
5222#define HAVE_CHECK_IN_COMMAND "${CHECK_IN_COMMAND}"
5223_ACEOF
5224
5225fi
5226
5227if test "X_$IMAGECONVERTER" = "X_" ; then
5228   for ac_prog in $KNOWN_IMAGE_CONVERTERS
5229do
5230  # Extract the first word of "$ac_prog", so it can be a program name with args.
5231set dummy $ac_prog; ac_word=$2
5232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5233$as_echo_n "checking for $ac_word... " >&6; }
5234if ${ac_cv_path_IMAGECONVERTER+:} false; then :
5235  $as_echo_n "(cached) " >&6
5236else
5237  case $IMAGECONVERTER in
5238  [\\/]* | ?:[\\/]*)
5239  ac_cv_path_IMAGECONVERTER="$IMAGECONVERTER" # Let the user override the test with a path.
5240  ;;
5241  *)
5242  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243for as_dir in $PATH
5244do
5245  IFS=$as_save_IFS
5246  test -z "$as_dir" && as_dir=.
5247    for ac_exec_ext in '' $ac_executable_extensions; do
5248  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5249    ac_cv_path_IMAGECONVERTER="$as_dir/$ac_word$ac_exec_ext"
5250    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5251    break 2
5252  fi
5253done
5254  done
5255IFS=$as_save_IFS
5256
5257  ;;
5258esac
5259fi
5260IMAGECONVERTER=$ac_cv_path_IMAGECONVERTER
5261if test -n "$IMAGECONVERTER"; then
5262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGECONVERTER" >&5
5263$as_echo "$IMAGECONVERTER" >&6; }
5264else
5265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5266$as_echo "no" >&6; }
5267fi
5268
5269
5270  test -n "$IMAGECONVERTER" && break
5271done
5272
5273fi
5274if test "X_$IMAGECONVERTER" != "X_" ; then
5275   cat >>confdefs.h <<_ACEOF
5276#define HAVE_IMAGE_CONVERTER "${IMAGECONVERTER}"
5277_ACEOF
5278
5279else
5280   echo "unable to convert textures to bmp for ac3d export and unable to convert textures for RIB export" 1>&2
5281fi
5282
5283if test "X_$AQSIS" != "X_no" ; then
5284   for ac_prog in teqser txmake
5285do
5286  # Extract the first word of "$ac_prog", so it can be a program name with args.
5287set dummy $ac_prog; ac_word=$2
5288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5289$as_echo_n "checking for $ac_word... " >&6; }
5290if ${ac_cv_path_RIB_TEXTURER+:} false; then :
5291  $as_echo_n "(cached) " >&6
5292else
5293  case $RIB_TEXTURER in
5294  [\\/]* | ?:[\\/]*)
5295  ac_cv_path_RIB_TEXTURER="$RIB_TEXTURER" # Let the user override the test with a path.
5296  ;;
5297  *)
5298  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299for as_dir in $PATH
5300do
5301  IFS=$as_save_IFS
5302  test -z "$as_dir" && as_dir=.
5303    for ac_exec_ext in '' $ac_executable_extensions; do
5304  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5305    ac_cv_path_RIB_TEXTURER="$as_dir/$ac_word$ac_exec_ext"
5306    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5307    break 2
5308  fi
5309done
5310  done
5311IFS=$as_save_IFS
5312
5313  ;;
5314esac
5315fi
5316RIB_TEXTURER=$ac_cv_path_RIB_TEXTURER
5317if test -n "$RIB_TEXTURER"; then
5318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RIB_TEXTURER" >&5
5319$as_echo "$RIB_TEXTURER" >&6; }
5320else
5321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5322$as_echo "no" >&6; }
5323fi
5324
5325
5326  test -n "$RIB_TEXTURER" && break
5327done
5328
5329   if test "X_$RIB_TEXTURER" != "X_" ; then
5330      cat >>confdefs.h <<_ACEOF
5331#define HAVE_RIB_TEXTURER "${RIB_TEXTURER}"
5332_ACEOF
5333
5334   fi
5335fi
5336
5337SDL_JOYSTICK_BSD="no"
5338SDL_JOYSTICK_LINUX="no"
5339SDL_JOYSTICK_MACOSX="yes"
5340
5341ac_ext=c
5342ac_cpp='$CPP $CPPFLAGS'
5343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5345ac_compiler_gnu=$ac_cv_c_compiler_gnu
5346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5347$as_echo_n "checking how to run the C preprocessor... " >&6; }
5348# On Suns, sometimes $CPP names a directory.
5349if test -n "$CPP" && test -d "$CPP"; then
5350  CPP=
5351fi
5352if test -z "$CPP"; then
5353  if ${ac_cv_prog_CPP+:} false; then :
5354  $as_echo_n "(cached) " >&6
5355else
5356      # Double quotes because CPP needs to be expanded
5357    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5358    do
5359      ac_preproc_ok=false
5360for ac_c_preproc_warn_flag in '' yes
5361do
5362  # Use a header file that comes with gcc, so configuring glibc
5363  # with a fresh cross-compiler works.
5364  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5365  # <limits.h> exists even on freestanding compilers.
5366  # On the NeXT, cc -E runs the code through the compiler's parser,
5367  # not just through cpp. "Syntax error" is here to catch this case.
5368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369/* end confdefs.h.  */
5370#ifdef __STDC__
5371# include <limits.h>
5372#else
5373# include <assert.h>
5374#endif
5375		     Syntax error
5376_ACEOF
5377if ac_fn_c_try_cpp "$LINENO"; then :
5378
5379else
5380  # Broken: fails on valid input.
5381continue
5382fi
5383rm -f conftest.err conftest.i conftest.$ac_ext
5384
5385  # OK, works on sane cases.  Now check whether nonexistent headers
5386  # can be detected and how.
5387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388/* end confdefs.h.  */
5389#include <ac_nonexistent.h>
5390_ACEOF
5391if ac_fn_c_try_cpp "$LINENO"; then :
5392  # Broken: success on invalid input.
5393continue
5394else
5395  # Passes both tests.
5396ac_preproc_ok=:
5397break
5398fi
5399rm -f conftest.err conftest.i conftest.$ac_ext
5400
5401done
5402# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5403rm -f conftest.i conftest.err conftest.$ac_ext
5404if $ac_preproc_ok; then :
5405  break
5406fi
5407
5408    done
5409    ac_cv_prog_CPP=$CPP
5410
5411fi
5412  CPP=$ac_cv_prog_CPP
5413else
5414  ac_cv_prog_CPP=$CPP
5415fi
5416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5417$as_echo "$CPP" >&6; }
5418ac_preproc_ok=false
5419for ac_c_preproc_warn_flag in '' yes
5420do
5421  # Use a header file that comes with gcc, so configuring glibc
5422  # with a fresh cross-compiler works.
5423  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5424  # <limits.h> exists even on freestanding compilers.
5425  # On the NeXT, cc -E runs the code through the compiler's parser,
5426  # not just through cpp. "Syntax error" is here to catch this case.
5427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428/* end confdefs.h.  */
5429#ifdef __STDC__
5430# include <limits.h>
5431#else
5432# include <assert.h>
5433#endif
5434		     Syntax error
5435_ACEOF
5436if ac_fn_c_try_cpp "$LINENO"; then :
5437
5438else
5439  # Broken: fails on valid input.
5440continue
5441fi
5442rm -f conftest.err conftest.i conftest.$ac_ext
5443
5444  # OK, works on sane cases.  Now check whether nonexistent headers
5445  # can be detected and how.
5446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447/* end confdefs.h.  */
5448#include <ac_nonexistent.h>
5449_ACEOF
5450if ac_fn_c_try_cpp "$LINENO"; then :
5451  # Broken: success on invalid input.
5452continue
5453else
5454  # Passes both tests.
5455ac_preproc_ok=:
5456break
5457fi
5458rm -f conftest.err conftest.i conftest.$ac_ext
5459
5460done
5461# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5462rm -f conftest.i conftest.err conftest.$ac_ext
5463if $ac_preproc_ok; then :
5464
5465else
5466  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5467$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5468as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5469See \`config.log' for more details" "$LINENO" 5; }
5470fi
5471
5472ac_ext=c
5473ac_cpp='$CPP $CPPFLAGS'
5474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5476ac_compiler_gnu=$ac_cv_c_compiler_gnu
5477
5478
5479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5480$as_echo_n "checking for X... " >&6; }
5481
5482
5483# Check whether --with-x was given.
5484if test "${with_x+set}" = set; then :
5485  withval=$with_x;
5486fi
5487
5488# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5489if test "x$with_x" = xno; then
5490  # The user explicitly disabled X.
5491  have_x=disabled
5492else
5493  case $x_includes,$x_libraries in #(
5494    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
5495    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
5496  $as_echo_n "(cached) " >&6
5497else
5498  # One or both of the vars are not set, and there is no cached value.
5499ac_x_includes=no ac_x_libraries=no
5500rm -f -r conftest.dir
5501if mkdir conftest.dir; then
5502  cd conftest.dir
5503  cat >Imakefile <<'_ACEOF'
5504incroot:
5505	@echo incroot='${INCROOT}'
5506usrlibdir:
5507	@echo usrlibdir='${USRLIBDIR}'
5508libdir:
5509	@echo libdir='${LIBDIR}'
5510_ACEOF
5511  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5512    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5513    for ac_var in incroot usrlibdir libdir; do
5514      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5515    done
5516    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5517    for ac_extension in a so sl dylib la dll; do
5518      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5519	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5520	ac_im_usrlibdir=$ac_im_libdir; break
5521      fi
5522    done
5523    # Screen out bogus values from the imake configuration.  They are
5524    # bogus both because they are the default anyway, and because
5525    # using them would break gcc on systems where it needs fixed includes.
5526    case $ac_im_incroot in
5527	/usr/include) ac_x_includes= ;;
5528	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5529    esac
5530    case $ac_im_usrlibdir in
5531	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
5532	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5533    esac
5534  fi
5535  cd ..
5536  rm -f -r conftest.dir
5537fi
5538
5539# Standard set of common directories for X headers.
5540# Check X11 before X11Rn because it is often a symlink to the current release.
5541ac_x_header_dirs='
5542/usr/X11/include
5543/usr/X11R7/include
5544/usr/X11R6/include
5545/usr/X11R5/include
5546/usr/X11R4/include
5547
5548/usr/include/X11
5549/usr/include/X11R7
5550/usr/include/X11R6
5551/usr/include/X11R5
5552/usr/include/X11R4
5553
5554/usr/local/X11/include
5555/usr/local/X11R7/include
5556/usr/local/X11R6/include
5557/usr/local/X11R5/include
5558/usr/local/X11R4/include
5559
5560/usr/local/include/X11
5561/usr/local/include/X11R7
5562/usr/local/include/X11R6
5563/usr/local/include/X11R5
5564/usr/local/include/X11R4
5565
5566/usr/X386/include
5567/usr/x386/include
5568/usr/XFree86/include/X11
5569
5570/usr/include
5571/usr/local/include
5572/usr/unsupported/include
5573/usr/athena/include
5574/usr/local/x11r5/include
5575/usr/lpp/Xamples/include
5576
5577/usr/openwin/include
5578/usr/openwin/share/include'
5579
5580if test "$ac_x_includes" = no; then
5581  # Guess where to find include files, by looking for Xlib.h.
5582  # First, try using that file with no special directory specified.
5583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5584/* end confdefs.h.  */
5585#include <X11/Xlib.h>
5586_ACEOF
5587if ac_fn_c_try_cpp "$LINENO"; then :
5588  # We can compile using X headers with no special include directory.
5589ac_x_includes=
5590else
5591  for ac_dir in $ac_x_header_dirs; do
5592  if test -r "$ac_dir/X11/Xlib.h"; then
5593    ac_x_includes=$ac_dir
5594    break
5595  fi
5596done
5597fi
5598rm -f conftest.err conftest.i conftest.$ac_ext
5599fi # $ac_x_includes = no
5600
5601if test "$ac_x_libraries" = no; then
5602  # Check for the libraries.
5603  # See if we find them without any special options.
5604  # Don't add to $LIBS permanently.
5605  ac_save_LIBS=$LIBS
5606  LIBS="-lX11 $LIBS"
5607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608/* end confdefs.h.  */
5609#include <X11/Xlib.h>
5610int
5611main ()
5612{
5613XrmInitialize ()
5614  ;
5615  return 0;
5616}
5617_ACEOF
5618if ac_fn_c_try_link "$LINENO"; then :
5619  LIBS=$ac_save_LIBS
5620# We can link X programs with no special library path.
5621ac_x_libraries=
5622else
5623  LIBS=$ac_save_LIBS
5624for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5625do
5626  # Don't even attempt the hair of trying to link an X program!
5627  for ac_extension in a so sl dylib la dll; do
5628    if test -r "$ac_dir/libX11.$ac_extension"; then
5629      ac_x_libraries=$ac_dir
5630      break 2
5631    fi
5632  done
5633done
5634fi
5635rm -f core conftest.err conftest.$ac_objext \
5636    conftest$ac_exeext conftest.$ac_ext
5637fi # $ac_x_libraries = no
5638
5639case $ac_x_includes,$ac_x_libraries in #(
5640  no,* | *,no | *\'*)
5641    # Didn't find X, or a directory has "'" in its name.
5642    ac_cv_have_x="have_x=no";; #(
5643  *)
5644    # Record where we found X for the cache.
5645    ac_cv_have_x="have_x=yes\
5646	ac_x_includes='$ac_x_includes'\
5647	ac_x_libraries='$ac_x_libraries'"
5648esac
5649fi
5650;; #(
5651    *) have_x=yes;;
5652  esac
5653  eval "$ac_cv_have_x"
5654fi # $with_x != no
5655
5656if test "$have_x" != yes; then
5657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5658$as_echo "$have_x" >&6; }
5659  no_x=yes
5660else
5661  # If each of the values was on the command line, it overrides each guess.
5662  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5663  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5664  # Update the cache value to reflect the command line values.
5665  ac_cv_have_x="have_x=yes\
5666	ac_x_includes='$x_includes'\
5667	ac_x_libraries='$x_libraries'"
5668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5669$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5670fi
5671
5672if test "$no_x" = yes; then
5673  # Not all programs may use this symbol, but it does not hurt to define it.
5674
5675$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5676
5677  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5678else
5679  if test -n "$x_includes"; then
5680    X_CFLAGS="$X_CFLAGS -I$x_includes"
5681  fi
5682
5683  # It would also be nice to do this for all -L options, not just this one.
5684  if test -n "$x_libraries"; then
5685    X_LIBS="$X_LIBS -L$x_libraries"
5686    # For Solaris; some versions of Sun CC require a space after -R and
5687    # others require no space.  Words are not sufficient . . . .
5688    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5689$as_echo_n "checking whether -R must be followed by a space... " >&6; }
5690    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5691    ac_xsave_c_werror_flag=$ac_c_werror_flag
5692    ac_c_werror_flag=yes
5693    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694/* end confdefs.h.  */
5695
5696int
5697main ()
5698{
5699
5700  ;
5701  return 0;
5702}
5703_ACEOF
5704if ac_fn_c_try_link "$LINENO"; then :
5705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5706$as_echo "no" >&6; }
5707       X_LIBS="$X_LIBS -R$x_libraries"
5708else
5709  LIBS="$ac_xsave_LIBS -R $x_libraries"
5710       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5711/* end confdefs.h.  */
5712
5713int
5714main ()
5715{
5716
5717  ;
5718  return 0;
5719}
5720_ACEOF
5721if ac_fn_c_try_link "$LINENO"; then :
5722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5723$as_echo "yes" >&6; }
5724	  X_LIBS="$X_LIBS -R $x_libraries"
5725else
5726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5727$as_echo "neither works" >&6; }
5728fi
5729rm -f core conftest.err conftest.$ac_objext \
5730    conftest$ac_exeext conftest.$ac_ext
5731fi
5732rm -f core conftest.err conftest.$ac_objext \
5733    conftest$ac_exeext conftest.$ac_ext
5734    ac_c_werror_flag=$ac_xsave_c_werror_flag
5735    LIBS=$ac_xsave_LIBS
5736  fi
5737
5738  # Check for system-dependent libraries X programs must link with.
5739  # Do this before checking for the system-independent R6 libraries
5740  # (-lICE), since we may need -lsocket or whatever for X linking.
5741
5742  if test "$ISC" = yes; then
5743    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5744  else
5745    # Martyn Johnson says this is needed for Ultrix, if the X
5746    # libraries were built with DECnet support.  And Karl Berry says
5747    # the Alpha needs dnet_stub (dnet does not exist).
5748    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5749    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750/* end confdefs.h.  */
5751
5752/* Override any GCC internal prototype to avoid an error.
5753   Use char because int might match the return type of a GCC
5754   builtin and then its argument prototype would still apply.  */
5755#ifdef __cplusplus
5756extern "C"
5757#endif
5758char XOpenDisplay ();
5759int
5760main ()
5761{
5762return XOpenDisplay ();
5763  ;
5764  return 0;
5765}
5766_ACEOF
5767if ac_fn_c_try_link "$LINENO"; then :
5768
5769else
5770  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5771$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5772if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
5773  $as_echo_n "(cached) " >&6
5774else
5775  ac_check_lib_save_LIBS=$LIBS
5776LIBS="-ldnet  $LIBS"
5777cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778/* end confdefs.h.  */
5779
5780/* Override any GCC internal prototype to avoid an error.
5781   Use char because int might match the return type of a GCC
5782   builtin and then its argument prototype would still apply.  */
5783#ifdef __cplusplus
5784extern "C"
5785#endif
5786char dnet_ntoa ();
5787int
5788main ()
5789{
5790return dnet_ntoa ();
5791  ;
5792  return 0;
5793}
5794_ACEOF
5795if ac_fn_c_try_link "$LINENO"; then :
5796  ac_cv_lib_dnet_dnet_ntoa=yes
5797else
5798  ac_cv_lib_dnet_dnet_ntoa=no
5799fi
5800rm -f core conftest.err conftest.$ac_objext \
5801    conftest$ac_exeext conftest.$ac_ext
5802LIBS=$ac_check_lib_save_LIBS
5803fi
5804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5805$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5806if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
5807  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5808fi
5809
5810    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5811      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5812$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5813if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
5814  $as_echo_n "(cached) " >&6
5815else
5816  ac_check_lib_save_LIBS=$LIBS
5817LIBS="-ldnet_stub  $LIBS"
5818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819/* end confdefs.h.  */
5820
5821/* Override any GCC internal prototype to avoid an error.
5822   Use char because int might match the return type of a GCC
5823   builtin and then its argument prototype would still apply.  */
5824#ifdef __cplusplus
5825extern "C"
5826#endif
5827char dnet_ntoa ();
5828int
5829main ()
5830{
5831return dnet_ntoa ();
5832  ;
5833  return 0;
5834}
5835_ACEOF
5836if ac_fn_c_try_link "$LINENO"; then :
5837  ac_cv_lib_dnet_stub_dnet_ntoa=yes
5838else
5839  ac_cv_lib_dnet_stub_dnet_ntoa=no
5840fi
5841rm -f core conftest.err conftest.$ac_objext \
5842    conftest$ac_exeext conftest.$ac_ext
5843LIBS=$ac_check_lib_save_LIBS
5844fi
5845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5846$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5847if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
5848  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5849fi
5850
5851    fi
5852fi
5853rm -f core conftest.err conftest.$ac_objext \
5854    conftest$ac_exeext conftest.$ac_ext
5855    LIBS="$ac_xsave_LIBS"
5856
5857    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5858    # to get the SysV transport functions.
5859    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5860    # needs -lnsl.
5861    # The nsl library prevents programs from opening the X display
5862    # on Irix 5.2, according to T.E. Dickey.
5863    # The functions gethostbyname, getservbyname, and inet_addr are
5864    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5865    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5866if test "x$ac_cv_func_gethostbyname" = xyes; then :
5867
5868fi
5869
5870    if test $ac_cv_func_gethostbyname = no; then
5871      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5872$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5873if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
5874  $as_echo_n "(cached) " >&6
5875else
5876  ac_check_lib_save_LIBS=$LIBS
5877LIBS="-lnsl  $LIBS"
5878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5879/* end confdefs.h.  */
5880
5881/* Override any GCC internal prototype to avoid an error.
5882   Use char because int might match the return type of a GCC
5883   builtin and then its argument prototype would still apply.  */
5884#ifdef __cplusplus
5885extern "C"
5886#endif
5887char gethostbyname ();
5888int
5889main ()
5890{
5891return gethostbyname ();
5892  ;
5893  return 0;
5894}
5895_ACEOF
5896if ac_fn_c_try_link "$LINENO"; then :
5897  ac_cv_lib_nsl_gethostbyname=yes
5898else
5899  ac_cv_lib_nsl_gethostbyname=no
5900fi
5901rm -f core conftest.err conftest.$ac_objext \
5902    conftest$ac_exeext conftest.$ac_ext
5903LIBS=$ac_check_lib_save_LIBS
5904fi
5905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5906$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5907if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
5908  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5909fi
5910
5911      if test $ac_cv_lib_nsl_gethostbyname = no; then
5912	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5913$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5914if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
5915  $as_echo_n "(cached) " >&6
5916else
5917  ac_check_lib_save_LIBS=$LIBS
5918LIBS="-lbsd  $LIBS"
5919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920/* end confdefs.h.  */
5921
5922/* Override any GCC internal prototype to avoid an error.
5923   Use char because int might match the return type of a GCC
5924   builtin and then its argument prototype would still apply.  */
5925#ifdef __cplusplus
5926extern "C"
5927#endif
5928char gethostbyname ();
5929int
5930main ()
5931{
5932return gethostbyname ();
5933  ;
5934  return 0;
5935}
5936_ACEOF
5937if ac_fn_c_try_link "$LINENO"; then :
5938  ac_cv_lib_bsd_gethostbyname=yes
5939else
5940  ac_cv_lib_bsd_gethostbyname=no
5941fi
5942rm -f core conftest.err conftest.$ac_objext \
5943    conftest$ac_exeext conftest.$ac_ext
5944LIBS=$ac_check_lib_save_LIBS
5945fi
5946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5947$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
5948if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
5949  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5950fi
5951
5952      fi
5953    fi
5954
5955    # lieder@skyler.mavd.honeywell.com says without -lsocket,
5956    # socket/setsockopt and other routines are undefined under SCO ODT
5957    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
5958    # on later versions), says Simon Leinen: it contains gethostby*
5959    # variants that don't use the name server (or something).  -lsocket
5960    # must be given before -lnsl if both are needed.  We assume that
5961    # if connect needs -lnsl, so does gethostbyname.
5962    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
5963if test "x$ac_cv_func_connect" = xyes; then :
5964
5965fi
5966
5967    if test $ac_cv_func_connect = no; then
5968      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
5969$as_echo_n "checking for connect in -lsocket... " >&6; }
5970if ${ac_cv_lib_socket_connect+:} false; then :
5971  $as_echo_n "(cached) " >&6
5972else
5973  ac_check_lib_save_LIBS=$LIBS
5974LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5976/* end confdefs.h.  */
5977
5978/* Override any GCC internal prototype to avoid an error.
5979   Use char because int might match the return type of a GCC
5980   builtin and then its argument prototype would still apply.  */
5981#ifdef __cplusplus
5982extern "C"
5983#endif
5984char connect ();
5985int
5986main ()
5987{
5988return connect ();
5989  ;
5990  return 0;
5991}
5992_ACEOF
5993if ac_fn_c_try_link "$LINENO"; then :
5994  ac_cv_lib_socket_connect=yes
5995else
5996  ac_cv_lib_socket_connect=no
5997fi
5998rm -f core conftest.err conftest.$ac_objext \
5999    conftest$ac_exeext conftest.$ac_ext
6000LIBS=$ac_check_lib_save_LIBS
6001fi
6002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
6003$as_echo "$ac_cv_lib_socket_connect" >&6; }
6004if test "x$ac_cv_lib_socket_connect" = xyes; then :
6005  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6006fi
6007
6008    fi
6009
6010    # Guillermo Gomez says -lposix is necessary on A/UX.
6011    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
6012if test "x$ac_cv_func_remove" = xyes; then :
6013
6014fi
6015
6016    if test $ac_cv_func_remove = no; then
6017      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
6018$as_echo_n "checking for remove in -lposix... " >&6; }
6019if ${ac_cv_lib_posix_remove+:} false; then :
6020  $as_echo_n "(cached) " >&6
6021else
6022  ac_check_lib_save_LIBS=$LIBS
6023LIBS="-lposix  $LIBS"
6024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6025/* end confdefs.h.  */
6026
6027/* Override any GCC internal prototype to avoid an error.
6028   Use char because int might match the return type of a GCC
6029   builtin and then its argument prototype would still apply.  */
6030#ifdef __cplusplus
6031extern "C"
6032#endif
6033char remove ();
6034int
6035main ()
6036{
6037return remove ();
6038  ;
6039  return 0;
6040}
6041_ACEOF
6042if ac_fn_c_try_link "$LINENO"; then :
6043  ac_cv_lib_posix_remove=yes
6044else
6045  ac_cv_lib_posix_remove=no
6046fi
6047rm -f core conftest.err conftest.$ac_objext \
6048    conftest$ac_exeext conftest.$ac_ext
6049LIBS=$ac_check_lib_save_LIBS
6050fi
6051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
6052$as_echo "$ac_cv_lib_posix_remove" >&6; }
6053if test "x$ac_cv_lib_posix_remove" = xyes; then :
6054  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6055fi
6056
6057    fi
6058
6059    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6060    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
6061if test "x$ac_cv_func_shmat" = xyes; then :
6062
6063fi
6064
6065    if test $ac_cv_func_shmat = no; then
6066      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
6067$as_echo_n "checking for shmat in -lipc... " >&6; }
6068if ${ac_cv_lib_ipc_shmat+:} false; then :
6069  $as_echo_n "(cached) " >&6
6070else
6071  ac_check_lib_save_LIBS=$LIBS
6072LIBS="-lipc  $LIBS"
6073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074/* end confdefs.h.  */
6075
6076/* Override any GCC internal prototype to avoid an error.
6077   Use char because int might match the return type of a GCC
6078   builtin and then its argument prototype would still apply.  */
6079#ifdef __cplusplus
6080extern "C"
6081#endif
6082char shmat ();
6083int
6084main ()
6085{
6086return shmat ();
6087  ;
6088  return 0;
6089}
6090_ACEOF
6091if ac_fn_c_try_link "$LINENO"; then :
6092  ac_cv_lib_ipc_shmat=yes
6093else
6094  ac_cv_lib_ipc_shmat=no
6095fi
6096rm -f core conftest.err conftest.$ac_objext \
6097    conftest$ac_exeext conftest.$ac_ext
6098LIBS=$ac_check_lib_save_LIBS
6099fi
6100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
6101$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
6102if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
6103  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6104fi
6105
6106    fi
6107  fi
6108
6109  # Check for libraries that X11R6 Xt/Xaw programs need.
6110  ac_save_LDFLAGS=$LDFLAGS
6111  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6112  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6113  # check for ICE first), but we must link in the order -lSM -lICE or
6114  # we get undefined symbols.  So assume we have SM if we have ICE.
6115  # These have to be linked with before -lX11, unlike the other
6116  # libraries we check for below, so use a different variable.
6117  # John Interrante, Karl Berry
6118  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
6119$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
6120if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
6121  $as_echo_n "(cached) " >&6
6122else
6123  ac_check_lib_save_LIBS=$LIBS
6124LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6126/* end confdefs.h.  */
6127
6128/* Override any GCC internal prototype to avoid an error.
6129   Use char because int might match the return type of a GCC
6130   builtin and then its argument prototype would still apply.  */
6131#ifdef __cplusplus
6132extern "C"
6133#endif
6134char IceConnectionNumber ();
6135int
6136main ()
6137{
6138return IceConnectionNumber ();
6139  ;
6140  return 0;
6141}
6142_ACEOF
6143if ac_fn_c_try_link "$LINENO"; then :
6144  ac_cv_lib_ICE_IceConnectionNumber=yes
6145else
6146  ac_cv_lib_ICE_IceConnectionNumber=no
6147fi
6148rm -f core conftest.err conftest.$ac_objext \
6149    conftest$ac_exeext conftest.$ac_ext
6150LIBS=$ac_check_lib_save_LIBS
6151fi
6152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6153$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6154if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
6155  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6156fi
6157
6158  LDFLAGS=$ac_save_LDFLAGS
6159
6160fi
6161
6162
6163LD_OPTIONS=
6164COMMONFLAGS=
6165PARSER_CPP_CFLAG=
6166export PARSER_CPP_CFLAG
6167X_LIBS="$X_LIBS -L/usr/lib/X11 -L/usr/lib"
6168if test "X_$OS" = "X_Linux" ; then
6169    CPPFLAGS="$CPPFLAGS $X_CFLAGS -I/usr/X11R6/include/ -I/usr/X11R6/LessTif/Motif1.2/include"
6170    LIBS="$LIBS -L/usr/local/lib $X_LIBS -L/usr/X11R6/LessTif/Motif1.2/lib"
6171    SDL_JOYSTICK_LINUX="yes"
6172    export LDFLAGS="$LIBS"
6173elif test "X_$OS" = "X_IRIX" ; then
6174    LD_OPTIONS="-n32"
6175    CPPFLAGS="$CPPFLAGS -I/usr/freeware/include $X_CFLAGS"
6176    LIBS="$LIBS -L/usr/local/lib32 -L/usr/freeware/lib32 -L/usr/lib32 $X_LIBS"
6177
6178        if test -f "/var/netscape/communicator/plugins/libcosmoplayer.so" ; then
6179       VRMLBROWSER=netscape
6180       echo using netscape as default VRML browser on SGI IRIX
6181    fi
6182    if test -f "/var/netscape/communicator/plugins32/libcosmoplayer.so" ; then
6183       VRMLBROWSER=netscape
6184       echo using netscape as default VRML browser on SGI IRIX
6185    fi
6186elif test "X_$OS" = "X_IRIX64" ; then
6187    if test "`echo $CC | grep 64`" = "" ; then
6188       CPPFLAGS="$CPPFLAGS -I/usr/freeware/include $X_CFLAGS"
6189       LIBS="$LIBS -L/usr/local/lib32 -L/usr/freeware/lib32 -L/usr/lib32 $X_LIBS"
6190    else
6191       CPPFLAGS="$CPPFLAGS -I/usr/freeware/include $X_CFLAGS"
6192       LIBS="$LIBS -L/usr/local/lib64 -L/usr/freeware/lib64 -L/usr/lib64 $X_LIBS"
6193    fi
6194
6195    if test "X_$VRMLBROWSER" = "X_" ; then
6196              if test -f "/var/netscape/communicator/plugins/libcosmoplayer.so" ; then
6197          VRMLBROWSER=netscape
6198       fi
6199       if test -f "/var/netscape/communicator/plugins32/libcosmoplayer.so" ; then
6200          VRMLBROWSER=netscape
6201       fi
6202    fi
6203elif test "X_$OS" = "X_SunOS" ; then
6204    LIBS="$LDFLAGS $LIBS $X_LIBS"
6205    export LIBS
6206    PARSER_CPP_CFLAG=-U__GNUC_MINOR__
6207    export PARSER_CPP_CFLAG
6208    # some solaris sfw bison crash on src/swt/rcparser.y
6209    RC_YACC=yacc
6210    export RC_YACC
6211
6212elif test "X_$OS" = "X_Darwin" ; then
6213    MACOSX=`sw_vers | awk '/ProductVersion:/ {split($2,a,".");print a[1] "." a[2]}'`
6214    MACSDK=MacOSX""$MACOSX""u.sdk
6215    if test "X_$MACOSX" = "X_10.7" ; then
6216                FAT_COMMONFLAGS="-I/usr/include -arch i386 -arch x86_64"
6217        FAT_LIBS=" -flat_namespace -arch i386 -arch x86_64 -Wl,-multiply_defined,warning"
6218        CPPFLAGS="$CPPFLAGS $X_CFLAGS -I/usr/X11R6/include -DMACOSX=1"
6219        LIBS="$FAT_LIBS $LIBS $X_LIBS -L/usr/X11R6/lib -multiply_defined warning -lXft -lXrender -lfontconfig"
6220        COMMONFLAGS="$FAT_COMMONFLAGS"
6221    elif test "X_$MACOSX" = "X_10.6" ; then
6222                FAT_COMMONFLAGS="-I/usr/include -arch i386 -arch ppc -arch x86_64"
6223        FAT_LIBS=" -flat_namespace -Wl,-syslibroot,/Developer/SDKs/$MACSDK -arch ppc -arch i386 -arch x86_64 -Wl,-multiply_defined,warning"
6224        CPPFLAGS="$CPPFLAGS $X_CFLAGS -I/usr/X11R6/include -DMACOSX=1"
6225        LIBS="$FAT_LIBS $LIBS $X_LIBS -L/usr/X11R6/lib -multiply_defined warning -lXft -lXrender -lfontconfig"
6226        COMMONFLAGS="$FAT_COMMONFLAGS"
6227    else
6228        CPPFLAGS="$CPPFLAGS $X_CFLAGS -I/usr/X11R6/include -DMACOSX=1"
6229        export CPPFLAGS
6230        CXXFLAGS="$CXXFLAGS -Wno-c++11-extensions -Wno-tautological-undefined-compare -Wno-tautological-pointer-compare"
6231        export CXXFLAGS
6232                        if test "X_$MACOSX" = "X_10.5" ; then
6233            FAT_COMMONFLAGS="-arch i386 -arch ppc"
6234#        else
6235#            FAT_COMMONFLAGS="-isysroot /Developer/SDKs/$MACSDK -arch i386 -arch ppc"
6236        fi
6237#        FAT_LIBS=" -flat_namespace -Wl,-syslibroot,/Developer/SDKs/$MACSDK -arch ppc -arch i386 -Wl,-multiply_defined,warning"
6238                COMMONFLAGS="$FAT_COMMONFLAGS"
6239                                LIBS="$FAT_LIBS $LIBS $X_LIBS -multiply_defined warning -lXft -lXrender -lfontconfig"
6240        if test "X_$MACOSX" = "X_10.5" ; then
6241                      LIBS="$LIBS -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib"
6242        fi
6243        export LIBS="-L/usr/X11R6/lib $LIBS "
6244    fi
6245        if test -d "/Applications/Firefox.app" ; then
6246       WWWBROWSER="/usr/bin/open -a \\\"/Applications/Firefox.app\\\""
6247       VRMLBROWSER="/usr/bin/open -a \\\"/Applications/Firefox.app\\\""
6248    else
6249       if test -d "/Applications/Internet Explorer.app" ; then
6250          if test "X_$WWWBROWSER" = "X_" ; then
6251             WWWBROWSER="/usr/bin/open -a \\\"/Applications/Internet Explorer.app\\\""
6252          fi
6253          if test "X_$VRMLBROWSER" = "X_" ; then
6254             VRMLBROWSER="/usr/bin/open -a \\\"/Applications/Internet Explorer.app\\\""
6255          fi
6256       fi
6257    fi
6258    (DUNE=$SELFDIR/bin/dune && cd desktop/macosx/white_dune.app/Contents/MacOS && rm -f dune && ln -s $DUNE .)
6259    if test -d "/Applications/X11.app" ; then
6260       if test -x "/usr/bin/open" ; then
6261          cat >>confdefs.h <<_ACEOF
6262#define HAVE_X11STARTCOMMAND "/usr/bin/open -a /Applications/Utilities/XQuartz.app/Contents/MacOS/X11"
6263_ACEOF
6264
6265       else
6266          cat >>confdefs.h <<_ACEOF
6267#define HAVE_X11STARTCOMMAND "/Applications/Utilities/XQuartz.app/Contents/MacOS/X11"
6268_ACEOF
6269
6270       fi
6271    else
6272       if test -d "/Applications/Utilities/X11.app" ; then
6273          if test -x "/usr/bin/open" ; then
6274             cat >>confdefs.h <<_ACEOF
6275#define HAVE_X11STARTCOMMAND "/usr/bin/open -a /Applications/Utilities/X11.app/Contents/MacOS/X11"
6276_ACEOF
6277
6278          else
6279             cat >>confdefs.h <<_ACEOF
6280#define HAVE_X11STARTCOMMAND "/Applications/Utilities/X11.app/Contents/MacOS/X11"
6281_ACEOF
6282
6283          fi
6284       else
6285          if test -f "/usr/X11R6/bin/X" ; then
6286             cat >>confdefs.h <<_ACEOF
6287#define HAVE_X11STARTCOMMAND "/usr/X11R6/bin/X"
6288_ACEOF
6289
6290          else
6291             cat >>confdefs.h <<_ACEOF
6292#define HAVE_X11STARTCOMMAND "X"
6293_ACEOF
6294
6295          fi
6296       fi
6297    fi
6298    if test "X_$SDL_JOYSTICK_MACOSX" = "X_yes" ; then
6299       if test "X_$MACOSX" = "X_10.6" ; then
6300                    SYSTEM_LIBS="$SYSTEM_LIBS -lIOKit"
6301       else
6302          SYSTEM_LIBS="$SYSTEM_LIBS -framework IOKit"
6303       fi
6304       LIBS="$LIBS $SYSTEM_LIBS"
6305       SDL_JOYSTICK_SUBDIR="darwin"
6306       SDL_JOYSTICK_LIBS="SDLjoystick/libSDLjoystick.a"
6307    fi
6308elif test "X_$OS" = "X_NetBSD" ; then
6309    CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6310    LIBS="$LIBS $X_LIBS"
6311    SDL_JOYSTICK_BSD="yes"
6312elif test "X_$OS" = "X_OpenBSD" ; then
6313    CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6314    LIBS="$LIBS $X_LIBS"
6315    SDL_JOYSTICK_BSD="yes"
6316    CPPFLAGS="$CPPFLAGS -I/usr/local/include/libpng"
6317elif test "X_$OS" = "X_FreeBSD" ; then
6318    CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6319    LIBS="$LIBS $X_LIBS -lXft"
6320    SDL_JOYSTICK_BSD="yes"
6321elif test "X_$OS" = "X_AIX" ; then
6322    CPPFLAGS="$CPPFLAGS -DAIX=1"
6323    export CPPFLAGS
6324elif test "X_$OS" = "X_HP-UX" ; then
6325    CPPFLAGS="$CPPFLAGS -I/usr/contrib/X11R6/include -I/opt/graphics/OpenGL/include -I/usr/include/Motif2.1"
6326    export CPPFLAGS
6327    LDFLAGS="$LDFLAGS -L/opt/graphics/OpenGL/lib -L/usr/lib/Motif2.1 -L/usr/contrib/X11R6/lib"
6328    export LDFLAGS
6329elif test "X_$OS" = "X_OSF1"; then
6330    LDFLAGS="$LDFLAGS -lrt"
6331fi
6332export LD_OPTIONS
6333
6334export PARSER_CPP_FLAG
6335
6336export CPPFLAGS
6337
6338export COMMONFLAGS
6339
6340export CFLAGS
6341
6342export CXXFLAGS
6343
6344
6345if test "X_$CC" != "X_" ; then
6346    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC support -I/usr/local/include" >&5
6347$as_echo_n "checking $CC support -I/usr/local/include... " >&6; }
6348    cat > /tmp/_white_dune_test_$$.c << EOF
6349    int main(int argc, char** argv)
6350        {
6351        return 0;
6352        }
6353EOF
6354    if test "X_$USRLOCALINCLUDE" != "X_no" ;then
6355        if $CC -I/usr/local/include -c -o /tmp/_white_dune_test_$$.o /tmp/_white_dune_test_$$.c ; then
6356           CPPFLAGS="$CPPFLAGS -I/usr/local/include"
6357           LDFLAGS="$LDFLAGS -L/usr/local/lib"
6358           echo yes
6359        else
6360           echo no
6361        fi
6362        rm -f /tmp/_white_dune_test_$$.c
6363        rm -f /tmp/_white_dune_test_$$.o
6364    fi
6365fi
6366
6367
6368if test "X_$CC" != "X_" ; then
6369    { $as_echo "$as_me:${as_lineno-$LINENO}: checking void * size" >&5
6370$as_echo_n "checking void * size... " >&6; }
6371    cat > /tmp/_white_dune_test2_$$.c << EOF
6372    #include <stdio.h>
6373    int main(int argc, char** argv)
6374        {
6375        printf("%ld\n", (long)sizeof(void *));
6376        }
6377EOF
6378    if test "X_$USRLOCALINCLUDE" != "X_no" ;then
6379        if $CC -o /tmp/_white_dune_test2_$$ /tmp/_white_dune_test2_$$.c -lc ; then
6380           CPPFLAGS="$CPPFLAGS -I/usr/local/include"
6381           LDFLAGS="$LDFLAGS -L/usr/local/lib"
6382           echo `/tmp/_white_dune_test2_$$`
6383           if test "X_"`/tmp/_white_dune_test2_$$` = "X_8" ;then
6384              $as_echo "#define HAVE_VOID_PTR_SIZE_8 1" >>confdefs.h
6385
6386           fi
6387        else
6388           echo failed
6389        fi
6390        rm -f /tmp/_white_dune_test2_$$.c
6391        rm -f /tmp/_white_dune_test2_$$
6392    fi
6393fi
6394
6395if test "X_$VRMLBROWSER" = "X_" ;then
6396      for ac_prog in view3dscene /opt/instantReality/bin/InstantPlayer /Applications/FreeWRL/FreeWRL.app/Contents/MacOS/FreeWRL freewrl cc3dglut xj3d vrwave lookat
6397do
6398  # Extract the first word of "$ac_prog", so it can be a program name with args.
6399set dummy $ac_prog; ac_word=$2
6400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6401$as_echo_n "checking for $ac_word... " >&6; }
6402if ${ac_cv_path_VRMLBROWSER+:} false; then :
6403  $as_echo_n "(cached) " >&6
6404else
6405  case $VRMLBROWSER in
6406  [\\/]* | ?:[\\/]*)
6407  ac_cv_path_VRMLBROWSER="$VRMLBROWSER" # Let the user override the test with a path.
6408  ;;
6409  *)
6410  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411for as_dir in $PATH
6412do
6413  IFS=$as_save_IFS
6414  test -z "$as_dir" && as_dir=.
6415    for ac_exec_ext in '' $ac_executable_extensions; do
6416  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6417    ac_cv_path_VRMLBROWSER="$as_dir/$ac_word$ac_exec_ext"
6418    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6419    break 2
6420  fi
6421done
6422  done
6423IFS=$as_save_IFS
6424
6425  ;;
6426esac
6427fi
6428VRMLBROWSER=$ac_cv_path_VRMLBROWSER
6429if test -n "$VRMLBROWSER"; then
6430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VRMLBROWSER" >&5
6431$as_echo "$VRMLBROWSER" >&6; }
6432else
6433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6434$as_echo "no" >&6; }
6435fi
6436
6437
6438  test -n "$VRMLBROWSER" && break
6439done
6440
6441   if (echo "$VRMLBROWSER" | grep "freewrl" > /dev/null) ; then
6442       VRMLBROWSER="LD_LIBRARY_PATH=/usr/local/lib $VRMLBROWSER"
6443       export VRMLBROWSER
6444   fi
6445fi
6446
6447if test "X_$VRMLBROWSER" = "X_" ;then
6448   if test "X_$WWWBROWSER" != "X_" ;then
6449      VRMLBROWSER=$WWWBROWSER
6450   fi
6451fi
6452
6453MOZILLA_OPENURL=FALSE
6454if test  "`basename \"$WWWBROWSER\"`" = "netscape" ; then
6455   MOZILLA_OPENURL=TRUE
6456fi
6457if test  "`basename \"$WWWBROWSER\"`" = "mozilla" ; then
6458   MOZILLA_OPENURL=TRUE
6459fi
6460if test  "`basename \"$WWWBROWSER\"`" = "firefox" ; then
6461   MOZILLA_OPENURL=TRUE
6462fi
6463if test  "`basename \"$WWWBROWSER\"`" = "seamonkey" ; then
6464   MOZILLA_OPENURL=TRUE
6465fi
6466if test  "`basename \"$WWWBROWSER\"`" = "galeon" ; then
6467   MOZILLA_OPENURL=TRUE
6468fi
6469
6470if test  "X_$MOZILLA_OPENURL" = "X_TRUE" ; then
6471   VRMLREMOTEBROWSER="$WWWBROWSER -remote OpenURL\\\\(%s\\\\)"
6472else
6473   VRMLREMOTEBROWSER="$WWWBROWSER %s"
6474fi
6475cat >>confdefs.h <<_ACEOF
6476#define HAVE_VRML_REMOTE_BROWSER "${VRMLREMOTEBROWSER}"
6477_ACEOF
6478
6479
6480if test "X_$VRMLBROWSER" != "X_" ;then
6481   cat >>confdefs.h <<_ACEOF
6482#define HAVE_VRML_BROWSER "${VRMLBROWSER} %s"
6483_ACEOF
6484
6485fi
6486
6487MOZILLA_OPENURL=FALSE
6488if test  "`basename \"$WWWBROWSER\"`" = "netscape" ; then
6489   MOZILLA_OPENURL=TRUE
6490fi
6491if test  "`basename \"$WWWBROWSER\"`" = "mozilla" ; then
6492   MOZILLA_OPENURL=TRUE
6493fi
6494if test  "`basename \"$WWWBROWSER\"`" = "phoenix" ; then
6495   MOZILLA_OPENURL=TRUE
6496fi
6497if test  "`basename \"$WWWBROWSER\"`" = "galeon" ; then
6498   MOZILLA_OPENURL=TRUE
6499fi
6500
6501if test  "X_$MOZILLA_OPENURL" = "X_TRUE" ; then
6502   WWWREMOTEBROWSER="$WWWBROWSER -remote OpenURL\\\\(%s\\\\)"
6503else
6504   if test "X_$WWWBROWSER" != "X_" ;then
6505      WWWREMOTEBROWSER="$WWWBROWSER %s &"
6506   fi
6507fi
6508cat >>confdefs.h <<_ACEOF
6509#define HAVE_WWW_BROWSER "${WWWREMOTEBROWSER}"
6510_ACEOF
6511
6512
6513if test "X_$AVOID_RANLIB" = "X_yes" ; then
6514   RANLIB=echo
6515   export RANLIB
6516else
6517   for ac_prog in ranlib
6518do
6519  # Extract the first word of "$ac_prog", so it can be a program name with args.
6520set dummy $ac_prog; ac_word=$2
6521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6522$as_echo_n "checking for $ac_word... " >&6; }
6523if ${ac_cv_path_RANLIB+:} false; then :
6524  $as_echo_n "(cached) " >&6
6525else
6526  case $RANLIB in
6527  [\\/]* | ?:[\\/]*)
6528  ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
6529  ;;
6530  *)
6531  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532for as_dir in $PATH
6533do
6534  IFS=$as_save_IFS
6535  test -z "$as_dir" && as_dir=.
6536    for ac_exec_ext in '' $ac_executable_extensions; do
6537  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6538    ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
6539    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6540    break 2
6541  fi
6542done
6543  done
6544IFS=$as_save_IFS
6545
6546  ;;
6547esac
6548fi
6549RANLIB=$ac_cv_path_RANLIB
6550if test -n "$RANLIB"; then
6551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6552$as_echo "$RANLIB" >&6; }
6553else
6554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555$as_echo "no" >&6; }
6556fi
6557
6558
6559  test -n "$RANLIB" && break
6560done
6561test -n "$RANLIB" || RANLIB="echo"
6562
6563fi
6564
6565if test "X_$SDL_JOYSTICK" = "X_yes" ; then
6566
6567   if test "X_$SDL_JOYSTICK_LINUX" = "X_yes" ; then
6568                  # Check whether --enable-input-events was given.
6569if test "${enable_input_events+set}" = set; then :
6570  enableval=$enable_input_events;
6571else
6572  enable_input_events=yes
6573fi
6574
6575       if true; then
6576           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
6577$as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
6578           use_input_events=no
6579           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580/* end confdefs.h.  */
6581
6582             #include <linux/input.h>
6583
6584int
6585main ()
6586{
6587
6588             #ifndef EVIOCGNAME
6589             #error EVIOCGNAME() ioctl not available
6590             #endif
6591
6592  ;
6593  return 0;
6594}
6595_ACEOF
6596if ac_fn_c_try_compile "$LINENO"; then :
6597
6598           use_input_events=yes
6599
6600fi
6601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6602           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
6603$as_echo "$use_input_events" >&6; }
6604           if test x$use_input_events = xyes; then
6605               SDLCFLAGS="-DUSE_INPUT_EVENTS"
6606               SDL_JOYSTICK_SUBDIR="linux"
6607               SDL_JOYSTICK_LIBS="SDLjoystick/libSDLjoystick.a"
6608           fi
6609       fi
6610   fi
6611
6612   if test "X_$SDL_JOYSTICK_BSD" = "X_yes" ; then
6613                  if true ; then
6614           have_libusbhid=no
6615           have_libusb=no
6616           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
6617$as_echo_n "checking for hid_init in -lusbhid... " >&6; }
6618if ${ac_cv_lib_usbhid_hid_init+:} false; then :
6619  $as_echo_n "(cached) " >&6
6620else
6621  ac_check_lib_save_LIBS=$LIBS
6622LIBS="-lusbhid  $LIBS"
6623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624/* end confdefs.h.  */
6625
6626/* Override any GCC internal prototype to avoid an error.
6627   Use char because int might match the return type of a GCC
6628   builtin and then its argument prototype would still apply.  */
6629#ifdef __cplusplus
6630extern "C"
6631#endif
6632char hid_init ();
6633int
6634main ()
6635{
6636return hid_init ();
6637  ;
6638  return 0;
6639}
6640_ACEOF
6641if ac_fn_c_try_link "$LINENO"; then :
6642  ac_cv_lib_usbhid_hid_init=yes
6643else
6644  ac_cv_lib_usbhid_hid_init=no
6645fi
6646rm -f core conftest.err conftest.$ac_objext \
6647    conftest$ac_exeext conftest.$ac_ext
6648LIBS=$ac_check_lib_save_LIBS
6649fi
6650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
6651$as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
6652if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
6653  have_libusbhid=yes
6654fi
6655
6656           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
6657$as_echo_n "checking for hid_init in -lusb... " >&6; }
6658if ${ac_cv_lib_usb_hid_init+:} false; then :
6659  $as_echo_n "(cached) " >&6
6660else
6661  ac_check_lib_save_LIBS=$LIBS
6662LIBS="-lusb  $LIBS"
6663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6664/* end confdefs.h.  */
6665
6666/* Override any GCC internal prototype to avoid an error.
6667   Use char because int might match the return type of a GCC
6668   builtin and then its argument prototype would still apply.  */
6669#ifdef __cplusplus
6670extern "C"
6671#endif
6672char hid_init ();
6673int
6674main ()
6675{
6676return hid_init ();
6677  ;
6678  return 0;
6679}
6680_ACEOF
6681if ac_fn_c_try_link "$LINENO"; then :
6682  ac_cv_lib_usb_hid_init=yes
6683else
6684  ac_cv_lib_usb_hid_init=no
6685fi
6686rm -f core conftest.err conftest.$ac_objext \
6687    conftest$ac_exeext conftest.$ac_ext
6688LIBS=$ac_check_lib_save_LIBS
6689fi
6690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
6691$as_echo "$ac_cv_lib_usb_hid_init" >&6; }
6692if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
6693  have_libusb=yes
6694fi
6695
6696           if test x$have_libusbhid = xyes; then
6697               SYSTEM_LIBS="$SYSTEM_LIBS -lusbhid"
6698           fi
6699           if test x$have_libusb = xyes; then
6700               SYSTEM_LIBS="$SYSTEM_LIBS -lusb"
6701           fi
6702
6703           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6704$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6705if ${ac_cv_path_GREP+:} false; then :
6706  $as_echo_n "(cached) " >&6
6707else
6708  if test -z "$GREP"; then
6709  ac_path_GREP_found=false
6710  # Loop through the user's path and test for each of PROGNAME-LIST
6711  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6713do
6714  IFS=$as_save_IFS
6715  test -z "$as_dir" && as_dir=.
6716    for ac_prog in grep ggrep; do
6717    for ac_exec_ext in '' $ac_executable_extensions; do
6718      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6719      as_fn_executable_p "$ac_path_GREP" || continue
6720# Check for GNU ac_path_GREP and select it if it is found.
6721  # Check for GNU $ac_path_GREP
6722case `"$ac_path_GREP" --version 2>&1` in
6723*GNU*)
6724  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6725*)
6726  ac_count=0
6727  $as_echo_n 0123456789 >"conftest.in"
6728  while :
6729  do
6730    cat "conftest.in" "conftest.in" >"conftest.tmp"
6731    mv "conftest.tmp" "conftest.in"
6732    cp "conftest.in" "conftest.nl"
6733    $as_echo 'GREP' >> "conftest.nl"
6734    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6735    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6736    as_fn_arith $ac_count + 1 && ac_count=$as_val
6737    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6738      # Best one so far, save it but keep looking for a better one
6739      ac_cv_path_GREP="$ac_path_GREP"
6740      ac_path_GREP_max=$ac_count
6741    fi
6742    # 10*(2^10) chars as input seems more than enough
6743    test $ac_count -gt 10 && break
6744  done
6745  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6746esac
6747
6748      $ac_path_GREP_found && break 3
6749    done
6750  done
6751  done
6752IFS=$as_save_IFS
6753  if test -z "$ac_cv_path_GREP"; then
6754    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6755  fi
6756else
6757  ac_cv_path_GREP=$GREP
6758fi
6759
6760fi
6761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6762$as_echo "$ac_cv_path_GREP" >&6; }
6763 GREP="$ac_cv_path_GREP"
6764
6765
6766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6767$as_echo_n "checking for egrep... " >&6; }
6768if ${ac_cv_path_EGREP+:} false; then :
6769  $as_echo_n "(cached) " >&6
6770else
6771  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6772   then ac_cv_path_EGREP="$GREP -E"
6773   else
6774     if test -z "$EGREP"; then
6775  ac_path_EGREP_found=false
6776  # Loop through the user's path and test for each of PROGNAME-LIST
6777  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6779do
6780  IFS=$as_save_IFS
6781  test -z "$as_dir" && as_dir=.
6782    for ac_prog in egrep; do
6783    for ac_exec_ext in '' $ac_executable_extensions; do
6784      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6785      as_fn_executable_p "$ac_path_EGREP" || continue
6786# Check for GNU ac_path_EGREP and select it if it is found.
6787  # Check for GNU $ac_path_EGREP
6788case `"$ac_path_EGREP" --version 2>&1` in
6789*GNU*)
6790  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6791*)
6792  ac_count=0
6793  $as_echo_n 0123456789 >"conftest.in"
6794  while :
6795  do
6796    cat "conftest.in" "conftest.in" >"conftest.tmp"
6797    mv "conftest.tmp" "conftest.in"
6798    cp "conftest.in" "conftest.nl"
6799    $as_echo 'EGREP' >> "conftest.nl"
6800    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6801    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6802    as_fn_arith $ac_count + 1 && ac_count=$as_val
6803    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6804      # Best one so far, save it but keep looking for a better one
6805      ac_cv_path_EGREP="$ac_path_EGREP"
6806      ac_path_EGREP_max=$ac_count
6807    fi
6808    # 10*(2^10) chars as input seems more than enough
6809    test $ac_count -gt 10 && break
6810  done
6811  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6812esac
6813
6814      $ac_path_EGREP_found && break 3
6815    done
6816  done
6817  done
6818IFS=$as_save_IFS
6819  if test -z "$ac_cv_path_EGREP"; then
6820    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6821  fi
6822else
6823  ac_cv_path_EGREP=$EGREP
6824fi
6825
6826   fi
6827fi
6828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6829$as_echo "$ac_cv_path_EGREP" >&6; }
6830 EGREP="$ac_cv_path_EGREP"
6831
6832
6833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6834$as_echo_n "checking for ANSI C header files... " >&6; }
6835if ${ac_cv_header_stdc+:} false; then :
6836  $as_echo_n "(cached) " >&6
6837else
6838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6839/* end confdefs.h.  */
6840#include <stdlib.h>
6841#include <stdarg.h>
6842#include <string.h>
6843#include <float.h>
6844
6845int
6846main ()
6847{
6848
6849  ;
6850  return 0;
6851}
6852_ACEOF
6853if ac_fn_c_try_compile "$LINENO"; then :
6854  ac_cv_header_stdc=yes
6855else
6856  ac_cv_header_stdc=no
6857fi
6858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6859
6860if test $ac_cv_header_stdc = yes; then
6861  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863/* end confdefs.h.  */
6864#include <string.h>
6865
6866_ACEOF
6867if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6868  $EGREP "memchr" >/dev/null 2>&1; then :
6869
6870else
6871  ac_cv_header_stdc=no
6872fi
6873rm -f conftest*
6874
6875fi
6876
6877if test $ac_cv_header_stdc = yes; then
6878  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6880/* end confdefs.h.  */
6881#include <stdlib.h>
6882
6883_ACEOF
6884if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6885  $EGREP "free" >/dev/null 2>&1; then :
6886
6887else
6888  ac_cv_header_stdc=no
6889fi
6890rm -f conftest*
6891
6892fi
6893
6894if test $ac_cv_header_stdc = yes; then
6895  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6896  if test "$cross_compiling" = yes; then :
6897  :
6898else
6899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900/* end confdefs.h.  */
6901#include <ctype.h>
6902#include <stdlib.h>
6903#if ((' ' & 0x0FF) == 0x020)
6904# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6905# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6906#else
6907# define ISLOWER(c) \
6908		   (('a' <= (c) && (c) <= 'i') \
6909		     || ('j' <= (c) && (c) <= 'r') \
6910		     || ('s' <= (c) && (c) <= 'z'))
6911# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6912#endif
6913
6914#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6915int
6916main ()
6917{
6918  int i;
6919  for (i = 0; i < 256; i++)
6920    if (XOR (islower (i), ISLOWER (i))
6921	|| toupper (i) != TOUPPER (i))
6922      return 2;
6923  return 0;
6924}
6925_ACEOF
6926if ac_fn_c_try_run "$LINENO"; then :
6927
6928else
6929  ac_cv_header_stdc=no
6930fi
6931rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6932  conftest.$ac_objext conftest.beam conftest.$ac_ext
6933fi
6934
6935fi
6936fi
6937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6938$as_echo "$ac_cv_header_stdc" >&6; }
6939if test $ac_cv_header_stdc = yes; then
6940
6941$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6942
6943fi
6944
6945# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6946for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6947		  inttypes.h stdint.h unistd.h
6948do :
6949  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6950ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6951"
6952if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6953  cat >>confdefs.h <<_ACEOF
6954#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6955_ACEOF
6956
6957fi
6958
6959done
6960
6961
6962ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
6963if test "x$ac_cv_header_usb_h" = xyes; then :
6964  have_usb_h=yes
6965fi
6966
6967
6968           ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
6969if test "x$ac_cv_header_usbhid_h" = xyes; then :
6970  have_usbhid_h=yes
6971fi
6972
6973
6974           ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
6975if test "x$ac_cv_header_libusb_h" = xyes; then :
6976  have_libusb_h=yes
6977fi
6978
6979
6980           ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
6981if test "x$ac_cv_header_libusbhid_h" = xyes; then :
6982  have_libusbhid_h=yes
6983fi
6984
6985
6986           if test x$have_usb_h = xyes; then
6987               SDLCFLAGS="$SDLCFLAGS -DHAVE_USB_H"
6988               LIBS="$LIBS $SYSTEM_LIBS"
6989               SDL_JOYSTICK_SUBDIR="bsd"
6990               SDL_JOYSTICK_LIBS="SDLjoystick/libSDLjoystick.a"
6991           fi
6992           if test x$have_usbhid_h = xyes; then
6993               SDLCFLAGS="$SDLCFLAGS -DHAVE_USBHID_H"
6994               LIBS="$LIBS $SYSTEM_LIBS"
6995               SDL_JOYSTICK_SUBDIR="bsd"
6996               SDL_JOYSTICK_LIBS="SDLjoystick/libSDLjoystick.a"
6997           fi
6998           if test x$have_libusb_h = xyes; then
6999               SDLCFLAGS="$SDLCFLAGS -DHAVE_LIBUSB_H"
7000               LIBS="$LIBS $SYSTEM_LIBS"
7001               SDL_JOYSTICK_SUBDIR="bsd"
7002               SDL_JOYSTICK_LIBS="SDLjoystick/libSDLjoystick.a"
7003           fi
7004           if test x$have_libusbhid_h = xyes; then
7005               SDLCFLAGS="$SDLCFLAGS -DHAVE_LIBUSBHID_H"
7006               LIBS="$LIBS $SYSTEM_LIBS"
7007               SDL_JOYSTICK_SUBDIR="bsd"
7008               SDL_JOYSTICK_LIBS="SDLjoystick/libSDLjoystick.a"
7009           fi
7010
7011           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
7012$as_echo_n "checking for usbhid... " >&6; }
7013           have_usbhid=no
7014           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7015/* end confdefs.h.  */
7016
7017             #include <sys/types.h>
7018             #if defined(HAVE_USB_H)
7019             #include <usb.h>
7020             #endif
7021             #include <dev/usb/usb.h>
7022             #include <dev/usb/usbhid.h>
7023             #if defined(HAVE_USBHID_H)
7024             #include <usbhid.h>
7025             #elif defined(HAVE_LIBUSB_H)
7026             #include <libusb.h>
7027             #elif defined(HAVE_LIBUSBHID_H)
7028             #include <libusbhid.h>
7029             #endif
7030
7031int
7032main ()
7033{
7034
7035             struct report_desc *repdesc;
7036             struct usb_ctl_report *repbuf;
7037             hid_kind_t hidkind;
7038
7039  ;
7040  return 0;
7041}
7042_ACEOF
7043if ac_fn_c_try_compile "$LINENO"; then :
7044
7045           have_usbhid=yes
7046
7047fi
7048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7049           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
7050$as_echo "$have_usbhid" >&6; }
7051
7052           if test x$have_usbhid = xyes; then
7053               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
7054$as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
7055               have_usbhid_ucr_data=no
7056               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057/* end confdefs.h.  */
7058
7059                 #include <sys/types.h>
7060                 #if defined(HAVE_USB_H)
7061                 #include <usb.h>
7062                 #endif
7063                 #include <dev/usb/usb.h>
7064                 #include <dev/usb/usbhid.h>
7065                 #if defined(HAVE_USBHID_H)
7066                 #include <usbhid.h>
7067                 #elif defined(HAVE_LIBUSB_H)
7068                 #include <libusb.h>
7069                 #elif defined(HAVE_LIBUSBHID_H)
7070                 #include <libusbhid.h>
7071                 #endif
7072
7073int
7074main ()
7075{
7076
7077                 struct usb_ctl_report buf;
7078                 if (buf.ucr_data) { }
7079
7080  ;
7081  return 0;
7082}
7083_ACEOF
7084if ac_fn_c_try_compile "$LINENO"; then :
7085
7086               have_usbhid_ucr_data=yes
7087
7088fi
7089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7090               if test x$have_usbhid_ucr_data = xyes; then
7091                   SDLCFLAGS="$SDLCFLAGS -DUSBHID_UCR_DATA"
7092                   LIBS="$LIBS $SYSTEM_LIBS"
7093                   SDL_JOYSTICK_SUBDIR="bsd"
7094                   SDL_JOYSTICK_LIBS="SDLjoystick/libSDLjoystick.a"
7095               fi
7096               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
7097$as_echo "$have_usbhid_ucr_data" >&6; }
7098
7099   	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
7100$as_echo_n "checking for new usbhid API... " >&6; }
7101               have_usbhid_new=no
7102               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7103/* end confdefs.h.  */
7104
7105                 #include <sys/types.h>
7106                 #if defined(HAVE_USB_H)
7107                 #include <usb.h>
7108                 #endif
7109                 #include <dev/usb/usb.h>
7110                 #include <dev/usb/usbhid.h>
7111                 #if defined(HAVE_USBHID_H)
7112                 #include <usbhid.h>
7113                 #elif defined(HAVE_LIBUSB_H)
7114                 #include <libusb.h>
7115                 #elif defined(HAVE_LIBUSBHID_H)
7116                 #include <libusbhid.h>
7117                 #endif
7118
7119int
7120main ()
7121{
7122
7123                 report_desc_t d;
7124   	      hid_start_parse(d, 1, 1);
7125
7126  ;
7127  return 0;
7128}
7129_ACEOF
7130if ac_fn_c_try_compile "$LINENO"; then :
7131
7132               have_usbhid_new=yes
7133
7134fi
7135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7136               if test x$have_usbhid_new = xyes; then
7137                   SDLCFLAGS="$SDLCFLAGS -DUSBHID_NEW"
7138                   LIBS="$LIBS $SYSTEM_LIBS"
7139                   SDL_JOYSTICK_SUBDIR="bsd"
7140                   SDL_JOYSTICK_LIBS="SDLjoystick/libSDLjoystick.a"
7141               fi
7142               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
7143$as_echo "$have_usbhid_new" >&6; }
7144           fi
7145       fi
7146   fi
7147
7148
7149
7150
7151
7152   if test "X_$SDL_JOYSTICK_SUBDIR" != "X_" ; then
7153      $as_echo "#define HAVE_SDL_JOYSTICK 1" >>confdefs.h
7154
7155   fi
7156fi
7157
7158LDFLAGS="$LDFLAGS $OPTIM"
7159export LDFLAGS
7160
7161
7162OLD_CC=$CC
7163CC="$CC $CPPFLAGS"
7164export CC
7165
7166
7167
7168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7169$as_echo_n "checking for ANSI C header files... " >&6; }
7170if ${ac_cv_header_stdc+:} false; then :
7171  $as_echo_n "(cached) " >&6
7172else
7173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174/* end confdefs.h.  */
7175#include <stdlib.h>
7176#include <stdarg.h>
7177#include <string.h>
7178#include <float.h>
7179
7180int
7181main ()
7182{
7183
7184  ;
7185  return 0;
7186}
7187_ACEOF
7188if ac_fn_c_try_compile "$LINENO"; then :
7189  ac_cv_header_stdc=yes
7190else
7191  ac_cv_header_stdc=no
7192fi
7193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7194
7195if test $ac_cv_header_stdc = yes; then
7196  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198/* end confdefs.h.  */
7199#include <string.h>
7200
7201_ACEOF
7202if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7203  $EGREP "memchr" >/dev/null 2>&1; then :
7204
7205else
7206  ac_cv_header_stdc=no
7207fi
7208rm -f conftest*
7209
7210fi
7211
7212if test $ac_cv_header_stdc = yes; then
7213  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215/* end confdefs.h.  */
7216#include <stdlib.h>
7217
7218_ACEOF
7219if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7220  $EGREP "free" >/dev/null 2>&1; then :
7221
7222else
7223  ac_cv_header_stdc=no
7224fi
7225rm -f conftest*
7226
7227fi
7228
7229if test $ac_cv_header_stdc = yes; then
7230  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7231  if test "$cross_compiling" = yes; then :
7232  :
7233else
7234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235/* end confdefs.h.  */
7236#include <ctype.h>
7237#include <stdlib.h>
7238#if ((' ' & 0x0FF) == 0x020)
7239# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7240# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7241#else
7242# define ISLOWER(c) \
7243		   (('a' <= (c) && (c) <= 'i') \
7244		     || ('j' <= (c) && (c) <= 'r') \
7245		     || ('s' <= (c) && (c) <= 'z'))
7246# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7247#endif
7248
7249#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7250int
7251main ()
7252{
7253  int i;
7254  for (i = 0; i < 256; i++)
7255    if (XOR (islower (i), ISLOWER (i))
7256	|| toupper (i) != TOUPPER (i))
7257      return 2;
7258  return 0;
7259}
7260_ACEOF
7261if ac_fn_c_try_run "$LINENO"; then :
7262
7263else
7264  ac_cv_header_stdc=no
7265fi
7266rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7267  conftest.$ac_objext conftest.beam conftest.$ac_ext
7268fi
7269
7270fi
7271fi
7272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7273$as_echo "$ac_cv_header_stdc" >&6; }
7274if test $ac_cv_header_stdc = yes; then
7275
7276$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7277
7278fi
7279
7280ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
7281if test "x$ac_cv_header_stdarg_h" = xyes; then :
7282  $as_echo "#define HAVE_STDARG_H 1" >>confdefs.h
7283
7284fi
7285
7286
7287ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
7288if test "x$ac_cv_header_varargs_h" = xyes; then :
7289  $as_echo "#define HAVE_VARARGS_H 1" >>confdefs.h
7290
7291fi
7292
7293
7294
7295ac_fn_c_check_header_mongrel "$LINENO" "Xm/Xm.h" "ac_cv_header_Xm_Xm_h" "$ac_includes_default"
7296if test "x$ac_cv_header_Xm_Xm_h" = xyes; then :
7297
7298else
7299  MOTIF_ERROR=1
7300fi
7301
7302
7303
7304if test "X_$MOTIF_ERROR" = "X_1" ; then
7305
7306cat 1>&2 << EOF
7307
7308 *** couldn't find Motif/Lesstif develop file ***
7309
7310 This package will not compile without a Motif/Lesstif devel package.
7311 If Motif is not available, or too bloody expensive, you can use LessTif,
7312 which is available open source from:
7313
7314	http://www.lesstif.org/download.html
7315
7316EOF
7317 exit 1
7318
7319fi
7320
7321ac_fn_c_check_header_mongrel "$LINENO" "X11/Xlib.h" "ac_cv_header_X11_Xlib_h" "$ac_includes_default"
7322if test "x$ac_cv_header_X11_Xlib_h" = xyes; then :
7323
7324else
7325  X11_ERROR=1
7326fi
7327
7328
7329ac_fn_c_check_header_mongrel "$LINENO" "X11/keysym.h" "ac_cv_header_X11_keysym_h" "$ac_includes_default"
7330if test "x$ac_cv_header_X11_keysym_h" = xyes; then :
7331
7332else
7333  X11_ERROR=1
7334fi
7335
7336
7337ac_fn_c_check_header_mongrel "$LINENO" "X11/cursorfont.h" "ac_cv_header_X11_cursorfont_h" "$ac_includes_default"
7338if test "x$ac_cv_header_X11_cursorfont_h" = xyes; then :
7339
7340else
7341  X11_ERROR=1
7342fi
7343
7344
7345ac_fn_c_check_header_mongrel "$LINENO" "X11/Intrinsic.h" "ac_cv_header_X11_Intrinsic_h" "$ac_includes_default"
7346if test "x$ac_cv_header_X11_Intrinsic_h" = xyes; then :
7347
7348else
7349  X11_ERROR=1
7350fi
7351
7352
7353ac_fn_c_check_header_mongrel "$LINENO" "X11/IntrinsicP.h" "ac_cv_header_X11_IntrinsicP_h" "$ac_includes_default"
7354if test "x$ac_cv_header_X11_IntrinsicP_h" = xyes; then :
7355
7356else
7357  X11_ERROR=1
7358fi
7359
7360
7361
7362if test "X_$X11_ERROR" = "X_1" ; then
7363
7364 cat 1>&2 << EOF
7365
7366 *** couldn't find basic X11 develop file ***
7367
7368 This package will not compile without serveral X11 library headers
7369
7370EOF
7371 exit 1
7372
7373fi
7374
7375HAVE_OMP_FLAGS=""
7376if test "X_$OMP" != "X_no" ; then
7377 ac_fn_c_check_header_mongrel "$LINENO" "omp.h" "ac_cv_header_omp_h" "$ac_includes_default"
7378if test "x$ac_cv_header_omp_h" = xyes; then :
7379  HAVE_OMP_FLAGS=-fopenmp;$as_echo "#define HAVE_OMP 1" >>confdefs.h
7380
7381fi
7382
7383
7384 if test "X_$HAVE_OMP_FLAGS" != ""; then
7385     CFLAGS="$CFLAGS $HAVE_OMP_FLAGS"
7386     CXXFLAGS="$CXXFLAGS $HAVE_OMP_FLAGS"
7387     if test "X_$CLANG" != "X_"; then
7388        export LIBS="$LIBS -fopenmp"
7389     else
7390        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgomp" >&5
7391$as_echo_n "checking for main in -lgomp... " >&6; }
7392if ${ac_cv_lib_gomp_main+:} false; then :
7393  $as_echo_n "(cached) " >&6
7394else
7395  ac_check_lib_save_LIBS=$LIBS
7396LIBS="-lgomp  $LIBS"
7397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7398/* end confdefs.h.  */
7399
7400
7401int
7402main ()
7403{
7404return main ();
7405  ;
7406  return 0;
7407}
7408_ACEOF
7409if ac_fn_c_try_link "$LINENO"; then :
7410  ac_cv_lib_gomp_main=yes
7411else
7412  ac_cv_lib_gomp_main=no
7413fi
7414rm -f core conftest.err conftest.$ac_objext \
7415    conftest$ac_exeext conftest.$ac_ext
7416LIBS=$ac_check_lib_save_LIBS
7417fi
7418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_main" >&5
7419$as_echo "$ac_cv_lib_gomp_main" >&6; }
7420if test "x$ac_cv_lib_gomp_main" = xyes; then :
7421  cat >>confdefs.h <<_ACEOF
7422#define HAVE_LIBGOMP 1
7423_ACEOF
7424
7425  LIBS="-lgomp $LIBS"
7426
7427fi
7428ac_cv_lib_gomp=ac_cv_lib_gomp_main
7429
7430     fi
7431 fi
7432fi
7433
7434LDFLAGS="$LDFLAGS -L/usr/lib/X11"
7435if test "X_$DEBIAN" = "X_" ; then
7436   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
7437$as_echo_n "checking for main in -ldl... " >&6; }
7438if ${ac_cv_lib_dl_main+:} false; then :
7439  $as_echo_n "(cached) " >&6
7440else
7441  ac_check_lib_save_LIBS=$LIBS
7442LIBS="-ldl  $LIBS"
7443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444/* end confdefs.h.  */
7445
7446
7447int
7448main ()
7449{
7450return main ();
7451  ;
7452  return 0;
7453}
7454_ACEOF
7455if ac_fn_c_try_link "$LINENO"; then :
7456  ac_cv_lib_dl_main=yes
7457else
7458  ac_cv_lib_dl_main=no
7459fi
7460rm -f core conftest.err conftest.$ac_objext \
7461    conftest$ac_exeext conftest.$ac_ext
7462LIBS=$ac_check_lib_save_LIBS
7463fi
7464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
7465$as_echo "$ac_cv_lib_dl_main" >&6; }
7466if test "x$ac_cv_lib_dl_main" = xyes; then :
7467  cat >>confdefs.h <<_ACEOF
7468#define HAVE_LIBDL 1
7469_ACEOF
7470
7471  LIBS="-ldl $LIBS"
7472
7473fi
7474ac_cv_lib_dl=ac_cv_lib_dl_main
7475
7476fi
7477if test "X_$NEBULA" != "X_" ;then
7478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstlport_gcc" >&5
7479$as_echo_n "checking for main in -lstlport_gcc... " >&6; }
7480if ${ac_cv_lib_stlport_gcc_main+:} false; then :
7481  $as_echo_n "(cached) " >&6
7482else
7483  ac_check_lib_save_LIBS=$LIBS
7484LIBS="-lstlport_gcc  $LIBS"
7485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486/* end confdefs.h.  */
7487
7488
7489int
7490main ()
7491{
7492return main ();
7493  ;
7494  return 0;
7495}
7496_ACEOF
7497if ac_fn_c_try_link "$LINENO"; then :
7498  ac_cv_lib_stlport_gcc_main=yes
7499else
7500  ac_cv_lib_stlport_gcc_main=no
7501fi
7502rm -f core conftest.err conftest.$ac_objext \
7503    conftest$ac_exeext conftest.$ac_ext
7504LIBS=$ac_check_lib_save_LIBS
7505fi
7506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stlport_gcc_main" >&5
7507$as_echo "$ac_cv_lib_stlport_gcc_main" >&6; }
7508if test "x$ac_cv_lib_stlport_gcc_main" = xyes; then :
7509  cat >>confdefs.h <<_ACEOF
7510#define HAVE_LIBSTLPORT_GCC 1
7511_ACEOF
7512
7513  LIBS="-lstlport_gcc $LIBS"
7514
7515fi
7516ac_cv_lib_stlport_gcc=ac_cv_lib_stlport_gcc_main
7517
7518fi
7519for ac_func in atexit
7520do :
7521  ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
7522if test "x$ac_cv_func_atexit" = xyes; then :
7523  cat >>confdefs.h <<_ACEOF
7524#define HAVE_ATEXIT 1
7525_ACEOF
7526
7527fi
7528done
7529
7530for ac_func in _exit
7531do :
7532  ac_fn_c_check_func "$LINENO" "_exit" "ac_cv_func__exit"
7533if test "x$ac_cv_func__exit" = xyes; then :
7534  cat >>confdefs.h <<_ACEOF
7535#define HAVE__EXIT 1
7536_ACEOF
7537
7538fi
7539done
7540
7541for ac_func in snprintf
7542do :
7543  ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
7544if test "x$ac_cv_func_snprintf" = xyes; then :
7545  cat >>confdefs.h <<_ACEOF
7546#define HAVE_SNPRINTF 1
7547_ACEOF
7548
7549fi
7550done
7551
7552for ac_func in gettimeofday
7553do :
7554  ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
7555if test "x$ac_cv_func_gettimeofday" = xyes; then :
7556  cat >>confdefs.h <<_ACEOF
7557#define HAVE_GETTIMEOFDAY 1
7558_ACEOF
7559
7560fi
7561done
7562
7563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
7564$as_echo_n "checking for sin in -lm... " >&6; }
7565if ${ac_cv_lib_m_sin+:} false; then :
7566  $as_echo_n "(cached) " >&6
7567else
7568  ac_check_lib_save_LIBS=$LIBS
7569LIBS="-lm  $LIBS"
7570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571/* end confdefs.h.  */
7572
7573/* Override any GCC internal prototype to avoid an error.
7574   Use char because int might match the return type of a GCC
7575   builtin and then its argument prototype would still apply.  */
7576#ifdef __cplusplus
7577extern "C"
7578#endif
7579char sin ();
7580int
7581main ()
7582{
7583return sin ();
7584  ;
7585  return 0;
7586}
7587_ACEOF
7588if ac_fn_c_try_link "$LINENO"; then :
7589  ac_cv_lib_m_sin=yes
7590else
7591  ac_cv_lib_m_sin=no
7592fi
7593rm -f core conftest.err conftest.$ac_objext \
7594    conftest$ac_exeext conftest.$ac_ext
7595LIBS=$ac_check_lib_save_LIBS
7596fi
7597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
7598$as_echo "$ac_cv_lib_m_sin" >&6; }
7599if test "x$ac_cv_lib_m_sin" = xyes; then :
7600  cat >>confdefs.h <<_ACEOF
7601#define HAVE_LIBM 1
7602_ACEOF
7603
7604  LIBS="-lm $LIBS"
7605
7606fi
7607
7608for ac_func in powf
7609do :
7610  ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
7611if test "x$ac_cv_func_powf" = xyes; then :
7612  cat >>confdefs.h <<_ACEOF
7613#define HAVE_POWF 1
7614_ACEOF
7615
7616fi
7617done
7618
7619for ac_func in powl
7620do :
7621  ac_fn_c_check_func "$LINENO" "powl" "ac_cv_func_powl"
7622if test "x$ac_cv_func_powl" = xyes; then :
7623  cat >>confdefs.h <<_ACEOF
7624#define HAVE_POWL 1
7625_ACEOF
7626
7627fi
7628done
7629
7630for ac_func in rint
7631do :
7632  ac_fn_c_check_func "$LINENO" "rint" "ac_cv_func_rint"
7633if test "x$ac_cv_func_rint" = xyes; then :
7634  cat >>confdefs.h <<_ACEOF
7635#define HAVE_RINT 1
7636_ACEOF
7637
7638fi
7639done
7640
7641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCreateWindow in -lX11" >&5
7642$as_echo_n "checking for XCreateWindow in -lX11... " >&6; }
7643if ${ac_cv_lib_X11_XCreateWindow+:} false; then :
7644  $as_echo_n "(cached) " >&6
7645else
7646  ac_check_lib_save_LIBS=$LIBS
7647LIBS="-lX11  $LIBS"
7648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7649/* end confdefs.h.  */
7650
7651/* Override any GCC internal prototype to avoid an error.
7652   Use char because int might match the return type of a GCC
7653   builtin and then its argument prototype would still apply.  */
7654#ifdef __cplusplus
7655extern "C"
7656#endif
7657char XCreateWindow ();
7658int
7659main ()
7660{
7661return XCreateWindow ();
7662  ;
7663  return 0;
7664}
7665_ACEOF
7666if ac_fn_c_try_link "$LINENO"; then :
7667  ac_cv_lib_X11_XCreateWindow=yes
7668else
7669  ac_cv_lib_X11_XCreateWindow=no
7670fi
7671rm -f core conftest.err conftest.$ac_objext \
7672    conftest$ac_exeext conftest.$ac_ext
7673LIBS=$ac_check_lib_save_LIBS
7674fi
7675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XCreateWindow" >&5
7676$as_echo "$ac_cv_lib_X11_XCreateWindow" >&6; }
7677if test "x$ac_cv_lib_X11_XCreateWindow" = xyes; then :
7678  cat >>confdefs.h <<_ACEOF
7679#define HAVE_LIBX11 1
7680_ACEOF
7681
7682  LIBS="-lX11 $LIBS"
7683
7684fi
7685
7686for ac_func in XkbKeycodeToKeysym
7687do :
7688  ac_fn_c_check_func "$LINENO" "XkbKeycodeToKeysym" "ac_cv_func_XkbKeycodeToKeysym"
7689if test "x$ac_cv_func_XkbKeycodeToKeysym" = xyes; then :
7690  cat >>confdefs.h <<_ACEOF
7691#define HAVE_XKBKEYCODETOKEYSYM 1
7692_ACEOF
7693
7694fi
7695done
7696
7697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuLookupStandardColormap in -lXmu" >&5
7698$as_echo_n "checking for XmuLookupStandardColormap in -lXmu... " >&6; }
7699if ${ac_cv_lib_Xmu_XmuLookupStandardColormap+:} false; then :
7700  $as_echo_n "(cached) " >&6
7701else
7702  ac_check_lib_save_LIBS=$LIBS
7703LIBS="-lXmu  $LIBS"
7704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7705/* end confdefs.h.  */
7706
7707/* Override any GCC internal prototype to avoid an error.
7708   Use char because int might match the return type of a GCC
7709   builtin and then its argument prototype would still apply.  */
7710#ifdef __cplusplus
7711extern "C"
7712#endif
7713char XmuLookupStandardColormap ();
7714int
7715main ()
7716{
7717return XmuLookupStandardColormap ();
7718  ;
7719  return 0;
7720}
7721_ACEOF
7722if ac_fn_c_try_link "$LINENO"; then :
7723  ac_cv_lib_Xmu_XmuLookupStandardColormap=yes
7724else
7725  ac_cv_lib_Xmu_XmuLookupStandardColormap=no
7726fi
7727rm -f core conftest.err conftest.$ac_objext \
7728    conftest$ac_exeext conftest.$ac_ext
7729LIBS=$ac_check_lib_save_LIBS
7730fi
7731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuLookupStandardColormap" >&5
7732$as_echo "$ac_cv_lib_Xmu_XmuLookupStandardColormap" >&6; }
7733if test "x$ac_cv_lib_Xmu_XmuLookupStandardColormap" = xyes; then :
7734  cat >>confdefs.h <<_ACEOF
7735#define HAVE_LIBXMU 1
7736_ACEOF
7737
7738  LIBS="-lXmu $LIBS"
7739
7740fi
7741
7742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtCreateWidget in -lXt" >&5
7743$as_echo_n "checking for XtCreateWidget in -lXt... " >&6; }
7744if ${ac_cv_lib_Xt_XtCreateWidget+:} false; then :
7745  $as_echo_n "(cached) " >&6
7746else
7747  ac_check_lib_save_LIBS=$LIBS
7748LIBS="-lXt  $LIBS"
7749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7750/* end confdefs.h.  */
7751
7752/* Override any GCC internal prototype to avoid an error.
7753   Use char because int might match the return type of a GCC
7754   builtin and then its argument prototype would still apply.  */
7755#ifdef __cplusplus
7756extern "C"
7757#endif
7758char XtCreateWidget ();
7759int
7760main ()
7761{
7762return XtCreateWidget ();
7763  ;
7764  return 0;
7765}
7766_ACEOF
7767if ac_fn_c_try_link "$LINENO"; then :
7768  ac_cv_lib_Xt_XtCreateWidget=yes
7769else
7770  ac_cv_lib_Xt_XtCreateWidget=no
7771fi
7772rm -f core conftest.err conftest.$ac_objext \
7773    conftest$ac_exeext conftest.$ac_ext
7774LIBS=$ac_check_lib_save_LIBS
7775fi
7776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtCreateWidget" >&5
7777$as_echo "$ac_cv_lib_Xt_XtCreateWidget" >&6; }
7778if test "x$ac_cv_lib_Xt_XtCreateWidget" = xyes; then :
7779  cat >>confdefs.h <<_ACEOF
7780#define HAVE_LIBXT 1
7781_ACEOF
7782
7783  LIBS="-lXt $LIBS"
7784
7785fi
7786
7787if test "X_$DEBIAN" = "X_" ; then
7788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryVersion in -lXext" >&5
7789$as_echo_n "checking for XShmQueryVersion in -lXext... " >&6; }
7790if ${ac_cv_lib_Xext_XShmQueryVersion+:} false; then :
7791  $as_echo_n "(cached) " >&6
7792else
7793  ac_check_lib_save_LIBS=$LIBS
7794LIBS="-lXext  $LIBS"
7795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7796/* end confdefs.h.  */
7797
7798/* Override any GCC internal prototype to avoid an error.
7799   Use char because int might match the return type of a GCC
7800   builtin and then its argument prototype would still apply.  */
7801#ifdef __cplusplus
7802extern "C"
7803#endif
7804char XShmQueryVersion ();
7805int
7806main ()
7807{
7808return XShmQueryVersion ();
7809  ;
7810  return 0;
7811}
7812_ACEOF
7813if ac_fn_c_try_link "$LINENO"; then :
7814  ac_cv_lib_Xext_XShmQueryVersion=yes
7815else
7816  ac_cv_lib_Xext_XShmQueryVersion=no
7817fi
7818rm -f core conftest.err conftest.$ac_objext \
7819    conftest$ac_exeext conftest.$ac_ext
7820LIBS=$ac_check_lib_save_LIBS
7821fi
7822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryVersion" >&5
7823$as_echo "$ac_cv_lib_Xext_XShmQueryVersion" >&6; }
7824if test "x$ac_cv_lib_Xext_XShmQueryVersion" = xyes; then :
7825  cat >>confdefs.h <<_ACEOF
7826#define HAVE_LIBXEXT 1
7827_ACEOF
7828
7829  LIBS="-lXext $LIBS"
7830
7831fi
7832
7833fi
7834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXp" >&5
7835$as_echo_n "checking for main in -lXp... " >&6; }
7836if ${ac_cv_lib_Xp_main+:} false; then :
7837  $as_echo_n "(cached) " >&6
7838else
7839  ac_check_lib_save_LIBS=$LIBS
7840LIBS="-lXp  $LIBS"
7841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842/* end confdefs.h.  */
7843
7844
7845int
7846main ()
7847{
7848return main ();
7849  ;
7850  return 0;
7851}
7852_ACEOF
7853if ac_fn_c_try_link "$LINENO"; then :
7854  ac_cv_lib_Xp_main=yes
7855else
7856  ac_cv_lib_Xp_main=no
7857fi
7858rm -f core conftest.err conftest.$ac_objext \
7859    conftest$ac_exeext conftest.$ac_ext
7860LIBS=$ac_check_lib_save_LIBS
7861fi
7862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_main" >&5
7863$as_echo "$ac_cv_lib_Xp_main" >&6; }
7864if test "x$ac_cv_lib_Xp_main" = xyes; then :
7865  cat >>confdefs.h <<_ACEOF
7866#define HAVE_LIBXP 1
7867_ACEOF
7868
7869  LIBS="-lXp $LIBS"
7870
7871fi
7872ac_cv_lib_Xp=ac_cv_lib_Xp_main
7873
7874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmCreateMainWindow  in -lXm" >&5
7875$as_echo_n "checking for XmCreateMainWindow  in -lXm... " >&6; }
7876if ${ac_cv_lib_Xm_XmCreateMainWindow_+:} false; then :
7877  $as_echo_n "(cached) " >&6
7878else
7879  ac_check_lib_save_LIBS=$LIBS
7880LIBS="-lXm  $LIBS"
7881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7882/* end confdefs.h.  */
7883
7884/* Override any GCC internal prototype to avoid an error.
7885   Use char because int might match the return type of a GCC
7886   builtin and then its argument prototype would still apply.  */
7887#ifdef __cplusplus
7888extern "C"
7889#endif
7890char XmCreateMainWindow  ();
7891int
7892main ()
7893{
7894return XmCreateMainWindow  ();
7895  ;
7896  return 0;
7897}
7898_ACEOF
7899if ac_fn_c_try_link "$LINENO"; then :
7900  ac_cv_lib_Xm_XmCreateMainWindow_=yes
7901else
7902  ac_cv_lib_Xm_XmCreateMainWindow_=no
7903fi
7904rm -f core conftest.err conftest.$ac_objext \
7905    conftest$ac_exeext conftest.$ac_ext
7906LIBS=$ac_check_lib_save_LIBS
7907fi
7908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_XmCreateMainWindow_" >&5
7909$as_echo "$ac_cv_lib_Xm_XmCreateMainWindow_" >&6; }
7910if test "x$ac_cv_lib_Xm_XmCreateMainWindow_" = xyes; then :
7911  cat >>confdefs.h <<_ACEOF
7912#define HAVE_LIBXM 1
7913_ACEOF
7914
7915  LIBS="-lXm $LIBS"
7916
7917else
7918  MOTIF_ERROR=1
7919fi
7920
7921if test "X_$MOTIF_ERROR" = "X_1" ; then
7922
7923cat 1>&2 << EOF
7924
7925 *** couldn't find a working Motif/Lesstif development system ***
7926
7927 This package will not compile without a working Motif/Lesstif development
7928 system.
7929
7930 Inspect the config.log file to find out, what part of the Motif/Lesstif X11
7931 development system is not available/working.
7932
7933 If Motif or OpenMotif is not available, or too expensive, you can use LessTif,
7934 which is available open source from:
7935
7936	http://www.lesstif.org/download.html
7937
7938EOF
7939 exit 1
7940
7941fi
7942
7943
7944TTF_ERROR=0
7945if test "X_$TTF_FILE" = "X_0" ; then
7946   TTF_ERROR=1
7947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ttf-file" >&5
7948$as_echo_n "checking for ttf-file... " >&6; }
7949   for i in /usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf \
7950            /usr/share/fonts/truetype/Vera.ttf \
7951            /usr/share/fonts/bitstream-vera/Vera.ttf \
7952            /usr/share/fonts/TTF/Vera.ttf \
7953            /usr/local/share/fonts/bitstream-vera/Vera.ttf \
7954            /opt/X11/share/fonts/TTF/Vera.ttf ; do
7955      if test -f $i; then
7956         cat >>confdefs.h <<_ACEOF
7957#define HAVE_DEFAULT_TTF_FILE "$i"
7958_ACEOF
7959
7960         TTF_ERROR=0
7961         echo $i
7962         break
7963      fi
7964  done
7965fi
7966if test "X_$TTF_ERROR" = "X_1" ; then
7967   echo no
7968fi
7969
7970ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
7971if test "x$ac_cv_header_ft2build_h" = xyes; then :
7972
7973else
7974  FREE_TYPE_ERROR=1
7975fi
7976
7977
7978if test "X_$TTF_ERROR" = "X_0" ; then
7979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lfreetype" >&5
7980$as_echo_n "checking for main in -lfreetype... " >&6; }
7981if ${ac_cv_lib_freetype_main+:} false; then :
7982  $as_echo_n "(cached) " >&6
7983else
7984  ac_check_lib_save_LIBS=$LIBS
7985LIBS="-lfreetype  $LIBS"
7986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987/* end confdefs.h.  */
7988
7989
7990int
7991main ()
7992{
7993return main ();
7994  ;
7995  return 0;
7996}
7997_ACEOF
7998if ac_fn_c_try_link "$LINENO"; then :
7999  ac_cv_lib_freetype_main=yes
8000else
8001  ac_cv_lib_freetype_main=no
8002fi
8003rm -f core conftest.err conftest.$ac_objext \
8004    conftest$ac_exeext conftest.$ac_ext
8005LIBS=$ac_check_lib_save_LIBS
8006fi
8007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_main" >&5
8008$as_echo "$ac_cv_lib_freetype_main" >&6; }
8009if test "x$ac_cv_lib_freetype_main" = xyes; then :
8010  cat >>confdefs.h <<_ACEOF
8011#define HAVE_LIBFREETYPE 1
8012_ACEOF
8013
8014  LIBS="-lfreetype $LIBS"
8015
8016else
8017  FREE_TYPE_ERROR=1
8018fi
8019ac_cv_lib_freetype=ac_cv_lib_freetype_main
8020
8021else
8022   cat >>confdefs.h <<_ACEOF
8023#define HAVE_DEFAULT_TTF_FILE ""
8024_ACEOF
8025
8026fi
8027if test "X_$FREE_TYPE_ERROR" = "X_1" ; then
8028
8029 cat 1>&2 << EOF
8030
8031 *** couldn't find freetype2 develop files ***
8032
8033 This package will not compile without freetype2 headers
8034
8035EOF
8036 exit 1
8037
8038fi
8039
8040if test "X_$CGALHEADERS" != "X_yes" ; then
8041  if test "X_$CGAL" != "X_no" ; then
8042    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libCGAL" >&5
8043$as_echo_n "checking for libCGAL... " >&6; }
8044    ac_ext=cpp
8045ac_cpp='$CXXCPP $CPPFLAGS'
8046ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8047ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8048ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8049
8050    SAVE_LIBS="$LIBS"
8051    LIBS="$LIBS -lCGAL"
8052
8053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8054/* end confdefs.h.  */
8055
8056int
8057main ()
8058{
8059;
8060  ;
8061  return 0;
8062}
8063_ACEOF
8064if ac_fn_cxx_try_link "$LINENO"; then :
8065
8066else
8067  CGAL_ERROR=1
8068fi
8069rm -f core conftest.err conftest.$ac_objext \
8070    conftest$ac_exeext conftest.$ac_ext
8071    ac_ext=c
8072ac_cpp='$CPP $CPPFLAGS'
8073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8075ac_compiler_gnu=$ac_cv_c_compiler_gnu
8076
8077    if test "X_$CGAL_ERROR" = "X_1" ; then
8078      echo no
8079    LIBS="$SAVE_LIBS"
8080    cat 1>&2 << EOF
8081
8082 *** couldn't find a working CGAL development system ***
8083
8084 if CGAL is not available, the convex hull and CSG functions are not available
8085
8086EOF
8087    else
8088      $as_echo "#define HAVE_LIBCGAL 1" >>confdefs.h
8089
8090      echo yes
8091      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpn_sub_1 in -lgmp" >&5
8092$as_echo_n "checking for __gmpn_sub_1 in -lgmp... " >&6; }
8093if ${ac_cv_lib_gmp___gmpn_sub_1+:} false; then :
8094  $as_echo_n "(cached) " >&6
8095else
8096  ac_check_lib_save_LIBS=$LIBS
8097LIBS="-lgmp  $LIBS"
8098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099/* end confdefs.h.  */
8100
8101/* Override any GCC internal prototype to avoid an error.
8102   Use char because int might match the return type of a GCC
8103   builtin and then its argument prototype would still apply.  */
8104#ifdef __cplusplus
8105extern "C"
8106#endif
8107char __gmpn_sub_1 ();
8108int
8109main ()
8110{
8111return __gmpn_sub_1 ();
8112  ;
8113  return 0;
8114}
8115_ACEOF
8116if ac_fn_c_try_link "$LINENO"; then :
8117  ac_cv_lib_gmp___gmpn_sub_1=yes
8118else
8119  ac_cv_lib_gmp___gmpn_sub_1=no
8120fi
8121rm -f core conftest.err conftest.$ac_objext \
8122    conftest$ac_exeext conftest.$ac_ext
8123LIBS=$ac_check_lib_save_LIBS
8124fi
8125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpn_sub_1" >&5
8126$as_echo "$ac_cv_lib_gmp___gmpn_sub_1" >&6; }
8127if test "x$ac_cv_lib_gmp___gmpn_sub_1" = xyes; then :
8128  cat >>confdefs.h <<_ACEOF
8129#define HAVE_LIBGMP 1
8130_ACEOF
8131
8132  LIBS="-lgmp $LIBS"
8133
8134else
8135  GMP_ERROR=1
8136fi
8137
8138      if test "X_$GMP_ERROR" = "X_1" ; then
8139         echo CGAL requires libgmp 1>&2
8140         exit 1
8141      fi
8142      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpfr_set in -lmpfr" >&5
8143$as_echo_n "checking for mpfr_set in -lmpfr... " >&6; }
8144if ${ac_cv_lib_mpfr_mpfr_set+:} false; then :
8145  $as_echo_n "(cached) " >&6
8146else
8147  ac_check_lib_save_LIBS=$LIBS
8148LIBS="-lmpfr  $LIBS"
8149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8150/* end confdefs.h.  */
8151
8152/* Override any GCC internal prototype to avoid an error.
8153   Use char because int might match the return type of a GCC
8154   builtin and then its argument prototype would still apply.  */
8155#ifdef __cplusplus
8156extern "C"
8157#endif
8158char mpfr_set ();
8159int
8160main ()
8161{
8162return mpfr_set ();
8163  ;
8164  return 0;
8165}
8166_ACEOF
8167if ac_fn_c_try_link "$LINENO"; then :
8168  ac_cv_lib_mpfr_mpfr_set=yes
8169else
8170  ac_cv_lib_mpfr_mpfr_set=no
8171fi
8172rm -f core conftest.err conftest.$ac_objext \
8173    conftest$ac_exeext conftest.$ac_ext
8174LIBS=$ac_check_lib_save_LIBS
8175fi
8176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpfr_mpfr_set" >&5
8177$as_echo "$ac_cv_lib_mpfr_mpfr_set" >&6; }
8178if test "x$ac_cv_lib_mpfr_mpfr_set" = xyes; then :
8179  cat >>confdefs.h <<_ACEOF
8180#define HAVE_LIBMPFR 1
8181_ACEOF
8182
8183  LIBS="-lmpfr $LIBS"
8184
8185else
8186  MPFR_ERROR=1
8187fi
8188
8189      if test "X_$MPFR_ERROR" = "X_1" ; then
8190        echo CGAL requires libmpfr 1>&2
8191        exit 1
8192      fi
8193      if test "X_$DEBIAN" = "X_" ; then
8194        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libboost_thread" >&5
8195$as_echo_n "checking for libboost_thread... " >&6; }
8196        ac_ext=cpp
8197ac_cpp='$CXXCPP $CPPFLAGS'
8198ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8199ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8200ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8201
8202        SAVE_LIBS="$LIBS"
8203        LIBS="$LIBS -lboost_thread"
8204        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205/* end confdefs.h.  */
8206
8207int
8208main ()
8209{
8210;
8211  ;
8212  return 0;
8213}
8214_ACEOF
8215if ac_fn_cxx_try_link "$LINENO"; then :
8216
8217else
8218  BOOST_THREAD_ERROR=1
8219fi
8220rm -f core conftest.err conftest.$ac_objext \
8221    conftest$ac_exeext conftest.$ac_ext
8222        ac_ext=c
8223ac_cpp='$CPP $CPPFLAGS'
8224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8226ac_compiler_gnu=$ac_cv_c_compiler_gnu
8227
8228        if test "X_$BOOST_THREAD_ERROR" == "X_1"; then
8229          msg=no
8230          LIBS="$SAVE_LIBS"
8231        else
8232          msg=yes
8233        fi
8234        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
8235$as_echo "$msg" >&6; }
8236        if test "X_$BOOST_THREAD_ERROR" = "X_1" ; then
8237          echo CGAL may require libboost_thread 1>&2
8238        fi
8239        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libboost_system" >&5
8240$as_echo_n "checking for libboost_system... " >&6; }
8241        ac_ext=cpp
8242ac_cpp='$CXXCPP $CPPFLAGS'
8243ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8244ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8245ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8246
8247        SAVE_LIBS="$LIBS"
8248        LIBS="$LIBS -lboost_system"
8249        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8250/* end confdefs.h.  */
8251
8252int
8253main ()
8254{
8255;
8256  ;
8257  return 0;
8258}
8259_ACEOF
8260if ac_fn_cxx_try_link "$LINENO"; then :
8261
8262else
8263  BOOST_SYSTEM_ERROR=1
8264fi
8265rm -f core conftest.err conftest.$ac_objext \
8266    conftest$ac_exeext conftest.$ac_ext
8267        ac_ext=c
8268ac_cpp='$CPP $CPPFLAGS'
8269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8271ac_compiler_gnu=$ac_cv_c_compiler_gnu
8272
8273        if test "X_$BOOST_SYSTEM_ERROR" == "X_1"; then
8274          msg=no
8275          LIBS="$SAVE_LIBS"
8276        else
8277          msg=yes
8278        fi
8279        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
8280$as_echo "$msg" >&6; }
8281        if test "X_$BOOST_SYSTEM_ERROR" = "X_1" ; then
8282          echo CGAL may require libboost_system 1>&2
8283        fi
8284      fi
8285    fi
8286  fi
8287else
8288  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpn_sub_1 in -lgmp" >&5
8289$as_echo_n "checking for __gmpn_sub_1 in -lgmp... " >&6; }
8290if ${ac_cv_lib_gmp___gmpn_sub_1+:} false; then :
8291  $as_echo_n "(cached) " >&6
8292else
8293  ac_check_lib_save_LIBS=$LIBS
8294LIBS="-lgmp  $LIBS"
8295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8296/* end confdefs.h.  */
8297
8298/* Override any GCC internal prototype to avoid an error.
8299   Use char because int might match the return type of a GCC
8300   builtin and then its argument prototype would still apply.  */
8301#ifdef __cplusplus
8302extern "C"
8303#endif
8304char __gmpn_sub_1 ();
8305int
8306main ()
8307{
8308return __gmpn_sub_1 ();
8309  ;
8310  return 0;
8311}
8312_ACEOF
8313if ac_fn_c_try_link "$LINENO"; then :
8314  ac_cv_lib_gmp___gmpn_sub_1=yes
8315else
8316  ac_cv_lib_gmp___gmpn_sub_1=no
8317fi
8318rm -f core conftest.err conftest.$ac_objext \
8319    conftest$ac_exeext conftest.$ac_ext
8320LIBS=$ac_check_lib_save_LIBS
8321fi
8322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpn_sub_1" >&5
8323$as_echo "$ac_cv_lib_gmp___gmpn_sub_1" >&6; }
8324if test "x$ac_cv_lib_gmp___gmpn_sub_1" = xyes; then :
8325  cat >>confdefs.h <<_ACEOF
8326#define HAVE_LIBGMP 1
8327_ACEOF
8328
8329  LIBS="-lgmp $LIBS"
8330
8331else
8332  GMP_ERROR=1
8333fi
8334
8335  if test "X_$GMP_ERROR" = "X_1" ; then
8336    echo CGAL requires libgmp 1>&2
8337    exit 1
8338  fi
8339  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpfr_set in -lmpfr" >&5
8340$as_echo_n "checking for mpfr_set in -lmpfr... " >&6; }
8341if ${ac_cv_lib_mpfr_mpfr_set+:} false; then :
8342  $as_echo_n "(cached) " >&6
8343else
8344  ac_check_lib_save_LIBS=$LIBS
8345LIBS="-lmpfr  $LIBS"
8346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8347/* end confdefs.h.  */
8348
8349/* Override any GCC internal prototype to avoid an error.
8350   Use char because int might match the return type of a GCC
8351   builtin and then its argument prototype would still apply.  */
8352#ifdef __cplusplus
8353extern "C"
8354#endif
8355char mpfr_set ();
8356int
8357main ()
8358{
8359return mpfr_set ();
8360  ;
8361  return 0;
8362}
8363_ACEOF
8364if ac_fn_c_try_link "$LINENO"; then :
8365  ac_cv_lib_mpfr_mpfr_set=yes
8366else
8367  ac_cv_lib_mpfr_mpfr_set=no
8368fi
8369rm -f core conftest.err conftest.$ac_objext \
8370    conftest$ac_exeext conftest.$ac_ext
8371LIBS=$ac_check_lib_save_LIBS
8372fi
8373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpfr_mpfr_set" >&5
8374$as_echo "$ac_cv_lib_mpfr_mpfr_set" >&6; }
8375if test "x$ac_cv_lib_mpfr_mpfr_set" = xyes; then :
8376  cat >>confdefs.h <<_ACEOF
8377#define HAVE_LIBMPFR 1
8378_ACEOF
8379
8380  LIBS="-lmpfr $LIBS"
8381
8382else
8383  MPFR_ERROR=1
8384fi
8385
8386  if test "X_$MPFR_ERROR" = "X_1" ; then
8387     echo CGAL requires libmpfr 1>&2
8388     exit 1
8389  fi
8390fi
8391
8392ac_ext=cpp
8393ac_cpp='$CXXCPP $CPPFLAGS'
8394ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8395ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8396ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8397
8398
8399ac_fn_cxx_check_header_mongrel "$LINENO" "opensubdiv/far/topologyRefiner.h" "ac_cv_header_opensubdiv_far_topologyRefiner_h" "$ac_includes_default"
8400if test "x$ac_cv_header_opensubdiv_far_topologyRefiner_h" = xyes; then :
8401
8402else
8403  OPENSUBDIV_ERROR=1
8404fi
8405
8406
8407ac_ext=c
8408ac_cpp='$CPP $CPPFLAGS'
8409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8411ac_compiler_gnu=$ac_cv_c_compiler_gnu
8412
8413if test "X_OPENSUBDIV_ERROR" = "X_1" ; then
8414
8415cat 1>&2 << EOF
8416
8417 *** couldn't find a working OpenSubdiv development system ***
8418
8419 if OpenSubdiv is not available, the subdivide function is limited
8420
8421EOF
8422
8423fi
8424
8425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSubdiv CPU library" >&5
8426$as_echo_n "checking for OpenSubdiv CPU library... " >&6; }
8427ac_ext=cpp
8428ac_cpp='$CXXCPP $CPPFLAGS'
8429ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8430ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8431ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8432
8433SAVE_LIBS="$LIBS"
8434LIBS="$LIBS -losdCPU"
8435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436/* end confdefs.h.  */
8437
8438int
8439main ()
8440{
8441;
8442  ;
8443  return 0;
8444}
8445_ACEOF
8446if ac_fn_cxx_try_link "$LINENO"; then :
8447
8448else
8449  OPENSUBDIV_ERROR=1
8450fi
8451rm -f core conftest.err conftest.$ac_objext \
8452    conftest$ac_exeext conftest.$ac_ext
8453ac_ext=c
8454ac_cpp='$CPP $CPPFLAGS'
8455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8457ac_compiler_gnu=$ac_cv_c_compiler_gnu
8458
8459if test "X_$OPENSUBDIV_ERROR" = "X_1" ; then
8460  echo no
8461  LIBS="$SAVE_LIBS"
8462  cat 1>&2 << EOF
8463
8464 *** couldn't find a working OpenSubdiv development system ***
8465
8466 if OpenSubdiv is not available, the subdivide functions are limited
8467
8468EOF
8469else
8470 $as_echo "#define HAVE_LIBOSDCPU 1" >>confdefs.h
8471
8472 echo yes
8473fi
8474
8475ac_ext=cpp
8476ac_cpp='$CXXCPP $CPPFLAGS'
8477ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8478ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8479ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8480
8481ac_fn_cxx_check_header_mongrel "$LINENO" "vcg/complex/complex.h" "ac_cv_header_vcg_complex_complex_h" "$ac_includes_default"
8482if test "x$ac_cv_header_vcg_complex_complex_h" = xyes; then :
8483
8484else
8485  VCG_ERROR=1
8486fi
8487
8488
8489ac_ext=c
8490ac_cpp='$CPP $CPPFLAGS'
8491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8493ac_compiler_gnu=$ac_cv_c_compiler_gnu
8494
8495if test "X_$VCG_ERROR" = "X_1" ; then
8496
8497 cat 1>&2 << EOF
8498
8499 *** couldn't find a working vcglib development system (headers ony) ***
8500
8501 if vcglib is not available, the polygon reducer function is not available
8502
8503EOF
8504
8505else
8506  VCG=yes
8507  $as_echo "#define HAVE_LIBVCG 1" >>confdefs.h
8508
8509fi
8510
8511if test "X_$OS" = "X_SunOS" ; then
8512  if (pkginfo | grep LessTif) ; then
8513  echo xxxxxxxxx Warning xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
8514  echo Solaris can deliver a doubtfull version of LessTif in /opt/sfw/LessTif
8515  echo e.g. 0.92.26
8516  echo
8517  echo if you click to a icon, but get no reaction, temporary deinstall
8518  echo the LessTif package and install a modern version of LessTif
8519  echo or use:
8520  echo
8521  echo rm -f config.cache
8522  echo  sh ./configure --with-buginlesstif
8523  echo xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
8524 fi
8525fi
8526ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/XInput.h" "ac_cv_header_X11_extensions_XInput_h" "$ac_includes_default"
8527if test "x$ac_cv_header_X11_extensions_XInput_h" = xyes; then :
8528  $as_echo "#define HAVE_XINPUT 1" >>confdefs.h
8529
8530fi
8531
8532
8533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
8534$as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
8535if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
8536  $as_echo_n "(cached) " >&6
8537else
8538  ac_check_lib_save_LIBS=$LIBS
8539LIBS="-lXi  $LIBS"
8540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8541/* end confdefs.h.  */
8542
8543/* Override any GCC internal prototype to avoid an error.
8544   Use char because int might match the return type of a GCC
8545   builtin and then its argument prototype would still apply.  */
8546#ifdef __cplusplus
8547extern "C"
8548#endif
8549char XOpenDevice ();
8550int
8551main ()
8552{
8553return XOpenDevice ();
8554  ;
8555  return 0;
8556}
8557_ACEOF
8558if ac_fn_c_try_link "$LINENO"; then :
8559  ac_cv_lib_Xi_XOpenDevice=yes
8560else
8561  ac_cv_lib_Xi_XOpenDevice=no
8562fi
8563rm -f core conftest.err conftest.$ac_objext \
8564    conftest$ac_exeext conftest.$ac_ext
8565LIBS=$ac_check_lib_save_LIBS
8566fi
8567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
8568$as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
8569if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
8570  cat >>confdefs.h <<_ACEOF
8571#define HAVE_LIBXI 1
8572_ACEOF
8573
8574  LIBS="-lXi $LIBS"
8575
8576fi
8577
8578
8579if test "X_$OS" = "X_Darwin" ; then
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcrypto" >&5
8581$as_echo_n "checking for libcrypto... " >&6; }
8582 SAVE_LIBS="$LIBS"
8583 LIBS="$LIBS /usr/lib/libcrypto.dylib"
8584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8585/* end confdefs.h.  */
8586
8587int
8588main ()
8589{
8590;
8591  ;
8592  return 0;
8593}
8594_ACEOF
8595if ac_fn_c_try_link "$LINENO"; then :
8596
8597else
8598  CRYPTO_ERROR=1
8599fi
8600rm -f core conftest.err conftest.$ac_objext \
8601    conftest$ac_exeext conftest.$ac_ext
8602 if test "X_$CRYPTO_ERROR" = "X_1" ; then
8603   echo no
8604   LIBS="$SAVE_LIBS"
8605   echo curl need libcrypto on mac 1>&2
8606 else
8607  echo yes
8608 fi
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssl" >&5
8610$as_echo_n "checking for libssl... " >&6; }
8611 SAVE_LIBS="$LIBS"
8612 LIBS="$LIBS /usr/lib/libssl.dylib"
8613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614/* end confdefs.h.  */
8615
8616int
8617main ()
8618{
8619;
8620  ;
8621  return 0;
8622}
8623_ACEOF
8624if ac_fn_c_try_link "$LINENO"; then :
8625
8626else
8627  SSL_ERROR=1
8628fi
8629rm -f core conftest.err conftest.$ac_objext \
8630    conftest$ac_exeext conftest.$ac_ext
8631 if test "X_$SSL_ERROR" = "X_1" ; then
8632   echo no
8633   LIBS="$SAVE_LIBS"
8634   echo curl need libssl,curl need it 1>&2
8635 else
8636  echo yes
8637 fi
8638fi
8639
8640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_global_init in -lcurl" >&5
8641$as_echo_n "checking for curl_global_init in -lcurl... " >&6; }
8642if ${ac_cv_lib_curl_curl_global_init+:} false; then :
8643  $as_echo_n "(cached) " >&6
8644else
8645  ac_check_lib_save_LIBS=$LIBS
8646LIBS="-lcurl  $LIBS"
8647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8648/* end confdefs.h.  */
8649
8650/* Override any GCC internal prototype to avoid an error.
8651   Use char because int might match the return type of a GCC
8652   builtin and then its argument prototype would still apply.  */
8653#ifdef __cplusplus
8654extern "C"
8655#endif
8656char curl_global_init ();
8657int
8658main ()
8659{
8660return curl_global_init ();
8661  ;
8662  return 0;
8663}
8664_ACEOF
8665if ac_fn_c_try_link "$LINENO"; then :
8666  ac_cv_lib_curl_curl_global_init=yes
8667else
8668  ac_cv_lib_curl_curl_global_init=no
8669fi
8670rm -f core conftest.err conftest.$ac_objext \
8671    conftest$ac_exeext conftest.$ac_ext
8672LIBS=$ac_check_lib_save_LIBS
8673fi
8674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_global_init" >&5
8675$as_echo "$ac_cv_lib_curl_curl_global_init" >&6; }
8676if test "x$ac_cv_lib_curl_curl_global_init" = xyes; then :
8677  cat >>confdefs.h <<_ACEOF
8678#define HAVE_LIBCURL 1
8679_ACEOF
8680
8681  LIBS="-lcurl $LIBS"
8682
8683else
8684  CURL_ERROR=1
8685fi
8686
8687if test "X_$CURL_ERROR" = "X_1" ; then
8688 echo "curl library not found, the downlad function is not available" 1>&2
8689fi
8690
8691
8692ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
8693if test "x$ac_cv_header_GL_gl_h" = xyes; then :
8694
8695else
8696  GL_ERROR=1
8697fi
8698
8699
8700ac_fn_c_check_header_mongrel "$LINENO" "GL/glu.h" "ac_cv_header_GL_glu_h" "$ac_includes_default"
8701if test "x$ac_cv_header_GL_glu_h" = xyes; then :
8702
8703else
8704  GLU_ERROR=1
8705fi
8706
8707
8708
8709if test "X_$GLU_ERROR" = "X_1" ; then
8710   echo "GLU Library header (part of OpenGL/Mesa) not found" 1>&2
8711   GL_ERROR=1
8712fi
8713
8714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLU_NURBS_TESSELLATOR" >&5
8715$as_echo_n "checking for GLU_NURBS_TESSELLATOR... " >&6; }
8716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8717/* end confdefs.h.  */
8718
8719
8720    #include <GL/glu.h>
8721
8722    GLUnurbsObj *theNurb;
8723    int main() {
8724        gluNurbsProperty(theNurb, GLU_NURBS_MODE, GLU_NURBS_TESSELLATOR);
8725        return 0;
8726    }
8727
8728
8729
8730
8731_ACEOF
8732if ac_fn_c_try_compile "$LINENO"; then :
8733  echo yes;$as_echo "#define HAVE_GLU_NURBS_TESSELLATOR 1" >>confdefs.h
8734
8735else
8736  echo no
8737fi
8738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8739
8740if test "X_$GL_ERROR" = "X_1" ; then
8741
8742 cat 1>&2 << EOF
8743
8744 *** couldn't find OpenGL develop file ***
8745
8746 This package will not compile without OpenGL.  If your OS does not
8747 support it natively you can use Mesa, the open source OpenGL workalike.
8748 Mesa is available for download from:
8749
8750	http://www.mesa3d.org/download.html
8751
8752EOF
8753 exit 1
8754
8755fi
8756
8757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBegin  in -lGL" >&5
8758$as_echo_n "checking for glBegin  in -lGL... " >&6; }
8759if ${ac_cv_lib_GL_glBegin_+:} false; then :
8760  $as_echo_n "(cached) " >&6
8761else
8762  ac_check_lib_save_LIBS=$LIBS
8763LIBS="-lGL  $LIBS"
8764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8765/* end confdefs.h.  */
8766
8767/* Override any GCC internal prototype to avoid an error.
8768   Use char because int might match the return type of a GCC
8769   builtin and then its argument prototype would still apply.  */
8770#ifdef __cplusplus
8771extern "C"
8772#endif
8773char glBegin  ();
8774int
8775main ()
8776{
8777return glBegin  ();
8778  ;
8779  return 0;
8780}
8781_ACEOF
8782if ac_fn_c_try_link "$LINENO"; then :
8783  ac_cv_lib_GL_glBegin_=yes
8784else
8785  ac_cv_lib_GL_glBegin_=no
8786fi
8787rm -f core conftest.err conftest.$ac_objext \
8788    conftest$ac_exeext conftest.$ac_ext
8789LIBS=$ac_check_lib_save_LIBS
8790fi
8791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glBegin_" >&5
8792$as_echo "$ac_cv_lib_GL_glBegin_" >&6; }
8793if test "x$ac_cv_lib_GL_glBegin_" = xyes; then :
8794  cat >>confdefs.h <<_ACEOF
8795#define HAVE_LIBGL 1
8796_ACEOF
8797
8798  LIBS="-lGL $LIBS"
8799
8800else
8801  GL_ERROR=1
8802fi
8803
8804if test "X_$GL_ERROR" = "X_1" ; then
8805   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBegin  in -lMesaGL" >&5
8806$as_echo_n "checking for glBegin  in -lMesaGL... " >&6; }
8807if ${ac_cv_lib_MesaGL_glBegin_+:} false; then :
8808  $as_echo_n "(cached) " >&6
8809else
8810  ac_check_lib_save_LIBS=$LIBS
8811LIBS="-lMesaGL  $LIBS"
8812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8813/* end confdefs.h.  */
8814
8815/* Override any GCC internal prototype to avoid an error.
8816   Use char because int might match the return type of a GCC
8817   builtin and then its argument prototype would still apply.  */
8818#ifdef __cplusplus
8819extern "C"
8820#endif
8821char glBegin  ();
8822int
8823main ()
8824{
8825return glBegin  ();
8826  ;
8827  return 0;
8828}
8829_ACEOF
8830if ac_fn_c_try_link "$LINENO"; then :
8831  ac_cv_lib_MesaGL_glBegin_=yes
8832else
8833  ac_cv_lib_MesaGL_glBegin_=no
8834fi
8835rm -f core conftest.err conftest.$ac_objext \
8836    conftest$ac_exeext conftest.$ac_ext
8837LIBS=$ac_check_lib_save_LIBS
8838fi
8839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_MesaGL_glBegin_" >&5
8840$as_echo "$ac_cv_lib_MesaGL_glBegin_" >&6; }
8841if test "x$ac_cv_lib_MesaGL_glBegin_" = xyes; then :
8842  GL_ERROR=0
8843fi
8844
8845fi
8846
8847for ac_func in glVertex3f
8848do :
8849  ac_fn_c_check_func "$LINENO" "glVertex3f" "ac_cv_func_glVertex3f"
8850if test "x$ac_cv_func_glVertex3f" = xyes; then :
8851  cat >>confdefs.h <<_ACEOF
8852#define HAVE_GLVERTEX3F 1
8853_ACEOF
8854
8855fi
8856done
8857
8858for ac_func in glFogCoordf
8859do :
8860  ac_fn_c_check_func "$LINENO" "glFogCoordf" "ac_cv_func_glFogCoordf"
8861if test "x$ac_cv_func_glFogCoordf" = xyes; then :
8862  cat >>confdefs.h <<_ACEOF
8863#define HAVE_GLFOGCOORDF 1
8864_ACEOF
8865
8866fi
8867done
8868
8869for ac_func in glDeleteTextures
8870do :
8871  ac_fn_c_check_func "$LINENO" "glDeleteTextures" "ac_cv_func_glDeleteTextures"
8872if test "x$ac_cv_func_glDeleteTextures" = xyes; then :
8873  cat >>confdefs.h <<_ACEOF
8874#define HAVE_GLDELETETEXTURES 1
8875_ACEOF
8876
8877fi
8878done
8879
8880for ac_func in glGenTextures
8881do :
8882  ac_fn_c_check_func "$LINENO" "glGenTextures" "ac_cv_func_glGenTextures"
8883if test "x$ac_cv_func_glGenTextures" = xyes; then :
8884  cat >>confdefs.h <<_ACEOF
8885#define HAVE_GLGENTEXTURES 1
8886_ACEOF
8887
8888fi
8889done
8890
8891for ac_func in glBindTexture
8892do :
8893  ac_fn_c_check_func "$LINENO" "glBindTexture" "ac_cv_func_glBindTexture"
8894if test "x$ac_cv_func_glBindTexture" = xyes; then :
8895  cat >>confdefs.h <<_ACEOF
8896#define HAVE_GLBINDTEXTURE 1
8897_ACEOF
8898
8899fi
8900done
8901
8902for ac_func in glActiveTexture
8903do :
8904  ac_fn_c_check_func "$LINENO" "glActiveTexture" "ac_cv_func_glActiveTexture"
8905if test "x$ac_cv_func_glActiveTexture" = xyes; then :
8906  cat >>confdefs.h <<_ACEOF
8907#define HAVE_GLACTIVETEXTURE 1
8908_ACEOF
8909
8910fi
8911done
8912
8913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluProject  in -lGLU" >&5
8914$as_echo_n "checking for gluProject  in -lGLU... " >&6; }
8915if ${ac_cv_lib_GLU_gluProject_+:} false; then :
8916  $as_echo_n "(cached) " >&6
8917else
8918  ac_check_lib_save_LIBS=$LIBS
8919LIBS="-lGLU  $LIBS"
8920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8921/* end confdefs.h.  */
8922
8923/* Override any GCC internal prototype to avoid an error.
8924   Use char because int might match the return type of a GCC
8925   builtin and then its argument prototype would still apply.  */
8926#ifdef __cplusplus
8927extern "C"
8928#endif
8929char gluProject  ();
8930int
8931main ()
8932{
8933return gluProject  ();
8934  ;
8935  return 0;
8936}
8937_ACEOF
8938if ac_fn_c_try_link "$LINENO"; then :
8939  ac_cv_lib_GLU_gluProject_=yes
8940else
8941  ac_cv_lib_GLU_gluProject_=no
8942fi
8943rm -f core conftest.err conftest.$ac_objext \
8944    conftest$ac_exeext conftest.$ac_ext
8945LIBS=$ac_check_lib_save_LIBS
8946fi
8947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluProject_" >&5
8948$as_echo "$ac_cv_lib_GLU_gluProject_" >&6; }
8949if test "x$ac_cv_lib_GLU_gluProject_" = xyes; then :
8950  cat >>confdefs.h <<_ACEOF
8951#define HAVE_LIBGLU 1
8952_ACEOF
8953
8954  LIBS="-lGLU $LIBS"
8955
8956else
8957  GLU_ERROR=1
8958fi
8959
8960if test "X_$GLU_ERROR" = "X_1" ; then
8961   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluProject  in -lMesaGLU" >&5
8962$as_echo_n "checking for gluProject  in -lMesaGLU... " >&6; }
8963if ${ac_cv_lib_MesaGLU_gluProject_+:} false; then :
8964  $as_echo_n "(cached) " >&6
8965else
8966  ac_check_lib_save_LIBS=$LIBS
8967LIBS="-lMesaGLU  $LIBS"
8968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8969/* end confdefs.h.  */
8970
8971/* Override any GCC internal prototype to avoid an error.
8972   Use char because int might match the return type of a GCC
8973   builtin and then its argument prototype would still apply.  */
8974#ifdef __cplusplus
8975extern "C"
8976#endif
8977char gluProject  ();
8978int
8979main ()
8980{
8981return gluProject  ();
8982  ;
8983  return 0;
8984}
8985_ACEOF
8986if ac_fn_c_try_link "$LINENO"; then :
8987  ac_cv_lib_MesaGLU_gluProject_=yes
8988else
8989  ac_cv_lib_MesaGLU_gluProject_=no
8990fi
8991rm -f core conftest.err conftest.$ac_objext \
8992    conftest$ac_exeext conftest.$ac_ext
8993LIBS=$ac_check_lib_save_LIBS
8994fi
8995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_MesaGLU_gluProject_" >&5
8996$as_echo "$ac_cv_lib_MesaGLU_gluProject_" >&6; }
8997if test "x$ac_cv_lib_MesaGLU_gluProject_" = xyes; then :
8998  GLU_ERROR=0
8999fi
9000
9001fi
9002
9003if test "X_$GLU_ERROR" = "X_1" ; then
9004   echo "GLU library (part of OpenGL/Mesa) problem"
9005   GL_ERROR=1
9006fi
9007
9008if test "X_$GL_ERROR" = "X_1" ; then
9009
9010 cat 1>&2 << EOF
9011
9012 *** OpenGL library problem ***
9013
9014 This package will not compile without a working OpenGL development system.
9015
9016 Inspect the config.log file to find out, what part of the OpenGL
9017 development system is not available/working.
9018
9019 If your OS does not support it natively you can use Mesa, the open source
9020 OpenGL workalike.
9021 Mesa is available for download from:
9022
9023	http://www.mesa3d.org/download.html
9024
9025EOF
9026 exit 1
9027
9028fi
9029
9030for ac_func in gluNewTess
9031do :
9032  ac_fn_c_check_func "$LINENO" "gluNewTess" "ac_cv_func_gluNewTess"
9033if test "x$ac_cv_func_gluNewTess" = xyes; then :
9034  cat >>confdefs.h <<_ACEOF
9035#define HAVE_GLUNEWTESS 1
9036_ACEOF
9037
9038fi
9039done
9040
9041
9042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _GLUfuncptr" >&5
9043$as_echo_n "checking for _GLUfuncptr... " >&6; }
9044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9045/* end confdefs.h.  */
9046
9047              #include "GL/gl.h"
9048              #include "GL/glu.h"
9049              static void Callback(GLenum type, void *data)
9050                 {}
9051              void test_GLUfuncptr(void) {
9052                   GLUtesselator *tess=0;
9053                   gluTessCallback(tess, GLU_TESS_BEGIN_DATA,
9054		                   (_GLUfuncptr)0);
9055
9056                   }
9057
9058int
9059main ()
9060{
9061
9062             /* dummy */
9063
9064  ;
9065  return 0;
9066}
9067_ACEOF
9068if ac_fn_c_try_link "$LINENO"; then :
9069  echo  yes;$as_echo "#define HAVE_GLU_FUNC_PTR 1" >>confdefs.h
9070
9071else
9072  echo  no
9073
9074fi
9075rm -f core conftest.err conftest.$ac_objext \
9076    conftest$ac_exeext conftest.$ac_ext
9077
9078
9079if test "X_$HAVE_WANT_OSMESA" = "yes" ; then
9080   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSMesaMakeCurrent in -lOSMesa" >&5
9081$as_echo_n "checking for OSMesaMakeCurrent in -lOSMesa... " >&6; }
9082if ${ac_cv_lib_OSMesa_OSMesaMakeCurrent+:} false; then :
9083  $as_echo_n "(cached) " >&6
9084else
9085  ac_check_lib_save_LIBS=$LIBS
9086LIBS="-lOSMesa  $LIBS"
9087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088/* end confdefs.h.  */
9089
9090/* Override any GCC internal prototype to avoid an error.
9091   Use char because int might match the return type of a GCC
9092   builtin and then its argument prototype would still apply.  */
9093#ifdef __cplusplus
9094extern "C"
9095#endif
9096char OSMesaMakeCurrent ();
9097int
9098main ()
9099{
9100return OSMesaMakeCurrent ();
9101  ;
9102  return 0;
9103}
9104_ACEOF
9105if ac_fn_c_try_link "$LINENO"; then :
9106  ac_cv_lib_OSMesa_OSMesaMakeCurrent=yes
9107else
9108  ac_cv_lib_OSMesa_OSMesaMakeCurrent=no
9109fi
9110rm -f core conftest.err conftest.$ac_objext \
9111    conftest$ac_exeext conftest.$ac_ext
9112LIBS=$ac_check_lib_save_LIBS
9113fi
9114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OSMesa_OSMesaMakeCurrent" >&5
9115$as_echo "$ac_cv_lib_OSMesa_OSMesaMakeCurrent" >&6; }
9116if test "x$ac_cv_lib_OSMesa_OSMesaMakeCurrent" = xyes; then :
9117  cat >>confdefs.h <<_ACEOF
9118#define HAVE_LIBOSMESA 1
9119_ACEOF
9120
9121  LIBS="-lOSMesa $LIBS"
9122
9123fi
9124
9125   for ac_func in OSMesaCreateContext
9126do :
9127  ac_fn_c_check_func "$LINENO" "OSMesaCreateContext" "ac_cv_func_OSMesaCreateContext"
9128if test "x$ac_cv_func_OSMesaCreateContext" = xyes; then :
9129  cat >>confdefs.h <<_ACEOF
9130#define HAVE_OSMESACREATECONTEXT 1
9131_ACEOF
9132
9133fi
9134done
9135
9136   for ac_func in OSMesaCreateContextExt
9137do :
9138  ac_fn_c_check_func "$LINENO" "OSMesaCreateContextExt" "ac_cv_func_OSMesaCreateContextExt"
9139if test "x$ac_cv_func_OSMesaCreateContextExt" = xyes; then :
9140  cat >>confdefs.h <<_ACEOF
9141#define HAVE_OSMESACREATECONTEXTEXT 1
9142_ACEOF
9143
9144fi
9145done
9146
9147fi
9148
9149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
9150$as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
9151if ${ac_cv_lib_expat_XML_ParserCreate+:} false; then :
9152  $as_echo_n "(cached) " >&6
9153else
9154  ac_check_lib_save_LIBS=$LIBS
9155LIBS="-lexpat  $LIBS"
9156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9157/* end confdefs.h.  */
9158
9159/* Override any GCC internal prototype to avoid an error.
9160   Use char because int might match the return type of a GCC
9161   builtin and then its argument prototype would still apply.  */
9162#ifdef __cplusplus
9163extern "C"
9164#endif
9165char XML_ParserCreate ();
9166int
9167main ()
9168{
9169return XML_ParserCreate ();
9170  ;
9171  return 0;
9172}
9173_ACEOF
9174if ac_fn_c_try_link "$LINENO"; then :
9175  ac_cv_lib_expat_XML_ParserCreate=yes
9176else
9177  ac_cv_lib_expat_XML_ParserCreate=no
9178fi
9179rm -f core conftest.err conftest.$ac_objext \
9180    conftest$ac_exeext conftest.$ac_ext
9181LIBS=$ac_check_lib_save_LIBS
9182fi
9183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
9184$as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
9185if test "x$ac_cv_lib_expat_XML_ParserCreate" = xyes; then :
9186  cat >>confdefs.h <<_ACEOF
9187#define HAVE_LIBEXPAT 1
9188_ACEOF
9189
9190  LIBS="-lexpat $LIBS"
9191
9192else
9193  EXPAT_ERROR=1
9194fi
9195
9196if test "X_$EXPAT_ERROR" = "X_1" ; then
9197   cat 1>&2 << EOF
9198
9199*** couldn't find matching libexpat version, libexpat 2.0.1 would work ***
9200
9201Couldn't find libexpat, the XML parsing C library.
9202This is not a fatal error; the package will be simply built without
9203the possiblity to read XML encoded X3D files (ISO/IEC 19776-1).
9204It is recommended to add it, or download and install it from:
9205
9206	http://expat.sourceforge.net
9207
9208and re-run configure.
9209
9210EOF
9211   EXPAT_WARNING="no usable expat library: no parsing of XML encoded X3D (ISO/IEC 19776-1)"
9212else
9213   for ac_func in XML_StopParser
9214do :
9215  ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
9216if test "x$ac_cv_func_XML_StopParser" = xyes; then :
9217  cat >>confdefs.h <<_ACEOF
9218#define HAVE_XML_STOPPARSER 1
9219_ACEOF
9220
9221fi
9222done
9223
9224fi
9225
9226
9227if test "X_$LIBS_Z_PNG_JPEG" != "X_" ; then
9228   $as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
9229
9230   $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
9231
9232   $as_echo "#define HAVE_LIBJPEG 1" >>confdefs.h
9233
9234   LIBS="$LIBS_Z_PNG_JPEG $LIBS"
9235else
9236   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
9237$as_echo_n "checking for gzopen in -lz... " >&6; }
9238if ${ac_cv_lib_z_gzopen+:} false; then :
9239  $as_echo_n "(cached) " >&6
9240else
9241  ac_check_lib_save_LIBS=$LIBS
9242LIBS="-lz  $LIBS"
9243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9244/* end confdefs.h.  */
9245
9246/* Override any GCC internal prototype to avoid an error.
9247   Use char because int might match the return type of a GCC
9248   builtin and then its argument prototype would still apply.  */
9249#ifdef __cplusplus
9250extern "C"
9251#endif
9252char gzopen ();
9253int
9254main ()
9255{
9256return gzopen ();
9257  ;
9258  return 0;
9259}
9260_ACEOF
9261if ac_fn_c_try_link "$LINENO"; then :
9262  ac_cv_lib_z_gzopen=yes
9263else
9264  ac_cv_lib_z_gzopen=no
9265fi
9266rm -f core conftest.err conftest.$ac_objext \
9267    conftest$ac_exeext conftest.$ac_ext
9268LIBS=$ac_check_lib_save_LIBS
9269fi
9270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
9271$as_echo "$ac_cv_lib_z_gzopen" >&6; }
9272if test "x$ac_cv_lib_z_gzopen" = xyes; then :
9273  cat >>confdefs.h <<_ACEOF
9274#define HAVE_LIBZ 1
9275_ACEOF
9276
9277  LIBS="-lz $LIBS"
9278
9279else
9280  ZLIB_ERROR=1
9281fi
9282
9283   if test "X_$ZLIB_ERROR" = "X_1" ; then
9284      cat 1>&2 << EOF
9285
9286*** couldn't find working zlib (==libz) version, zlib 1.1.3 would work ***
9287
9288Couldn't find zlib(==libz) develop package.
9289zlib/libz is a library for lossless data-compression.
9290The package would simply built without support to open gz compressed VRML files,
9291but the png library also need zlib for linking.
9292
9293It is to recommended to add it, or download and install it from:
9294
9295	http://www.gzip.org/zlib/
9296
9297and re-run configure.
9298
9299EOF
9300      exit 1
9301   fi
9302
9303   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_init_io in -lpng" >&5
9304$as_echo_n "checking for png_init_io in -lpng... " >&6; }
9305if ${ac_cv_lib_png_png_init_io+:} false; then :
9306  $as_echo_n "(cached) " >&6
9307else
9308  ac_check_lib_save_LIBS=$LIBS
9309LIBS="-lpng  $LIBS"
9310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9311/* end confdefs.h.  */
9312
9313/* Override any GCC internal prototype to avoid an error.
9314   Use char because int might match the return type of a GCC
9315   builtin and then its argument prototype would still apply.  */
9316#ifdef __cplusplus
9317extern "C"
9318#endif
9319char png_init_io ();
9320int
9321main ()
9322{
9323return png_init_io ();
9324  ;
9325  return 0;
9326}
9327_ACEOF
9328if ac_fn_c_try_link "$LINENO"; then :
9329  ac_cv_lib_png_png_init_io=yes
9330else
9331  ac_cv_lib_png_png_init_io=no
9332fi
9333rm -f core conftest.err conftest.$ac_objext \
9334    conftest$ac_exeext conftest.$ac_ext
9335LIBS=$ac_check_lib_save_LIBS
9336fi
9337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_init_io" >&5
9338$as_echo "$ac_cv_lib_png_png_init_io" >&6; }
9339if test "x$ac_cv_lib_png_png_init_io" = xyes; then :
9340  cat >>confdefs.h <<_ACEOF
9341#define HAVE_LIBPNG 1
9342_ACEOF
9343
9344  LIBS="-lpng $LIBS"
9345
9346else
9347  PNG_ERROR=1
9348fi
9349
9350   if test "X_PNG_ERROR" = "X_1" ; then
9351      cat 1>&2 << EOF
9352
9353*** couldn't find working libpng version ***
9354
9355libjpeg is a library for rendering png images.
9356
9357It is recommended to add it, or download and install it from:
9358
9359	http://www.libpng.org/pub/png/libpng.html
9360
9361and re-run configure.
9362
9363EOF
9364     exit 1
9365   else
9366     $as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
9367
9368   fi
9369
9370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_start_decompress in -ljpeg" >&5
9371$as_echo_n "checking for jpeg_start_decompress in -ljpeg... " >&6; }
9372if ${ac_cv_lib_jpeg_jpeg_start_decompress+:} false; then :
9373  $as_echo_n "(cached) " >&6
9374else
9375  ac_check_lib_save_LIBS=$LIBS
9376LIBS="-ljpeg  $LIBS"
9377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9378/* end confdefs.h.  */
9379
9380/* Override any GCC internal prototype to avoid an error.
9381   Use char because int might match the return type of a GCC
9382   builtin and then its argument prototype would still apply.  */
9383#ifdef __cplusplus
9384extern "C"
9385#endif
9386char jpeg_start_decompress ();
9387int
9388main ()
9389{
9390return jpeg_start_decompress ();
9391  ;
9392  return 0;
9393}
9394_ACEOF
9395if ac_fn_c_try_link "$LINENO"; then :
9396  ac_cv_lib_jpeg_jpeg_start_decompress=yes
9397else
9398  ac_cv_lib_jpeg_jpeg_start_decompress=no
9399fi
9400rm -f core conftest.err conftest.$ac_objext \
9401    conftest$ac_exeext conftest.$ac_ext
9402LIBS=$ac_check_lib_save_LIBS
9403fi
9404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
9405$as_echo "$ac_cv_lib_jpeg_jpeg_start_decompress" >&6; }
9406if test "x$ac_cv_lib_jpeg_jpeg_start_decompress" = xyes; then :
9407  cat >>confdefs.h <<_ACEOF
9408#define HAVE_LIBJPEG 1
9409_ACEOF
9410
9411  LIBS="-ljpeg $LIBS"
9412
9413else
9414  JPEG_ERROR=1
9415fi
9416
9417   if test "X_$JPEG_ERROR" = "X_1" ; then
9418      cat 1>&2 << EOF
9419
9420*** couldn't find working jpeg library (libjpeg) version ***
9421
9422Couldn't find libjpeg develop package.
9423libjpeg is a library for rendering jpeg images.
9424
9425It is recommended to add it, or download and install it from:
9426
9427	http://libjpeg.sourceforge.net/
9428
9429and re-run configure.
9430
9431EOF
9432      exit 1
9433   else
9434      $as_echo "#define HAVE_LIBJPEG 1" >>confdefs.h
9435
9436   fi
9437
9438   if test "X_$HAVE_OLPC" = "X_1" ; then
9439      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ExpatVersion in -lexpat" >&5
9440$as_echo_n "checking for XML_ExpatVersion in -lexpat... " >&6; }
9441if ${ac_cv_lib_expat_XML_ExpatVersion+:} false; then :
9442  $as_echo_n "(cached) " >&6
9443else
9444  ac_check_lib_save_LIBS=$LIBS
9445LIBS="-lexpat  $LIBS"
9446cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9447/* end confdefs.h.  */
9448
9449/* Override any GCC internal prototype to avoid an error.
9450   Use char because int might match the return type of a GCC
9451   builtin and then its argument prototype would still apply.  */
9452#ifdef __cplusplus
9453extern "C"
9454#endif
9455char XML_ExpatVersion ();
9456int
9457main ()
9458{
9459return XML_ExpatVersion ();
9460  ;
9461  return 0;
9462}
9463_ACEOF
9464if ac_fn_c_try_link "$LINENO"; then :
9465  ac_cv_lib_expat_XML_ExpatVersion=yes
9466else
9467  ac_cv_lib_expat_XML_ExpatVersion=no
9468fi
9469rm -f core conftest.err conftest.$ac_objext \
9470    conftest$ac_exeext conftest.$ac_ext
9471LIBS=$ac_check_lib_save_LIBS
9472fi
9473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ExpatVersion" >&5
9474$as_echo "$ac_cv_lib_expat_XML_ExpatVersion" >&6; }
9475if test "x$ac_cv_lib_expat_XML_ExpatVersion" = xyes; then :
9476  cat >>confdefs.h <<_ACEOF
9477#define HAVE_LIBEXPAT 1
9478_ACEOF
9479
9480  LIBS="-lexpat $LIBS"
9481
9482fi
9483
9484      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Library_Version in -lfreetype" >&5
9485$as_echo_n "checking for FT_Library_Version in -lfreetype... " >&6; }
9486if ${ac_cv_lib_freetype_FT_Library_Version+:} false; then :
9487  $as_echo_n "(cached) " >&6
9488else
9489  ac_check_lib_save_LIBS=$LIBS
9490LIBS="-lfreetype  $LIBS"
9491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9492/* end confdefs.h.  */
9493
9494/* Override any GCC internal prototype to avoid an error.
9495   Use char because int might match the return type of a GCC
9496   builtin and then its argument prototype would still apply.  */
9497#ifdef __cplusplus
9498extern "C"
9499#endif
9500char FT_Library_Version ();
9501int
9502main ()
9503{
9504return FT_Library_Version ();
9505  ;
9506  return 0;
9507}
9508_ACEOF
9509if ac_fn_c_try_link "$LINENO"; then :
9510  ac_cv_lib_freetype_FT_Library_Version=yes
9511else
9512  ac_cv_lib_freetype_FT_Library_Version=no
9513fi
9514rm -f core conftest.err conftest.$ac_objext \
9515    conftest$ac_exeext conftest.$ac_ext
9516LIBS=$ac_check_lib_save_LIBS
9517fi
9518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Library_Version" >&5
9519$as_echo "$ac_cv_lib_freetype_FT_Library_Version" >&6; }
9520if test "x$ac_cv_lib_freetype_FT_Library_Version" = xyes; then :
9521  cat >>confdefs.h <<_ACEOF
9522#define HAVE_LIBFREETYPE 1
9523_ACEOF
9524
9525  LIBS="-lfreetype $LIBS"
9526
9527fi
9528
9529      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcGetVersion in -lfontconfig" >&5
9530$as_echo_n "checking for FcGetVersion in -lfontconfig... " >&6; }
9531if ${ac_cv_lib_fontconfig_FcGetVersion+:} false; then :
9532  $as_echo_n "(cached) " >&6
9533else
9534  ac_check_lib_save_LIBS=$LIBS
9535LIBS="-lfontconfig  $LIBS"
9536cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9537/* end confdefs.h.  */
9538
9539/* Override any GCC internal prototype to avoid an error.
9540   Use char because int might match the return type of a GCC
9541   builtin and then its argument prototype would still apply.  */
9542#ifdef __cplusplus
9543extern "C"
9544#endif
9545char FcGetVersion ();
9546int
9547main ()
9548{
9549return FcGetVersion ();
9550  ;
9551  return 0;
9552}
9553_ACEOF
9554if ac_fn_c_try_link "$LINENO"; then :
9555  ac_cv_lib_fontconfig_FcGetVersion=yes
9556else
9557  ac_cv_lib_fontconfig_FcGetVersion=no
9558fi
9559rm -f core conftest.err conftest.$ac_objext \
9560    conftest$ac_exeext conftest.$ac_ext
9561LIBS=$ac_check_lib_save_LIBS
9562fi
9563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcGetVersion" >&5
9564$as_echo "$ac_cv_lib_fontconfig_FcGetVersion" >&6; }
9565if test "x$ac_cv_lib_fontconfig_FcGetVersion" = xyes; then :
9566  cat >>confdefs.h <<_ACEOF
9567#define HAVE_LIBFONTCONFIG 1
9568_ACEOF
9569
9570  LIBS="-lfontconfig $LIBS"
9571
9572fi
9573
9574      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryVersion in -lXrender" >&5
9575$as_echo_n "checking for XRenderQueryVersion in -lXrender... " >&6; }
9576if ${ac_cv_lib_Xrender_XRenderQueryVersion+:} false; then :
9577  $as_echo_n "(cached) " >&6
9578else
9579  ac_check_lib_save_LIBS=$LIBS
9580LIBS="-lXrender  $LIBS"
9581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9582/* end confdefs.h.  */
9583
9584/* Override any GCC internal prototype to avoid an error.
9585   Use char because int might match the return type of a GCC
9586   builtin and then its argument prototype would still apply.  */
9587#ifdef __cplusplus
9588extern "C"
9589#endif
9590char XRenderQueryVersion ();
9591int
9592main ()
9593{
9594return XRenderQueryVersion ();
9595  ;
9596  return 0;
9597}
9598_ACEOF
9599if ac_fn_c_try_link "$LINENO"; then :
9600  ac_cv_lib_Xrender_XRenderQueryVersion=yes
9601else
9602  ac_cv_lib_Xrender_XRenderQueryVersion=no
9603fi
9604rm -f core conftest.err conftest.$ac_objext \
9605    conftest$ac_exeext conftest.$ac_ext
9606LIBS=$ac_check_lib_save_LIBS
9607fi
9608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryVersion" >&5
9609$as_echo "$ac_cv_lib_Xrender_XRenderQueryVersion" >&6; }
9610if test "x$ac_cv_lib_Xrender_XRenderQueryVersion" = xyes; then :
9611  cat >>confdefs.h <<_ACEOF
9612#define HAVE_LIBXRENDER 1
9613_ACEOF
9614
9615  LIBS="-lXrender $LIBS"
9616
9617fi
9618
9619      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftGetVersion in -lXft" >&5
9620$as_echo_n "checking for XftGetVersion in -lXft... " >&6; }
9621if ${ac_cv_lib_Xft_XftGetVersion+:} false; then :
9622  $as_echo_n "(cached) " >&6
9623else
9624  ac_check_lib_save_LIBS=$LIBS
9625LIBS="-lXft  $LIBS"
9626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9627/* end confdefs.h.  */
9628
9629/* Override any GCC internal prototype to avoid an error.
9630   Use char because int might match the return type of a GCC
9631   builtin and then its argument prototype would still apply.  */
9632#ifdef __cplusplus
9633extern "C"
9634#endif
9635char XftGetVersion ();
9636int
9637main ()
9638{
9639return XftGetVersion ();
9640  ;
9641  return 0;
9642}
9643_ACEOF
9644if ac_fn_c_try_link "$LINENO"; then :
9645  ac_cv_lib_Xft_XftGetVersion=yes
9646else
9647  ac_cv_lib_Xft_XftGetVersion=no
9648fi
9649rm -f core conftest.err conftest.$ac_objext \
9650    conftest$ac_exeext conftest.$ac_ext
9651LIBS=$ac_check_lib_save_LIBS
9652fi
9653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftGetVersion" >&5
9654$as_echo "$ac_cv_lib_Xft_XftGetVersion" >&6; }
9655if test "x$ac_cv_lib_Xft_XftGetVersion" = xyes; then :
9656  cat >>confdefs.h <<_ACEOF
9657#define HAVE_LIBXFT 1
9658_ACEOF
9659
9660  LIBS="-lXft $LIBS"
9661
9662fi
9663
9664   fi
9665
9666   if test "X_$DEVIL" != "X_no" ; then
9667      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ilInit  in -lIL" >&5
9668$as_echo_n "checking for ilInit  in -lIL... " >&6; }
9669if ${ac_cv_lib_IL_ilInit_+:} false; then :
9670  $as_echo_n "(cached) " >&6
9671else
9672  ac_check_lib_save_LIBS=$LIBS
9673LIBS="-lIL  $LIBS"
9674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9675/* end confdefs.h.  */
9676
9677/* Override any GCC internal prototype to avoid an error.
9678   Use char because int might match the return type of a GCC
9679   builtin and then its argument prototype would still apply.  */
9680#ifdef __cplusplus
9681extern "C"
9682#endif
9683char ilInit  ();
9684int
9685main ()
9686{
9687return ilInit  ();
9688  ;
9689  return 0;
9690}
9691_ACEOF
9692if ac_fn_c_try_link "$LINENO"; then :
9693  ac_cv_lib_IL_ilInit_=yes
9694else
9695  ac_cv_lib_IL_ilInit_=no
9696fi
9697rm -f core conftest.err conftest.$ac_objext \
9698    conftest$ac_exeext conftest.$ac_ext
9699LIBS=$ac_check_lib_save_LIBS
9700fi
9701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_IL_ilInit_" >&5
9702$as_echo "$ac_cv_lib_IL_ilInit_" >&6; }
9703if test "x$ac_cv_lib_IL_ilInit_" = xyes; then :
9704  cat >>confdefs.h <<_ACEOF
9705#define HAVE_LIBIL 1
9706_ACEOF
9707
9708  LIBS="-lIL $LIBS"
9709
9710else
9711  HAVE_IL=no
9712fi
9713
9714
9715      if test "X_$HAVE_IL" != "X_no" ; then
9716         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iluInit  in -lILU" >&5
9717$as_echo_n "checking for iluInit  in -lILU... " >&6; }
9718if ${ac_cv_lib_ILU_iluInit_+:} false; then :
9719  $as_echo_n "(cached) " >&6
9720else
9721  ac_check_lib_save_LIBS=$LIBS
9722LIBS="-lILU  $LIBS"
9723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9724/* end confdefs.h.  */
9725
9726/* Override any GCC internal prototype to avoid an error.
9727   Use char because int might match the return type of a GCC
9728   builtin and then its argument prototype would still apply.  */
9729#ifdef __cplusplus
9730extern "C"
9731#endif
9732char iluInit  ();
9733int
9734main ()
9735{
9736return iluInit  ();
9737  ;
9738  return 0;
9739}
9740_ACEOF
9741if ac_fn_c_try_link "$LINENO"; then :
9742  ac_cv_lib_ILU_iluInit_=yes
9743else
9744  ac_cv_lib_ILU_iluInit_=no
9745fi
9746rm -f core conftest.err conftest.$ac_objext \
9747    conftest$ac_exeext conftest.$ac_ext
9748LIBS=$ac_check_lib_save_LIBS
9749fi
9750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ILU_iluInit_" >&5
9751$as_echo "$ac_cv_lib_ILU_iluInit_" >&6; }
9752if test "x$ac_cv_lib_ILU_iluInit_" = xyes; then :
9753  cat >>confdefs.h <<_ACEOF
9754#define HAVE_LIBILU 1
9755_ACEOF
9756
9757  LIBS="-lILU $LIBS"
9758
9759else
9760  HAVE_ILU=no
9761fi
9762
9763         if test "X_$HAVE_ILU" != "X_no" ; then
9764            HAVE_ILU=yes
9765         fi
9766      fi
9767   fi
9768fi
9769
9770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_handle_unknown linking" >&5
9771$as_echo_n "checking for png_handle_unknown linking... " >&6; }
9772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9773/* end confdefs.h.  */
9774
9775              #include "png.h"
9776              #include <setjmp.h>
9777              void png_handle_unknown PNGARG((png_structp png_ptr,
9778                    png_infop info_ptr, png_uint_32 length))
9779                    { longjmp(NULL, 0); }
9780
9781int
9782main ()
9783{
9784
9785             /* dummy */
9786
9787  ;
9788  return 0;
9789}
9790_ACEOF
9791if ac_fn_c_try_link "$LINENO"; then :
9792  echo  yes
9793else
9794  echo  no;$as_echo "#define HAVE_NO_PNG_HANDLE_UNKNOWN 1" >>confdefs.h
9795
9796
9797fi
9798rm -f core conftest.err conftest.$ac_objext \
9799    conftest$ac_exeext conftest.$ac_ext
9800
9801if test "X_$FFMPEG" != "X_no" ; then
9802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_parser_init in -lavcodec" >&5
9803$as_echo_n "checking for av_parser_init in -lavcodec... " >&6; }
9804if ${ac_cv_lib_avcodec_av_parser_init+:} false; then :
9805  $as_echo_n "(cached) " >&6
9806else
9807  ac_check_lib_save_LIBS=$LIBS
9808LIBS="-lavcodec  $LIBS"
9809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9810/* end confdefs.h.  */
9811
9812/* Override any GCC internal prototype to avoid an error.
9813   Use char because int might match the return type of a GCC
9814   builtin and then its argument prototype would still apply.  */
9815#ifdef __cplusplus
9816extern "C"
9817#endif
9818char av_parser_init ();
9819int
9820main ()
9821{
9822return av_parser_init ();
9823  ;
9824  return 0;
9825}
9826_ACEOF
9827if ac_fn_c_try_link "$LINENO"; then :
9828  ac_cv_lib_avcodec_av_parser_init=yes
9829else
9830  ac_cv_lib_avcodec_av_parser_init=no
9831fi
9832rm -f core conftest.err conftest.$ac_objext \
9833    conftest$ac_exeext conftest.$ac_ext
9834LIBS=$ac_check_lib_save_LIBS
9835fi
9836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_av_parser_init" >&5
9837$as_echo "$ac_cv_lib_avcodec_av_parser_init" >&6; }
9838if test "x$ac_cv_lib_avcodec_av_parser_init" = xyes; then :
9839  cat >>confdefs.h <<_ACEOF
9840#define HAVE_LIBAVCODEC 1
9841_ACEOF
9842
9843  LIBS="-lavcodec $LIBS"
9844
9845else
9846  FFMPEG_ERROR=1
9847fi
9848
9849   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_expr_eval in -lavutil" >&5
9850$as_echo_n "checking for av_expr_eval in -lavutil... " >&6; }
9851if ${ac_cv_lib_avutil_av_expr_eval+:} false; then :
9852  $as_echo_n "(cached) " >&6
9853else
9854  ac_check_lib_save_LIBS=$LIBS
9855LIBS="-lavutil  $LIBS"
9856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9857/* end confdefs.h.  */
9858
9859/* Override any GCC internal prototype to avoid an error.
9860   Use char because int might match the return type of a GCC
9861   builtin and then its argument prototype would still apply.  */
9862#ifdef __cplusplus
9863extern "C"
9864#endif
9865char av_expr_eval ();
9866int
9867main ()
9868{
9869return av_expr_eval ();
9870  ;
9871  return 0;
9872}
9873_ACEOF
9874if ac_fn_c_try_link "$LINENO"; then :
9875  ac_cv_lib_avutil_av_expr_eval=yes
9876else
9877  ac_cv_lib_avutil_av_expr_eval=no
9878fi
9879rm -f core conftest.err conftest.$ac_objext \
9880    conftest$ac_exeext conftest.$ac_ext
9881LIBS=$ac_check_lib_save_LIBS
9882fi
9883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_av_expr_eval" >&5
9884$as_echo "$ac_cv_lib_avutil_av_expr_eval" >&6; }
9885if test "x$ac_cv_lib_avutil_av_expr_eval" = xyes; then :
9886  cat >>confdefs.h <<_ACEOF
9887#define HAVE_LIBAVUTIL 1
9888_ACEOF
9889
9890  LIBS="-lavutil $LIBS"
9891
9892else
9893  FFMPEG_ERROR=1
9894fi
9895
9896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avformat_configuration in -lavformat" >&5
9897$as_echo_n "checking for avformat_configuration in -lavformat... " >&6; }
9898if ${ac_cv_lib_avformat_avformat_configuration+:} false; then :
9899  $as_echo_n "(cached) " >&6
9900else
9901  ac_check_lib_save_LIBS=$LIBS
9902LIBS="-lavformat  $LIBS"
9903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9904/* end confdefs.h.  */
9905
9906/* Override any GCC internal prototype to avoid an error.
9907   Use char because int might match the return type of a GCC
9908   builtin and then its argument prototype would still apply.  */
9909#ifdef __cplusplus
9910extern "C"
9911#endif
9912char avformat_configuration ();
9913int
9914main ()
9915{
9916return avformat_configuration ();
9917  ;
9918  return 0;
9919}
9920_ACEOF
9921if ac_fn_c_try_link "$LINENO"; then :
9922  ac_cv_lib_avformat_avformat_configuration=yes
9923else
9924  ac_cv_lib_avformat_avformat_configuration=no
9925fi
9926rm -f core conftest.err conftest.$ac_objext \
9927    conftest$ac_exeext conftest.$ac_ext
9928LIBS=$ac_check_lib_save_LIBS
9929fi
9930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_avformat_configuration" >&5
9931$as_echo "$ac_cv_lib_avformat_avformat_configuration" >&6; }
9932if test "x$ac_cv_lib_avformat_avformat_configuration" = xyes; then :
9933  cat >>confdefs.h <<_ACEOF
9934#define HAVE_LIBAVFORMAT 1
9935_ACEOF
9936
9937  LIBS="-lavformat $LIBS"
9938
9939else
9940  FFMPEG_ERROR=1
9941fi
9942
9943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for swscale_configuration in -lswscale" >&5
9944$as_echo_n "checking for swscale_configuration in -lswscale... " >&6; }
9945if ${ac_cv_lib_swscale_swscale_configuration+:} false; then :
9946  $as_echo_n "(cached) " >&6
9947else
9948  ac_check_lib_save_LIBS=$LIBS
9949LIBS="-lswscale  $LIBS"
9950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9951/* end confdefs.h.  */
9952
9953/* Override any GCC internal prototype to avoid an error.
9954   Use char because int might match the return type of a GCC
9955   builtin and then its argument prototype would still apply.  */
9956#ifdef __cplusplus
9957extern "C"
9958#endif
9959char swscale_configuration ();
9960int
9961main ()
9962{
9963return swscale_configuration ();
9964  ;
9965  return 0;
9966}
9967_ACEOF
9968if ac_fn_c_try_link "$LINENO"; then :
9969  ac_cv_lib_swscale_swscale_configuration=yes
9970else
9971  ac_cv_lib_swscale_swscale_configuration=no
9972fi
9973rm -f core conftest.err conftest.$ac_objext \
9974    conftest$ac_exeext conftest.$ac_ext
9975LIBS=$ac_check_lib_save_LIBS
9976fi
9977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_swscale_configuration" >&5
9978$as_echo "$ac_cv_lib_swscale_swscale_configuration" >&6; }
9979if test "x$ac_cv_lib_swscale_swscale_configuration" = xyes; then :
9980  cat >>confdefs.h <<_ACEOF
9981#define HAVE_LIBSWSCALE 1
9982_ACEOF
9983
9984  LIBS="-lswscale $LIBS"
9985
9986else
9987  FFMPEG_ERROR=1
9988fi
9989
9990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for swr_init in -lswresample" >&5
9991$as_echo_n "checking for swr_init in -lswresample... " >&6; }
9992if ${ac_cv_lib_swresample_swr_init+:} false; then :
9993  $as_echo_n "(cached) " >&6
9994else
9995  ac_check_lib_save_LIBS=$LIBS
9996LIBS="-lswresample  $LIBS"
9997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9998/* end confdefs.h.  */
9999
10000/* Override any GCC internal prototype to avoid an error.
10001   Use char because int might match the return type of a GCC
10002   builtin and then its argument prototype would still apply.  */
10003#ifdef __cplusplus
10004extern "C"
10005#endif
10006char swr_init ();
10007int
10008main ()
10009{
10010return swr_init ();
10011  ;
10012  return 0;
10013}
10014_ACEOF
10015if ac_fn_c_try_link "$LINENO"; then :
10016  ac_cv_lib_swresample_swr_init=yes
10017else
10018  ac_cv_lib_swresample_swr_init=no
10019fi
10020rm -f core conftest.err conftest.$ac_objext \
10021    conftest$ac_exeext conftest.$ac_ext
10022LIBS=$ac_check_lib_save_LIBS
10023fi
10024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swresample_swr_init" >&5
10025$as_echo "$ac_cv_lib_swresample_swr_init" >&6; }
10026if test "x$ac_cv_lib_swresample_swr_init" = xyes; then :
10027  cat >>confdefs.h <<_ACEOF
10028#define HAVE_LIBSWRESAMPLE 1
10029_ACEOF
10030
10031  LIBS="-lswresample $LIBS"
10032
10033else
10034  FFMPEG_ERROR=1
10035fi
10036
10037   if test "X_$FFMPEG_ERROR" = "X_1" ; then
10038      cat 1>&2 << EOF
10039
10040*** couldn't find matching ffmpeg version ***
10041
10042Couldn't find ffmpeg, the movie library.
10043This is not a fatal error; the package will be simply built without
10044support to display MovieTexture.  It is recommended to add it, download and
10045install it from:
10046
10047	https://ffmpeg.org/
10048
10049and re-run configure.
10050The development version (-dev/-devel) of the following libraries are need:
10051libavcodec libavutil libavformat libswscale libswresample
10052
10053EOF
10054         FFMPEG_WARNING="no usable ffmpeg libraries: no rendering of MovieTexture"
10055         cat >>confdefs.h <<_ACEOF
10056#define HAVE_FFMPEG 0
10057_ACEOF
10058
10059   else
10060      $as_echo "#define HAVE_FFMPEG 1" >>confdefs.h
10061
10062   fi
10063fi
10064
10065ac_fn_c_check_header_mongrel "$LINENO" "linux/joystick.h" "ac_cv_header_linux_joystick_h" "$ac_includes_default"
10066if test "x$ac_cv_header_linux_joystick_h" = xyes; then :
10067  $as_echo "#define LINUX_JOYSTICK 1" >>confdefs.h
10068
10069fi
10070
10071
10072ac_fn_c_check_header_mongrel "$LINENO" "sball.h" "ac_cv_header_sball_h" "$ac_includes_default"
10073if test "x$ac_cv_header_sball_h" = xyes; then :
10074  SBALL_HEADER=yes;export SBALL_HEADER
10075fi
10076
10077
10078if test "X_$SBALL_HEADER" = "X_yes" ; then
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sball_open in -lsball" >&5
10080$as_echo_n "checking for sball_open in -lsball... " >&6; }
10081if ${ac_cv_lib_sball_sball_open+:} false; then :
10082  $as_echo_n "(cached) " >&6
10083else
10084  ac_check_lib_save_LIBS=$LIBS
10085LIBS="-lsball  $LIBS"
10086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10087/* end confdefs.h.  */
10088
10089/* Override any GCC internal prototype to avoid an error.
10090   Use char because int might match the return type of a GCC
10091   builtin and then its argument prototype would still apply.  */
10092#ifdef __cplusplus
10093extern "C"
10094#endif
10095char sball_open ();
10096int
10097main ()
10098{
10099return sball_open ();
10100  ;
10101  return 0;
10102}
10103_ACEOF
10104if ac_fn_c_try_link "$LINENO"; then :
10105  ac_cv_lib_sball_sball_open=yes
10106else
10107  ac_cv_lib_sball_sball_open=no
10108fi
10109rm -f core conftest.err conftest.$ac_objext \
10110    conftest$ac_exeext conftest.$ac_ext
10111LIBS=$ac_check_lib_save_LIBS
10112fi
10113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sball_sball_open" >&5
10114$as_echo "$ac_cv_lib_sball_sball_open" >&6; }
10115if test "x$ac_cv_lib_sball_sball_open" = xyes; then :
10116  cat >>confdefs.h <<_ACEOF
10117#define HAVE_LIBSBALL 1
10118_ACEOF
10119
10120  LIBS="-lsball $LIBS"
10121
10122fi
10123
10124fi
10125if test "X_$HAVE_WANT_USB" != "X_no" ; then
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_init in -lusb" >&5
10127$as_echo_n "checking for usb_init in -lusb... " >&6; }
10128if ${ac_cv_lib_usb_usb_init+:} false; then :
10129  $as_echo_n "(cached) " >&6
10130else
10131  ac_check_lib_save_LIBS=$LIBS
10132LIBS="-lusb  $LIBS"
10133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10134/* end confdefs.h.  */
10135
10136/* Override any GCC internal prototype to avoid an error.
10137   Use char because int might match the return type of a GCC
10138   builtin and then its argument prototype would still apply.  */
10139#ifdef __cplusplus
10140extern "C"
10141#endif
10142char usb_init ();
10143int
10144main ()
10145{
10146return usb_init ();
10147  ;
10148  return 0;
10149}
10150_ACEOF
10151if ac_fn_c_try_link "$LINENO"; then :
10152  ac_cv_lib_usb_usb_init=yes
10153else
10154  ac_cv_lib_usb_usb_init=no
10155fi
10156rm -f core conftest.err conftest.$ac_objext \
10157    conftest$ac_exeext conftest.$ac_ext
10158LIBS=$ac_check_lib_save_LIBS
10159fi
10160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_init" >&5
10161$as_echo "$ac_cv_lib_usb_usb_init" >&6; }
10162if test "x$ac_cv_lib_usb_usb_init" = xyes; then :
10163  cat >>confdefs.h <<_ACEOF
10164#define HAVE_LIBUSB 1
10165_ACEOF
10166
10167  LIBS="-lusb $LIBS"
10168
10169fi
10170
10171fi
10172
10173if test "X_$HAVE_WANT_EFENCE" = "X_yes" ; then
10174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Page_AllowAccess in -lefence" >&5
10175$as_echo_n "checking for Page_AllowAccess in -lefence... " >&6; }
10176if ${ac_cv_lib_efence_Page_AllowAccess+:} false; then :
10177  $as_echo_n "(cached) " >&6
10178else
10179  ac_check_lib_save_LIBS=$LIBS
10180LIBS="-lefence  $LIBS"
10181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10182/* end confdefs.h.  */
10183
10184/* Override any GCC internal prototype to avoid an error.
10185   Use char because int might match the return type of a GCC
10186   builtin and then its argument prototype would still apply.  */
10187#ifdef __cplusplus
10188extern "C"
10189#endif
10190char Page_AllowAccess ();
10191int
10192main ()
10193{
10194return Page_AllowAccess ();
10195  ;
10196  return 0;
10197}
10198_ACEOF
10199if ac_fn_c_try_link "$LINENO"; then :
10200  ac_cv_lib_efence_Page_AllowAccess=yes
10201else
10202  ac_cv_lib_efence_Page_AllowAccess=no
10203fi
10204rm -f core conftest.err conftest.$ac_objext \
10205    conftest$ac_exeext conftest.$ac_ext
10206LIBS=$ac_check_lib_save_LIBS
10207fi
10208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_Page_AllowAccess" >&5
10209$as_echo "$ac_cv_lib_efence_Page_AllowAccess" >&6; }
10210if test "x$ac_cv_lib_efence_Page_AllowAccess" = xyes; then :
10211  cat >>confdefs.h <<_ACEOF
10212#define HAVE_LIBEFENCE 1
10213_ACEOF
10214
10215  LIBS="-lefence $LIBS"
10216
10217fi
10218
10219fi
10220
10221if test "X_$HAVE_WANT_DUMA" = "X_yes" ; then
10222   // duma usually use the pthread library
10223   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_start_thread in -lpthread" >&5
10224$as_echo_n "checking for pthread_start_thread in -lpthread... " >&6; }
10225if ${ac_cv_lib_pthread_pthread_start_thread+:} false; then :
10226  $as_echo_n "(cached) " >&6
10227else
10228  ac_check_lib_save_LIBS=$LIBS
10229LIBS="-lpthread  $LIBS"
10230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10231/* end confdefs.h.  */
10232
10233/* Override any GCC internal prototype to avoid an error.
10234   Use char because int might match the return type of a GCC
10235   builtin and then its argument prototype would still apply.  */
10236#ifdef __cplusplus
10237extern "C"
10238#endif
10239char pthread_start_thread ();
10240int
10241main ()
10242{
10243return pthread_start_thread ();
10244  ;
10245  return 0;
10246}
10247_ACEOF
10248if ac_fn_c_try_link "$LINENO"; then :
10249  ac_cv_lib_pthread_pthread_start_thread=yes
10250else
10251  ac_cv_lib_pthread_pthread_start_thread=no
10252fi
10253rm -f core conftest.err conftest.$ac_objext \
10254    conftest$ac_exeext conftest.$ac_ext
10255LIBS=$ac_check_lib_save_LIBS
10256fi
10257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_start_thread" >&5
10258$as_echo "$ac_cv_lib_pthread_pthread_start_thread" >&6; }
10259if test "x$ac_cv_lib_pthread_pthread_start_thread" = xyes; then :
10260  cat >>confdefs.h <<_ACEOF
10261#define HAVE_LIBPTHREAD 1
10262_ACEOF
10263
10264  LIBS="-lpthread $LIBS"
10265
10266fi
10267
10268   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Page_AllowAccess in -lduma" >&5
10269$as_echo_n "checking for Page_AllowAccess in -lduma... " >&6; }
10270if ${ac_cv_lib_duma_Page_AllowAccess+:} false; then :
10271  $as_echo_n "(cached) " >&6
10272else
10273  ac_check_lib_save_LIBS=$LIBS
10274LIBS="-lduma  $LIBS"
10275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10276/* end confdefs.h.  */
10277
10278/* Override any GCC internal prototype to avoid an error.
10279   Use char because int might match the return type of a GCC
10280   builtin and then its argument prototype would still apply.  */
10281#ifdef __cplusplus
10282extern "C"
10283#endif
10284char Page_AllowAccess ();
10285int
10286main ()
10287{
10288return Page_AllowAccess ();
10289  ;
10290  return 0;
10291}
10292_ACEOF
10293if ac_fn_c_try_link "$LINENO"; then :
10294  ac_cv_lib_duma_Page_AllowAccess=yes
10295else
10296  ac_cv_lib_duma_Page_AllowAccess=no
10297fi
10298rm -f core conftest.err conftest.$ac_objext \
10299    conftest$ac_exeext conftest.$ac_ext
10300LIBS=$ac_check_lib_save_LIBS
10301fi
10302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_duma_Page_AllowAccess" >&5
10303$as_echo "$ac_cv_lib_duma_Page_AllowAccess" >&6; }
10304if test "x$ac_cv_lib_duma_Page_AllowAccess" = xyes; then :
10305  cat >>confdefs.h <<_ACEOF
10306#define HAVE_LIBDUMA 1
10307_ACEOF
10308
10309  LIBS="-lduma $LIBS"
10310
10311fi
10312
10313fi
10314
10315
10316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signal_handler(int)" >&5
10317$as_echo_n "checking for signal_handler(int)... " >&6; }
10318cat > /tmp/test_$$.cpp << EOT
10319#include <signal.h>
10320   void signal_fatal_handler(int sign){}
10321   int main(int argc,char** argv) {signal(1,&signal_fatal_handler);return 0;}
10322EOT
10323$CXX -o /tmp/a_$$.out /tmp/test_$$.cpp 2>/dev/null > /dev/null
10324RET=$?
10325if test "X_$RET" = "X_0" ;then
10326  $as_echo "#define HAVE_SIGNAL_INT 1" >>confdefs.h
10327
10328  echo yes
10329else
10330  echo no
10331fi
10332rm -f /tmp/a_$$.out /tmp/test_$$.cpp
10333
10334
10335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for typename" >&5
10336$as_echo_n "checking for typename... " >&6; }
10337cat > /tmp/test_$$.cpp << EOT
10338template <class c> class a { typedef typename c::d e;};
10339EOT
10340$CXX -c -o /tmp/a_$$.out /tmp/test_$$.cpp 2>/dev/null > /dev/null
10341RET=$?
10342if test "X_$RET" = "X_0" ;then
10343  $as_echo "#define HAVE_TYPENAME 1" >>confdefs.h
10344
10345  echo yes
10346else
10347  echo no
10348fi
10349rm -f /tmp/a_$$.out /tmp/test_$$.cpp
10350
10351if test "X_"`echo $CXX|awk '{print $1}'` = "X_g++" ; then
10352
10353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g++ -fpermissive" >&5
10354$as_echo_n "checking for g++ -fpermissive... " >&6; }
10355   cat > /tmp/test_$$.cpp << EOT
10356   #include <stddef.h>
10357
10358   class test {};
10359
10360   test *ptr = NULL;
10361EOT
10362   $CXX -c -o /tmp/a_$$.out /tmp/test_$$.cpp 2>/dev/null > /dev/null
10363   RET=$?
10364   if test "X_$RET" = "X_0" ;then
10365      echo not needed
10366   else
10367      echo yes
10368      CXXFLAGS="$CXXFLAGS -fpermissive"
10369   fi
10370   rm -f /tmp/a_$$.out /tmp/test_$$.cpp
10371fi
10372
10373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c99" >&5
10374$as_echo_n "checking for -std=c99... " >&6; }
10375cat > /tmp/test_$$.c << EOT
10376int main(int argc, char** argv) {return 0;}
10377EOT
10378$CC -std=c99 -c -o /tmp/test_$$.o /tmp/test_$$.c 2>/dev/null > /dev/null
10379RET=$?
10380if test "X_$RET" = "X_0" ;then
10381  C99="-std=c99"
10382
10383  echo yes
10384else
10385  echo no
10386fi
10387rm -f /tmp/test_$$.o /tmp/test_$$.c
10388
10389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclassify" >&5
10390$as_echo_n "checking for fpclassify... " >&6; }
10391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10392/* end confdefs.h.  */
10393
10394                 #include "math.h"
10395
10396int
10397main ()
10398{
10399
10400                 int result = fpclassify(1.0);
10401
10402  ;
10403  return 0;
10404}
10405_ACEOF
10406if ac_fn_c_try_link "$LINENO"; then :
10407  echo yes;$as_echo "#define HAVE_FPCLASSIFY 1" >>confdefs.h
10408
10409else
10410  echo no;TEST_XOPEN_SOURCE=yes
10411
10412fi
10413rm -f core conftest.err conftest.$ac_objext \
10414    conftest$ac_exeext conftest.$ac_ext
10415
10416if test "$TEST_XOPEN_SOURCE" = yes ; then
10417   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XOPEN_SOURCE 600 for fpclassify" >&5
10418$as_echo_n "checking for _XOPEN_SOURCE 600 for fpclassify... " >&6; }
10419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10420/* end confdefs.h.  */
10421
10422                 #define _XOPEN_SOURCE 600
10423                 #include "math.h"
10424
10425int
10426main ()
10427{
10428
10429                 int result = fpclassify(1.0);
10430
10431  ;
10432  return 0;
10433}
10434_ACEOF
10435if ac_fn_c_try_link "$LINENO"; then :
10436  echo yes;$as_echo "#define HAVE_XOPEN_SOURCE_4_FPCLASSIFY 1" >>confdefs.h
10437
10438else
10439  echo no
10440
10441fi
10442rm -f core conftest.err conftest.$ac_objext \
10443    conftest$ac_exeext conftest.$ac_ext
10444fi
10445
10446# AC_MSG_CHECKING(for isless)
10447# AC_TRY_LINK(
10448#                [
10449#                  #include "math.h"
10450#                ],
10451#                [
10452#                  int result = isless(0.0,1.1);
10453#                ],
10454#                echo yes;AC_DEFINE(HAVE_ISLESS),echo no
10455#                )
10456
10457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for termios.c_ospeed" >&5
10458$as_echo_n "checking for termios.c_ospeed... " >&6; }
10459cat > /tmp/test_$$.cpp << EOT
10460#include <termios.h>
10461   void test(void) {struct termios t;t.c_ospeed=B19200}
10462EOT
10463$CXX -o /tmp/a_$$.out /tmp/test_$$.cpp 2>/dev/null > /dev/null
10464RET=$?
10465if test "X_$RET" = "X_0" ;then
10466  $as_echo "#define HAVE_C_OSPEED 1" >>confdefs.h
10467
10468  echo yes
10469else
10470  echo no
10471fi
10472rm -f /tmp/a_$$.out /tmp/test_$$.cpp
10473
10474
10475ARXSTRDUP_O="echo no way to extract strdup efence may fail in strdup"
10476STRDUP_O=
10477
10478LIBEFENCE_A=
10479EFENCE_EXTRA_LIBS=
10480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libefence.a location" >&5
10481$as_echo_n "checking for libefence.a location... " >&6; }
10482for i in /usr/lib32 /usr/lib64 /usr/lib /usr/local/lib32 /usr/local/lib64 /usr/local/lib ; do
10483   if test -f $i/libefence.a ; then
10484       LIBEFENCE_A=$i/libefence.a
10485       export LIBEFENCE_A
10486
10487       EFENCE_EXTRA_LIBS=-lpthread
10488       export EFENCE_EXTRA_LIBS
10489   fi
10490done
10491if test "X_$LIBEFENCE_A" != "X_" ; then
10492    echo $LIBEFENCE_A
10493    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strdup extraction" >&5
10494$as_echo_n "checking for strdup extraction... " >&6; }
10495    CURRENT_DIR=$SELFDIR
10496    for i in /usr/lib /usr/lib/debug/usr/lib /usr/lib/debug/usr/lib64 ; do
10497        cd /tmp &&
10498            if ar x $i/libc.a strdup.o 2>/dev/null ; then
10499                echo yes
10500
10501                ARXSTRDUP_O="(cd /tmp && ar x $i/libc.a strdup.o)"
10502                export ARXSTRDUP_O
10503
10504                STRDUP_O=/tmp/strdup.o
10505                export STRDUP_O
10506
10507                rm -f $STRDUP_O
10508            else
10509                echo no
10510            fi
10511        cd $CURRENT_DIR
10512    done
10513else
10514    echo none
10515fi
10516
10517
10518
10519LIBDUMA_A=
10520DUMA_EXTRA_LIBS=
10521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libduma.a location" >&5
10522$as_echo_n "checking for libduma.a location... " >&6; }
10523for i in /usr/lib32 /usr/lib64 /usr/lib /usr/local/lib32 /usr/local/lib64 /usr/local/lib ; do
10524   if test -f $i/libduma.a ; then
10525       LIBDUMA_A=$i/libduma.a
10526       export LIBDUMA_A
10527
10528       DUMA_EXTRA_LIBS=-lpthread
10529       export DUMA_EXTRA_LIBS
10530   fi
10531done
10532if test "X_$LIBDUMA_A" != "X_" ; then
10533    echo $LIBDUMA_A
10534    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strdup extraction" >&5
10535$as_echo_n "checking for strdup extraction... " >&6; }
10536    for i in /usr/lib /usr/lib/debug/usr/lib /usr/lib/debug/usr/lib64 ; do
10537        pushd $PWD
10538        cd /tmp &&
10539            if ar x $i/libc.a strdup.o 2>/dev/null ; then
10540                echo yes
10541
10542                ARXSTRDUP_O="(cd /tmp && ar x $i/libc.a strdup.o)"
10543                export ARXSTRDUP_O
10544
10545                STRDUP_O=/tmp/strdup.o
10546                export STRDUP_O
10547
10548                rm -f $STRDUP_O
10549            else
10550                echo no
10551            fi
10552        popd
10553    done
10554else
10555    echo none
10556fi
10557
10558
10559
10560
10561
10562
10563
10564# Check whether --with-about was given.
10565if test "${with_about+set}" = set; then :
10566  withval=$with_about; DUNE_VERSION2="$withval";export DUNE_VERSION2
10567fi
10568
10569if test "X_$DUNE_VERSION2" != "X_" ; then
10570   cat >>confdefs.h <<_ACEOF
10571#define HAVE_DUNE_VERSION "${DUNE_VERSION2}"
10572_ACEOF
10573
10574fi
10575
10576
10577# Check whether --with-allow-multiple-definition was given.
10578if test "${with_allow_multiple_definition+set}" = set; then :
10579  withval=$with_allow_multiple_definition; LDFLAGS="$LDFLAGS -Wl,--allow-multiple-definition";export LDFLAGS
10580fi
10581
10582
10583
10584
10585(cd $SELFDIR && sh batch/mkSFMFTypes.sh)
10586
10587
10588ac_ext=cpp
10589ac_cpp='$CXXCPP $CPPFLAGS'
10590ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10591ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10592ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10593
10594
10595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for new handler" >&5
10596$as_echo_n "checking for new handler... " >&6; }
10597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10598/* end confdefs.h.  */
10599
10600                    #include <new.h>
10601
10602int
10603main ()
10604{
10605
10606                    void handler(void);
10607                    set_new_handler(handler);
10608
10609  ;
10610  return 0;
10611}
10612_ACEOF
10613if ac_fn_cxx_try_compile "$LINENO"; then :
10614  echo yes;$as_echo "#define HAVE_NEW_HANDLER 1" >>confdefs.h
10615
10616else
10617  echo no
10618
10619fi
10620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10621
10622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for new new handler" >&5
10623$as_echo_n "checking for new new handler... " >&6; }
10624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10625/* end confdefs.h.  */
10626
10627                    #include <new>
10628                    void handler(void);
10629
10630int
10631main ()
10632{
10633
10634                    std::set_new_handler(handler);
10635
10636  ;
10637  return 0;
10638}
10639_ACEOF
10640if ac_fn_cxx_try_compile "$LINENO"; then :
10641  echo yes;$as_echo "#define HAVE_NEW_NEW_HANDLER 1" >>confdefs.h
10642
10643else
10644  echo no
10645
10646fi
10647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10648
10649CC="$OLD_CC"
10650export CC
10651
10652RCFILE_FIRST=dune.english.rc
10653RCFILE_REST=`(cd src && ls dune.*.rc | grep -v $RCFILE_FIRST | xargs echo)`
10654RESOURCE_FILES="$RCFILE_FIRST singleResources.rc $RCFILE_REST"
10655
10656
10657for ac_prog in bmptopnm
10658do
10659  # Extract the first word of "$ac_prog", so it can be a program name with args.
10660set dummy $ac_prog; ac_word=$2
10661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10662$as_echo_n "checking for $ac_word... " >&6; }
10663if ${ac_cv_path_BMPTOPNM+:} false; then :
10664  $as_echo_n "(cached) " >&6
10665else
10666  case $BMPTOPNM in
10667  [\\/]* | ?:[\\/]*)
10668  ac_cv_path_BMPTOPNM="$BMPTOPNM" # Let the user override the test with a path.
10669  ;;
10670  *)
10671  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10672for as_dir in $PATH
10673do
10674  IFS=$as_save_IFS
10675  test -z "$as_dir" && as_dir=.
10676    for ac_exec_ext in '' $ac_executable_extensions; do
10677  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10678    ac_cv_path_BMPTOPNM="$as_dir/$ac_word$ac_exec_ext"
10679    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10680    break 2
10681  fi
10682done
10683  done
10684IFS=$as_save_IFS
10685
10686  ;;
10687esac
10688fi
10689BMPTOPNM=$ac_cv_path_BMPTOPNM
10690if test -n "$BMPTOPNM"; then
10691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BMPTOPNM" >&5
10692$as_echo "$BMPTOPNM" >&6; }
10693else
10694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10695$as_echo "no" >&6; }
10696fi
10697
10698
10699  test -n "$BMPTOPNM" && break
10700done
10701
10702if test "X_$BMPTOPNM" = "X_" ; then
10703   echo "unable to test for icon size without bmptopnm (harmless)" 1>&2
10704   TESTICONSIZE="@echo no bmptopnm: can not compare iconsize of "
10705   TESTICONSIZE2="@echo no bmptopnm: can not compare iconsize of "
10706else
10707   TESTICONSIZE="../batch/testiconsize.sh $BMPTOPNM"
10708   TESTICONSIZE2="../batch/testiconsize2.sh $BMPTOPNM"
10709fi
10710
10711
10712
10713for ac_prog in javac
10714do
10715  # Extract the first word of "$ac_prog", so it can be a program name with args.
10716set dummy $ac_prog; ac_word=$2
10717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10718$as_echo_n "checking for $ac_word... " >&6; }
10719if ${ac_cv_path_JAVAC+:} false; then :
10720  $as_echo_n "(cached) " >&6
10721else
10722  case $JAVAC in
10723  [\\/]* | ?:[\\/]*)
10724  ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
10725  ;;
10726  *)
10727  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10728for as_dir in $PATH
10729do
10730  IFS=$as_save_IFS
10731  test -z "$as_dir" && as_dir=.
10732    for ac_exec_ext in '' $ac_executable_extensions; do
10733  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10734    ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
10735    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10736    break 2
10737  fi
10738done
10739  done
10740IFS=$as_save_IFS
10741
10742  ;;
10743esac
10744fi
10745JAVAC=$ac_cv_path_JAVAC
10746if test -n "$JAVAC"; then
10747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
10748$as_echo "$JAVAC" >&6; }
10749else
10750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10751$as_echo "no" >&6; }
10752fi
10753
10754
10755  test -n "$JAVAC" && break
10756done
10757test -n "$JAVAC" || JAVAC="echo"
10758
10759
10760if test "X_$JAVAC" = "X_echo" ; then
10761    JAVA="echo"
10762else
10763    for ac_prog in java
10764do
10765  # Extract the first word of "$ac_prog", so it can be a program name with args.
10766set dummy $ac_prog; ac_word=$2
10767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10768$as_echo_n "checking for $ac_word... " >&6; }
10769if ${ac_cv_path_JAVA+:} false; then :
10770  $as_echo_n "(cached) " >&6
10771else
10772  case $JAVA in
10773  [\\/]* | ?:[\\/]*)
10774  ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
10775  ;;
10776  *)
10777  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10778for as_dir in $PATH
10779do
10780  IFS=$as_save_IFS
10781  test -z "$as_dir" && as_dir=.
10782    for ac_exec_ext in '' $ac_executable_extensions; do
10783  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10784    ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
10785    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10786    break 2
10787  fi
10788done
10789  done
10790IFS=$as_save_IFS
10791
10792  ;;
10793esac
10794fi
10795JAVA=$ac_cv_path_JAVA
10796if test -n "$JAVA"; then
10797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
10798$as_echo "$JAVA" >&6; }
10799else
10800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10801$as_echo "no" >&6; }
10802fi
10803
10804
10805  test -n "$JAVA" && break
10806done
10807test -n "$JAVA" || JAVA="echo"
10808
10809fi
10810
10811
10812if test "X_$ANT" = "X_" ; then
10813    for ac_prog in ant
10814do
10815  # Extract the first word of "$ac_prog", so it can be a program name with args.
10816set dummy $ac_prog; ac_word=$2
10817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10818$as_echo_n "checking for $ac_word... " >&6; }
10819if ${ac_cv_path_ANT+:} false; then :
10820  $as_echo_n "(cached) " >&6
10821else
10822  case $ANT in
10823  [\\/]* | ?:[\\/]*)
10824  ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
10825  ;;
10826  *)
10827  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10828for as_dir in $PATH
10829do
10830  IFS=$as_save_IFS
10831  test -z "$as_dir" && as_dir=.
10832    for ac_exec_ext in '' $ac_executable_extensions; do
10833  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10834    ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
10835    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10836    break 2
10837  fi
10838done
10839  done
10840IFS=$as_save_IFS
10841
10842  ;;
10843esac
10844fi
10845ANT=$ac_cv_path_ANT
10846if test -n "$ANT"; then
10847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANT" >&5
10848$as_echo "$ANT" >&6; }
10849else
10850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10851$as_echo "no" >&6; }
10852fi
10853
10854
10855  test -n "$ANT" && break
10856done
10857
10858fi
10859if test "X_$ANT" != "X_" ; then
10860   cat >>confdefs.h <<_ACEOF
10861#define HAVE_ANT "${ANT}"
10862_ACEOF
10863
10864fi
10865
10866if test X_`ls -d /usr/include/X11/Xmu 2>/dev/null` != X_ ; then
10867    cat >>confdefs.h <<_ACEOF
10868#define HAVE_INCLUDE_X11_XMU "1"
10869_ACEOF
10870
10871fi
10872
10873
10874LIBS="$LIBS $EXTRA_LIBS"
10875
10876ac_config_files="$ac_config_files $SELFDIR/src/Makefile $SELFDIR/src/swt/motif/Makefile $SELFDIR/src/swt/tests/Makefile $SELFDIR/src/swt/rc/Makefile $SELFDIR/src/SDLjoystick/Makefile $SELFDIR/test/Makefile $SELFDIR/docs/export_example_c/simple_example/Makefile $SELFDIR/docs/export_example_c++/simple_example/Makefile $SELFDIR/docs/export_example_java/simple_example/Makefile"
10877
10878cat >confcache <<\_ACEOF
10879# This file is a shell script that caches the results of configure
10880# tests run on this system so they can be shared between configure
10881# scripts and configure runs, see configure's option --config-cache.
10882# It is not useful on other systems.  If it contains results you don't
10883# want to keep, you may remove or edit it.
10884#
10885# config.status only pays attention to the cache file if you give it
10886# the --recheck option to rerun configure.
10887#
10888# `ac_cv_env_foo' variables (set or unset) will be overridden when
10889# loading this file, other *unset* `ac_cv_foo' will be assigned the
10890# following values.
10891
10892_ACEOF
10893
10894# The following way of writing the cache mishandles newlines in values,
10895# but we know of no workaround that is simple, portable, and efficient.
10896# So, we kill variables containing newlines.
10897# Ultrix sh set writes to stderr and can't be redirected directly,
10898# and sets the high bit in the cache file unless we assign to the vars.
10899(
10900  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10901    eval ac_val=\$$ac_var
10902    case $ac_val in #(
10903    *${as_nl}*)
10904      case $ac_var in #(
10905      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10906$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10907      esac
10908      case $ac_var in #(
10909      _ | IFS | as_nl) ;; #(
10910      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10911      *) { eval $ac_var=; unset $ac_var;} ;;
10912      esac ;;
10913    esac
10914  done
10915
10916  (set) 2>&1 |
10917    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10918    *${as_nl}ac_space=\ *)
10919      # `set' does not quote correctly, so add quotes: double-quote
10920      # substitution turns \\\\ into \\, and sed turns \\ into \.
10921      sed -n \
10922	"s/'/'\\\\''/g;
10923	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10924      ;; #(
10925    *)
10926      # `set' quotes correctly as required by POSIX, so do not add quotes.
10927      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10928      ;;
10929    esac |
10930    sort
10931) |
10932  sed '
10933     /^ac_cv_env_/b end
10934     t clear
10935     :clear
10936     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10937     t end
10938     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10939     :end' >>confcache
10940if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10941  if test -w "$cache_file"; then
10942    if test "x$cache_file" != "x/dev/null"; then
10943      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10944$as_echo "$as_me: updating cache $cache_file" >&6;}
10945      if test ! -f "$cache_file" || test -h "$cache_file"; then
10946	cat confcache >"$cache_file"
10947      else
10948        case $cache_file in #(
10949        */* | ?:*)
10950	  mv -f confcache "$cache_file"$$ &&
10951	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10952        *)
10953	  mv -f confcache "$cache_file" ;;
10954	esac
10955      fi
10956    fi
10957  else
10958    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10959$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10960  fi
10961fi
10962rm -f confcache
10963
10964test "x$prefix" = xNONE && prefix=$ac_default_prefix
10965# Let make expand exec_prefix.
10966test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10967
10968DEFS=-DHAVE_CONFIG_H
10969
10970ac_libobjs=
10971ac_ltlibobjs=
10972U=
10973for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10974  # 1. Remove the extension, and $U if already installed.
10975  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10976  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10977  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10978  #    will be set to the directory where LIBOBJS objects are built.
10979  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10980  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10981done
10982LIBOBJS=$ac_libobjs
10983
10984LTLIBOBJS=$ac_ltlibobjs
10985
10986
10987
10988: "${CONFIG_STATUS=./config.status}"
10989ac_write_fail=0
10990ac_clean_files_save=$ac_clean_files
10991ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10992{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10993$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10994as_write_fail=0
10995cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10996#! $SHELL
10997# Generated by $as_me.
10998# Run this file to recreate the current configuration.
10999# Compiler output produced by configure, useful for debugging
11000# configure, is in config.log if it exists.
11001
11002debug=false
11003ac_cs_recheck=false
11004ac_cs_silent=false
11005
11006SHELL=\${CONFIG_SHELL-$SHELL}
11007export SHELL
11008_ASEOF
11009cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11010## -------------------- ##
11011## M4sh Initialization. ##
11012## -------------------- ##
11013
11014# Be more Bourne compatible
11015DUALCASE=1; export DUALCASE # for MKS sh
11016if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11017  emulate sh
11018  NULLCMD=:
11019  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11020  # is contrary to our usage.  Disable this feature.
11021  alias -g '${1+"$@"}'='"$@"'
11022  setopt NO_GLOB_SUBST
11023else
11024  case `(set -o) 2>/dev/null` in #(
11025  *posix*) :
11026    set -o posix ;; #(
11027  *) :
11028     ;;
11029esac
11030fi
11031
11032
11033as_nl='
11034'
11035export as_nl
11036# Printing a long string crashes Solaris 7 /usr/bin/printf.
11037as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11038as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11039as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11040# Prefer a ksh shell builtin over an external printf program on Solaris,
11041# but without wasting forks for bash or zsh.
11042if test -z "$BASH_VERSION$ZSH_VERSION" \
11043    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11044  as_echo='print -r --'
11045  as_echo_n='print -rn --'
11046elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11047  as_echo='printf %s\n'
11048  as_echo_n='printf %s'
11049else
11050  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11051    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11052    as_echo_n='/usr/ucb/echo -n'
11053  else
11054    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11055    as_echo_n_body='eval
11056      arg=$1;
11057      case $arg in #(
11058      *"$as_nl"*)
11059	expr "X$arg" : "X\\(.*\\)$as_nl";
11060	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11061      esac;
11062      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11063    '
11064    export as_echo_n_body
11065    as_echo_n='sh -c $as_echo_n_body as_echo'
11066  fi
11067  export as_echo_body
11068  as_echo='sh -c $as_echo_body as_echo'
11069fi
11070
11071# The user is always right.
11072if test "${PATH_SEPARATOR+set}" != set; then
11073  PATH_SEPARATOR=:
11074  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11075    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11076      PATH_SEPARATOR=';'
11077  }
11078fi
11079
11080
11081# IFS
11082# We need space, tab and new line, in precisely that order.  Quoting is
11083# there to prevent editors from complaining about space-tab.
11084# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11085# splitting by setting IFS to empty value.)
11086IFS=" ""	$as_nl"
11087
11088# Find who we are.  Look in the path if we contain no directory separator.
11089as_myself=
11090case $0 in #((
11091  *[\\/]* ) as_myself=$0 ;;
11092  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11093for as_dir in $PATH
11094do
11095  IFS=$as_save_IFS
11096  test -z "$as_dir" && as_dir=.
11097    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11098  done
11099IFS=$as_save_IFS
11100
11101     ;;
11102esac
11103# We did not find ourselves, most probably we were run as `sh COMMAND'
11104# in which case we are not to be found in the path.
11105if test "x$as_myself" = x; then
11106  as_myself=$0
11107fi
11108if test ! -f "$as_myself"; then
11109  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11110  exit 1
11111fi
11112
11113# Unset variables that we do not need and which cause bugs (e.g. in
11114# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11115# suppresses any "Segmentation fault" message there.  '((' could
11116# trigger a bug in pdksh 5.2.14.
11117for as_var in BASH_ENV ENV MAIL MAILPATH
11118do eval test x\${$as_var+set} = xset \
11119  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11120done
11121PS1='$ '
11122PS2='> '
11123PS4='+ '
11124
11125# NLS nuisances.
11126LC_ALL=C
11127export LC_ALL
11128LANGUAGE=C
11129export LANGUAGE
11130
11131# CDPATH.
11132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11133
11134
11135# as_fn_error STATUS ERROR [LINENO LOG_FD]
11136# ----------------------------------------
11137# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11138# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11139# script with STATUS, using 1 if that was 0.
11140as_fn_error ()
11141{
11142  as_status=$1; test $as_status -eq 0 && as_status=1
11143  if test "$4"; then
11144    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11145    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11146  fi
11147  $as_echo "$as_me: error: $2" >&2
11148  as_fn_exit $as_status
11149} # as_fn_error
11150
11151
11152# as_fn_set_status STATUS
11153# -----------------------
11154# Set $? to STATUS, without forking.
11155as_fn_set_status ()
11156{
11157  return $1
11158} # as_fn_set_status
11159
11160# as_fn_exit STATUS
11161# -----------------
11162# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11163as_fn_exit ()
11164{
11165  set +e
11166  as_fn_set_status $1
11167  exit $1
11168} # as_fn_exit
11169
11170# as_fn_unset VAR
11171# ---------------
11172# Portably unset VAR.
11173as_fn_unset ()
11174{
11175  { eval $1=; unset $1;}
11176}
11177as_unset=as_fn_unset
11178# as_fn_append VAR VALUE
11179# ----------------------
11180# Append the text in VALUE to the end of the definition contained in VAR. Take
11181# advantage of any shell optimizations that allow amortized linear growth over
11182# repeated appends, instead of the typical quadratic growth present in naive
11183# implementations.
11184if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11185  eval 'as_fn_append ()
11186  {
11187    eval $1+=\$2
11188  }'
11189else
11190  as_fn_append ()
11191  {
11192    eval $1=\$$1\$2
11193  }
11194fi # as_fn_append
11195
11196# as_fn_arith ARG...
11197# ------------------
11198# Perform arithmetic evaluation on the ARGs, and store the result in the
11199# global $as_val. Take advantage of shells that can avoid forks. The arguments
11200# must be portable across $(()) and expr.
11201if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11202  eval 'as_fn_arith ()
11203  {
11204    as_val=$(( $* ))
11205  }'
11206else
11207  as_fn_arith ()
11208  {
11209    as_val=`expr "$@" || test $? -eq 1`
11210  }
11211fi # as_fn_arith
11212
11213
11214if expr a : '\(a\)' >/dev/null 2>&1 &&
11215   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11216  as_expr=expr
11217else
11218  as_expr=false
11219fi
11220
11221if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11222  as_basename=basename
11223else
11224  as_basename=false
11225fi
11226
11227if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11228  as_dirname=dirname
11229else
11230  as_dirname=false
11231fi
11232
11233as_me=`$as_basename -- "$0" ||
11234$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11235	 X"$0" : 'X\(//\)$' \| \
11236	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11237$as_echo X/"$0" |
11238    sed '/^.*\/\([^/][^/]*\)\/*$/{
11239	    s//\1/
11240	    q
11241	  }
11242	  /^X\/\(\/\/\)$/{
11243	    s//\1/
11244	    q
11245	  }
11246	  /^X\/\(\/\).*/{
11247	    s//\1/
11248	    q
11249	  }
11250	  s/.*/./; q'`
11251
11252# Avoid depending upon Character Ranges.
11253as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11254as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11255as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11256as_cr_digits='0123456789'
11257as_cr_alnum=$as_cr_Letters$as_cr_digits
11258
11259ECHO_C= ECHO_N= ECHO_T=
11260case `echo -n x` in #(((((
11261-n*)
11262  case `echo 'xy\c'` in
11263  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11264  xy)  ECHO_C='\c';;
11265  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11266       ECHO_T='	';;
11267  esac;;
11268*)
11269  ECHO_N='-n';;
11270esac
11271
11272rm -f conf$$ conf$$.exe conf$$.file
11273if test -d conf$$.dir; then
11274  rm -f conf$$.dir/conf$$.file
11275else
11276  rm -f conf$$.dir
11277  mkdir conf$$.dir 2>/dev/null
11278fi
11279if (echo >conf$$.file) 2>/dev/null; then
11280  if ln -s conf$$.file conf$$ 2>/dev/null; then
11281    as_ln_s='ln -s'
11282    # ... but there are two gotchas:
11283    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11284    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11285    # In both cases, we have to default to `cp -pR'.
11286    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11287      as_ln_s='cp -pR'
11288  elif ln conf$$.file conf$$ 2>/dev/null; then
11289    as_ln_s=ln
11290  else
11291    as_ln_s='cp -pR'
11292  fi
11293else
11294  as_ln_s='cp -pR'
11295fi
11296rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11297rmdir conf$$.dir 2>/dev/null
11298
11299
11300# as_fn_mkdir_p
11301# -------------
11302# Create "$as_dir" as a directory, including parents if necessary.
11303as_fn_mkdir_p ()
11304{
11305
11306  case $as_dir in #(
11307  -*) as_dir=./$as_dir;;
11308  esac
11309  test -d "$as_dir" || eval $as_mkdir_p || {
11310    as_dirs=
11311    while :; do
11312      case $as_dir in #(
11313      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11314      *) as_qdir=$as_dir;;
11315      esac
11316      as_dirs="'$as_qdir' $as_dirs"
11317      as_dir=`$as_dirname -- "$as_dir" ||
11318$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11319	 X"$as_dir" : 'X\(//\)[^/]' \| \
11320	 X"$as_dir" : 'X\(//\)$' \| \
11321	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11322$as_echo X"$as_dir" |
11323    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11324	    s//\1/
11325	    q
11326	  }
11327	  /^X\(\/\/\)[^/].*/{
11328	    s//\1/
11329	    q
11330	  }
11331	  /^X\(\/\/\)$/{
11332	    s//\1/
11333	    q
11334	  }
11335	  /^X\(\/\).*/{
11336	    s//\1/
11337	    q
11338	  }
11339	  s/.*/./; q'`
11340      test -d "$as_dir" && break
11341    done
11342    test -z "$as_dirs" || eval "mkdir $as_dirs"
11343  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11344
11345
11346} # as_fn_mkdir_p
11347if mkdir -p . 2>/dev/null; then
11348  as_mkdir_p='mkdir -p "$as_dir"'
11349else
11350  test -d ./-p && rmdir ./-p
11351  as_mkdir_p=false
11352fi
11353
11354
11355# as_fn_executable_p FILE
11356# -----------------------
11357# Test if FILE is an executable regular file.
11358as_fn_executable_p ()
11359{
11360  test -f "$1" && test -x "$1"
11361} # as_fn_executable_p
11362as_test_x='test -x'
11363as_executable_p=as_fn_executable_p
11364
11365# Sed expression to map a string onto a valid CPP name.
11366as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11367
11368# Sed expression to map a string onto a valid variable name.
11369as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11370
11371
11372exec 6>&1
11373## ----------------------------------- ##
11374## Main body of $CONFIG_STATUS script. ##
11375## ----------------------------------- ##
11376_ASEOF
11377test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11378
11379cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11380# Save the log message, to keep $0 and so on meaningful, and to
11381# report actual input values of CONFIG_FILES etc. instead of their
11382# values after options handling.
11383ac_log="
11384This file was extended by $as_me, which was
11385generated by GNU Autoconf 2.69.  Invocation command line was
11386
11387  CONFIG_FILES    = $CONFIG_FILES
11388  CONFIG_HEADERS  = $CONFIG_HEADERS
11389  CONFIG_LINKS    = $CONFIG_LINKS
11390  CONFIG_COMMANDS = $CONFIG_COMMANDS
11391  $ $0 $@
11392
11393on `(hostname || uname -n) 2>/dev/null | sed 1q`
11394"
11395
11396_ACEOF
11397
11398case $ac_config_files in *"
11399"*) set x $ac_config_files; shift; ac_config_files=$*;;
11400esac
11401
11402case $ac_config_headers in *"
11403"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11404esac
11405
11406
11407cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11408# Files that config.status was made for.
11409config_files="$ac_config_files"
11410config_headers="$ac_config_headers"
11411
11412_ACEOF
11413
11414cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11415ac_cs_usage="\
11416\`$as_me' instantiates files and other configuration actions
11417from templates according to the current configuration.  Unless the files
11418and actions are specified as TAGs, all are instantiated by default.
11419
11420Usage: $0 [OPTION]... [TAG]...
11421
11422  -h, --help       print this help, then exit
11423  -V, --version    print version number and configuration settings, then exit
11424      --config     print configuration, then exit
11425  -q, --quiet, --silent
11426                   do not print progress messages
11427  -d, --debug      don't remove temporary files
11428      --recheck    update $as_me by reconfiguring in the same conditions
11429      --file=FILE[:TEMPLATE]
11430                   instantiate the configuration file FILE
11431      --header=FILE[:TEMPLATE]
11432                   instantiate the configuration header FILE
11433
11434Configuration files:
11435$config_files
11436
11437Configuration headers:
11438$config_headers
11439
11440Report bugs to the package provider."
11441
11442_ACEOF
11443cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11444ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11445ac_cs_version="\\
11446config.status
11447configured by $0, generated by GNU Autoconf 2.69,
11448  with options \\"\$ac_cs_config\\"
11449
11450Copyright (C) 2012 Free Software Foundation, Inc.
11451This config.status script is free software; the Free Software Foundation
11452gives unlimited permission to copy, distribute and modify it."
11453
11454ac_pwd='$ac_pwd'
11455srcdir='$srcdir'
11456AWK='$AWK'
11457test -n "\$AWK" || AWK=awk
11458_ACEOF
11459
11460cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11461# The default lists apply if the user does not specify any file.
11462ac_need_defaults=:
11463while test $# != 0
11464do
11465  case $1 in
11466  --*=?*)
11467    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11468    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11469    ac_shift=:
11470    ;;
11471  --*=)
11472    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11473    ac_optarg=
11474    ac_shift=:
11475    ;;
11476  *)
11477    ac_option=$1
11478    ac_optarg=$2
11479    ac_shift=shift
11480    ;;
11481  esac
11482
11483  case $ac_option in
11484  # Handling of the options.
11485  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11486    ac_cs_recheck=: ;;
11487  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11488    $as_echo "$ac_cs_version"; exit ;;
11489  --config | --confi | --conf | --con | --co | --c )
11490    $as_echo "$ac_cs_config"; exit ;;
11491  --debug | --debu | --deb | --de | --d | -d )
11492    debug=: ;;
11493  --file | --fil | --fi | --f )
11494    $ac_shift
11495    case $ac_optarg in
11496    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11497    '') as_fn_error $? "missing file argument" ;;
11498    esac
11499    as_fn_append CONFIG_FILES " '$ac_optarg'"
11500    ac_need_defaults=false;;
11501  --header | --heade | --head | --hea )
11502    $ac_shift
11503    case $ac_optarg in
11504    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11505    esac
11506    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11507    ac_need_defaults=false;;
11508  --he | --h)
11509    # Conflict between --help and --header
11510    as_fn_error $? "ambiguous option: \`$1'
11511Try \`$0 --help' for more information.";;
11512  --help | --hel | -h )
11513    $as_echo "$ac_cs_usage"; exit ;;
11514  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11515  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11516    ac_cs_silent=: ;;
11517
11518  # This is an error.
11519  -*) as_fn_error $? "unrecognized option: \`$1'
11520Try \`$0 --help' for more information." ;;
11521
11522  *) as_fn_append ac_config_targets " $1"
11523     ac_need_defaults=false ;;
11524
11525  esac
11526  shift
11527done
11528
11529ac_configure_extra_args=
11530
11531if $ac_cs_silent; then
11532  exec 6>/dev/null
11533  ac_configure_extra_args="$ac_configure_extra_args --silent"
11534fi
11535
11536_ACEOF
11537cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11538if \$ac_cs_recheck; then
11539  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11540  shift
11541  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11542  CONFIG_SHELL='$SHELL'
11543  export CONFIG_SHELL
11544  exec "\$@"
11545fi
11546
11547_ACEOF
11548cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11549exec 5>>config.log
11550{
11551  echo
11552  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11553## Running $as_me. ##
11554_ASBOX
11555  $as_echo "$ac_log"
11556} >&5
11557
11558_ACEOF
11559cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11560_ACEOF
11561
11562cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11563
11564# Handling of arguments.
11565for ac_config_target in $ac_config_targets
11566do
11567  case $ac_config_target in
11568    "$SELFDIR/src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS $SELFDIR/src/config.h" ;;
11569    "$SELFDIR/src/Makefile") CONFIG_FILES="$CONFIG_FILES $SELFDIR/src/Makefile" ;;
11570    "$SELFDIR/src/swt/motif/Makefile") CONFIG_FILES="$CONFIG_FILES $SELFDIR/src/swt/motif/Makefile" ;;
11571    "$SELFDIR/src/swt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES $SELFDIR/src/swt/tests/Makefile" ;;
11572    "$SELFDIR/src/swt/rc/Makefile") CONFIG_FILES="$CONFIG_FILES $SELFDIR/src/swt/rc/Makefile" ;;
11573    "$SELFDIR/src/SDLjoystick/Makefile") CONFIG_FILES="$CONFIG_FILES $SELFDIR/src/SDLjoystick/Makefile" ;;
11574    "$SELFDIR/test/Makefile") CONFIG_FILES="$CONFIG_FILES $SELFDIR/test/Makefile" ;;
11575    "$SELFDIR/docs/export_example_c/simple_example/Makefile") CONFIG_FILES="$CONFIG_FILES $SELFDIR/docs/export_example_c/simple_example/Makefile" ;;
11576    "$SELFDIR/docs/export_example_c++/simple_example/Makefile") CONFIG_FILES="$CONFIG_FILES $SELFDIR/docs/export_example_c++/simple_example/Makefile" ;;
11577    "$SELFDIR/docs/export_example_java/simple_example/Makefile") CONFIG_FILES="$CONFIG_FILES $SELFDIR/docs/export_example_java/simple_example/Makefile" ;;
11578
11579  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11580  esac
11581done
11582
11583
11584# If the user did not use the arguments to specify the items to instantiate,
11585# then the envvar interface is used.  Set only those that are not.
11586# We use the long form for the default assignment because of an extremely
11587# bizarre bug on SunOS 4.1.3.
11588if $ac_need_defaults; then
11589  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11590  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11591fi
11592
11593# Have a temporary directory for convenience.  Make it in the build tree
11594# simply because there is no reason against having it here, and in addition,
11595# creating and moving files from /tmp can sometimes cause problems.
11596# Hook for its removal unless debugging.
11597# Note that there is a small window in which the directory will not be cleaned:
11598# after its creation but before its name has been assigned to `$tmp'.
11599$debug ||
11600{
11601  tmp= ac_tmp=
11602  trap 'exit_status=$?
11603  : "${ac_tmp:=$tmp}"
11604  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11605' 0
11606  trap 'as_fn_exit 1' 1 2 13 15
11607}
11608# Create a (secure) tmp directory for tmp files.
11609
11610{
11611  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11612  test -d "$tmp"
11613}  ||
11614{
11615  tmp=./conf$$-$RANDOM
11616  (umask 077 && mkdir "$tmp")
11617} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11618ac_tmp=$tmp
11619
11620# Set up the scripts for CONFIG_FILES section.
11621# No need to generate them if there are no CONFIG_FILES.
11622# This happens for instance with `./config.status config.h'.
11623if test -n "$CONFIG_FILES"; then
11624
11625
11626ac_cr=`echo X | tr X '\015'`
11627# On cygwin, bash can eat \r inside `` if the user requested igncr.
11628# But we know of no other shell where ac_cr would be empty at this
11629# point, so we can use a bashism as a fallback.
11630if test "x$ac_cr" = x; then
11631  eval ac_cr=\$\'\\r\'
11632fi
11633ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11634if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11635  ac_cs_awk_cr='\\r'
11636else
11637  ac_cs_awk_cr=$ac_cr
11638fi
11639
11640echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11641_ACEOF
11642
11643
11644{
11645  echo "cat >conf$$subs.awk <<_ACEOF" &&
11646  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11647  echo "_ACEOF"
11648} >conf$$subs.sh ||
11649  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11650ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11651ac_delim='%!_!# '
11652for ac_last_try in false false false false false :; do
11653  . ./conf$$subs.sh ||
11654    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11655
11656  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11657  if test $ac_delim_n = $ac_delim_num; then
11658    break
11659  elif $ac_last_try; then
11660    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11661  else
11662    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11663  fi
11664done
11665rm -f conf$$subs.sh
11666
11667cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11668cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11669_ACEOF
11670sed -n '
11671h
11672s/^/S["/; s/!.*/"]=/
11673p
11674g
11675s/^[^!]*!//
11676:repl
11677t repl
11678s/'"$ac_delim"'$//
11679t delim
11680:nl
11681h
11682s/\(.\{148\}\)..*/\1/
11683t more1
11684s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11685p
11686n
11687b repl
11688:more1
11689s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11690p
11691g
11692s/.\{148\}//
11693t nl
11694:delim
11695h
11696s/\(.\{148\}\)..*/\1/
11697t more2
11698s/["\\]/\\&/g; s/^/"/; s/$/"/
11699p
11700b
11701:more2
11702s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11703p
11704g
11705s/.\{148\}//
11706t delim
11707' <conf$$subs.awk | sed '
11708/^[^""]/{
11709  N
11710  s/\n//
11711}
11712' >>$CONFIG_STATUS || ac_write_fail=1
11713rm -f conf$$subs.awk
11714cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11715_ACAWK
11716cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11717  for (key in S) S_is_set[key] = 1
11718  FS = ""
11719
11720}
11721{
11722  line = $ 0
11723  nfields = split(line, field, "@")
11724  substed = 0
11725  len = length(field[1])
11726  for (i = 2; i < nfields; i++) {
11727    key = field[i]
11728    keylen = length(key)
11729    if (S_is_set[key]) {
11730      value = S[key]
11731      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11732      len += length(value) + length(field[++i])
11733      substed = 1
11734    } else
11735      len += 1 + keylen
11736  }
11737
11738  print line
11739}
11740
11741_ACAWK
11742_ACEOF
11743cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11744if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11745  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11746else
11747  cat
11748fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11749  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11750_ACEOF
11751
11752# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11753# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11754# trailing colons and then remove the whole line if VPATH becomes empty
11755# (actually we leave an empty line to preserve line numbers).
11756if test "x$srcdir" = x.; then
11757  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11758h
11759s///
11760s/^/:/
11761s/[	 ]*$/:/
11762s/:\$(srcdir):/:/g
11763s/:\${srcdir}:/:/g
11764s/:@srcdir@:/:/g
11765s/^:*//
11766s/:*$//
11767x
11768s/\(=[	 ]*\).*/\1/
11769G
11770s/\n//
11771s/^[^=]*=[	 ]*$//
11772}'
11773fi
11774
11775cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11776fi # test -n "$CONFIG_FILES"
11777
11778# Set up the scripts for CONFIG_HEADERS section.
11779# No need to generate them if there are no CONFIG_HEADERS.
11780# This happens for instance with `./config.status Makefile'.
11781if test -n "$CONFIG_HEADERS"; then
11782cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11783BEGIN {
11784_ACEOF
11785
11786# Transform confdefs.h into an awk script `defines.awk', embedded as
11787# here-document in config.status, that substitutes the proper values into
11788# config.h.in to produce config.h.
11789
11790# Create a delimiter string that does not exist in confdefs.h, to ease
11791# handling of long lines.
11792ac_delim='%!_!# '
11793for ac_last_try in false false :; do
11794  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11795  if test -z "$ac_tt"; then
11796    break
11797  elif $ac_last_try; then
11798    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11799  else
11800    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11801  fi
11802done
11803
11804# For the awk script, D is an array of macro values keyed by name,
11805# likewise P contains macro parameters if any.  Preserve backslash
11806# newline sequences.
11807
11808ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11809sed -n '
11810s/.\{148\}/&'"$ac_delim"'/g
11811t rset
11812:rset
11813s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11814t def
11815d
11816:def
11817s/\\$//
11818t bsnl
11819s/["\\]/\\&/g
11820s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11821D["\1"]=" \3"/p
11822s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11823d
11824:bsnl
11825s/["\\]/\\&/g
11826s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11827D["\1"]=" \3\\\\\\n"\\/p
11828t cont
11829s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11830t cont
11831d
11832:cont
11833n
11834s/.\{148\}/&'"$ac_delim"'/g
11835t clear
11836:clear
11837s/\\$//
11838t bsnlc
11839s/["\\]/\\&/g; s/^/"/; s/$/"/p
11840d
11841:bsnlc
11842s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11843b cont
11844' <confdefs.h | sed '
11845s/'"$ac_delim"'/"\\\
11846"/g' >>$CONFIG_STATUS || ac_write_fail=1
11847
11848cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11849  for (key in D) D_is_set[key] = 1
11850  FS = ""
11851}
11852/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11853  line = \$ 0
11854  split(line, arg, " ")
11855  if (arg[1] == "#") {
11856    defundef = arg[2]
11857    mac1 = arg[3]
11858  } else {
11859    defundef = substr(arg[1], 2)
11860    mac1 = arg[2]
11861  }
11862  split(mac1, mac2, "(") #)
11863  macro = mac2[1]
11864  prefix = substr(line, 1, index(line, defundef) - 1)
11865  if (D_is_set[macro]) {
11866    # Preserve the white space surrounding the "#".
11867    print prefix "define", macro P[macro] D[macro]
11868    next
11869  } else {
11870    # Replace #undef with comments.  This is necessary, for example,
11871    # in the case of _POSIX_SOURCE, which is predefined and required
11872    # on some systems where configure will not decide to define it.
11873    if (defundef == "undef") {
11874      print "/*", prefix defundef, macro, "*/"
11875      next
11876    }
11877  }
11878}
11879{ print }
11880_ACAWK
11881_ACEOF
11882cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11883  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11884fi # test -n "$CONFIG_HEADERS"
11885
11886
11887eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
11888shift
11889for ac_tag
11890do
11891  case $ac_tag in
11892  :[FHLC]) ac_mode=$ac_tag; continue;;
11893  esac
11894  case $ac_mode$ac_tag in
11895  :[FHL]*:*);;
11896  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11897  :[FH]-) ac_tag=-:-;;
11898  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11899  esac
11900  ac_save_IFS=$IFS
11901  IFS=:
11902  set x $ac_tag
11903  IFS=$ac_save_IFS
11904  shift
11905  ac_file=$1
11906  shift
11907
11908  case $ac_mode in
11909  :L) ac_source=$1;;
11910  :[FH])
11911    ac_file_inputs=
11912    for ac_f
11913    do
11914      case $ac_f in
11915      -) ac_f="$ac_tmp/stdin";;
11916      *) # Look for the file first in the build tree, then in the source tree
11917	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11918	 # because $ac_f cannot contain `:'.
11919	 test -f "$ac_f" ||
11920	   case $ac_f in
11921	   [\\/$]*) false;;
11922	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11923	   esac ||
11924	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11925      esac
11926      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11927      as_fn_append ac_file_inputs " '$ac_f'"
11928    done
11929
11930    # Let's still pretend it is `configure' which instantiates (i.e., don't
11931    # use $as_me), people would be surprised to read:
11932    #    /* config.h.  Generated by config.status.  */
11933    configure_input='Generated from '`
11934	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11935	`' by configure.'
11936    if test x"$ac_file" != x-; then
11937      configure_input="$ac_file.  $configure_input"
11938      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11939$as_echo "$as_me: creating $ac_file" >&6;}
11940    fi
11941    # Neutralize special characters interpreted by sed in replacement strings.
11942    case $configure_input in #(
11943    *\&* | *\|* | *\\* )
11944       ac_sed_conf_input=`$as_echo "$configure_input" |
11945       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11946    *) ac_sed_conf_input=$configure_input;;
11947    esac
11948
11949    case $ac_tag in
11950    *:-:* | *:-) cat >"$ac_tmp/stdin" \
11951      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11952    esac
11953    ;;
11954  esac
11955
11956  ac_dir=`$as_dirname -- "$ac_file" ||
11957$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11958	 X"$ac_file" : 'X\(//\)[^/]' \| \
11959	 X"$ac_file" : 'X\(//\)$' \| \
11960	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11961$as_echo X"$ac_file" |
11962    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11963	    s//\1/
11964	    q
11965	  }
11966	  /^X\(\/\/\)[^/].*/{
11967	    s//\1/
11968	    q
11969	  }
11970	  /^X\(\/\/\)$/{
11971	    s//\1/
11972	    q
11973	  }
11974	  /^X\(\/\).*/{
11975	    s//\1/
11976	    q
11977	  }
11978	  s/.*/./; q'`
11979  as_dir="$ac_dir"; as_fn_mkdir_p
11980  ac_builddir=.
11981
11982case "$ac_dir" in
11983.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11984*)
11985  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11986  # A ".." for each directory in $ac_dir_suffix.
11987  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11988  case $ac_top_builddir_sub in
11989  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11990  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11991  esac ;;
11992esac
11993ac_abs_top_builddir=$ac_pwd
11994ac_abs_builddir=$ac_pwd$ac_dir_suffix
11995# for backward compatibility:
11996ac_top_builddir=$ac_top_build_prefix
11997
11998case $srcdir in
11999  .)  # We are building in place.
12000    ac_srcdir=.
12001    ac_top_srcdir=$ac_top_builddir_sub
12002    ac_abs_top_srcdir=$ac_pwd ;;
12003  [\\/]* | ?:[\\/]* )  # Absolute name.
12004    ac_srcdir=$srcdir$ac_dir_suffix;
12005    ac_top_srcdir=$srcdir
12006    ac_abs_top_srcdir=$srcdir ;;
12007  *) # Relative name.
12008    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12009    ac_top_srcdir=$ac_top_build_prefix$srcdir
12010    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12011esac
12012ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12013
12014
12015  case $ac_mode in
12016  :F)
12017  #
12018  # CONFIG_FILE
12019  #
12020
12021_ACEOF
12022
12023cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12024# If the template does not know about datarootdir, expand it.
12025# FIXME: This hack should be removed a few years after 2.60.
12026ac_datarootdir_hack=; ac_datarootdir_seen=
12027ac_sed_dataroot='
12028/datarootdir/ {
12029  p
12030  q
12031}
12032/@datadir@/p
12033/@docdir@/p
12034/@infodir@/p
12035/@localedir@/p
12036/@mandir@/p'
12037case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12038*datarootdir*) ac_datarootdir_seen=yes;;
12039*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12040  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12041$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12042_ACEOF
12043cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12044  ac_datarootdir_hack='
12045  s&@datadir@&$datadir&g
12046  s&@docdir@&$docdir&g
12047  s&@infodir@&$infodir&g
12048  s&@localedir@&$localedir&g
12049  s&@mandir@&$mandir&g
12050  s&\\\${datarootdir}&$datarootdir&g' ;;
12051esac
12052_ACEOF
12053
12054# Neutralize VPATH when `$srcdir' = `.'.
12055# Shell code in configure.ac might set extrasub.
12056# FIXME: do we really want to maintain this feature?
12057cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12058ac_sed_extra="$ac_vpsub
12059$extrasub
12060_ACEOF
12061cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12062:t
12063/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12064s|@configure_input@|$ac_sed_conf_input|;t t
12065s&@top_builddir@&$ac_top_builddir_sub&;t t
12066s&@top_build_prefix@&$ac_top_build_prefix&;t t
12067s&@srcdir@&$ac_srcdir&;t t
12068s&@abs_srcdir@&$ac_abs_srcdir&;t t
12069s&@top_srcdir@&$ac_top_srcdir&;t t
12070s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12071s&@builddir@&$ac_builddir&;t t
12072s&@abs_builddir@&$ac_abs_builddir&;t t
12073s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12074$ac_datarootdir_hack
12075"
12076eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12077  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12078
12079test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12080  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12081  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12082      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12083  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12084which seems to be undefined.  Please make sure it is defined" >&5
12085$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12086which seems to be undefined.  Please make sure it is defined" >&2;}
12087
12088  rm -f "$ac_tmp/stdin"
12089  case $ac_file in
12090  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12091  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12092  esac \
12093  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12094 ;;
12095  :H)
12096  #
12097  # CONFIG_HEADER
12098  #
12099  if test x"$ac_file" != x-; then
12100    {
12101      $as_echo "/* $configure_input  */" \
12102      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12103    } >"$ac_tmp/config.h" \
12104      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12105    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12106      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12107$as_echo "$as_me: $ac_file is unchanged" >&6;}
12108    else
12109      rm -f "$ac_file"
12110      mv "$ac_tmp/config.h" "$ac_file" \
12111	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12112    fi
12113  else
12114    $as_echo "/* $configure_input  */" \
12115      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12116      || as_fn_error $? "could not create -" "$LINENO" 5
12117  fi
12118 ;;
12119
12120
12121  esac
12122
12123done # for ac_tag
12124
12125
12126as_fn_exit 0
12127_ACEOF
12128ac_clean_files=$ac_clean_files_save
12129
12130test $ac_write_fail = 0 ||
12131  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12132
12133
12134# configure is writing to config.log, and then calls config.status.
12135# config.status does its own redirection, appending to config.log.
12136# Unfortunately, on DOS this fails, as config.log is still kept open
12137# by configure, so config.status won't be able to write to it; its
12138# output is simply discarded.  So we exec the FD to /dev/null,
12139# effectively closing config.log, so it can be properly (re)opened and
12140# appended to by config.status.  When coming back to configure, we
12141# need to make the FD available again.
12142if test "$no_create" != yes; then
12143  ac_cs_success=:
12144  ac_config_status_args=
12145  test "$silent" = yes &&
12146    ac_config_status_args="$ac_config_status_args --quiet"
12147  exec 5>/dev/null
12148  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12149  exec 5>>config.log
12150  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12151  # would make configure fail if this is the last instruction.
12152  $ac_cs_success || as_fn_exit 1
12153fi
12154if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12155  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12156$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12157fi
12158
12159
12160(cd $SELFDIR/src && make resource.h)
12161
12162(cd $SELFDIR/src/swt/motif && make $DUNEMAKEFLAGS depend)
12163(cd $SELFDIR/src && make $DUNEMAKEFLAGS depend)
12164
12165if test "X_" != "X_$SDL_JOYSTICK_SUBDIR" ; then
12166   (cd $SELFDIR/src/SDLjoystick && make $DUNEMAKEFLAGS depend)
12167fi
12168
12169(cd $SELFDIR/src/SDLjoystick && touch SDL_error.h)
12170(cd $SELFDIR/src/SDLjoystick && touch SDL_joystick_c.h)
12171
12172
12173if test "X_$WARNING_LEX" != "X_" ; then
12174    echo " " 1>&2
12175    echo "Warning:" 1>&2
12176    echo " " $WARNING_LEX 1>&2
12177else
12178    touch $SELFDIR/src/lexer.l $SELFDIR/src/swt/rc/rclex.l
12179fi
12180
12181if test "X_$WARNING_YACC" != "X_" ; then
12182    echo " " 1>&2
12183    echo "Warning:" 1>&2
12184    echo " " $WARNING_YACC 1>&2
12185else
12186    touch $SELFDIR/src/parser.y $SELFDIR/src/swt/rc/rcparse.y
12187fi
12188
12189if test "X_$XLSFONTS_WARNING" != "X_" ; then
12190    echo " " 1>&2
12191    echo "Warning:" 1>&2
12192    echo " " $XLSFONTS_WARNING 1>&2
12193fi
12194
12195if test "X_$GLUT_WARNING" != "X_" ; then
12196    echo " " 1>&2
12197    echo "Warning:" 1>&2
12198    echo " " $GLUT_WARNING 1>&2
12199fi
12200
12201if test "X_$EXPAT_WARNING" != "X_" ; then
12202    echo " " 1>&2
12203    echo "Warning:" 1>&2
12204    echo " " $EXPAT_WARNING 1>&2
12205fi
12206
12207if test "X_$FFMPEG_WARNING" != "X_" ; then
12208    echo " " 1>&2
12209    echo "Warning:" 1>&2
12210    echo " " $FFMPEG_WARNING 1>&2
12211fi
12212
12213if test "X_$IMAGEEDITOR" = "X_" ; then
12214    echo " " 1>&2
12215    echo "Warning:" 1>&2
12216    echo "  no known program to change jpeg (.jpg) and png (.png) files" 1>&2
12217    echo "  if you have such a program, you should" 1>&2
12218    echo "  restart configure with the --with-imageeditor= option" 1>&2
12219fi
12220
12221if test "X_$SOUNDEDITOR" = "X_" ; then
12222    echo " " 1>&2
12223    echo "Warning:" 1>&2
12224    echo "  no known program to change wave (.wav) files" 1>&2
12225    echo "  if you have such a program, you should" 1>&2
12226    echo "  restart configure with the --with-soundeditor= option" 1>&2
12227fi
12228
12229if test "X_$MOVIEEDITOR" = "X_" ; then
12230    echo " " 1>&2
12231    echo "Warning:" 1>&2
12232    echo "  no known program to change mpeg1 (.mpeg) files" 1>&2
12233    echo "  if you have such a program, you should" 1>&2
12234    echo "  restart configure with the --with-movieeditor= option" 1>&2
12235fi
12236
12237if test "X_$IMAGECONVERTER" = "X_" ; then
12238    echo " " 1>&2
12239    echo "Warning:" 1>&2
12240    echo "  no known program to convert bitmap files (.jpg, .png) to bmp files for ac3d export" 1>&2
12241    echo "  if you have such a program, you should" 1>&2
12242    echo "  restart configure with the --with-imageconverter= option" 1>&2
12243fi
12244
12245if test "X_$AVOID_RANLIB" = "X_yes" ; then
12246    if test "X_$OS" = "X_Darwin" ; then
12247        echo " " 1>&2
12248        echo "Warning:" 1>&2
12249        echo "  the usage of the --without-ranlib option may be not wise of MacOSX" 1>&2
12250        echo "  a lot of MacOSX versions require the usage of the ranlib command" 1>&2
12251    fi
12252fi
12253
12254if test "X_$CGAL_ERROR" = "X_1" ; then
12255    echo " " 1>&2
12256    echo "Warning:" 1>&2
12257    echo "  couldn't find a working CGAL development system" 1>&2
12258    echo "  if CGAL is not available, the convex hull and CSG functions are not available" 1>&2
12259fi
12260
12261if test "X_$VCG_ERROR" = "X_1" ; then
12262    echo " " 1>&2
12263    echo "Warning:" 1>&2
12264    echo "  couldn't find a working libvcg development system (headers ony)" 1>&2
12265    echo "if libvcg is not available, the polygon reducer function is not available" 1>&2
12266fi
12267
12268
12269
12270