1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for aranym 1.1.0.
4#
5# Report bugs to <aranym@googlegroups.com>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: aranym@googlegroups.com about your system, including
271$0: any error possibly output before this message. Then
272$0: install a modern shell, or manually run the script
273$0: under such a shell if you do have one."
274  fi
275  exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293  { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302  return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310  set +e
311  as_fn_set_status $1
312  exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321  case $as_dir in #(
322  -*) as_dir=./$as_dir;;
323  esac
324  test -d "$as_dir" || eval $as_mkdir_p || {
325    as_dirs=
326    while :; do
327      case $as_dir in #(
328      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329      *) as_qdir=$as_dir;;
330      esac
331      as_dirs="'$as_qdir' $as_dirs"
332      as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334	 X"$as_dir" : 'X\(//\)[^/]' \| \
335	 X"$as_dir" : 'X\(//\)$' \| \
336	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339	    s//\1/
340	    q
341	  }
342	  /^X\(\/\/\)[^/].*/{
343	    s//\1/
344	    q
345	  }
346	  /^X\(\/\/\)$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\).*/{
351	    s//\1/
352	    q
353	  }
354	  s/.*/./; q'`
355      test -d "$as_dir" && break
356    done
357    test -z "$as_dirs" || eval "mkdir $as_dirs"
358  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368  test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377  eval 'as_fn_append ()
378  {
379    eval $1+=\$2
380  }'
381else
382  as_fn_append ()
383  {
384    eval $1=\$$1\$2
385  }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394  eval 'as_fn_arith ()
395  {
396    as_val=$(( $* ))
397  }'
398else
399  as_fn_arith ()
400  {
401    as_val=`expr "$@" || test $? -eq 1`
402  }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413  as_status=$1; test $as_status -eq 0 && as_status=1
414  if test "$4"; then
415    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417  fi
418  $as_echo "$as_me: error: $2" >&2
419  as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423   test "X`expr 00001 : '.*\(...\)'`" = X001; then
424  as_expr=expr
425else
426  as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430  as_basename=basename
431else
432  as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436  as_dirname=dirname
437else
438  as_dirname=false
439fi
440
441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443	 X"$0" : 'X\(//\)$' \| \
444	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446    sed '/^.*\/\([^/][^/]*\)\/*$/{
447	    s//\1/
448	    q
449	  }
450	  /^X\/\(\/\/\)$/{
451	    s//\1/
452	    q
453	  }
454	  /^X\/\(\/\).*/{
455	    s//\1/
456	    q
457	  }
458	  s/.*/./; q'`
459
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468  as_lineno_1=$LINENO as_lineno_1a=$LINENO
469  as_lineno_2=$LINENO as_lineno_2a=$LINENO
470  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473  sed -n '
474    p
475    /[$]LINENO/=
476  ' <$as_myself |
477    sed '
478      s/[$]LINENO.*/&-/
479      t lineno
480      b
481      :lineno
482      N
483      :loop
484      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485      t loop
486      s/-\n.*//
487    ' >$as_me.lineno &&
488  chmod +x "$as_me.lineno" ||
489    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492  # already done that, so ensure we don't try to do so again and fall
493  # in an infinite loop.  This has already happened in practice.
494  _as_can_reexec=no; export _as_can_reexec
495  # Don't try to exec as it changes $[0], causing all sort of problems
496  # (the dirname of $[0] is not the place where we might find the
497  # original and so on.  Autoconf is especially sensitive to this).
498  . "./$as_me.lineno"
499  # Exit status is that of the last command.
500  exit
501}
502
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506  case `echo 'xy\c'` in
507  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
508  xy)  ECHO_C='\c';;
509  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510       ECHO_T='	';;
511  esac;;
512*)
513  ECHO_N='-n';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518  rm -f conf$$.dir/conf$$.file
519else
520  rm -f conf$$.dir
521  mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524  if ln -s conf$$.file conf$$ 2>/dev/null; then
525    as_ln_s='ln -s'
526    # ... but there are two gotchas:
527    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529    # In both cases, we have to default to `cp -pR'.
530    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531      as_ln_s='cp -pR'
532  elif ln conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s=ln
534  else
535    as_ln_s='cp -pR'
536  fi
537else
538  as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544  as_mkdir_p='mkdir -p "$as_dir"'
545else
546  test -d ./-p && rmdir ./-p
547  as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
562
563# Name of the host.
564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='aranym'
582PACKAGE_TARNAME='aranym'
583PACKAGE_VERSION='1.1.0'
584PACKAGE_STRING='aranym 1.1.0'
585PACKAGE_BUGREPORT='aranym@googlegroups.com'
586PACKAGE_URL='https://github.com/aranym/aranym'
587
588ac_unique_file="src/hostscreen.cpp"
589# Factoring default headers for most tests.
590ac_includes_default="\
591#include <stdio.h>
592#ifdef HAVE_SYS_TYPES_H
593# include <sys/types.h>
594#endif
595#ifdef HAVE_SYS_STAT_H
596# include <sys/stat.h>
597#endif
598#ifdef STDC_HEADERS
599# include <stdlib.h>
600# include <stddef.h>
601#else
602# ifdef HAVE_STDLIB_H
603#  include <stdlib.h>
604# endif
605#endif
606#ifdef HAVE_STRING_H
607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608#  include <memory.h>
609# endif
610# include <string.h>
611#endif
612#ifdef HAVE_STRINGS_H
613# include <strings.h>
614#endif
615#ifdef HAVE_INTTYPES_H
616# include <inttypes.h>
617#endif
618#ifdef HAVE_STDINT_H
619# include <stdint.h>
620#endif
621#ifdef HAVE_UNISTD_H
622# include <unistd.h>
623#endif"
624
625ac_subst_vars='am__EXEEXT_FALSE
626am__EXEEXT_TRUE
627LTLIBOBJS
628LIBOBJS
629GENCOMP_ARCH
630BUNDLE_FRAMEWORKS
631ARCHFLAGS
632CPU_TYPE
633TARGET
634DBGSP
635DEFINES
636WFLAGS
637ARCH
638ENABLE_SERIALUNIX_FALSE
639ENABLE_SERIALUNIX_TRUE
640ENABLE_PARALLELPARPORT_FALSE
641ENABLE_PARALLELPARPORT_TRUE
642ENABLE_PARALLELX86_FALSE
643ENABLE_PARALLELX86_TRUE
644NFEXEC_SUPPORT_FALSE
645NFEXEC_SUPPORT_TRUE
646NFCLIPBRD_SUPPORT_FALSE
647NFCLIPBRD_SUPPORT_TRUE
648NFVDI_SUPPORT_FALSE
649NFVDI_SUPPORT_TRUE
650NFJPEG_SUPPORT_FALSE
651NFJPEG_SUPPORT_TRUE
652NFOSMESA_SUPPORT_FALSE
653NFOSMESA_SUPPORT_TRUE
654OSMESA_LIBS
655OSMESA_CFLAGS
656USBHOST_SUPPORT_FALSE
657USBHOST_SUPPORT_TRUE
658NFPCI_LINUX_SUPPORT_FALSE
659NFPCI_LINUX_SUPPORT_TRUE
660NFPCI_SUPPORT_FALSE
661NFPCI_SUPPORT_TRUE
662NFCDROM_SUPPORT_FALSE
663NFCDROM_SUPPORT_TRUE
664LIBUSB_LIBS
665LIBUSB_CFLAGS
666ZLIB_LIBS
667ZLIB_CFLAGS
668ENABLE_OPENGL_FALSE
669ENABLE_OPENGL_TRUE
670GL_LIBS
671GL_CFLAGS
672JPEG_LIBS
673ENABLE_SDL2_FALSE
674ENABLE_SDL2_TRUE
675SDL2_CONFIG
676SDL2_LIBS
677SDL2_CFLAGS
678SDL_LIBS
679SDL_CFLAGS
680SDL_CONFIG
681DISASM_USE_OPCODES_FALSE
682DISASM_USE_OPCODES_TRUE
683DISASM_USE_BUILTIN_FALSE
684DISASM_USE_BUILTIN_TRUE
685DISASM_LIBS
686DISASM_CFLAGS
687USE_DEBUGGER_FALSE
688USE_DEBUGGER_TRUE
689FPU_MPFR_FALSE
690FPU_MPFR_TRUE
691FPU_UAE_FALSE
692FPU_UAE_TRUE
693FPU_X86_FALSE
694FPU_X86_TRUE
695FPU_IEEE_FALSE
696FPU_IEEE_TRUE
697USE_JIT2_FALSE
698USE_JIT2_TRUE
699USE_JIT_FPU_FALSE
700USE_JIT_FPU_TRUE
701USE_JIT_FALSE
702USE_JIT_TRUE
703GENCOMP_ARCH_ARM_FALSE
704GENCOMP_ARCH_ARM_TRUE
705GENCOMP_ARCH_X86_FALSE
706GENCOMP_ARCH_X86_TRUE
707EXTENDED_SIGSEGV_FALSE
708EXTENDED_SIGSEGV_TRUE
709SDL_GUI_FALSE
710SDL_GUI_TRUE
711HOSTFS_SUPPORT_FALSE
712HOSTFS_SUPPORT_TRUE
713ETHERNET_SUPPORT_FALSE
714ETHERNET_SUPPORT_TRUE
715NEED_ARATAPIF_FALSE
716NEED_ARATAPIF_TRUE
717WANT_DSP_DISASM_FALSE
718WANT_DSP_DISASM_TRUE
719WANT_DSP_FALSE
720WANT_DSP_TRUE
721FULLMMU_FALSE
722FULLMMU_TRUE
723NEED_GETOPT_FALSE
724NEED_GETOPT_TRUE
725BEOS_SETVERSION
726BEOS_RC
727BEOS_XRES
728EGREP
729GREP
730PKG_CONFIG_LIBDIR
731PKG_CONFIG_PATH
732PKG_CONFIG
733ac_ct_WINDRES
734WINDRES
735PERL
736RANLIB
737CXXCPPFLAGS_FOR_BUILD
738CXXFLAGS_FOR_BUILD
739CXXCPP_FOR_BUILD
740ac_ct_CXX_FOR_BUILD
741CXX_FOR_BUILD
742LDFLAGS_FOR_BUILD
743CPPFLAGS_FOR_BUILD
744CFLAGS_FOR_BUILD
745BUILD_OBJEXT
746BUILD_EXEEXT
747CPP_FOR_BUILD
748ac_ct_CC_FOR_BUILD
749CC_FOR_BUILD
750CXXCPP
751am__fastdepCXX_FALSE
752am__fastdepCXX_TRUE
753CXXDEPMODE
754ac_ct_CXX
755CXXFLAGS
756CXX
757CPP
758am__fastdepOBJC_FALSE
759am__fastdepOBJC_TRUE
760OBJCDEPMODE
761ac_ct_OBJC
762OBJCFLAGS
763OBJC
764am__fastdepCC_FALSE
765am__fastdepCC_TRUE
766CCDEPMODE
767am__nodep
768AMDEPBACKSLASH
769AMDEP_FALSE
770AMDEP_TRUE
771am__quote
772am__include
773DEPDIR
774OBJEXT
775EXEEXT
776ac_ct_CC
777CPPFLAGS
778LDFLAGS
779CFLAGS
780CC
781CPU_TYPE_unknown_FALSE
782CPU_TYPE_unknown_TRUE
783CPU_TYPE_powerpc_FALSE
784CPU_TYPE_powerpc_TRUE
785CPU_TYPE_arm_FALSE
786CPU_TYPE_arm_TRUE
787CPU_TYPE_sparc_FALSE
788CPU_TYPE_sparc_TRUE
789CPU_TYPE_x86_64_FALSE
790CPU_TYPE_x86_64_TRUE
791CPU_TYPE_x86_FALSE
792CPU_TYPE_x86_TRUE
793WITH_FINK_FALSE
794WITH_FINK_TRUE
795ANDROID_OS_FALSE
796ANDROID_OS_TRUE
797OS_TYPE_unknown_FALSE
798OS_TYPE_unknown_TRUE
799OS_TYPE_mingw_FALSE
800OS_TYPE_mingw_TRUE
801OS_TYPE_beos_FALSE
802OS_TYPE_beos_TRUE
803OS_TYPE_mint_FALSE
804OS_TYPE_mint_TRUE
805OS_TYPE_irix_FALSE
806OS_TYPE_irix_TRUE
807OS_TYPE_cygwin_FALSE
808OS_TYPE_cygwin_TRUE
809OS_TYPE_darwin_FALSE
810OS_TYPE_darwin_TRUE
811OS_TYPE_solaris_FALSE
812OS_TYPE_solaris_TRUE
813OS_TYPE_freebsd_FALSE
814OS_TYPE_freebsd_TRUE
815OS_TYPE_netbsd_FALSE
816OS_TYPE_netbsd_TRUE
817OS_TYPE_openbsd_FALSE
818OS_TYPE_openbsd_TRUE
819OS_TYPE_linux_FALSE
820OS_TYPE_linux_TRUE
821MAINT
822MAINTAINER_MODE_FALSE
823MAINTAINER_MODE_TRUE
824AM_BACKSLASH
825AM_DEFAULT_VERBOSITY
826AM_DEFAULT_V
827AM_V
828am__untar
829am__tar
830AMTAR
831am__leading_dot
832SET_MAKE
833AWK
834mkdir_p
835MKDIR_P
836INSTALL_STRIP_PROGRAM
837STRIP
838install_sh
839MAKEINFO
840AUTOHEADER
841AUTOMAKE
842AUTOCONF
843ACLOCAL
844VERSION
845PACKAGE
846CYGPATH_W
847am__isrc
848INSTALL_DATA
849INSTALL_SCRIPT
850INSTALL_PROGRAM
851host_os
852host_vendor
853host_cpu
854host
855build_os
856build_vendor
857build_cpu
858build
859target_alias
860host_alias
861build_alias
862LIBS
863ECHO_T
864ECHO_N
865ECHO_C
866DEFS
867mandir
868localedir
869libdir
870psdir
871pdfdir
872dvidir
873htmldir
874infodir
875docdir
876oldincludedir
877includedir
878runstatedir
879localstatedir
880sharedstatedir
881sysconfdir
882datadir
883datarootdir
884libexecdir
885sbindir
886bindir
887program_transform_name
888prefix
889exec_prefix
890PACKAGE_URL
891PACKAGE_BUGREPORT
892PACKAGE_STRING
893PACKAGE_VERSION
894PACKAGE_TARNAME
895PACKAGE_NAME
896PATH_SEPARATOR
897SHELL'
898ac_subst_files=''
899ac_user_opts='
900enable_option_checking
901enable_silent_rules
902enable_maintainer_mode
903enable_nat_debug
904enable_full_debug
905enable_debug
906enable_fullhistory
907enable_flightrecorder
908enable_fullmmu
909enable_atc
910enable_realstop
911enable_dsp
912enable_dsp_disasm
913enable_protect2k
914enable_fixedfastram
915enable_fixedvideoram
916enable_blitmemmove
917enable_blitsdlblit
918enable_hostfs
919enable_ctrlkey
920enable_gui
921enable_opengl
922with_mesa_headers
923enable_nfpci
924enable_usbhost
925enable_nfosmesa
926enable_nfjpeg
927enable_nfclipbrd
928enable_nfvdi
929enable_scsi
930enable_nfexec
931enable_ata_cdrom
932enable_epslimiter
933enable_lilo
934enable_rtctimer
935enable_parallelx86
936enable_parport
937enable_serialport
938with_fink
939with_classicconfig
940enable_fpe
941enable_addressing
942enable_addr_check
943enable_spcflags_excl
944enable_jit_compiler
945enable_jit2
946enable_jit_fpu
947enable_jit_debug
948enable_ethernet
949enable_bpf_ethernet
950enable_cxx_exceptions
951enable_dependency_tracking
952enable_largefile
953with_opcodes
954enable_disasm
955enable_sdl2
956with_sdl_prefix
957with_sdl_exec_prefix
958enable_sdltest
959with_sdl2_prefix
960with_sdl2_exec_prefix
961'
962      ac_precious_vars='build_alias
963host_alias
964target_alias
965CC
966CFLAGS
967LDFLAGS
968LIBS
969CPPFLAGS
970OBJC
971OBJCFLAGS
972CPP
973CXX
974CXXFLAGS
975CCC
976CXXCPP
977PKG_CONFIG
978PKG_CONFIG_PATH
979PKG_CONFIG_LIBDIR
980SDL2_CFLAGS
981SDL2_LIBS
982GL_CFLAGS
983GL_LIBS
984ZLIB_CFLAGS
985ZLIB_LIBS
986LIBUSB_CFLAGS
987LIBUSB_LIBS
988OSMESA_CFLAGS
989OSMESA_LIBS'
990
991
992# Initialize some variables set by options.
993ac_init_help=
994ac_init_version=false
995ac_unrecognized_opts=
996ac_unrecognized_sep=
997# The variables have the same names as the options, with
998# dashes changed to underlines.
999cache_file=/dev/null
1000exec_prefix=NONE
1001no_create=
1002no_recursion=
1003prefix=NONE
1004program_prefix=NONE
1005program_suffix=NONE
1006program_transform_name=s,x,x,
1007silent=
1008site=
1009srcdir=
1010verbose=
1011x_includes=NONE
1012x_libraries=NONE
1013
1014# Installation directory options.
1015# These are left unexpanded so users can "make install exec_prefix=/foo"
1016# and all the variables that are supposed to be based on exec_prefix
1017# by default will actually change.
1018# Use braces instead of parens because sh, perl, etc. also accept them.
1019# (The list follows the same order as the GNU Coding Standards.)
1020bindir='${exec_prefix}/bin'
1021sbindir='${exec_prefix}/sbin'
1022libexecdir='${exec_prefix}/libexec'
1023datarootdir='${prefix}/share'
1024datadir='${datarootdir}'
1025sysconfdir='${prefix}/etc'
1026sharedstatedir='${prefix}/com'
1027localstatedir='${prefix}/var'
1028runstatedir='${localstatedir}/run'
1029includedir='${prefix}/include'
1030oldincludedir='/usr/include'
1031docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1032infodir='${datarootdir}/info'
1033htmldir='${docdir}'
1034dvidir='${docdir}'
1035pdfdir='${docdir}'
1036psdir='${docdir}'
1037libdir='${exec_prefix}/lib'
1038localedir='${datarootdir}/locale'
1039mandir='${datarootdir}/man'
1040
1041ac_prev=
1042ac_dashdash=
1043for ac_option
1044do
1045  # If the previous option needs an argument, assign it.
1046  if test -n "$ac_prev"; then
1047    eval $ac_prev=\$ac_option
1048    ac_prev=
1049    continue
1050  fi
1051
1052  case $ac_option in
1053  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1054  *=)   ac_optarg= ;;
1055  *)    ac_optarg=yes ;;
1056  esac
1057
1058  # Accept the important Cygnus configure options, so we can diagnose typos.
1059
1060  case $ac_dashdash$ac_option in
1061  --)
1062    ac_dashdash=yes ;;
1063
1064  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1065    ac_prev=bindir ;;
1066  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1067    bindir=$ac_optarg ;;
1068
1069  -build | --build | --buil | --bui | --bu)
1070    ac_prev=build_alias ;;
1071  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1072    build_alias=$ac_optarg ;;
1073
1074  -cache-file | --cache-file | --cache-fil | --cache-fi \
1075  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1076    ac_prev=cache_file ;;
1077  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1078  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1079    cache_file=$ac_optarg ;;
1080
1081  --config-cache | -C)
1082    cache_file=config.cache ;;
1083
1084  -datadir | --datadir | --datadi | --datad)
1085    ac_prev=datadir ;;
1086  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1087    datadir=$ac_optarg ;;
1088
1089  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1090  | --dataroo | --dataro | --datar)
1091    ac_prev=datarootdir ;;
1092  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1093  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1094    datarootdir=$ac_optarg ;;
1095
1096  -disable-* | --disable-*)
1097    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1098    # Reject names that are not valid shell variable names.
1099    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100      as_fn_error $? "invalid feature name: $ac_useropt"
1101    ac_useropt_orig=$ac_useropt
1102    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103    case $ac_user_opts in
1104      *"
1105"enable_$ac_useropt"
1106"*) ;;
1107      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1108	 ac_unrecognized_sep=', ';;
1109    esac
1110    eval enable_$ac_useropt=no ;;
1111
1112  -docdir | --docdir | --docdi | --doc | --do)
1113    ac_prev=docdir ;;
1114  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1115    docdir=$ac_optarg ;;
1116
1117  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1118    ac_prev=dvidir ;;
1119  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1120    dvidir=$ac_optarg ;;
1121
1122  -enable-* | --enable-*)
1123    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1124    # Reject names that are not valid shell variable names.
1125    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126      as_fn_error $? "invalid feature name: $ac_useropt"
1127    ac_useropt_orig=$ac_useropt
1128    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129    case $ac_user_opts in
1130      *"
1131"enable_$ac_useropt"
1132"*) ;;
1133      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1134	 ac_unrecognized_sep=', ';;
1135    esac
1136    eval enable_$ac_useropt=\$ac_optarg ;;
1137
1138  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1139  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1140  | --exec | --exe | --ex)
1141    ac_prev=exec_prefix ;;
1142  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1143  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1144  | --exec=* | --exe=* | --ex=*)
1145    exec_prefix=$ac_optarg ;;
1146
1147  -gas | --gas | --ga | --g)
1148    # Obsolete; use --with-gas.
1149    with_gas=yes ;;
1150
1151  -help | --help | --hel | --he | -h)
1152    ac_init_help=long ;;
1153  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1154    ac_init_help=recursive ;;
1155  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1156    ac_init_help=short ;;
1157
1158  -host | --host | --hos | --ho)
1159    ac_prev=host_alias ;;
1160  -host=* | --host=* | --hos=* | --ho=*)
1161    host_alias=$ac_optarg ;;
1162
1163  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1164    ac_prev=htmldir ;;
1165  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1166  | --ht=*)
1167    htmldir=$ac_optarg ;;
1168
1169  -includedir | --includedir | --includedi | --included | --include \
1170  | --includ | --inclu | --incl | --inc)
1171    ac_prev=includedir ;;
1172  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1173  | --includ=* | --inclu=* | --incl=* | --inc=*)
1174    includedir=$ac_optarg ;;
1175
1176  -infodir | --infodir | --infodi | --infod | --info | --inf)
1177    ac_prev=infodir ;;
1178  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1179    infodir=$ac_optarg ;;
1180
1181  -libdir | --libdir | --libdi | --libd)
1182    ac_prev=libdir ;;
1183  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1184    libdir=$ac_optarg ;;
1185
1186  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1187  | --libexe | --libex | --libe)
1188    ac_prev=libexecdir ;;
1189  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1190  | --libexe=* | --libex=* | --libe=*)
1191    libexecdir=$ac_optarg ;;
1192
1193  -localedir | --localedir | --localedi | --localed | --locale)
1194    ac_prev=localedir ;;
1195  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1196    localedir=$ac_optarg ;;
1197
1198  -localstatedir | --localstatedir | --localstatedi | --localstated \
1199  | --localstate | --localstat | --localsta | --localst | --locals)
1200    ac_prev=localstatedir ;;
1201  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1202  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1203    localstatedir=$ac_optarg ;;
1204
1205  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1206    ac_prev=mandir ;;
1207  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1208    mandir=$ac_optarg ;;
1209
1210  -nfp | --nfp | --nf)
1211    # Obsolete; use --without-fp.
1212    with_fp=no ;;
1213
1214  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1215  | --no-cr | --no-c | -n)
1216    no_create=yes ;;
1217
1218  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1219  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1220    no_recursion=yes ;;
1221
1222  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1223  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1224  | --oldin | --oldi | --old | --ol | --o)
1225    ac_prev=oldincludedir ;;
1226  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1227  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1228  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1229    oldincludedir=$ac_optarg ;;
1230
1231  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1232    ac_prev=prefix ;;
1233  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1234    prefix=$ac_optarg ;;
1235
1236  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1237  | --program-pre | --program-pr | --program-p)
1238    ac_prev=program_prefix ;;
1239  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1240  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1241    program_prefix=$ac_optarg ;;
1242
1243  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1244  | --program-suf | --program-su | --program-s)
1245    ac_prev=program_suffix ;;
1246  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1247  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1248    program_suffix=$ac_optarg ;;
1249
1250  -program-transform-name | --program-transform-name \
1251  | --program-transform-nam | --program-transform-na \
1252  | --program-transform-n | --program-transform- \
1253  | --program-transform | --program-transfor \
1254  | --program-transfo | --program-transf \
1255  | --program-trans | --program-tran \
1256  | --progr-tra | --program-tr | --program-t)
1257    ac_prev=program_transform_name ;;
1258  -program-transform-name=* | --program-transform-name=* \
1259  | --program-transform-nam=* | --program-transform-na=* \
1260  | --program-transform-n=* | --program-transform-=* \
1261  | --program-transform=* | --program-transfor=* \
1262  | --program-transfo=* | --program-transf=* \
1263  | --program-trans=* | --program-tran=* \
1264  | --progr-tra=* | --program-tr=* | --program-t=*)
1265    program_transform_name=$ac_optarg ;;
1266
1267  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1268    ac_prev=pdfdir ;;
1269  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1270    pdfdir=$ac_optarg ;;
1271
1272  -psdir | --psdir | --psdi | --psd | --ps)
1273    ac_prev=psdir ;;
1274  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1275    psdir=$ac_optarg ;;
1276
1277  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1278  | -silent | --silent | --silen | --sile | --sil)
1279    silent=yes ;;
1280
1281  -runstatedir | --runstatedir | --runstatedi | --runstated \
1282  | --runstate | --runstat | --runsta | --runst | --runs \
1283  | --run | --ru | --r)
1284    ac_prev=runstatedir ;;
1285  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1286  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1287  | --run=* | --ru=* | --r=*)
1288    runstatedir=$ac_optarg ;;
1289
1290  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1291    ac_prev=sbindir ;;
1292  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1293  | --sbi=* | --sb=*)
1294    sbindir=$ac_optarg ;;
1295
1296  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1297  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1298  | --sharedst | --shareds | --shared | --share | --shar \
1299  | --sha | --sh)
1300    ac_prev=sharedstatedir ;;
1301  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1302  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1303  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1304  | --sha=* | --sh=*)
1305    sharedstatedir=$ac_optarg ;;
1306
1307  -site | --site | --sit)
1308    ac_prev=site ;;
1309  -site=* | --site=* | --sit=*)
1310    site=$ac_optarg ;;
1311
1312  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1313    ac_prev=srcdir ;;
1314  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1315    srcdir=$ac_optarg ;;
1316
1317  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1318  | --syscon | --sysco | --sysc | --sys | --sy)
1319    ac_prev=sysconfdir ;;
1320  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1321  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1322    sysconfdir=$ac_optarg ;;
1323
1324  -target | --target | --targe | --targ | --tar | --ta | --t)
1325    ac_prev=target_alias ;;
1326  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1327    target_alias=$ac_optarg ;;
1328
1329  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1330    verbose=yes ;;
1331
1332  -version | --version | --versio | --versi | --vers | -V)
1333    ac_init_version=: ;;
1334
1335  -with-* | --with-*)
1336    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1337    # Reject names that are not valid shell variable names.
1338    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1339      as_fn_error $? "invalid package name: $ac_useropt"
1340    ac_useropt_orig=$ac_useropt
1341    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1342    case $ac_user_opts in
1343      *"
1344"with_$ac_useropt"
1345"*) ;;
1346      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1347	 ac_unrecognized_sep=', ';;
1348    esac
1349    eval with_$ac_useropt=\$ac_optarg ;;
1350
1351  -without-* | --without-*)
1352    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1353    # Reject names that are not valid shell variable names.
1354    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1355      as_fn_error $? "invalid package name: $ac_useropt"
1356    ac_useropt_orig=$ac_useropt
1357    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1358    case $ac_user_opts in
1359      *"
1360"with_$ac_useropt"
1361"*) ;;
1362      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1363	 ac_unrecognized_sep=', ';;
1364    esac
1365    eval with_$ac_useropt=no ;;
1366
1367  --x)
1368    # Obsolete; use --with-x.
1369    with_x=yes ;;
1370
1371  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1372  | --x-incl | --x-inc | --x-in | --x-i)
1373    ac_prev=x_includes ;;
1374  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1375  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1376    x_includes=$ac_optarg ;;
1377
1378  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1379  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1380    ac_prev=x_libraries ;;
1381  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1382  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1383    x_libraries=$ac_optarg ;;
1384
1385  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1386Try \`$0 --help' for more information"
1387    ;;
1388
1389  *=*)
1390    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1391    # Reject names that are not valid shell variable names.
1392    case $ac_envvar in #(
1393      '' | [0-9]* | *[!_$as_cr_alnum]* )
1394      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1395    esac
1396    eval $ac_envvar=\$ac_optarg
1397    export $ac_envvar ;;
1398
1399  *)
1400    # FIXME: should be removed in autoconf 3.0.
1401    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1402    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1403      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1404    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1405    ;;
1406
1407  esac
1408done
1409
1410if test -n "$ac_prev"; then
1411  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1412  as_fn_error $? "missing argument to $ac_option"
1413fi
1414
1415if test -n "$ac_unrecognized_opts"; then
1416  case $enable_option_checking in
1417    no) ;;
1418    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1419    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1420  esac
1421fi
1422
1423# Check all directory arguments for consistency.
1424for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1425		datadir sysconfdir sharedstatedir localstatedir includedir \
1426		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1427		libdir localedir mandir runstatedir
1428do
1429  eval ac_val=\$$ac_var
1430  # Remove trailing slashes.
1431  case $ac_val in
1432    */ )
1433      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1434      eval $ac_var=\$ac_val;;
1435  esac
1436  # Be sure to have absolute directory names.
1437  case $ac_val in
1438    [\\/$]* | ?:[\\/]* )  continue;;
1439    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1440  esac
1441  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1442done
1443
1444# There might be people who depend on the old broken behavior: `$host'
1445# used to hold the argument of --host etc.
1446# FIXME: To remove some day.
1447build=$build_alias
1448host=$host_alias
1449target=$target_alias
1450
1451# FIXME: To remove some day.
1452if test "x$host_alias" != x; then
1453  if test "x$build_alias" = x; then
1454    cross_compiling=maybe
1455  elif test "x$build_alias" != "x$host_alias"; then
1456    cross_compiling=yes
1457  fi
1458fi
1459
1460ac_tool_prefix=
1461test -n "$host_alias" && ac_tool_prefix=$host_alias-
1462
1463test "$silent" = yes && exec 6>/dev/null
1464
1465
1466ac_pwd=`pwd` && test -n "$ac_pwd" &&
1467ac_ls_di=`ls -di .` &&
1468ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1469  as_fn_error $? "working directory cannot be determined"
1470test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1471  as_fn_error $? "pwd does not report name of working directory"
1472
1473
1474# Find the source files, if location was not specified.
1475if test -z "$srcdir"; then
1476  ac_srcdir_defaulted=yes
1477  # Try the directory containing this script, then the parent directory.
1478  ac_confdir=`$as_dirname -- "$as_myself" ||
1479$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1480	 X"$as_myself" : 'X\(//\)[^/]' \| \
1481	 X"$as_myself" : 'X\(//\)$' \| \
1482	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1483$as_echo X"$as_myself" |
1484    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1485	    s//\1/
1486	    q
1487	  }
1488	  /^X\(\/\/\)[^/].*/{
1489	    s//\1/
1490	    q
1491	  }
1492	  /^X\(\/\/\)$/{
1493	    s//\1/
1494	    q
1495	  }
1496	  /^X\(\/\).*/{
1497	    s//\1/
1498	    q
1499	  }
1500	  s/.*/./; q'`
1501  srcdir=$ac_confdir
1502  if test ! -r "$srcdir/$ac_unique_file"; then
1503    srcdir=..
1504  fi
1505else
1506  ac_srcdir_defaulted=no
1507fi
1508if test ! -r "$srcdir/$ac_unique_file"; then
1509  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1510  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1511fi
1512ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1513ac_abs_confdir=`(
1514	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1515	pwd)`
1516# When building in place, set srcdir=.
1517if test "$ac_abs_confdir" = "$ac_pwd"; then
1518  srcdir=.
1519fi
1520# Remove unnecessary trailing slashes from srcdir.
1521# Double slashes in file names in object file debugging info
1522# mess up M-x gdb in Emacs.
1523case $srcdir in
1524*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1525esac
1526for ac_var in $ac_precious_vars; do
1527  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1528  eval ac_env_${ac_var}_value=\$${ac_var}
1529  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1530  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1531done
1532
1533#
1534# Report the --help message.
1535#
1536if test "$ac_init_help" = "long"; then
1537  # Omit some internal or obsolete options to make the list less imposing.
1538  # This message is too long to be a string in the A/UX 3.1 sh.
1539  cat <<_ACEOF
1540\`configure' configures aranym 1.1.0 to adapt to many kinds of systems.
1541
1542Usage: $0 [OPTION]... [VAR=VALUE]...
1543
1544To assign environment variables (e.g., CC, CFLAGS...), specify them as
1545VAR=VALUE.  See below for descriptions of some of the useful variables.
1546
1547Defaults for the options are specified in brackets.
1548
1549Configuration:
1550  -h, --help              display this help and exit
1551      --help=short        display options specific to this package
1552      --help=recursive    display the short help of all the included packages
1553  -V, --version           display version information and exit
1554  -q, --quiet, --silent   do not print \`checking ...' messages
1555      --cache-file=FILE   cache test results in FILE [disabled]
1556  -C, --config-cache      alias for \`--cache-file=config.cache'
1557  -n, --no-create         do not create output files
1558      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1559
1560Installation directories:
1561  --prefix=PREFIX         install architecture-independent files in PREFIX
1562                          [$ac_default_prefix]
1563  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1564                          [PREFIX]
1565
1566By default, \`make install' will install all the files in
1567\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1568an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1569for instance \`--prefix=\$HOME'.
1570
1571For better control, use the options below.
1572
1573Fine tuning of the installation directories:
1574  --bindir=DIR            user executables [EPREFIX/bin]
1575  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1576  --libexecdir=DIR        program executables [EPREFIX/libexec]
1577  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1578  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1579  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1580  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1581  --libdir=DIR            object code libraries [EPREFIX/lib]
1582  --includedir=DIR        C header files [PREFIX/include]
1583  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1584  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1585  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1586  --infodir=DIR           info documentation [DATAROOTDIR/info]
1587  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1588  --mandir=DIR            man documentation [DATAROOTDIR/man]
1589  --docdir=DIR            documentation root [DATAROOTDIR/doc/aranym]
1590  --htmldir=DIR           html documentation [DOCDIR]
1591  --dvidir=DIR            dvi documentation [DOCDIR]
1592  --pdfdir=DIR            pdf documentation [DOCDIR]
1593  --psdir=DIR             ps documentation [DOCDIR]
1594_ACEOF
1595
1596  cat <<\_ACEOF
1597
1598Program names:
1599  --program-prefix=PREFIX            prepend PREFIX to installed program names
1600  --program-suffix=SUFFIX            append SUFFIX to installed program names
1601  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1602
1603System types:
1604  --build=BUILD     configure for building on BUILD [guessed]
1605  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1606_ACEOF
1607fi
1608
1609if test -n "$ac_init_help"; then
1610  case $ac_init_help in
1611     short | recursive ) echo "Configuration of aranym 1.1.0:";;
1612   esac
1613  cat <<\_ACEOF
1614
1615Optional Features:
1616  --disable-option-checking  ignore unrecognized --enable/--with options
1617  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1618  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1619  --enable-silent-rules   less verbose build output (undo: "make V=1")
1620  --disable-silent-rules  verbose build output (undo: "make V=0")
1621  --enable-maintainer-mode
1622                          enable make rules and dependencies not useful (and
1623                          sometimes confusing) to the casual installer
1624  --enable-nat-debug      enable native debugger support (default=yes)
1625  --enable-full-debug     enable full debug outputs (default=no)
1626  --enable-debug=which    specify wether to use internal debugger (default=no)
1627  --enable-fullhistory    enable full history for debugger (default=no)
1628  --enable-flightrecorder enable CPU flight recorder (default=no)
1629  --enable-fullmmu        enable full 68040 MMU (default=no)
1630  --enable-atc=ATC        select type of ATC for MMU (default=full)
1631  --enable-realstop       enable real STOP instruction (default=yes)
1632  --enable-dsp            enable DSP 56001 (default=yes)
1633  --enable-dsp-disasm     enable DSP 56001 disassembler (default=no)
1634  --enable-protect2k      enable first 2kB of RAM Super protection
1635                          (default=yes)
1636  --enable-fixedfastram=X use fixed size FastRAM of X MB (default=no)
1637  --enable-fixedvideoram  use fixed start of VideoRAM (default=no)
1638  --enable-blitmemmove    enable Blitter memmove rout (default=no)
1639  --enable-blitsdlblit    enable SDL blitting routine EXPERIMENTAL UNSUPPORTED
1640                          BUGGY (default=no)
1641  --enable-hostfs         enable hostfs support (default=yes)
1642  --enable-ctrlkey=WHICH  specify which key to use for control key emulation
1643                          (default=both)
1644  --enable-gui            enable GUI (default=yes)
1645  --enable-opengl         enable OpenGL (default=yes)
1646  --enable-nfpci          enable NatFeat PCI (default=no)
1647  --enable-usbhost        enable NatFeat USB (default=no)
1648  --enable-nfosmesa       enable NatFeat OSMesa (default=no)
1649  --enable-nfjpeg         enable NatFeat JPEG (default=yes)
1650  --enable-nfclipbrd      enable NatFeat Clipboard (default=yes)
1651  --enable-nfvdi          enable NatFeat VDI (default=yes)
1652  --enable-nfscsi         enable NatFeat SCSI (default=yes)
1653  --enable-nfexec         enable NatFeat host file execution (default=yes)
1654  --enable-ata-cdrom      enable ATA CD-ROM emulation (default=yes)
1655  --enable-epslimiter     enable Exception per second limiter (default=no)
1656  --enable-lilo           enable Linux-m68k loader (default=no)
1657  --enable-rtctimer       enable Linux /dev/rtc as source timer (default=yes)
1658  --enable-parallelx86    enable Linux X86 hw access for parallel port
1659                          (default=no)
1660  --enable-parport        enable Linux /dev/parport access for parallel port
1661                          (default=yes)
1662  --enable-serialport     enable Unix /dev/ttySn serial port support
1663                          (default=yes)
1664  --enable-fpe=FPE        specify which fpu emulator to use (default=auto)
1665  --enable-addressing=AM  specify the addressing mode to use (default=fastest)
1666  --enable-addr-check=AM  specify the memory check to use (default=page)
1667  --enable-spcflags-excl  enable exclusive spcflags handling (default=no)
1668  --enable-jit-compiler   enable JIT compiler (default=no)
1669  --enable-jit2           enable JIT (v2) compiler (experimental/ARM only)
1670                          (default=no)
1671  --enable-jit-fpu        enable JIT compiler for FPU instructions
1672                          (default=no)
1673  --enable-jit-debug      activate native code disassemblers (default=no)
1674  --enable-ethernet       enable ethernet card emulation (default=yes)
1675  --enable-bpf-ethernet   enable ethernet card emulation using BPF
1676                          (default=no)
1677  --enable-cxx-exceptions enable the use of C++ try/catch instead of
1678                          setjmp/longjmp (default=yes)
1679  --enable-dependency-tracking
1680                          do not reject slow dependency extractors
1681  --disable-dependency-tracking
1682                          speeds up one-time build
1683  --disable-largefile     omit support for large files
1684  --enable-disasm=builtin|opcodes
1685                          Specify which library to use for disassembly [none]
1686  --disable-sdl2          disable use of SDL2 even if available (default=no)
1687  --disable-sdltest       Do not try to compile and run a test SDL program
1688
1689Optional Packages:
1690  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1691  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1692  --with-mesa-headers     Path to Mesa header files
1693  --with-fink             Use Fink suite to build Aranym on MacOSX
1694                          (default=no)
1695  --with-classicconfig    Use Classic config names on MacOSX (default=no)
1696  --with-opcodes=DIR      specify the directory where the opcodes library is
1697                          located
1698  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1699  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1700
1701  --with-sdl2-prefix=PFX  Prefix where SDL2 is installed (optional)
1702  --with-sdl2-exec-prefix=PFX
1703                          Exec prefix where SDL2 is installed (optional)
1704
1705Some influential environment variables:
1706  CC          C compiler command
1707  CFLAGS      C compiler flags
1708  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1709              nonstandard directory <lib dir>
1710  LIBS        libraries to pass to the linker, e.g. -l<library>
1711  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1712              you have headers in a nonstandard directory <include dir>
1713  OBJC        Objective C compiler command
1714  OBJCFLAGS   Objective C compiler flags
1715  CPP         C preprocessor
1716  CXX         C++ compiler command
1717  CXXFLAGS    C++ compiler flags
1718  CXXCPP      C++ preprocessor
1719  PKG_CONFIG  path to pkg-config utility
1720  PKG_CONFIG_PATH
1721              directories to add to pkg-config's search path
1722  PKG_CONFIG_LIBDIR
1723              path overriding pkg-config's built-in search path
1724  SDL2_CFLAGS C compiler flags for SDL2, overriding pkg-config
1725  SDL2_LIBS   linker flags for SDL2, overriding pkg-config
1726  GL_CFLAGS   C compiler flags for GL, overriding pkg-config
1727  GL_LIBS     linker flags for GL, overriding pkg-config
1728  ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1729  ZLIB_LIBS   linker flags for ZLIB, overriding pkg-config
1730  LIBUSB_CFLAGS
1731              C compiler flags for LIBUSB, overriding pkg-config
1732  LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
1733  OSMESA_CFLAGS
1734              C compiler flags for OSMESA, overriding pkg-config
1735  OSMESA_LIBS linker flags for OSMESA, overriding pkg-config
1736
1737Use these variables to override the choices made by `configure' or to help
1738it to find libraries and programs with nonstandard names/locations.
1739
1740Report bugs to <aranym@googlegroups.com>.
1741aranym home page: <https://github.com/aranym/aranym>.
1742_ACEOF
1743ac_status=$?
1744fi
1745
1746if test "$ac_init_help" = "recursive"; then
1747  # If there are subdirs, report their specific --help.
1748  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1749    test -d "$ac_dir" ||
1750      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1751      continue
1752    ac_builddir=.
1753
1754case "$ac_dir" in
1755.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1756*)
1757  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1758  # A ".." for each directory in $ac_dir_suffix.
1759  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1760  case $ac_top_builddir_sub in
1761  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1762  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1763  esac ;;
1764esac
1765ac_abs_top_builddir=$ac_pwd
1766ac_abs_builddir=$ac_pwd$ac_dir_suffix
1767# for backward compatibility:
1768ac_top_builddir=$ac_top_build_prefix
1769
1770case $srcdir in
1771  .)  # We are building in place.
1772    ac_srcdir=.
1773    ac_top_srcdir=$ac_top_builddir_sub
1774    ac_abs_top_srcdir=$ac_pwd ;;
1775  [\\/]* | ?:[\\/]* )  # Absolute name.
1776    ac_srcdir=$srcdir$ac_dir_suffix;
1777    ac_top_srcdir=$srcdir
1778    ac_abs_top_srcdir=$srcdir ;;
1779  *) # Relative name.
1780    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1781    ac_top_srcdir=$ac_top_build_prefix$srcdir
1782    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1783esac
1784ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1785
1786    cd "$ac_dir" || { ac_status=$?; continue; }
1787    # Check for guested configure.
1788    if test -f "$ac_srcdir/configure.gnu"; then
1789      echo &&
1790      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1791    elif test -f "$ac_srcdir/configure"; then
1792      echo &&
1793      $SHELL "$ac_srcdir/configure" --help=recursive
1794    else
1795      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1796    fi || ac_status=$?
1797    cd "$ac_pwd" || { ac_status=$?; break; }
1798  done
1799fi
1800
1801test -n "$ac_init_help" && exit $ac_status
1802if $ac_init_version; then
1803  cat <<\_ACEOF
1804aranym configure 1.1.0
1805generated by GNU Autoconf 2.69
1806
1807Copyright (C) 2012 Free Software Foundation, Inc.
1808This configure script is free software; the Free Software Foundation
1809gives unlimited permission to copy, distribute and modify it.
1810_ACEOF
1811  exit
1812fi
1813
1814## ------------------------ ##
1815## Autoconf initialization. ##
1816## ------------------------ ##
1817
1818# ac_fn_c_try_compile LINENO
1819# --------------------------
1820# Try to compile conftest.$ac_ext, and return whether this succeeded.
1821ac_fn_c_try_compile ()
1822{
1823  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824  rm -f conftest.$ac_objext
1825  if { { ac_try="$ac_compile"
1826case "(($ac_try" in
1827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828  *) ac_try_echo=$ac_try;;
1829esac
1830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831$as_echo "$ac_try_echo"; } >&5
1832  (eval "$ac_compile") 2>conftest.err
1833  ac_status=$?
1834  if test -s conftest.err; then
1835    grep -v '^ *+' conftest.err >conftest.er1
1836    cat conftest.er1 >&5
1837    mv -f conftest.er1 conftest.err
1838  fi
1839  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840  test $ac_status = 0; } && {
1841	 test -z "$ac_c_werror_flag" ||
1842	 test ! -s conftest.err
1843       } && test -s conftest.$ac_objext; then :
1844  ac_retval=0
1845else
1846  $as_echo "$as_me: failed program was:" >&5
1847sed 's/^/| /' conftest.$ac_ext >&5
1848
1849	ac_retval=1
1850fi
1851  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852  as_fn_set_status $ac_retval
1853
1854} # ac_fn_c_try_compile
1855
1856# ac_fn_objc_try_compile LINENO
1857# -----------------------------
1858# Try to compile conftest.$ac_ext, and return whether this succeeded.
1859ac_fn_objc_try_compile ()
1860{
1861  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862  rm -f conftest.$ac_objext
1863  if { { ac_try="$ac_compile"
1864case "(($ac_try" in
1865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866  *) ac_try_echo=$ac_try;;
1867esac
1868eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869$as_echo "$ac_try_echo"; } >&5
1870  (eval "$ac_compile") 2>conftest.err
1871  ac_status=$?
1872  if test -s conftest.err; then
1873    grep -v '^ *+' conftest.err >conftest.er1
1874    cat conftest.er1 >&5
1875    mv -f conftest.er1 conftest.err
1876  fi
1877  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878  test $ac_status = 0; } && {
1879	 test -z "$ac_objc_werror_flag" ||
1880	 test ! -s conftest.err
1881       } && test -s conftest.$ac_objext; then :
1882  ac_retval=0
1883else
1884  $as_echo "$as_me: failed program was:" >&5
1885sed 's/^/| /' conftest.$ac_ext >&5
1886
1887	ac_retval=1
1888fi
1889  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890  as_fn_set_status $ac_retval
1891
1892} # ac_fn_objc_try_compile
1893
1894# ac_fn_c_try_cpp LINENO
1895# ----------------------
1896# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1897ac_fn_c_try_cpp ()
1898{
1899  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900  if { { ac_try="$ac_cpp conftest.$ac_ext"
1901case "(($ac_try" in
1902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903  *) ac_try_echo=$ac_try;;
1904esac
1905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906$as_echo "$ac_try_echo"; } >&5
1907  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1908  ac_status=$?
1909  if test -s conftest.err; then
1910    grep -v '^ *+' conftest.err >conftest.er1
1911    cat conftest.er1 >&5
1912    mv -f conftest.er1 conftest.err
1913  fi
1914  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915  test $ac_status = 0; } > conftest.i && {
1916	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1917	 test ! -s conftest.err
1918       }; then :
1919  ac_retval=0
1920else
1921  $as_echo "$as_me: failed program was:" >&5
1922sed 's/^/| /' conftest.$ac_ext >&5
1923
1924    ac_retval=1
1925fi
1926  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927  as_fn_set_status $ac_retval
1928
1929} # ac_fn_c_try_cpp
1930
1931# ac_fn_cxx_try_compile LINENO
1932# ----------------------------
1933# Try to compile conftest.$ac_ext, and return whether this succeeded.
1934ac_fn_cxx_try_compile ()
1935{
1936  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937  rm -f conftest.$ac_objext
1938  if { { ac_try="$ac_compile"
1939case "(($ac_try" in
1940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1941  *) ac_try_echo=$ac_try;;
1942esac
1943eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1944$as_echo "$ac_try_echo"; } >&5
1945  (eval "$ac_compile") 2>conftest.err
1946  ac_status=$?
1947  if test -s conftest.err; then
1948    grep -v '^ *+' conftest.err >conftest.er1
1949    cat conftest.er1 >&5
1950    mv -f conftest.er1 conftest.err
1951  fi
1952  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953  test $ac_status = 0; } && {
1954	 test -z "$ac_cxx_werror_flag" ||
1955	 test ! -s conftest.err
1956       } && test -s conftest.$ac_objext; then :
1957  ac_retval=0
1958else
1959  $as_echo "$as_me: failed program was:" >&5
1960sed 's/^/| /' conftest.$ac_ext >&5
1961
1962	ac_retval=1
1963fi
1964  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965  as_fn_set_status $ac_retval
1966
1967} # ac_fn_cxx_try_compile
1968
1969# ac_fn_cxx_try_cpp LINENO
1970# ------------------------
1971# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1972ac_fn_cxx_try_cpp ()
1973{
1974  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975  if { { ac_try="$ac_cpp conftest.$ac_ext"
1976case "(($ac_try" in
1977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1978  *) ac_try_echo=$ac_try;;
1979esac
1980eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1981$as_echo "$ac_try_echo"; } >&5
1982  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1983  ac_status=$?
1984  if test -s conftest.err; then
1985    grep -v '^ *+' conftest.err >conftest.er1
1986    cat conftest.er1 >&5
1987    mv -f conftest.er1 conftest.err
1988  fi
1989  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990  test $ac_status = 0; } > conftest.i && {
1991	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1992	 test ! -s conftest.err
1993       }; then :
1994  ac_retval=0
1995else
1996  $as_echo "$as_me: failed program was:" >&5
1997sed 's/^/| /' conftest.$ac_ext >&5
1998
1999    ac_retval=1
2000fi
2001  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002  as_fn_set_status $ac_retval
2003
2004} # ac_fn_cxx_try_cpp
2005
2006# ac_fn_c_try_run LINENO
2007# ----------------------
2008# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2009# that executables *can* be run.
2010ac_fn_c_try_run ()
2011{
2012  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013  if { { ac_try="$ac_link"
2014case "(($ac_try" in
2015  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2016  *) ac_try_echo=$ac_try;;
2017esac
2018eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2019$as_echo "$ac_try_echo"; } >&5
2020  (eval "$ac_link") 2>&5
2021  ac_status=$?
2022  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2023  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2024  { { case "(($ac_try" in
2025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2026  *) ac_try_echo=$ac_try;;
2027esac
2028eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2029$as_echo "$ac_try_echo"; } >&5
2030  (eval "$ac_try") 2>&5
2031  ac_status=$?
2032  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2033  test $ac_status = 0; }; }; then :
2034  ac_retval=0
2035else
2036  $as_echo "$as_me: program exited with status $ac_status" >&5
2037       $as_echo "$as_me: failed program was:" >&5
2038sed 's/^/| /' conftest.$ac_ext >&5
2039
2040       ac_retval=$ac_status
2041fi
2042  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2043  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044  as_fn_set_status $ac_retval
2045
2046} # ac_fn_c_try_run
2047
2048# ac_fn_c_try_link LINENO
2049# -----------------------
2050# Try to link conftest.$ac_ext, and return whether this succeeded.
2051ac_fn_c_try_link ()
2052{
2053  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054  rm -f conftest.$ac_objext conftest$ac_exeext
2055  if { { ac_try="$ac_link"
2056case "(($ac_try" in
2057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2058  *) ac_try_echo=$ac_try;;
2059esac
2060eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2061$as_echo "$ac_try_echo"; } >&5
2062  (eval "$ac_link") 2>conftest.err
2063  ac_status=$?
2064  if test -s conftest.err; then
2065    grep -v '^ *+' conftest.err >conftest.er1
2066    cat conftest.er1 >&5
2067    mv -f conftest.er1 conftest.err
2068  fi
2069  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2070  test $ac_status = 0; } && {
2071	 test -z "$ac_c_werror_flag" ||
2072	 test ! -s conftest.err
2073       } && test -s conftest$ac_exeext && {
2074	 test "$cross_compiling" = yes ||
2075	 test -x conftest$ac_exeext
2076       }; then :
2077  ac_retval=0
2078else
2079  $as_echo "$as_me: failed program was:" >&5
2080sed 's/^/| /' conftest.$ac_ext >&5
2081
2082	ac_retval=1
2083fi
2084  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2085  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2086  # interfere with the next link command; also delete a directory that is
2087  # left behind by Apple's compiler.  We do this before executing the actions.
2088  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2089  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090  as_fn_set_status $ac_retval
2091
2092} # ac_fn_c_try_link
2093
2094# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2095# -------------------------------------------------------
2096# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2097# the include files in INCLUDES and setting the cache variable VAR
2098# accordingly.
2099ac_fn_c_check_header_mongrel ()
2100{
2101  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102  if eval \${$3+:} false; then :
2103  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2104$as_echo_n "checking for $2... " >&6; }
2105if eval \${$3+:} false; then :
2106  $as_echo_n "(cached) " >&6
2107fi
2108eval ac_res=\$$3
2109	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110$as_echo "$ac_res" >&6; }
2111else
2112  # Is the header compilable?
2113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2114$as_echo_n "checking $2 usability... " >&6; }
2115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116/* end confdefs.h.  */
2117$4
2118#include <$2>
2119_ACEOF
2120if ac_fn_c_try_compile "$LINENO"; then :
2121  ac_header_compiler=yes
2122else
2123  ac_header_compiler=no
2124fi
2125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2127$as_echo "$ac_header_compiler" >&6; }
2128
2129# Is the header present?
2130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2131$as_echo_n "checking $2 presence... " >&6; }
2132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133/* end confdefs.h.  */
2134#include <$2>
2135_ACEOF
2136if ac_fn_c_try_cpp "$LINENO"; then :
2137  ac_header_preproc=yes
2138else
2139  ac_header_preproc=no
2140fi
2141rm -f conftest.err conftest.i conftest.$ac_ext
2142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2143$as_echo "$ac_header_preproc" >&6; }
2144
2145# So?  What about this header?
2146case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2147  yes:no: )
2148    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2149$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2150    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2151$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2152    ;;
2153  no:yes:* )
2154    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2155$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2156    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2157$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2158    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2159$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2160    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2161$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2162    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2163$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2164( $as_echo "## -------------------------------------- ##
2165## Report this to aranym@googlegroups.com ##
2166## -------------------------------------- ##"
2167     ) | sed "s/^/$as_me: WARNING:     /" >&2
2168    ;;
2169esac
2170  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2171$as_echo_n "checking for $2... " >&6; }
2172if eval \${$3+:} false; then :
2173  $as_echo_n "(cached) " >&6
2174else
2175  eval "$3=\$ac_header_compiler"
2176fi
2177eval ac_res=\$$3
2178	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2179$as_echo "$ac_res" >&6; }
2180fi
2181  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2182
2183} # ac_fn_c_check_header_mongrel
2184
2185# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2186# -------------------------------------------------------
2187# Tests whether HEADER exists and can be compiled using the include files in
2188# INCLUDES, setting the cache variable VAR accordingly.
2189ac_fn_c_check_header_compile ()
2190{
2191  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2192  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2193$as_echo_n "checking for $2... " >&6; }
2194if eval \${$3+:} false; then :
2195  $as_echo_n "(cached) " >&6
2196else
2197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2198/* end confdefs.h.  */
2199$4
2200#include <$2>
2201_ACEOF
2202if ac_fn_c_try_compile "$LINENO"; then :
2203  eval "$3=yes"
2204else
2205  eval "$3=no"
2206fi
2207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208fi
2209eval ac_res=\$$3
2210	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2211$as_echo "$ac_res" >&6; }
2212  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2213
2214} # ac_fn_c_check_header_compile
2215
2216# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2217# --------------------------------------------
2218# Tries to find the compile-time value of EXPR in a program that includes
2219# INCLUDES, setting VAR accordingly. Returns whether the value could be
2220# computed
2221ac_fn_c_compute_int ()
2222{
2223  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224  if test "$cross_compiling" = yes; then
2225    # Depending upon the size, compute the lo and hi bounds.
2226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227/* end confdefs.h.  */
2228$4
2229int
2230main ()
2231{
2232static int test_array [1 - 2 * !(($2) >= 0)];
2233test_array [0] = 0;
2234return test_array [0];
2235
2236  ;
2237  return 0;
2238}
2239_ACEOF
2240if ac_fn_c_try_compile "$LINENO"; then :
2241  ac_lo=0 ac_mid=0
2242  while :; do
2243    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244/* end confdefs.h.  */
2245$4
2246int
2247main ()
2248{
2249static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2250test_array [0] = 0;
2251return test_array [0];
2252
2253  ;
2254  return 0;
2255}
2256_ACEOF
2257if ac_fn_c_try_compile "$LINENO"; then :
2258  ac_hi=$ac_mid; break
2259else
2260  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2261			if test $ac_lo -le $ac_mid; then
2262			  ac_lo= ac_hi=
2263			  break
2264			fi
2265			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2266fi
2267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268  done
2269else
2270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271/* end confdefs.h.  */
2272$4
2273int
2274main ()
2275{
2276static int test_array [1 - 2 * !(($2) < 0)];
2277test_array [0] = 0;
2278return test_array [0];
2279
2280  ;
2281  return 0;
2282}
2283_ACEOF
2284if ac_fn_c_try_compile "$LINENO"; then :
2285  ac_hi=-1 ac_mid=-1
2286  while :; do
2287    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288/* end confdefs.h.  */
2289$4
2290int
2291main ()
2292{
2293static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2294test_array [0] = 0;
2295return test_array [0];
2296
2297  ;
2298  return 0;
2299}
2300_ACEOF
2301if ac_fn_c_try_compile "$LINENO"; then :
2302  ac_lo=$ac_mid; break
2303else
2304  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2305			if test $ac_mid -le $ac_hi; then
2306			  ac_lo= ac_hi=
2307			  break
2308			fi
2309			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2310fi
2311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2312  done
2313else
2314  ac_lo= ac_hi=
2315fi
2316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2317fi
2318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2319# Binary search between lo and hi bounds.
2320while test "x$ac_lo" != "x$ac_hi"; do
2321  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323/* end confdefs.h.  */
2324$4
2325int
2326main ()
2327{
2328static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2329test_array [0] = 0;
2330return test_array [0];
2331
2332  ;
2333  return 0;
2334}
2335_ACEOF
2336if ac_fn_c_try_compile "$LINENO"; then :
2337  ac_hi=$ac_mid
2338else
2339  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2340fi
2341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2342done
2343case $ac_lo in #((
2344?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2345'') ac_retval=1 ;;
2346esac
2347  else
2348    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2349/* end confdefs.h.  */
2350$4
2351static long int longval () { return $2; }
2352static unsigned long int ulongval () { return $2; }
2353#include <stdio.h>
2354#include <stdlib.h>
2355int
2356main ()
2357{
2358
2359  FILE *f = fopen ("conftest.val", "w");
2360  if (! f)
2361    return 1;
2362  if (($2) < 0)
2363    {
2364      long int i = longval ();
2365      if (i != ($2))
2366	return 1;
2367      fprintf (f, "%ld", i);
2368    }
2369  else
2370    {
2371      unsigned long int i = ulongval ();
2372      if (i != ($2))
2373	return 1;
2374      fprintf (f, "%lu", i);
2375    }
2376  /* Do not output a trailing newline, as this causes \r\n confusion
2377     on some platforms.  */
2378  return ferror (f) || fclose (f) != 0;
2379
2380  ;
2381  return 0;
2382}
2383_ACEOF
2384if ac_fn_c_try_run "$LINENO"; then :
2385  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2386else
2387  ac_retval=1
2388fi
2389rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2390  conftest.$ac_objext conftest.beam conftest.$ac_ext
2391rm -f conftest.val
2392
2393  fi
2394  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2395  as_fn_set_status $ac_retval
2396
2397} # ac_fn_c_compute_int
2398
2399# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2400# -------------------------------------------
2401# Tests whether TYPE exists after having included INCLUDES, setting cache
2402# variable VAR accordingly.
2403ac_fn_c_check_type ()
2404{
2405  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2406  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2407$as_echo_n "checking for $2... " >&6; }
2408if eval \${$3+:} false; then :
2409  $as_echo_n "(cached) " >&6
2410else
2411  eval "$3=no"
2412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2413/* end confdefs.h.  */
2414$4
2415int
2416main ()
2417{
2418if (sizeof ($2))
2419	 return 0;
2420  ;
2421  return 0;
2422}
2423_ACEOF
2424if ac_fn_c_try_compile "$LINENO"; then :
2425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2426/* end confdefs.h.  */
2427$4
2428int
2429main ()
2430{
2431if (sizeof (($2)))
2432	    return 0;
2433  ;
2434  return 0;
2435}
2436_ACEOF
2437if ac_fn_c_try_compile "$LINENO"; then :
2438
2439else
2440  eval "$3=yes"
2441fi
2442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2443fi
2444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2445fi
2446eval ac_res=\$$3
2447	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2448$as_echo "$ac_res" >&6; }
2449  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2450
2451} # ac_fn_c_check_type
2452
2453# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2454# ----------------------------------------------------
2455# Tries to find if the field MEMBER exists in type AGGR, after including
2456# INCLUDES, setting cache variable VAR accordingly.
2457ac_fn_c_check_member ()
2458{
2459  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2460  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2461$as_echo_n "checking for $2.$3... " >&6; }
2462if eval \${$4+:} false; then :
2463  $as_echo_n "(cached) " >&6
2464else
2465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2466/* end confdefs.h.  */
2467$5
2468int
2469main ()
2470{
2471static $2 ac_aggr;
2472if (ac_aggr.$3)
2473return 0;
2474  ;
2475  return 0;
2476}
2477_ACEOF
2478if ac_fn_c_try_compile "$LINENO"; then :
2479  eval "$4=yes"
2480else
2481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2482/* end confdefs.h.  */
2483$5
2484int
2485main ()
2486{
2487static $2 ac_aggr;
2488if (sizeof ac_aggr.$3)
2489return 0;
2490  ;
2491  return 0;
2492}
2493_ACEOF
2494if ac_fn_c_try_compile "$LINENO"; then :
2495  eval "$4=yes"
2496else
2497  eval "$4=no"
2498fi
2499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2500fi
2501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2502fi
2503eval ac_res=\$$4
2504	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2505$as_echo "$ac_res" >&6; }
2506  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2507
2508} # ac_fn_c_check_member
2509
2510# ac_fn_c_check_func LINENO FUNC VAR
2511# ----------------------------------
2512# Tests whether FUNC exists, setting the cache variable VAR accordingly
2513ac_fn_c_check_func ()
2514{
2515  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2516  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2517$as_echo_n "checking for $2... " >&6; }
2518if eval \${$3+:} false; then :
2519  $as_echo_n "(cached) " >&6
2520else
2521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2522/* end confdefs.h.  */
2523/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2524   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2525#define $2 innocuous_$2
2526
2527/* System header to define __stub macros and hopefully few prototypes,
2528    which can conflict with char $2 (); below.
2529    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2530    <limits.h> exists even on freestanding compilers.  */
2531
2532#ifdef __STDC__
2533# include <limits.h>
2534#else
2535# include <assert.h>
2536#endif
2537
2538#undef $2
2539
2540/* Override any GCC internal prototype to avoid an error.
2541   Use char because int might match the return type of a GCC
2542   builtin and then its argument prototype would still apply.  */
2543#ifdef __cplusplus
2544extern "C"
2545#endif
2546char $2 ();
2547/* The GNU C library defines this for functions which it implements
2548    to always fail with ENOSYS.  Some functions are actually named
2549    something starting with __ and the normal name is an alias.  */
2550#if defined __stub_$2 || defined __stub___$2
2551choke me
2552#endif
2553
2554int
2555main ()
2556{
2557return $2 ();
2558  ;
2559  return 0;
2560}
2561_ACEOF
2562if ac_fn_c_try_link "$LINENO"; then :
2563  eval "$3=yes"
2564else
2565  eval "$3=no"
2566fi
2567rm -f core conftest.err conftest.$ac_objext \
2568    conftest$ac_exeext conftest.$ac_ext
2569fi
2570eval ac_res=\$$3
2571	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2572$as_echo "$ac_res" >&6; }
2573  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2574
2575} # ac_fn_c_check_func
2576
2577# ac_fn_cxx_try_run LINENO
2578# ------------------------
2579# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2580# that executables *can* be run.
2581ac_fn_cxx_try_run ()
2582{
2583  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2584  if { { ac_try="$ac_link"
2585case "(($ac_try" in
2586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587  *) ac_try_echo=$ac_try;;
2588esac
2589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2590$as_echo "$ac_try_echo"; } >&5
2591  (eval "$ac_link") 2>&5
2592  ac_status=$?
2593  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2594  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2595  { { case "(($ac_try" in
2596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2597  *) ac_try_echo=$ac_try;;
2598esac
2599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2600$as_echo "$ac_try_echo"; } >&5
2601  (eval "$ac_try") 2>&5
2602  ac_status=$?
2603  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2604  test $ac_status = 0; }; }; then :
2605  ac_retval=0
2606else
2607  $as_echo "$as_me: program exited with status $ac_status" >&5
2608       $as_echo "$as_me: failed program was:" >&5
2609sed 's/^/| /' conftest.$ac_ext >&5
2610
2611       ac_retval=$ac_status
2612fi
2613  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2614  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2615  as_fn_set_status $ac_retval
2616
2617} # ac_fn_cxx_try_run
2618cat >config.log <<_ACEOF
2619This file contains any messages produced by compilers while
2620running configure, to aid debugging if configure makes a mistake.
2621
2622It was created by aranym $as_me 1.1.0, which was
2623generated by GNU Autoconf 2.69.  Invocation command line was
2624
2625  $ $0 $@
2626
2627_ACEOF
2628exec 5>>config.log
2629{
2630cat <<_ASUNAME
2631## --------- ##
2632## Platform. ##
2633## --------- ##
2634
2635hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2636uname -m = `(uname -m) 2>/dev/null || echo unknown`
2637uname -r = `(uname -r) 2>/dev/null || echo unknown`
2638uname -s = `(uname -s) 2>/dev/null || echo unknown`
2639uname -v = `(uname -v) 2>/dev/null || echo unknown`
2640
2641/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2642/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2643
2644/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2645/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2646/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2647/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2648/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2649/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2650/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2651
2652_ASUNAME
2653
2654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655for as_dir in $PATH
2656do
2657  IFS=$as_save_IFS
2658  test -z "$as_dir" && as_dir=.
2659    $as_echo "PATH: $as_dir"
2660  done
2661IFS=$as_save_IFS
2662
2663} >&5
2664
2665cat >&5 <<_ACEOF
2666
2667
2668## ----------- ##
2669## Core tests. ##
2670## ----------- ##
2671
2672_ACEOF
2673
2674
2675# Keep a trace of the command line.
2676# Strip out --no-create and --no-recursion so they do not pile up.
2677# Strip out --silent because we don't want to record it for future runs.
2678# Also quote any args containing shell meta-characters.
2679# Make two passes to allow for proper duplicate-argument suppression.
2680ac_configure_args=
2681ac_configure_args0=
2682ac_configure_args1=
2683ac_must_keep_next=false
2684for ac_pass in 1 2
2685do
2686  for ac_arg
2687  do
2688    case $ac_arg in
2689    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2690    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2691    | -silent | --silent | --silen | --sile | --sil)
2692      continue ;;
2693    *\'*)
2694      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2695    esac
2696    case $ac_pass in
2697    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2698    2)
2699      as_fn_append ac_configure_args1 " '$ac_arg'"
2700      if test $ac_must_keep_next = true; then
2701	ac_must_keep_next=false # Got value, back to normal.
2702      else
2703	case $ac_arg in
2704	  *=* | --config-cache | -C | -disable-* | --disable-* \
2705	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2706	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2707	  | -with-* | --with-* | -without-* | --without-* | --x)
2708	    case "$ac_configure_args0 " in
2709	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2710	    esac
2711	    ;;
2712	  -* ) ac_must_keep_next=true ;;
2713	esac
2714      fi
2715      as_fn_append ac_configure_args " '$ac_arg'"
2716      ;;
2717    esac
2718  done
2719done
2720{ ac_configure_args0=; unset ac_configure_args0;}
2721{ ac_configure_args1=; unset ac_configure_args1;}
2722
2723# When interrupted or exit'd, cleanup temporary files, and complete
2724# config.log.  We remove comments because anyway the quotes in there
2725# would cause problems or look ugly.
2726# WARNING: Use '\'' to represent an apostrophe within the trap.
2727# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2728trap 'exit_status=$?
2729  # Save into config.log some information that might help in debugging.
2730  {
2731    echo
2732
2733    $as_echo "## ---------------- ##
2734## Cache variables. ##
2735## ---------------- ##"
2736    echo
2737    # The following way of writing the cache mishandles newlines in values,
2738(
2739  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2740    eval ac_val=\$$ac_var
2741    case $ac_val in #(
2742    *${as_nl}*)
2743      case $ac_var in #(
2744      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2745$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2746      esac
2747      case $ac_var in #(
2748      _ | IFS | as_nl) ;; #(
2749      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2750      *) { eval $ac_var=; unset $ac_var;} ;;
2751      esac ;;
2752    esac
2753  done
2754  (set) 2>&1 |
2755    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2756    *${as_nl}ac_space=\ *)
2757      sed -n \
2758	"s/'\''/'\''\\\\'\'''\''/g;
2759	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2760      ;; #(
2761    *)
2762      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2763      ;;
2764    esac |
2765    sort
2766)
2767    echo
2768
2769    $as_echo "## ----------------- ##
2770## Output variables. ##
2771## ----------------- ##"
2772    echo
2773    for ac_var in $ac_subst_vars
2774    do
2775      eval ac_val=\$$ac_var
2776      case $ac_val in
2777      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2778      esac
2779      $as_echo "$ac_var='\''$ac_val'\''"
2780    done | sort
2781    echo
2782
2783    if test -n "$ac_subst_files"; then
2784      $as_echo "## ------------------- ##
2785## File substitutions. ##
2786## ------------------- ##"
2787      echo
2788      for ac_var in $ac_subst_files
2789      do
2790	eval ac_val=\$$ac_var
2791	case $ac_val in
2792	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2793	esac
2794	$as_echo "$ac_var='\''$ac_val'\''"
2795      done | sort
2796      echo
2797    fi
2798
2799    if test -s confdefs.h; then
2800      $as_echo "## ----------- ##
2801## confdefs.h. ##
2802## ----------- ##"
2803      echo
2804      cat confdefs.h
2805      echo
2806    fi
2807    test "$ac_signal" != 0 &&
2808      $as_echo "$as_me: caught signal $ac_signal"
2809    $as_echo "$as_me: exit $exit_status"
2810  } >&5
2811  rm -f core *.core core.conftest.* &&
2812    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2813    exit $exit_status
2814' 0
2815for ac_signal in 1 2 13 15; do
2816  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2817done
2818ac_signal=0
2819
2820# confdefs.h avoids OS command line length limits that DEFS can exceed.
2821rm -f -r conftest* confdefs.h
2822
2823$as_echo "/* confdefs.h */" > confdefs.h
2824
2825# Predefined preprocessor variables.
2826
2827cat >>confdefs.h <<_ACEOF
2828#define PACKAGE_NAME "$PACKAGE_NAME"
2829_ACEOF
2830
2831cat >>confdefs.h <<_ACEOF
2832#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2833_ACEOF
2834
2835cat >>confdefs.h <<_ACEOF
2836#define PACKAGE_VERSION "$PACKAGE_VERSION"
2837_ACEOF
2838
2839cat >>confdefs.h <<_ACEOF
2840#define PACKAGE_STRING "$PACKAGE_STRING"
2841_ACEOF
2842
2843cat >>confdefs.h <<_ACEOF
2844#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2845_ACEOF
2846
2847cat >>confdefs.h <<_ACEOF
2848#define PACKAGE_URL "$PACKAGE_URL"
2849_ACEOF
2850
2851
2852# Let the site file select an alternate cache file if it wants to.
2853# Prefer an explicitly selected file to automatically selected ones.
2854ac_site_file1=NONE
2855ac_site_file2=NONE
2856if test -n "$CONFIG_SITE"; then
2857  # We do not want a PATH search for config.site.
2858  case $CONFIG_SITE in #((
2859    -*)  ac_site_file1=./$CONFIG_SITE;;
2860    */*) ac_site_file1=$CONFIG_SITE;;
2861    *)   ac_site_file1=./$CONFIG_SITE;;
2862  esac
2863elif test "x$prefix" != xNONE; then
2864  ac_site_file1=$prefix/share/config.site
2865  ac_site_file2=$prefix/etc/config.site
2866else
2867  ac_site_file1=$ac_default_prefix/share/config.site
2868  ac_site_file2=$ac_default_prefix/etc/config.site
2869fi
2870for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2871do
2872  test "x$ac_site_file" = xNONE && continue
2873  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2874    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2875$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2876    sed 's/^/| /' "$ac_site_file" >&5
2877    . "$ac_site_file" \
2878      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2879$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2880as_fn_error $? "failed to load site script $ac_site_file
2881See \`config.log' for more details" "$LINENO" 5; }
2882  fi
2883done
2884
2885if test -r "$cache_file"; then
2886  # Some versions of bash will fail to source /dev/null (special files
2887  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2888  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2889    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2890$as_echo "$as_me: loading cache $cache_file" >&6;}
2891    case $cache_file in
2892      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2893      *)                      . "./$cache_file";;
2894    esac
2895  fi
2896else
2897  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2898$as_echo "$as_me: creating cache $cache_file" >&6;}
2899  >$cache_file
2900fi
2901
2902# Check that the precious variables saved in the cache have kept the same
2903# value.
2904ac_cache_corrupted=false
2905for ac_var in $ac_precious_vars; do
2906  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2907  eval ac_new_set=\$ac_env_${ac_var}_set
2908  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2909  eval ac_new_val=\$ac_env_${ac_var}_value
2910  case $ac_old_set,$ac_new_set in
2911    set,)
2912      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2913$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2914      ac_cache_corrupted=: ;;
2915    ,set)
2916      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2917$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2918      ac_cache_corrupted=: ;;
2919    ,);;
2920    *)
2921      if test "x$ac_old_val" != "x$ac_new_val"; then
2922	# differences in whitespace do not lead to failure.
2923	ac_old_val_w=`echo x $ac_old_val`
2924	ac_new_val_w=`echo x $ac_new_val`
2925	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2926	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2927$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2928	  ac_cache_corrupted=:
2929	else
2930	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2931$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2932	  eval $ac_var=\$ac_old_val
2933	fi
2934	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2935$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2936	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2937$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2938      fi;;
2939  esac
2940  # Pass precious variables to config.status.
2941  if test "$ac_new_set" = set; then
2942    case $ac_new_val in
2943    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2944    *) ac_arg=$ac_var=$ac_new_val ;;
2945    esac
2946    case " $ac_configure_args " in
2947      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2948      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2949    esac
2950  fi
2951done
2952if $ac_cache_corrupted; then
2953  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2954$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2955  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2956$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2957  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2958fi
2959## -------------------- ##
2960## Main body of script. ##
2961## -------------------- ##
2962
2963ac_ext=c
2964ac_cpp='$CPP $CPPFLAGS'
2965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2967ac_compiler_gnu=$ac_cv_c_compiler_gnu
2968
2969
2970
2971ac_config_headers="$ac_config_headers config.h"
2972
2973
2974ac_aux_dir=
2975for ac_dir in . "$srcdir"/.; do
2976  if test -f "$ac_dir/install-sh"; then
2977    ac_aux_dir=$ac_dir
2978    ac_install_sh="$ac_aux_dir/install-sh -c"
2979    break
2980  elif test -f "$ac_dir/install.sh"; then
2981    ac_aux_dir=$ac_dir
2982    ac_install_sh="$ac_aux_dir/install.sh -c"
2983    break
2984  elif test -f "$ac_dir/shtool"; then
2985    ac_aux_dir=$ac_dir
2986    ac_install_sh="$ac_aux_dir/shtool install -c"
2987    break
2988  fi
2989done
2990if test -z "$ac_aux_dir"; then
2991  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2992fi
2993
2994# These three variables are undocumented and unsupported,
2995# and are intended to be withdrawn in a future Autoconf release.
2996# They can cause serious problems if a builder's source tree is in a directory
2997# whose full name contains unusual characters.
2998ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2999ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3000ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3001
3002
3003
3004
3005PROVIDES_NF="audio bootstrap xhdi"
3006
3007# Make sure we can run config.sub.
3008$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3009  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3010
3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3012$as_echo_n "checking build system type... " >&6; }
3013if ${ac_cv_build+:} false; then :
3014  $as_echo_n "(cached) " >&6
3015else
3016  ac_build_alias=$build_alias
3017test "x$ac_build_alias" = x &&
3018  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3019test "x$ac_build_alias" = x &&
3020  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3021ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3022  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3023
3024fi
3025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3026$as_echo "$ac_cv_build" >&6; }
3027case $ac_cv_build in
3028*-*-*) ;;
3029*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3030esac
3031build=$ac_cv_build
3032ac_save_IFS=$IFS; IFS='-'
3033set x $ac_cv_build
3034shift
3035build_cpu=$1
3036build_vendor=$2
3037shift; shift
3038# Remember, the first character of IFS is used to create $*,
3039# except with old shells:
3040build_os=$*
3041IFS=$ac_save_IFS
3042case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3043
3044
3045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3046$as_echo_n "checking host system type... " >&6; }
3047if ${ac_cv_host+:} false; then :
3048  $as_echo_n "(cached) " >&6
3049else
3050  if test "x$host_alias" = x; then
3051  ac_cv_host=$ac_cv_build
3052else
3053  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3054    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3055fi
3056
3057fi
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3059$as_echo "$ac_cv_host" >&6; }
3060case $ac_cv_host in
3061*-*-*) ;;
3062*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3063esac
3064host=$ac_cv_host
3065ac_save_IFS=$IFS; IFS='-'
3066set x $ac_cv_host
3067shift
3068host_cpu=$1
3069host_vendor=$2
3070shift; shift
3071# Remember, the first character of IFS is used to create $*,
3072# except with old shells:
3073host_os=$*
3074IFS=$ac_save_IFS
3075case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3076
3077
3078
3079am__api_version='1.15'
3080
3081# Find a good install program.  We prefer a C program (faster),
3082# so one script is as good as another.  But avoid the broken or
3083# incompatible versions:
3084# SysV /etc/install, /usr/sbin/install
3085# SunOS /usr/etc/install
3086# IRIX /sbin/install
3087# AIX /bin/install
3088# AmigaOS /C/install, which installs bootblocks on floppy discs
3089# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3090# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3091# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3092# OS/2's system install, which has a completely different semantic
3093# ./install, which can be erroneously created by make from ./install.sh.
3094# Reject install programs that cannot install multiple files.
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3096$as_echo_n "checking for a BSD-compatible install... " >&6; }
3097if test -z "$INSTALL"; then
3098if ${ac_cv_path_install+:} false; then :
3099  $as_echo_n "(cached) " >&6
3100else
3101  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102for as_dir in $PATH
3103do
3104  IFS=$as_save_IFS
3105  test -z "$as_dir" && as_dir=.
3106    # Account for people who put trailing slashes in PATH elements.
3107case $as_dir/ in #((
3108  ./ | .// | /[cC]/* | \
3109  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3110  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3111  /usr/ucb/* ) ;;
3112  *)
3113    # OSF1 and SCO ODT 3.0 have their own names for install.
3114    # Don't use installbsd from OSF since it installs stuff as root
3115    # by default.
3116    for ac_prog in ginstall scoinst install; do
3117      for ac_exec_ext in '' $ac_executable_extensions; do
3118	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3119	  if test $ac_prog = install &&
3120	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3121	    # AIX install.  It has an incompatible calling convention.
3122	    :
3123	  elif test $ac_prog = install &&
3124	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3125	    # program-specific install script used by HP pwplus--don't use.
3126	    :
3127	  else
3128	    rm -rf conftest.one conftest.two conftest.dir
3129	    echo one > conftest.one
3130	    echo two > conftest.two
3131	    mkdir conftest.dir
3132	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3133	      test -s conftest.one && test -s conftest.two &&
3134	      test -s conftest.dir/conftest.one &&
3135	      test -s conftest.dir/conftest.two
3136	    then
3137	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3138	      break 3
3139	    fi
3140	  fi
3141	fi
3142      done
3143    done
3144    ;;
3145esac
3146
3147  done
3148IFS=$as_save_IFS
3149
3150rm -rf conftest.one conftest.two conftest.dir
3151
3152fi
3153  if test "${ac_cv_path_install+set}" = set; then
3154    INSTALL=$ac_cv_path_install
3155  else
3156    # As a last resort, use the slow shell script.  Don't cache a
3157    # value for INSTALL within a source directory, because that will
3158    # break other packages using the cache if that directory is
3159    # removed, or if the value is a relative name.
3160    INSTALL=$ac_install_sh
3161  fi
3162fi
3163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3164$as_echo "$INSTALL" >&6; }
3165
3166# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3167# It thinks the first close brace ends the variable substitution.
3168test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3169
3170test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3171
3172test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3173
3174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3175$as_echo_n "checking whether build environment is sane... " >&6; }
3176# Reject unsafe characters in $srcdir or the absolute working directory
3177# name.  Accept space and tab only in the latter.
3178am_lf='
3179'
3180case `pwd` in
3181  *[\\\"\#\$\&\'\`$am_lf]*)
3182    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3183esac
3184case $srcdir in
3185  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3186    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3187esac
3188
3189# Do 'set' in a subshell so we don't clobber the current shell's
3190# arguments.  Must try -L first in case configure is actually a
3191# symlink; some systems play weird games with the mod time of symlinks
3192# (eg FreeBSD returns the mod time of the symlink's containing
3193# directory).
3194if (
3195   am_has_slept=no
3196   for am_try in 1 2; do
3197     echo "timestamp, slept: $am_has_slept" > conftest.file
3198     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3199     if test "$*" = "X"; then
3200	# -L didn't work.
3201	set X `ls -t "$srcdir/configure" conftest.file`
3202     fi
3203     if test "$*" != "X $srcdir/configure conftest.file" \
3204	&& test "$*" != "X conftest.file $srcdir/configure"; then
3205
3206	# If neither matched, then we have a broken ls.  This can happen
3207	# if, for instance, CONFIG_SHELL is bash and it inherits a
3208	# broken ls alias from the environment.  This has actually
3209	# happened.  Such a system could not be considered "sane".
3210	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3211  alias in your environment" "$LINENO" 5
3212     fi
3213     if test "$2" = conftest.file || test $am_try -eq 2; then
3214       break
3215     fi
3216     # Just in case.
3217     sleep 1
3218     am_has_slept=yes
3219   done
3220   test "$2" = conftest.file
3221   )
3222then
3223   # Ok.
3224   :
3225else
3226   as_fn_error $? "newly created file is older than distributed files!
3227Check your system clock" "$LINENO" 5
3228fi
3229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3230$as_echo "yes" >&6; }
3231# If we didn't sleep, we still need to ensure time stamps of config.status and
3232# generated files are strictly newer.
3233am_sleep_pid=
3234if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3235  ( sleep 1 ) &
3236  am_sleep_pid=$!
3237fi
3238
3239rm -f conftest.file
3240
3241test "$program_prefix" != NONE &&
3242  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3243# Use a double $ so make ignores it.
3244test "$program_suffix" != NONE &&
3245  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3246# Double any \ or $.
3247# By default was `s,x,x', remove it if useless.
3248ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3249program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3250
3251# Expand $ac_aux_dir to an absolute path.
3252am_aux_dir=`cd "$ac_aux_dir" && pwd`
3253
3254if test x"${MISSING+set}" != xset; then
3255  case $am_aux_dir in
3256  *\ * | *\	*)
3257    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3258  *)
3259    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3260  esac
3261fi
3262# Use eval to expand $SHELL
3263if eval "$MISSING --is-lightweight"; then
3264  am_missing_run="$MISSING "
3265else
3266  am_missing_run=
3267  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3268$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3269fi
3270
3271if test x"${install_sh+set}" != xset; then
3272  case $am_aux_dir in
3273  *\ * | *\	*)
3274    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3275  *)
3276    install_sh="\${SHELL} $am_aux_dir/install-sh"
3277  esac
3278fi
3279
3280# Installed binaries are usually stripped using 'strip' when the user
3281# run "make install-strip".  However 'strip' might not be the right
3282# tool to use in cross-compilation environments, therefore Automake
3283# will honor the 'STRIP' environment variable to overrule this program.
3284if test "$cross_compiling" != no; then
3285  if test -n "$ac_tool_prefix"; then
3286  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3287set dummy ${ac_tool_prefix}strip; ac_word=$2
3288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3289$as_echo_n "checking for $ac_word... " >&6; }
3290if ${ac_cv_prog_STRIP+:} false; then :
3291  $as_echo_n "(cached) " >&6
3292else
3293  if test -n "$STRIP"; then
3294  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3295else
3296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297for as_dir in $PATH
3298do
3299  IFS=$as_save_IFS
3300  test -z "$as_dir" && as_dir=.
3301    for ac_exec_ext in '' $ac_executable_extensions; do
3302  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3303    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3304    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3305    break 2
3306  fi
3307done
3308  done
3309IFS=$as_save_IFS
3310
3311fi
3312fi
3313STRIP=$ac_cv_prog_STRIP
3314if test -n "$STRIP"; then
3315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3316$as_echo "$STRIP" >&6; }
3317else
3318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3319$as_echo "no" >&6; }
3320fi
3321
3322
3323fi
3324if test -z "$ac_cv_prog_STRIP"; then
3325  ac_ct_STRIP=$STRIP
3326  # Extract the first word of "strip", so it can be a program name with args.
3327set dummy strip; ac_word=$2
3328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3329$as_echo_n "checking for $ac_word... " >&6; }
3330if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3331  $as_echo_n "(cached) " >&6
3332else
3333  if test -n "$ac_ct_STRIP"; then
3334  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3335else
3336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337for as_dir in $PATH
3338do
3339  IFS=$as_save_IFS
3340  test -z "$as_dir" && as_dir=.
3341    for ac_exec_ext in '' $ac_executable_extensions; do
3342  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3343    ac_cv_prog_ac_ct_STRIP="strip"
3344    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3345    break 2
3346  fi
3347done
3348  done
3349IFS=$as_save_IFS
3350
3351fi
3352fi
3353ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3354if test -n "$ac_ct_STRIP"; then
3355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3356$as_echo "$ac_ct_STRIP" >&6; }
3357else
3358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359$as_echo "no" >&6; }
3360fi
3361
3362  if test "x$ac_ct_STRIP" = x; then
3363    STRIP=":"
3364  else
3365    case $cross_compiling:$ac_tool_warned in
3366yes:)
3367{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3368$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3369ac_tool_warned=yes ;;
3370esac
3371    STRIP=$ac_ct_STRIP
3372  fi
3373else
3374  STRIP="$ac_cv_prog_STRIP"
3375fi
3376
3377fi
3378INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3379
3380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3381$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3382if test -z "$MKDIR_P"; then
3383  if ${ac_cv_path_mkdir+:} false; then :
3384  $as_echo_n "(cached) " >&6
3385else
3386  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3388do
3389  IFS=$as_save_IFS
3390  test -z "$as_dir" && as_dir=.
3391    for ac_prog in mkdir gmkdir; do
3392	 for ac_exec_ext in '' $ac_executable_extensions; do
3393	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3394	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3395	     'mkdir (GNU coreutils) '* | \
3396	     'mkdir (coreutils) '* | \
3397	     'mkdir (fileutils) '4.1*)
3398	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3399	       break 3;;
3400	   esac
3401	 done
3402       done
3403  done
3404IFS=$as_save_IFS
3405
3406fi
3407
3408  test -d ./--version && rmdir ./--version
3409  if test "${ac_cv_path_mkdir+set}" = set; then
3410    MKDIR_P="$ac_cv_path_mkdir -p"
3411  else
3412    # As a last resort, use the slow shell script.  Don't cache a
3413    # value for MKDIR_P within a source directory, because that will
3414    # break other packages using the cache if that directory is
3415    # removed, or if the value is a relative name.
3416    MKDIR_P="$ac_install_sh -d"
3417  fi
3418fi
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3420$as_echo "$MKDIR_P" >&6; }
3421
3422for ac_prog in gawk mawk nawk awk
3423do
3424  # Extract the first word of "$ac_prog", so it can be a program name with args.
3425set dummy $ac_prog; ac_word=$2
3426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3427$as_echo_n "checking for $ac_word... " >&6; }
3428if ${ac_cv_prog_AWK+:} false; then :
3429  $as_echo_n "(cached) " >&6
3430else
3431  if test -n "$AWK"; then
3432  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3433else
3434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435for as_dir in $PATH
3436do
3437  IFS=$as_save_IFS
3438  test -z "$as_dir" && as_dir=.
3439    for ac_exec_ext in '' $ac_executable_extensions; do
3440  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3441    ac_cv_prog_AWK="$ac_prog"
3442    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3443    break 2
3444  fi
3445done
3446  done
3447IFS=$as_save_IFS
3448
3449fi
3450fi
3451AWK=$ac_cv_prog_AWK
3452if test -n "$AWK"; then
3453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3454$as_echo "$AWK" >&6; }
3455else
3456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3457$as_echo "no" >&6; }
3458fi
3459
3460
3461  test -n "$AWK" && break
3462done
3463
3464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3465$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3466set x ${MAKE-make}
3467ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3468if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3469  $as_echo_n "(cached) " >&6
3470else
3471  cat >conftest.make <<\_ACEOF
3472SHELL = /bin/sh
3473all:
3474	@echo '@@@%%%=$(MAKE)=@@@%%%'
3475_ACEOF
3476# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3477case `${MAKE-make} -f conftest.make 2>/dev/null` in
3478  *@@@%%%=?*=@@@%%%*)
3479    eval ac_cv_prog_make_${ac_make}_set=yes;;
3480  *)
3481    eval ac_cv_prog_make_${ac_make}_set=no;;
3482esac
3483rm -f conftest.make
3484fi
3485if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3487$as_echo "yes" >&6; }
3488  SET_MAKE=
3489else
3490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491$as_echo "no" >&6; }
3492  SET_MAKE="MAKE=${MAKE-make}"
3493fi
3494
3495rm -rf .tst 2>/dev/null
3496mkdir .tst 2>/dev/null
3497if test -d .tst; then
3498  am__leading_dot=.
3499else
3500  am__leading_dot=_
3501fi
3502rmdir .tst 2>/dev/null
3503
3504# Check whether --enable-silent-rules was given.
3505if test "${enable_silent_rules+set}" = set; then :
3506  enableval=$enable_silent_rules;
3507fi
3508
3509case $enable_silent_rules in # (((
3510  yes) AM_DEFAULT_VERBOSITY=0;;
3511   no) AM_DEFAULT_VERBOSITY=1;;
3512    *) AM_DEFAULT_VERBOSITY=1;;
3513esac
3514am_make=${MAKE-make}
3515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3516$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3517if ${am_cv_make_support_nested_variables+:} false; then :
3518  $as_echo_n "(cached) " >&6
3519else
3520  if $as_echo 'TRUE=$(BAR$(V))
3521BAR0=false
3522BAR1=true
3523V=1
3524am__doit:
3525	@$(TRUE)
3526.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3527  am_cv_make_support_nested_variables=yes
3528else
3529  am_cv_make_support_nested_variables=no
3530fi
3531fi
3532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3533$as_echo "$am_cv_make_support_nested_variables" >&6; }
3534if test $am_cv_make_support_nested_variables = yes; then
3535    AM_V='$(V)'
3536  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3537else
3538  AM_V=$AM_DEFAULT_VERBOSITY
3539  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3540fi
3541AM_BACKSLASH='\'
3542
3543if test "`cd $srcdir && pwd`" != "`pwd`"; then
3544  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3545  # is not polluted with repeated "-I."
3546  am__isrc=' -I$(srcdir)'
3547  # test to see if srcdir already configured
3548  if test -f $srcdir/config.status; then
3549    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3550  fi
3551fi
3552
3553# test whether we have cygpath
3554if test -z "$CYGPATH_W"; then
3555  if (cygpath --version) >/dev/null 2>/dev/null; then
3556    CYGPATH_W='cygpath -w'
3557  else
3558    CYGPATH_W=echo
3559  fi
3560fi
3561
3562
3563# Define the identity of the package.
3564 PACKAGE='aranym'
3565 VERSION='1.1.0'
3566
3567
3568cat >>confdefs.h <<_ACEOF
3569#define PACKAGE "$PACKAGE"
3570_ACEOF
3571
3572
3573cat >>confdefs.h <<_ACEOF
3574#define VERSION "$VERSION"
3575_ACEOF
3576
3577# Some tools Automake needs.
3578
3579ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3580
3581
3582AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3583
3584
3585AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3586
3587
3588AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3589
3590
3591MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3592
3593# For better backward compatibility.  To be removed once Automake 1.9.x
3594# dies out for good.  For more background, see:
3595# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3596# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3597mkdir_p='$(MKDIR_P)'
3598
3599# We need awk for the "check" target (and possibly the TAP driver).  The
3600# system "awk" is bad on some platforms.
3601# Always define AMTAR for backward compatibility.  Yes, it's still used
3602# in the wild :-(  We should find a proper way to deprecate it ...
3603AMTAR='$${TAR-tar}'
3604
3605
3606# We'll loop over all known methods to create a tar archive until one works.
3607_am_tools='gnutar  pax cpio none'
3608
3609am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3610
3611
3612
3613
3614
3615
3616# POSIX will say in a future version that running "rm -f" with no argument
3617# is OK; and we want to be able to make that assumption in our Makefile
3618# recipes.  So use an aggressive probe to check that the usage we want is
3619# actually supported "in the wild" to an acceptable degree.
3620# See automake bug#10828.
3621# To make any issue more visible, cause the running configure to be aborted
3622# by default if the 'rm' program in use doesn't match our expectations; the
3623# user can still override this though.
3624if rm -f && rm -fr && rm -rf; then : OK; else
3625  cat >&2 <<'END'
3626Oops!
3627
3628Your 'rm' program seems unable to run without file operands specified
3629on the command line, even when the '-f' option is present.  This is contrary
3630to the behaviour of most rm programs out there, and not conforming with
3631the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3632
3633Please tell bug-automake@gnu.org about your system, including the value
3634of your $PATH and any error possibly output before this message.  This
3635can help us improve future automake versions.
3636
3637END
3638  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3639    echo 'Configuration will proceed anyway, since you have set the' >&2
3640    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3641    echo >&2
3642  else
3643    cat >&2 <<'END'
3644Aborting the configuration process, to ensure you take notice of the issue.
3645
3646You can download and install GNU coreutils to get an 'rm' implementation
3647that behaves properly: <http://www.gnu.org/software/coreutils/>.
3648
3649If you want to complete the configuration process using your problematic
3650'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3651to "yes", and re-run configure.
3652
3653END
3654    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3655  fi
3656fi
3657
3658
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3660$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3661    # Check whether --enable-maintainer-mode was given.
3662if test "${enable_maintainer_mode+set}" = set; then :
3663  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3664else
3665  USE_MAINTAINER_MODE=no
3666fi
3667
3668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3669$as_echo "$USE_MAINTAINER_MODE" >&6; }
3670   if test $USE_MAINTAINER_MODE = yes; then
3671  MAINTAINER_MODE_TRUE=
3672  MAINTAINER_MODE_FALSE='#'
3673else
3674  MAINTAINER_MODE_TRUE='#'
3675  MAINTAINER_MODE_FALSE=
3676fi
3677
3678  MAINT=$MAINTAINER_MODE_TRUE
3679
3680
3681
3682# Support silent build rules, requires at least automake-1.11. Disable
3683# by either passing --disable-silent-rules to configure or passing V=1
3684# to make
3685# Check whether --enable-silent-rules was given.
3686if test "${enable_silent_rules+set}" = set; then :
3687  enableval=$enable_silent_rules;
3688fi
3689
3690case $enable_silent_rules in # (((
3691  yes) AM_DEFAULT_VERBOSITY=0;;
3692   no) AM_DEFAULT_VERBOSITY=1;;
3693    *) AM_DEFAULT_VERBOSITY=0;;
3694esac
3695am_make=${MAKE-make}
3696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3697$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3698if ${am_cv_make_support_nested_variables+:} false; then :
3699  $as_echo_n "(cached) " >&6
3700else
3701  if $as_echo 'TRUE=$(BAR$(V))
3702BAR0=false
3703BAR1=true
3704V=1
3705am__doit:
3706	@$(TRUE)
3707.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3708  am_cv_make_support_nested_variables=yes
3709else
3710  am_cv_make_support_nested_variables=no
3711fi
3712fi
3713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3714$as_echo "$am_cv_make_support_nested_variables" >&6; }
3715if test $am_cv_make_support_nested_variables = yes; then
3716    AM_V='$(V)'
3717  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3718else
3719  AM_V=$AM_DEFAULT_VERBOSITY
3720  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3721fi
3722AM_BACKSLASH='\'
3723
3724
3725
3726
3727# Check whether --enable-nat-debug was given.
3728if test "${enable_nat_debug+set}" = set; then :
3729  enableval=$enable_nat_debug; WANT_NATDEBUG=$enableval
3730else
3731  WANT_NATDEBUG=yes
3732fi
3733
3734
3735# Check whether --enable-full-debug was given.
3736if test "${enable_full_debug+set}" = set; then :
3737  enableval=$enable_full_debug; WANT_FULLDEBUG=$enableval
3738else
3739  WANT_FULLDEBUG=no
3740fi
3741
3742
3743# Check whether --enable-debug was given.
3744if test "${enable_debug+set}" = set; then :
3745  enableval=$enable_debug;  case "$enableval" in
3746    default | yes | uae | ndebug)  USE_DEBUGGER=yes;;
3747         no)  USE_DEBUGGER="no";;
3748	  *)  as_fn_error $? "--enable-debug takes only one of the following values: default, uae, ndebug, no" "$LINENO" 5;;
3749  esac
3750
3751else
3752  USE_DEBUGGER=no
3753
3754fi
3755
3756
3757# Check whether --enable-fullhistory was given.
3758if test "${enable_fullhistory+set}" = set; then :
3759  enableval=$enable_fullhistory; WANT_HISTORY=$enableval
3760else
3761  WANT_HISTORY=no
3762fi
3763
3764
3765# Check whether --enable-flightrecorder was given.
3766if test "${enable_flightrecorder+set}" = set; then :
3767  enableval=$enable_flightrecorder; WANT_FLIGHTRECORDER=$enableval
3768else
3769  WANT_FLIGHTRECORDER=no
3770fi
3771
3772
3773# Check whether --enable-fullmmu was given.
3774if test "${enable_fullmmu+set}" = set; then :
3775  enableval=$enable_fullmmu; WANT_MMU=$enableval
3776else
3777  WANT_MMU=no
3778fi
3779
3780
3781# Check whether --enable-atc was given.
3782if test "${enable_atc+set}" = set; then :
3783  enableval=$enable_atc;  case "$enableval" in
3784        full)  ATC_TYPE="full";;
3785       small)  ATC_type="small";;
3786          no)  ATC_TYPE="no";;
3787           *)  as_fn_error $? "--enable-atc takes only one of the following values: full, small, no" "$LINENO" 5;;
3788  esac
3789
3790else
3791  ATC_TYPE=full
3792fi
3793
3794
3795# Check whether --enable-realstop was given.
3796if test "${enable_realstop+set}" = set; then :
3797  enableval=$enable_realstop; WANT_REALSTOP=$enableval
3798else
3799  WANT_REALSTOP=yes
3800fi
3801
3802
3803# Check whether --enable-dsp was given.
3804if test "${enable_dsp+set}" = set; then :
3805  enableval=$enable_dsp; WANT_DSP=$enableval
3806else
3807  WANT_DSP=yes
3808fi
3809
3810
3811# Check whether --enable-dsp-disasm was given.
3812if test "${enable_dsp_disasm+set}" = set; then :
3813  enableval=$enable_dsp_disasm; WANT_DSP_DISASM=$enableval
3814else
3815  WANT_DSP_DISASM=no
3816fi
3817
3818
3819# Check whether --enable-protect2k was given.
3820if test "${enable_protect2k+set}" = set; then :
3821  enableval=$enable_protect2k; WANT_PROTECT2K=$enableval
3822else
3823  WANT_PROTECT2K=yes
3824fi
3825
3826
3827# Check whether --enable-fixedfastram was given.
3828if test "${enable_fixedfastram+set}" = set; then :
3829  enableval=$enable_fixedfastram; WANT_FIXEDFASTRAM=$enableval
3830else
3831  WANT_FIXEDFASTRAM=no
3832fi
3833
3834
3835# Check whether --enable-fixedvideoram was given.
3836if test "${enable_fixedvideoram+set}" = set; then :
3837  enableval=$enable_fixedvideoram; WANT_FIXEDVIDEORAM=$enableval
3838else
3839  WANT_FIXEDVIDEORAM=no
3840fi
3841
3842
3843# Check whether --enable-blitmemmove was given.
3844if test "${enable_blitmemmove+set}" = set; then :
3845  enableval=$enable_blitmemmove; WANT_BLITMEMMOVE=$enableval
3846else
3847  WANT_BLITMEMMOVE=no
3848fi
3849
3850
3851# Check whether --enable-blitsdlblit was given.
3852if test "${enable_blitsdlblit+set}" = set; then :
3853  enableval=$enable_blitsdlblit; WANT_BLITSDLBLIT=$enableval
3854else
3855  WANT_BLITSDLBLIT=no
3856fi
3857
3858
3859# Check whether --enable-hostfs was given.
3860if test "${enable_hostfs+set}" = set; then :
3861  enableval=$enable_hostfs; WANT_HOSTFS=$enableval
3862else
3863  WANT_HOSTFS=yes
3864fi
3865
3866
3867# Check whether --enable-ctrlkey was given.
3868if test "${enable_ctrlkey+set}" = set; then :
3869  enableval=$enable_ctrlkey;  case "$enableval" in
3870        ctrl)	    CONTROL_KEY="ctrl";;
3871    meta)		CONTROL_KEY="meta";;
3872    both)		CONTROL_KEY="both";;
3873    *)		as_fn_error $? "--enable-ctrlkey takes only one of the following values: ctrl, meta, both" "$LINENO" 5;;
3874  esac
3875
3876else
3877   CONTROL_KEY="both"
3878
3879fi
3880
3881
3882# Check whether --enable-gui was given.
3883if test "${enable_gui+set}" = set; then :
3884  enableval=$enable_gui; WANT_SDLGUI=$enableval
3885else
3886  WANT_SDLGUI=yes
3887fi
3888
3889
3890# Check whether --enable-opengl was given.
3891if test "${enable_opengl+set}" = set; then :
3892  enableval=$enable_opengl; WANT_OPENGL=$enableval
3893else
3894  WANT_OPENGL=yes
3895fi
3896
3897
3898
3899# Check whether --with-mesa-headers was given.
3900if test "${with_mesa_headers+set}" = set; then :
3901  withval=$with_mesa_headers; WITH_MESAINC=$withval
3902else
3903  WITH_MESAINC=no
3904fi
3905
3906
3907# Check whether --enable-nfpci was given.
3908if test "${enable_nfpci+set}" = set; then :
3909  enableval=$enable_nfpci; WANT_NFPCI=$enableval
3910else
3911  WANT_NFPCI=no
3912fi
3913
3914
3915# Check whether --enable-usbhost was given.
3916if test "${enable_usbhost+set}" = set; then :
3917  enableval=$enable_usbhost; WANT_USBHOST=$enableval
3918else
3919  WANT_USBHOST=no
3920fi
3921
3922
3923# Check whether --enable-nfosmesa was given.
3924if test "${enable_nfosmesa+set}" = set; then :
3925  enableval=$enable_nfosmesa; WANT_NFOSMESA=$enableval
3926else
3927  WANT_NFOSMESA=no
3928fi
3929
3930
3931# Check whether --enable-nfjpeg was given.
3932if test "${enable_nfjpeg+set}" = set; then :
3933  enableval=$enable_nfjpeg; WANT_NFJPEG=$enableval
3934else
3935  WANT_NFJPEG=yes
3936fi
3937
3938
3939# Check whether --enable-nfclipbrd was given.
3940if test "${enable_nfclipbrd+set}" = set; then :
3941  enableval=$enable_nfclipbrd; WANT_NFCLIPBRD=$enableval
3942else
3943  WANT_NFCLIPBRD=yes
3944fi
3945
3946
3947# Check whether --enable-nfvdi was given.
3948if test "${enable_nfvdi+set}" = set; then :
3949  enableval=$enable_nfvdi; WANT_NFVDI=$enableval
3950else
3951  WANT_NFVDI=yes
3952fi
3953
3954
3955# Check whether --enable-scsi was given.
3956if test "${enable_scsi+set}" = set; then :
3957  enableval=$enable_scsi; WANT_NFSCSI=$enableval
3958else
3959  WANT_NFSCSI=yes
3960fi
3961
3962
3963# Check whether --enable-nfexec was given.
3964if test "${enable_nfexec+set}" = set; then :
3965  enableval=$enable_nfexec; WANT_NFEXEC=$enableval
3966else
3967  WANT_NFEXEC=yes
3968fi
3969
3970
3971# Check whether --enable-ata-cdrom was given.
3972if test "${enable_ata_cdrom+set}" = set; then :
3973  enableval=$enable_ata_cdrom; WANT_CDROM=$enableval
3974else
3975  WANT_CDROM=yes
3976fi
3977
3978
3979# Check whether --enable-epslimiter was given.
3980if test "${enable_epslimiter+set}" = set; then :
3981  enableval=$enable_epslimiter; WANT_EPSLIMITER=$enableval
3982else
3983  WANT_EPSLIMITER=no
3984fi
3985
3986
3987# Check whether --enable-lilo was given.
3988if test "${enable_lilo+set}" = set; then :
3989  enableval=$enable_lilo; WANT_LILO="$enableval"
3990else
3991  WANT_LILO="no"
3992fi
3993
3994
3995# Check whether --enable-rtctimer was given.
3996if test "${enable_rtctimer+set}" = set; then :
3997  enableval=$enable_rtctimer; WANT_RTCTIMER="$enableval"
3998else
3999  WANT_RTCTIMER="yes"
4000fi
4001
4002
4003# Check whether --enable-parallelx86 was given.
4004if test "${enable_parallelx86+set}" = set; then :
4005  enableval=$enable_parallelx86; WANT_PARALLELX86=$enableval
4006else
4007  WANT_PARALLELX86=no
4008fi
4009
4010
4011# Check whether --enable-parport was given.
4012if test "${enable_parport+set}" = set; then :
4013  enableval=$enable_parport; WANT_PARALLELPARPORT=$enableval
4014else
4015  WANT_PARALLELPARPORT=yes
4016fi
4017
4018
4019# Check whether --enable-serialport was given.
4020if test "${enable_serialport+set}" = set; then :
4021  enableval=$enable_serialport; WANT_UNIXSERIALPORT=$enableval
4022else
4023  WANT_UNIXSERIALPORT=yes
4024fi
4025
4026
4027
4028# Check whether --with-fink was given.
4029if test "${with_fink+set}" = set; then :
4030  withval=$with_fink; WITH_FINK=$withval
4031else
4032  WITH_FINK=no
4033fi
4034
4035
4036
4037# Check whether --with-classicconfig was given.
4038if test "${with_classicconfig+set}" = set; then :
4039  withval=$with_classicconfig; WITH_CLASSIC_CONFIG=$withval
4040else
4041  WITH_CLASSIC_CONFIG=no
4042fi
4043
4044
4045if [ "x$WANT_MMU" = "xyes" ]; then
4046    SUGGESTED_AUTO_FPE_CORE_TEST_ORDER="mpfr ieee uae"
4047else
4048    SUGGESTED_AUTO_FPE_CORE_TEST_ORDER="ieee uae"
4049fi
4050# Check whether --enable-fpe was given.
4051if test "${enable_fpe+set}" = set; then :
4052  enableval=$enable_fpe;  case "$enableval" in
4053        auto)	FPE_CORE_TEST_ORDER=$SUGGESTED_AUTO_FPE_CORE_TEST_ORDER;;
4054    ieee)	FPE_CORE_TEST_ORDER="ieee";;
4055    uae)	FPE_CORE_TEST_ORDER="uae";;
4056    x86)	FPE_CORE_TEST_ORDER="x86";;
4057    mpfr)	FPE_CORE_TEST_ORDER="mpfr";;
4058    *)		as_fn_error $? "--enable-fpe takes only one of the following values: auto, uae, x86, ieee, mpfr" "$LINENO" 5;;
4059  esac
4060
4061else
4062   FPE_CORE_TEST_ORDER=$SUGGESTED_AUTO_FPE_CORE_TEST_ORDER
4063
4064fi
4065
4066
4067# Check whether --enable-addressing was given.
4068if test "${enable_addressing+set}" = set; then :
4069  enableval=$enable_addressing;  case "$enableval" in
4070    direct)	ADDRESSING_TEST_ORDER="direct";;
4071    normal)	ADDRESSING_TEST_ORDER="normal";;
4072    fixed)	ADDRESSING_TEST_ORDER="fixed";;
4073    *)		as_fn_error $? "--enable-addressing takes only one of the following values: direct, fixed, normal" "$LINENO" 5;;
4074  esac
4075
4076else
4077   ADDRESSING_TEST_ORDER="direct normal"
4078
4079fi
4080
4081
4082# Check whether --enable-addr-check was given.
4083if test "${enable_addr_check+set}" = set; then :
4084  enableval=$enable_addr_check;  case "$enableval" in
4085    no)		MEMORY_CHECK="no";;
4086    full)	MEMORY_CHECK="full";;
4087    page)	MEMORY_CHECK="page";;
4088    hwsp)	MEMORY_CHECK="hwsp";;
4089    pagehwsp)	MEMORY_CHECK="pagehwsp";;
4090    sseg)	MEMORY_CHECK="sseg";;
4091    *)		as_fn_error $? "--enable-addr-check takes only one of the following values: no, full, page, hwsp, pagehwsp, sseg" "$LINENO" 5;;
4092  esac
4093
4094else
4095   MEMORY_CHECK="page"
4096
4097fi
4098
4099
4100# Check whether --enable-spcflags-excl was given.
4101if test "${enable_spcflags_excl+set}" = set; then :
4102  enableval=$enable_spcflags_excl; WANT_SPCFLAGS_EXCL=$enableval
4103else
4104  WANT_SPCFLAGS_EXCL=no
4105fi
4106
4107
4108# Check whether --enable-jit-compiler was given.
4109if test "${enable_jit_compiler+set}" = set; then :
4110  enableval=$enable_jit_compiler; WANT_JIT=$enableval
4111else
4112  WANT_JIT=no
4113fi
4114
4115# Check whether --enable-jit2 was given.
4116if test "${enable_jit2+set}" = set; then :
4117  enableval=$enable_jit2; WANT_JIT2=$enableval
4118else
4119  WANT_JIT2=no
4120fi
4121
4122
4123# Check whether --enable-jit-fpu was given.
4124if test "${enable_jit_fpu+set}" = set; then :
4125  enableval=$enable_jit_fpu; WANT_JIT_FPU=$enableval
4126else
4127  WANT_JIT_FPU=no
4128fi
4129
4130
4131# Check whether --enable-jit-debug was given.
4132if test "${enable_jit_debug+set}" = set; then :
4133  enableval=$enable_jit_debug; WANT_JIT_DEBUG=$enableval
4134else
4135  WANT_JIT_DEBUG=no
4136fi
4137
4138
4139# Check whether --enable-ethernet was given.
4140if test "${enable_ethernet+set}" = set; then :
4141  enableval=$enable_ethernet; WANT_ETHERNET=$enableval
4142else
4143  WANT_ETHERNET=yes
4144fi
4145
4146
4147# Check whether --enable-bpf-ethernet was given.
4148if test "${enable_bpf_ethernet+set}" = set; then :
4149  enableval=$enable_bpf_ethernet; WANT_BFP_ETHERNET=$enableval
4150else
4151  WANT_BFP_ETHERNET=no
4152fi
4153
4154
4155# Check whether --enable-cxx-exceptions was given.
4156if test "${enable_cxx_exceptions+set}" = set; then :
4157  enableval=$enable_cxx_exceptions; WANT_CXX_EXCEPTIONS=$enableval
4158else
4159  WANT_CXX_EXCEPTIONS=yes
4160fi
4161
4162
4163ANDROID_OS=no
4164case "$host_os" in
4165  *android*)	OS_TYPE=linux
4166		ANDROID_OS=yes
4167		LIBS="$LIBS -lgnustl_static -llog"
4168	;;
4169  linux*)	OS_TYPE=linux;;
4170  openbsd*)	OS_TYPE=openbsd
4171		CFLAGS="$CFLAGS -I/usr/local/include"
4172		LIBS="$LIBS -L/usr/local/lib"
4173		;;
4174  netbsd*)	OS_TYPE=netbsd;;
4175  freebsd*|kfreebsd*-gnu)	OS_TYPE=freebsd;;
4176  solaris*)	OS_TYPE=solaris;;
4177  darwin*)	OS_TYPE=darwin;;
4178  cygwin*)	OS_TYPE=cygwin;;
4179  irix*)	OS_TYPE=irix;;
4180  mint*)	OS_TYPE=mint;;
4181  beos*|haiku*)	OS_TYPE=beos;;
4182  mingw*)	OS_TYPE=mingw;;
4183  *)		OS_TYPE=unknown;;
4184esac
4185 if test "$OS_TYPE" = "linux"; then
4186  OS_TYPE_linux_TRUE=
4187  OS_TYPE_linux_FALSE='#'
4188else
4189  OS_TYPE_linux_TRUE='#'
4190  OS_TYPE_linux_FALSE=
4191fi
4192
4193 if test "$OS_TYPE" = "openbsd"; then
4194  OS_TYPE_openbsd_TRUE=
4195  OS_TYPE_openbsd_FALSE='#'
4196else
4197  OS_TYPE_openbsd_TRUE='#'
4198  OS_TYPE_openbsd_FALSE=
4199fi
4200
4201 if test "$OS_TYPE" = "netbsd"; then
4202  OS_TYPE_netbsd_TRUE=
4203  OS_TYPE_netbsd_FALSE='#'
4204else
4205  OS_TYPE_netbsd_TRUE='#'
4206  OS_TYPE_netbsd_FALSE=
4207fi
4208
4209 if test "$OS_TYPE" = "freebsd"; then
4210  OS_TYPE_freebsd_TRUE=
4211  OS_TYPE_freebsd_FALSE='#'
4212else
4213  OS_TYPE_freebsd_TRUE='#'
4214  OS_TYPE_freebsd_FALSE=
4215fi
4216
4217 if test "$OS_TYPE" = "solaris"; then
4218  OS_TYPE_solaris_TRUE=
4219  OS_TYPE_solaris_FALSE='#'
4220else
4221  OS_TYPE_solaris_TRUE='#'
4222  OS_TYPE_solaris_FALSE=
4223fi
4224
4225 if test "$OS_TYPE" = "darwin"; then
4226  OS_TYPE_darwin_TRUE=
4227  OS_TYPE_darwin_FALSE='#'
4228else
4229  OS_TYPE_darwin_TRUE='#'
4230  OS_TYPE_darwin_FALSE=
4231fi
4232
4233 if test "$OS_TYPE" = "cygwin"; then
4234  OS_TYPE_cygwin_TRUE=
4235  OS_TYPE_cygwin_FALSE='#'
4236else
4237  OS_TYPE_cygwin_TRUE='#'
4238  OS_TYPE_cygwin_FALSE=
4239fi
4240
4241 if test "$OS_TYPE" = "irix"; then
4242  OS_TYPE_irix_TRUE=
4243  OS_TYPE_irix_FALSE='#'
4244else
4245  OS_TYPE_irix_TRUE='#'
4246  OS_TYPE_irix_FALSE=
4247fi
4248
4249 if test "$OS_TYPE" = "mint"; then
4250  OS_TYPE_mint_TRUE=
4251  OS_TYPE_mint_FALSE='#'
4252else
4253  OS_TYPE_mint_TRUE='#'
4254  OS_TYPE_mint_FALSE=
4255fi
4256
4257 if test "$OS_TYPE" = "beos"; then
4258  OS_TYPE_beos_TRUE=
4259  OS_TYPE_beos_FALSE='#'
4260else
4261  OS_TYPE_beos_TRUE='#'
4262  OS_TYPE_beos_FALSE=
4263fi
4264
4265 if test "$OS_TYPE" = "mingw"; then
4266  OS_TYPE_mingw_TRUE=
4267  OS_TYPE_mingw_FALSE='#'
4268else
4269  OS_TYPE_mingw_TRUE='#'
4270  OS_TYPE_mingw_FALSE=
4271fi
4272
4273 if test "$OS_TYPE" = "unknown"; then
4274  OS_TYPE_unknown_TRUE=
4275  OS_TYPE_unknown_FALSE='#'
4276else
4277  OS_TYPE_unknown_TRUE='#'
4278  OS_TYPE_unknown_FALSE=
4279fi
4280
4281 if test "$ANDROID_OS" = "yes"; then
4282  ANDROID_OS_TRUE=
4283  ANDROID_OS_FALSE='#'
4284else
4285  ANDROID_OS_TRUE='#'
4286  ANDROID_OS_FALSE=
4287fi
4288
4289 if test "$WITH_FINK" = "yes"; then
4290  WITH_FINK_TRUE=
4291  WITH_FINK_FALSE='#'
4292else
4293  WITH_FINK_TRUE='#'
4294  WITH_FINK_FALSE=
4295fi
4296
4297if test "$OS_TYPE" = "unknown"; then
4298  OS_TYPE=`echo $host_os | sed -e 's/-/_/g' | sed -e 's/\./_/g'`
4299fi
4300#
4301# provide some defaults on cygwin,
4302# where we use the MinGW version of the SDL library,
4303# to simplify standard configuration.
4304# But only if the user did not override it.
4305#
4306if test "$OS_TYPE" = "cygwin"; then
4307  if test "$prefix" = NONE; then
4308    prefix=/usr
4309  fi
4310fi
4311DEFINES="$DEFINES -DOS_$OS_TYPE"
4312
4313cat >>confdefs.h <<_ACEOF
4314#define OS_TYPE "$OS_TYPE"
4315_ACEOF
4316
4317
4318if test "$OS_TYPE" = "darwin"; then
4319	# Make sure MPFR (and other 3rd party libs installed by MacPorts) are found
4320	# Note that the order of these flags may be different
4321	# in the Xcode project, which is important atleast for the
4322	# SDL framework because we want to use the headers from
4323	# the official build rather than the ones from MacPorts,
4324	# which are only suitable for a single target architecture
4325	LDFLAGS="$LDFLAGS -L/opt/local/lib"
4326	CPPFLAGS="$CPPFLAGS -I/opt/local/include"
4327	# SOURCE_ROOT is set when running from Xcode project
4328	if test "$XCODE_VERSION_ACTUAL" != "" -a "$SOURCE_ROOT" != ""; then
4329		LDFLAGS="$LDFLAGS -L$SOURCE_ROOT/external/lib"
4330		CPPFLAGS="$CPPFLAGS -I$SOURCE_ROOT/external/include"
4331	fi
4332fi
4333
4334ARCHFLAGS=
4335HAVE_I386=false
4336HAVE_ARM=false
4337HAVE_SPARC=false
4338HAVE_POWERPC=false
4339HAVE_X86_64=false
4340case "$host_cpu" in
4341  i386* | i486* | i586* | i686* | i786* )
4342	CPU_TYPE=i386
4343	HAVE_I386=true
4344	if [ "x$OS_TYPE" = "xdarwin" ]; then
4345		ARCHFLAGS="-arch i386"
4346        if [ "x$DEVELOPER_SDK_DIR" = "x" ]; then
4347            DEVELOPER_SDK_DIR=/Developer/SDKs
4348        fi
4349        if [ ! -d "$DEVELOPER_SDK_DIR" ]; then
4350            as_fn_error $? "Cannot find SDKs directory at $DEVELOPER_SDK_DIR" "$LINENO" 5
4351        fi
4352		case "$host_os" in
4353			darwin8* | darwin9* )	ISYSROOT="-mmacosx-version-min=10.4 -isysroot $DEVELOPER_SDK_DIR/MacOSX10.4u.sdk";;
4354			darwin10* )	ISYSROOT="-mmacosx-version-min=10.4 -isysroot $DEVELOPER_SDK_DIR/MacOSX10.5.sdk";;
4355			darwin11* | darwin12* )	ISYSROOT="-mmacosx-version-min=10.5";;
4356			darwin13* )	ISYSROOT="-mmacosx-version-min=10.7";;
4357			darwin14* )	ISYSROOT="-mmacosx-version-min=10.10";;
4358            darwin15* )	ISYSROOT="-mmacosx-version-min=10.10";;
4359            darwin16* )	ISYSROOT="-mmacosx-version-min=10.10";;
4360            darwin17* )	ISYSROOT="-mmacosx-version-min=10.13";;
4361			*)
4362				as_fn_error $? "Sorry, unknown Darwin version: $host_os" "$LINENO" 5
4363				;;
4364		esac
4365				CPPFLAGS="$CPPFLAGS $ISYSROOT $ARCHFLAGS"
4366		LDFLAGS="$LDFLAGS $ISYSROOT $ARCHFLAGS"
4367	fi
4368	;;
4369  sparc* ) CPU_TYPE=sparc HAVE_SPARC=true;;
4370  arm* ) CPU_TYPE=arm HAVE_ARM=true
4371         CFLAGS="$CFLAGS -ffast-math"
4372         CXXFLAGS="$CXXFLAGS -ffast-math"
4373  	;;
4374  powerpc* )
4375	CPU_TYPE=powerpc
4376	HAVE_POWERPC=true
4377	if [ "x$OS_TYPE" = "xdarwin" ]; then
4378		ARCHFLAGS="-arch ppc"
4379		ISYSROOT="-mmacosx-version-min=10.3"
4380				CPPFLAGS="$CPPFLAGS $ISYSROOT $ARCHFLAGS"
4381		LDFLAGS="$LDFLAGS $ISYSROOT $ARCHFLAGS"
4382	fi
4383	;;
4384  x86_64* ) CPU_TYPE=x86_64 HAVE_X86_64=true;;
4385  *) CPU_TYPE=unknown;;
4386esac
4387 if test "$CPU_TYPE" = "i386"; then
4388  CPU_TYPE_x86_TRUE=
4389  CPU_TYPE_x86_FALSE='#'
4390else
4391  CPU_TYPE_x86_TRUE='#'
4392  CPU_TYPE_x86_FALSE=
4393fi
4394
4395 if test "$CPU_TYPE" = "x86_64"; then
4396  CPU_TYPE_x86_64_TRUE=
4397  CPU_TYPE_x86_64_FALSE='#'
4398else
4399  CPU_TYPE_x86_64_TRUE='#'
4400  CPU_TYPE_x86_64_FALSE=
4401fi
4402
4403 if test "$CPU_TYPE" = "sparc"; then
4404  CPU_TYPE_sparc_TRUE=
4405  CPU_TYPE_sparc_FALSE='#'
4406else
4407  CPU_TYPE_sparc_TRUE='#'
4408  CPU_TYPE_sparc_FALSE=
4409fi
4410
4411 if test "$CPU_TYPE" = "arm"; then
4412  CPU_TYPE_arm_TRUE=
4413  CPU_TYPE_arm_FALSE='#'
4414else
4415  CPU_TYPE_arm_TRUE='#'
4416  CPU_TYPE_arm_FALSE=
4417fi
4418
4419 if test "$CPU_TYPE" = "powerpc"; then
4420  CPU_TYPE_powerpc_TRUE=
4421  CPU_TYPE_powerpc_FALSE='#'
4422else
4423  CPU_TYPE_powerpc_TRUE='#'
4424  CPU_TYPE_powerpc_FALSE=
4425fi
4426
4427 if test "$CPU_TYPE" = "unknown"; then
4428  CPU_TYPE_unknown_TRUE=
4429  CPU_TYPE_unknown_FALSE='#'
4430else
4431  CPU_TYPE_unknown_TRUE='#'
4432  CPU_TYPE_unknown_FALSE=
4433fi
4434
4435if test "$CPU_TYPE" = "unknown"; then
4436  CPU_TYPE=`echo $host_cpu | sed -e 's/-/_/g'`
4437fi
4438DEFINES="$DEFINES -DCPU_$CPU_TYPE"
4439
4440cat >>confdefs.h <<_ACEOF
4441#define CPU_TYPE "$CPU_TYPE"
4442_ACEOF
4443
4444
4445ac_ext=c
4446ac_cpp='$CPP $CPPFLAGS'
4447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4449ac_compiler_gnu=$ac_cv_c_compiler_gnu
4450if test -n "$ac_tool_prefix"; then
4451  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4452set dummy ${ac_tool_prefix}gcc; ac_word=$2
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4454$as_echo_n "checking for $ac_word... " >&6; }
4455if ${ac_cv_prog_CC+:} false; then :
4456  $as_echo_n "(cached) " >&6
4457else
4458  if test -n "$CC"; then
4459  ac_cv_prog_CC="$CC" # Let the user override the test.
4460else
4461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462for as_dir in $PATH
4463do
4464  IFS=$as_save_IFS
4465  test -z "$as_dir" && as_dir=.
4466    for ac_exec_ext in '' $ac_executable_extensions; do
4467  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4468    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4469    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4470    break 2
4471  fi
4472done
4473  done
4474IFS=$as_save_IFS
4475
4476fi
4477fi
4478CC=$ac_cv_prog_CC
4479if test -n "$CC"; then
4480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4481$as_echo "$CC" >&6; }
4482else
4483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484$as_echo "no" >&6; }
4485fi
4486
4487
4488fi
4489if test -z "$ac_cv_prog_CC"; then
4490  ac_ct_CC=$CC
4491  # Extract the first word of "gcc", so it can be a program name with args.
4492set dummy gcc; ac_word=$2
4493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4494$as_echo_n "checking for $ac_word... " >&6; }
4495if ${ac_cv_prog_ac_ct_CC+:} false; then :
4496  $as_echo_n "(cached) " >&6
4497else
4498  if test -n "$ac_ct_CC"; then
4499  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4500else
4501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502for as_dir in $PATH
4503do
4504  IFS=$as_save_IFS
4505  test -z "$as_dir" && as_dir=.
4506    for ac_exec_ext in '' $ac_executable_extensions; do
4507  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4508    ac_cv_prog_ac_ct_CC="gcc"
4509    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4510    break 2
4511  fi
4512done
4513  done
4514IFS=$as_save_IFS
4515
4516fi
4517fi
4518ac_ct_CC=$ac_cv_prog_ac_ct_CC
4519if test -n "$ac_ct_CC"; then
4520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4521$as_echo "$ac_ct_CC" >&6; }
4522else
4523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4524$as_echo "no" >&6; }
4525fi
4526
4527  if test "x$ac_ct_CC" = x; then
4528    CC=""
4529  else
4530    case $cross_compiling:$ac_tool_warned in
4531yes:)
4532{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4533$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4534ac_tool_warned=yes ;;
4535esac
4536    CC=$ac_ct_CC
4537  fi
4538else
4539  CC="$ac_cv_prog_CC"
4540fi
4541
4542if test -z "$CC"; then
4543          if test -n "$ac_tool_prefix"; then
4544    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4545set dummy ${ac_tool_prefix}cc; ac_word=$2
4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547$as_echo_n "checking for $ac_word... " >&6; }
4548if ${ac_cv_prog_CC+:} false; then :
4549  $as_echo_n "(cached) " >&6
4550else
4551  if test -n "$CC"; then
4552  ac_cv_prog_CC="$CC" # Let the user override the test.
4553else
4554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555for as_dir in $PATH
4556do
4557  IFS=$as_save_IFS
4558  test -z "$as_dir" && as_dir=.
4559    for ac_exec_ext in '' $ac_executable_extensions; do
4560  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4561    ac_cv_prog_CC="${ac_tool_prefix}cc"
4562    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563    break 2
4564  fi
4565done
4566  done
4567IFS=$as_save_IFS
4568
4569fi
4570fi
4571CC=$ac_cv_prog_CC
4572if test -n "$CC"; then
4573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4574$as_echo "$CC" >&6; }
4575else
4576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577$as_echo "no" >&6; }
4578fi
4579
4580
4581  fi
4582fi
4583if test -z "$CC"; then
4584  # Extract the first word of "cc", so it can be a program name with args.
4585set dummy cc; ac_word=$2
4586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4587$as_echo_n "checking for $ac_word... " >&6; }
4588if ${ac_cv_prog_CC+:} false; then :
4589  $as_echo_n "(cached) " >&6
4590else
4591  if test -n "$CC"; then
4592  ac_cv_prog_CC="$CC" # Let the user override the test.
4593else
4594  ac_prog_rejected=no
4595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596for as_dir in $PATH
4597do
4598  IFS=$as_save_IFS
4599  test -z "$as_dir" && as_dir=.
4600    for ac_exec_ext in '' $ac_executable_extensions; do
4601  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4602    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4603       ac_prog_rejected=yes
4604       continue
4605     fi
4606    ac_cv_prog_CC="cc"
4607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4608    break 2
4609  fi
4610done
4611  done
4612IFS=$as_save_IFS
4613
4614if test $ac_prog_rejected = yes; then
4615  # We found a bogon in the path, so make sure we never use it.
4616  set dummy $ac_cv_prog_CC
4617  shift
4618  if test $# != 0; then
4619    # We chose a different compiler from the bogus one.
4620    # However, it has the same basename, so the bogon will be chosen
4621    # first if we set CC to just the basename; use the full file name.
4622    shift
4623    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4624  fi
4625fi
4626fi
4627fi
4628CC=$ac_cv_prog_CC
4629if test -n "$CC"; then
4630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4631$as_echo "$CC" >&6; }
4632else
4633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634$as_echo "no" >&6; }
4635fi
4636
4637
4638fi
4639if test -z "$CC"; then
4640  if test -n "$ac_tool_prefix"; then
4641  for ac_prog in cl.exe
4642  do
4643    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4644set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646$as_echo_n "checking for $ac_word... " >&6; }
4647if ${ac_cv_prog_CC+:} false; then :
4648  $as_echo_n "(cached) " >&6
4649else
4650  if test -n "$CC"; then
4651  ac_cv_prog_CC="$CC" # Let the user override the test.
4652else
4653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654for as_dir in $PATH
4655do
4656  IFS=$as_save_IFS
4657  test -z "$as_dir" && as_dir=.
4658    for ac_exec_ext in '' $ac_executable_extensions; do
4659  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4660    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4661    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662    break 2
4663  fi
4664done
4665  done
4666IFS=$as_save_IFS
4667
4668fi
4669fi
4670CC=$ac_cv_prog_CC
4671if test -n "$CC"; then
4672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4673$as_echo "$CC" >&6; }
4674else
4675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676$as_echo "no" >&6; }
4677fi
4678
4679
4680    test -n "$CC" && break
4681  done
4682fi
4683if test -z "$CC"; then
4684  ac_ct_CC=$CC
4685  for ac_prog in cl.exe
4686do
4687  # Extract the first word of "$ac_prog", so it can be a program name with args.
4688set dummy $ac_prog; ac_word=$2
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690$as_echo_n "checking for $ac_word... " >&6; }
4691if ${ac_cv_prog_ac_ct_CC+:} false; then :
4692  $as_echo_n "(cached) " >&6
4693else
4694  if test -n "$ac_ct_CC"; then
4695  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4696else
4697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698for as_dir in $PATH
4699do
4700  IFS=$as_save_IFS
4701  test -z "$as_dir" && as_dir=.
4702    for ac_exec_ext in '' $ac_executable_extensions; do
4703  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4704    ac_cv_prog_ac_ct_CC="$ac_prog"
4705    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706    break 2
4707  fi
4708done
4709  done
4710IFS=$as_save_IFS
4711
4712fi
4713fi
4714ac_ct_CC=$ac_cv_prog_ac_ct_CC
4715if test -n "$ac_ct_CC"; then
4716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4717$as_echo "$ac_ct_CC" >&6; }
4718else
4719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720$as_echo "no" >&6; }
4721fi
4722
4723
4724  test -n "$ac_ct_CC" && break
4725done
4726
4727  if test "x$ac_ct_CC" = x; then
4728    CC=""
4729  else
4730    case $cross_compiling:$ac_tool_warned in
4731yes:)
4732{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4733$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4734ac_tool_warned=yes ;;
4735esac
4736    CC=$ac_ct_CC
4737  fi
4738fi
4739
4740fi
4741
4742
4743test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4744$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4745as_fn_error $? "no acceptable C compiler found in \$PATH
4746See \`config.log' for more details" "$LINENO" 5; }
4747
4748# Provide some information about the compiler.
4749$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4750set X $ac_compile
4751ac_compiler=$2
4752for ac_option in --version -v -V -qversion; do
4753  { { ac_try="$ac_compiler $ac_option >&5"
4754case "(($ac_try" in
4755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756  *) ac_try_echo=$ac_try;;
4757esac
4758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4759$as_echo "$ac_try_echo"; } >&5
4760  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4761  ac_status=$?
4762  if test -s conftest.err; then
4763    sed '10a\
4764... rest of stderr output deleted ...
4765         10q' conftest.err >conftest.er1
4766    cat conftest.er1 >&5
4767  fi
4768  rm -f conftest.er1 conftest.err
4769  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4770  test $ac_status = 0; }
4771done
4772
4773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774/* end confdefs.h.  */
4775
4776int
4777main ()
4778{
4779
4780  ;
4781  return 0;
4782}
4783_ACEOF
4784ac_clean_files_save=$ac_clean_files
4785ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4786# Try to create an executable without -o first, disregard a.out.
4787# It will help us diagnose broken compilers, and finding out an intuition
4788# of exeext.
4789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4790$as_echo_n "checking whether the C compiler works... " >&6; }
4791ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4792
4793# The possible output files:
4794ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4795
4796ac_rmfiles=
4797for ac_file in $ac_files
4798do
4799  case $ac_file in
4800    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4801    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4802  esac
4803done
4804rm -f $ac_rmfiles
4805
4806if { { ac_try="$ac_link_default"
4807case "(($ac_try" in
4808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4809  *) ac_try_echo=$ac_try;;
4810esac
4811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4812$as_echo "$ac_try_echo"; } >&5
4813  (eval "$ac_link_default") 2>&5
4814  ac_status=$?
4815  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4816  test $ac_status = 0; }; then :
4817  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4818# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4819# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4820# so that the user can short-circuit this test for compilers unknown to
4821# Autoconf.
4822for ac_file in $ac_files ''
4823do
4824  test -f "$ac_file" || continue
4825  case $ac_file in
4826    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4827	;;
4828    [ab].out )
4829	# We found the default executable, but exeext='' is most
4830	# certainly right.
4831	break;;
4832    *.* )
4833	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4834	then :; else
4835	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4836	fi
4837	# We set ac_cv_exeext here because the later test for it is not
4838	# safe: cross compilers may not add the suffix if given an `-o'
4839	# argument, so we may need to know it at that point already.
4840	# Even if this section looks crufty: it has the advantage of
4841	# actually working.
4842	break;;
4843    * )
4844	break;;
4845  esac
4846done
4847test "$ac_cv_exeext" = no && ac_cv_exeext=
4848
4849else
4850  ac_file=''
4851fi
4852if test -z "$ac_file"; then :
4853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854$as_echo "no" >&6; }
4855$as_echo "$as_me: failed program was:" >&5
4856sed 's/^/| /' conftest.$ac_ext >&5
4857
4858{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4859$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4860as_fn_error 77 "C compiler cannot create executables
4861See \`config.log' for more details" "$LINENO" 5; }
4862else
4863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4864$as_echo "yes" >&6; }
4865fi
4866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4867$as_echo_n "checking for C compiler default output file name... " >&6; }
4868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4869$as_echo "$ac_file" >&6; }
4870ac_exeext=$ac_cv_exeext
4871
4872rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4873ac_clean_files=$ac_clean_files_save
4874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4875$as_echo_n "checking for suffix of executables... " >&6; }
4876if { { ac_try="$ac_link"
4877case "(($ac_try" in
4878  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4879  *) ac_try_echo=$ac_try;;
4880esac
4881eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4882$as_echo "$ac_try_echo"; } >&5
4883  (eval "$ac_link") 2>&5
4884  ac_status=$?
4885  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4886  test $ac_status = 0; }; then :
4887  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4888# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4889# work properly (i.e., refer to `conftest.exe'), while it won't with
4890# `rm'.
4891for ac_file in conftest.exe conftest conftest.*; do
4892  test -f "$ac_file" || continue
4893  case $ac_file in
4894    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4895    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4896	  break;;
4897    * ) break;;
4898  esac
4899done
4900else
4901  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4902$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4903as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4904See \`config.log' for more details" "$LINENO" 5; }
4905fi
4906rm -f conftest conftest$ac_cv_exeext
4907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4908$as_echo "$ac_cv_exeext" >&6; }
4909
4910rm -f conftest.$ac_ext
4911EXEEXT=$ac_cv_exeext
4912ac_exeext=$EXEEXT
4913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914/* end confdefs.h.  */
4915#include <stdio.h>
4916int
4917main ()
4918{
4919FILE *f = fopen ("conftest.out", "w");
4920 return ferror (f) || fclose (f) != 0;
4921
4922  ;
4923  return 0;
4924}
4925_ACEOF
4926ac_clean_files="$ac_clean_files conftest.out"
4927# Check that the compiler produces executables we can run.  If not, either
4928# the compiler is broken, or we cross compile.
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4930$as_echo_n "checking whether we are cross compiling... " >&6; }
4931if test "$cross_compiling" != yes; then
4932  { { ac_try="$ac_link"
4933case "(($ac_try" in
4934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4935  *) ac_try_echo=$ac_try;;
4936esac
4937eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4938$as_echo "$ac_try_echo"; } >&5
4939  (eval "$ac_link") 2>&5
4940  ac_status=$?
4941  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4942  test $ac_status = 0; }
4943  if { ac_try='./conftest$ac_cv_exeext'
4944  { { case "(($ac_try" in
4945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4946  *) ac_try_echo=$ac_try;;
4947esac
4948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4949$as_echo "$ac_try_echo"; } >&5
4950  (eval "$ac_try") 2>&5
4951  ac_status=$?
4952  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4953  test $ac_status = 0; }; }; then
4954    cross_compiling=no
4955  else
4956    if test "$cross_compiling" = maybe; then
4957	cross_compiling=yes
4958    else
4959	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4960$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4961as_fn_error $? "cannot run C compiled programs.
4962If you meant to cross compile, use \`--host'.
4963See \`config.log' for more details" "$LINENO" 5; }
4964    fi
4965  fi
4966fi
4967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4968$as_echo "$cross_compiling" >&6; }
4969
4970rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4971ac_clean_files=$ac_clean_files_save
4972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4973$as_echo_n "checking for suffix of object files... " >&6; }
4974if ${ac_cv_objext+:} false; then :
4975  $as_echo_n "(cached) " >&6
4976else
4977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978/* end confdefs.h.  */
4979
4980int
4981main ()
4982{
4983
4984  ;
4985  return 0;
4986}
4987_ACEOF
4988rm -f conftest.o conftest.obj
4989if { { ac_try="$ac_compile"
4990case "(($ac_try" in
4991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4992  *) ac_try_echo=$ac_try;;
4993esac
4994eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4995$as_echo "$ac_try_echo"; } >&5
4996  (eval "$ac_compile") 2>&5
4997  ac_status=$?
4998  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4999  test $ac_status = 0; }; then :
5000  for ac_file in conftest.o conftest.obj conftest.*; do
5001  test -f "$ac_file" || continue;
5002  case $ac_file in
5003    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5004    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5005       break;;
5006  esac
5007done
5008else
5009  $as_echo "$as_me: failed program was:" >&5
5010sed 's/^/| /' conftest.$ac_ext >&5
5011
5012{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5013$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5014as_fn_error $? "cannot compute suffix of object files: cannot compile
5015See \`config.log' for more details" "$LINENO" 5; }
5016fi
5017rm -f conftest.$ac_cv_objext conftest.$ac_ext
5018fi
5019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5020$as_echo "$ac_cv_objext" >&6; }
5021OBJEXT=$ac_cv_objext
5022ac_objext=$OBJEXT
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5024$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5025if ${ac_cv_c_compiler_gnu+:} false; then :
5026  $as_echo_n "(cached) " >&6
5027else
5028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029/* end confdefs.h.  */
5030
5031int
5032main ()
5033{
5034#ifndef __GNUC__
5035       choke me
5036#endif
5037
5038  ;
5039  return 0;
5040}
5041_ACEOF
5042if ac_fn_c_try_compile "$LINENO"; then :
5043  ac_compiler_gnu=yes
5044else
5045  ac_compiler_gnu=no
5046fi
5047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5048ac_cv_c_compiler_gnu=$ac_compiler_gnu
5049
5050fi
5051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5052$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5053if test $ac_compiler_gnu = yes; then
5054  GCC=yes
5055else
5056  GCC=
5057fi
5058ac_test_CFLAGS=${CFLAGS+set}
5059ac_save_CFLAGS=$CFLAGS
5060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5061$as_echo_n "checking whether $CC accepts -g... " >&6; }
5062if ${ac_cv_prog_cc_g+:} false; then :
5063  $as_echo_n "(cached) " >&6
5064else
5065  ac_save_c_werror_flag=$ac_c_werror_flag
5066   ac_c_werror_flag=yes
5067   ac_cv_prog_cc_g=no
5068   CFLAGS="-g"
5069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5070/* end confdefs.h.  */
5071
5072int
5073main ()
5074{
5075
5076  ;
5077  return 0;
5078}
5079_ACEOF
5080if ac_fn_c_try_compile "$LINENO"; then :
5081  ac_cv_prog_cc_g=yes
5082else
5083  CFLAGS=""
5084      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5085/* end confdefs.h.  */
5086
5087int
5088main ()
5089{
5090
5091  ;
5092  return 0;
5093}
5094_ACEOF
5095if ac_fn_c_try_compile "$LINENO"; then :
5096
5097else
5098  ac_c_werror_flag=$ac_save_c_werror_flag
5099	 CFLAGS="-g"
5100	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101/* end confdefs.h.  */
5102
5103int
5104main ()
5105{
5106
5107  ;
5108  return 0;
5109}
5110_ACEOF
5111if ac_fn_c_try_compile "$LINENO"; then :
5112  ac_cv_prog_cc_g=yes
5113fi
5114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5115fi
5116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5117fi
5118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5119   ac_c_werror_flag=$ac_save_c_werror_flag
5120fi
5121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5122$as_echo "$ac_cv_prog_cc_g" >&6; }
5123if test "$ac_test_CFLAGS" = set; then
5124  CFLAGS=$ac_save_CFLAGS
5125elif test $ac_cv_prog_cc_g = yes; then
5126  if test "$GCC" = yes; then
5127    CFLAGS="-g -O2"
5128  else
5129    CFLAGS="-g"
5130  fi
5131else
5132  if test "$GCC" = yes; then
5133    CFLAGS="-O2"
5134  else
5135    CFLAGS=
5136  fi
5137fi
5138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5139$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5140if ${ac_cv_prog_cc_c89+:} false; then :
5141  $as_echo_n "(cached) " >&6
5142else
5143  ac_cv_prog_cc_c89=no
5144ac_save_CC=$CC
5145cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146/* end confdefs.h.  */
5147#include <stdarg.h>
5148#include <stdio.h>
5149struct stat;
5150/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5151struct buf { int x; };
5152FILE * (*rcsopen) (struct buf *, struct stat *, int);
5153static char *e (p, i)
5154     char **p;
5155     int i;
5156{
5157  return p[i];
5158}
5159static char *f (char * (*g) (char **, int), char **p, ...)
5160{
5161  char *s;
5162  va_list v;
5163  va_start (v,p);
5164  s = g (p, va_arg (v,int));
5165  va_end (v);
5166  return s;
5167}
5168
5169/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5170   function prototypes and stuff, but not '\xHH' hex character constants.
5171   These don't provoke an error unfortunately, instead are silently treated
5172   as 'x'.  The following induces an error, until -std is added to get
5173   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5174   array size at least.  It's necessary to write '\x00'==0 to get something
5175   that's true only with -std.  */
5176int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5177
5178/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5179   inside strings and character constants.  */
5180#define FOO(x) 'x'
5181int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5182
5183int test (int i, double x);
5184struct s1 {int (*f) (int a);};
5185struct s2 {int (*f) (double a);};
5186int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5187int argc;
5188char **argv;
5189int
5190main ()
5191{
5192return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5193  ;
5194  return 0;
5195}
5196_ACEOF
5197for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5198	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5199do
5200  CC="$ac_save_CC $ac_arg"
5201  if ac_fn_c_try_compile "$LINENO"; then :
5202  ac_cv_prog_cc_c89=$ac_arg
5203fi
5204rm -f core conftest.err conftest.$ac_objext
5205  test "x$ac_cv_prog_cc_c89" != "xno" && break
5206done
5207rm -f conftest.$ac_ext
5208CC=$ac_save_CC
5209
5210fi
5211# AC_CACHE_VAL
5212case "x$ac_cv_prog_cc_c89" in
5213  x)
5214    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5215$as_echo "none needed" >&6; } ;;
5216  xno)
5217    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5218$as_echo "unsupported" >&6; } ;;
5219  *)
5220    CC="$CC $ac_cv_prog_cc_c89"
5221    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5222$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5223esac
5224if test "x$ac_cv_prog_cc_c89" != xno; then :
5225
5226fi
5227
5228ac_ext=c
5229ac_cpp='$CPP $CPPFLAGS'
5230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5232ac_compiler_gnu=$ac_cv_c_compiler_gnu
5233
5234ac_ext=c
5235ac_cpp='$CPP $CPPFLAGS'
5236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5238ac_compiler_gnu=$ac_cv_c_compiler_gnu
5239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5240$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5241if ${am_cv_prog_cc_c_o+:} false; then :
5242  $as_echo_n "(cached) " >&6
5243else
5244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5245/* end confdefs.h.  */
5246
5247int
5248main ()
5249{
5250
5251  ;
5252  return 0;
5253}
5254_ACEOF
5255  # Make sure it works both with $CC and with simple cc.
5256  # Following AC_PROG_CC_C_O, we do the test twice because some
5257  # compilers refuse to overwrite an existing .o file with -o,
5258  # though they will create one.
5259  am_cv_prog_cc_c_o=yes
5260  for am_i in 1 2; do
5261    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5262   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5263   ac_status=$?
5264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265   (exit $ac_status); } \
5266         && test -f conftest2.$ac_objext; then
5267      : OK
5268    else
5269      am_cv_prog_cc_c_o=no
5270      break
5271    fi
5272  done
5273  rm -f core conftest*
5274  unset am_i
5275fi
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5277$as_echo "$am_cv_prog_cc_c_o" >&6; }
5278if test "$am_cv_prog_cc_c_o" != yes; then
5279   # Losing compiler, so override with the script.
5280   # FIXME: It is wrong to rewrite CC.
5281   # But if we don't then we get into trouble of one sort or another.
5282   # A longer-term fix would be to have automake use am__CC in this case,
5283   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5284   CC="$am_aux_dir/compile $CC"
5285fi
5286ac_ext=c
5287ac_cpp='$CPP $CPPFLAGS'
5288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5290ac_compiler_gnu=$ac_cv_c_compiler_gnu
5291
5292DEPDIR="${am__leading_dot}deps"
5293
5294ac_config_commands="$ac_config_commands depfiles"
5295
5296
5297am_make=${MAKE-make}
5298cat > confinc << 'END'
5299am__doit:
5300	@echo this is the am__doit target
5301.PHONY: am__doit
5302END
5303# If we don't find an include directive, just comment out the code.
5304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5305$as_echo_n "checking for style of include used by $am_make... " >&6; }
5306am__include="#"
5307am__quote=
5308_am_result=none
5309# First try GNU make style include.
5310echo "include confinc" > confmf
5311# Ignore all kinds of additional output from 'make'.
5312case `$am_make -s -f confmf 2> /dev/null` in #(
5313*the\ am__doit\ target*)
5314  am__include=include
5315  am__quote=
5316  _am_result=GNU
5317  ;;
5318esac
5319# Now try BSD make style include.
5320if test "$am__include" = "#"; then
5321   echo '.include "confinc"' > confmf
5322   case `$am_make -s -f confmf 2> /dev/null` in #(
5323   *the\ am__doit\ target*)
5324     am__include=.include
5325     am__quote="\""
5326     _am_result=BSD
5327     ;;
5328   esac
5329fi
5330
5331
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5333$as_echo "$_am_result" >&6; }
5334rm -f confinc confmf
5335
5336# Check whether --enable-dependency-tracking was given.
5337if test "${enable_dependency_tracking+set}" = set; then :
5338  enableval=$enable_dependency_tracking;
5339fi
5340
5341if test "x$enable_dependency_tracking" != xno; then
5342  am_depcomp="$ac_aux_dir/depcomp"
5343  AMDEPBACKSLASH='\'
5344  am__nodep='_no'
5345fi
5346 if test "x$enable_dependency_tracking" != xno; then
5347  AMDEP_TRUE=
5348  AMDEP_FALSE='#'
5349else
5350  AMDEP_TRUE='#'
5351  AMDEP_FALSE=
5352fi
5353
5354
5355
5356depcc="$CC"   am_compiler_list=
5357
5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5359$as_echo_n "checking dependency style of $depcc... " >&6; }
5360if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5361  $as_echo_n "(cached) " >&6
5362else
5363  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5364  # We make a subdir and do the tests there.  Otherwise we can end up
5365  # making bogus files that we don't know about and never remove.  For
5366  # instance it was reported that on HP-UX the gcc test will end up
5367  # making a dummy file named 'D' -- because '-MD' means "put the output
5368  # in D".
5369  rm -rf conftest.dir
5370  mkdir conftest.dir
5371  # Copy depcomp to subdir because otherwise we won't find it if we're
5372  # using a relative directory.
5373  cp "$am_depcomp" conftest.dir
5374  cd conftest.dir
5375  # We will build objects and dependencies in a subdirectory because
5376  # it helps to detect inapplicable dependency modes.  For instance
5377  # both Tru64's cc and ICC support -MD to output dependencies as a
5378  # side effect of compilation, but ICC will put the dependencies in
5379  # the current directory while Tru64 will put them in the object
5380  # directory.
5381  mkdir sub
5382
5383  am_cv_CC_dependencies_compiler_type=none
5384  if test "$am_compiler_list" = ""; then
5385     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5386  fi
5387  am__universal=false
5388  case " $depcc " in #(
5389     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5390     esac
5391
5392  for depmode in $am_compiler_list; do
5393    # Setup a source with many dependencies, because some compilers
5394    # like to wrap large dependency lists on column 80 (with \), and
5395    # we should not choose a depcomp mode which is confused by this.
5396    #
5397    # We need to recreate these files for each test, as the compiler may
5398    # overwrite some of them when testing with obscure command lines.
5399    # This happens at least with the AIX C compiler.
5400    : > sub/conftest.c
5401    for i in 1 2 3 4 5 6; do
5402      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5403      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5404      # Solaris 10 /bin/sh.
5405      echo '/* dummy */' > sub/conftst$i.h
5406    done
5407    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5408
5409    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5410    # mode.  It turns out that the SunPro C++ compiler does not properly
5411    # handle '-M -o', and we need to detect this.  Also, some Intel
5412    # versions had trouble with output in subdirs.
5413    am__obj=sub/conftest.${OBJEXT-o}
5414    am__minus_obj="-o $am__obj"
5415    case $depmode in
5416    gcc)
5417      # This depmode causes a compiler race in universal mode.
5418      test "$am__universal" = false || continue
5419      ;;
5420    nosideeffect)
5421      # After this tag, mechanisms are not by side-effect, so they'll
5422      # only be used when explicitly requested.
5423      if test "x$enable_dependency_tracking" = xyes; then
5424	continue
5425      else
5426	break
5427      fi
5428      ;;
5429    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5430      # This compiler won't grok '-c -o', but also, the minuso test has
5431      # not run yet.  These depmodes are late enough in the game, and
5432      # so weak that their functioning should not be impacted.
5433      am__obj=conftest.${OBJEXT-o}
5434      am__minus_obj=
5435      ;;
5436    none) break ;;
5437    esac
5438    if depmode=$depmode \
5439       source=sub/conftest.c object=$am__obj \
5440       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5441       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5442         >/dev/null 2>conftest.err &&
5443       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5444       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5445       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5446       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5447      # icc doesn't choke on unknown options, it will just issue warnings
5448      # or remarks (even with -Werror).  So we grep stderr for any message
5449      # that says an option was ignored or not supported.
5450      # When given -MP, icc 7.0 and 7.1 complain thusly:
5451      #   icc: Command line warning: ignoring option '-M'; no argument required
5452      # The diagnosis changed in icc 8.0:
5453      #   icc: Command line remark: option '-MP' not supported
5454      if (grep 'ignoring option' conftest.err ||
5455          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5456        am_cv_CC_dependencies_compiler_type=$depmode
5457        break
5458      fi
5459    fi
5460  done
5461
5462  cd ..
5463  rm -rf conftest.dir
5464else
5465  am_cv_CC_dependencies_compiler_type=none
5466fi
5467
5468fi
5469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5470$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5471CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5472
5473 if
5474  test "x$enable_dependency_tracking" != xno \
5475  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5476  am__fastdepCC_TRUE=
5477  am__fastdepCC_FALSE='#'
5478else
5479  am__fastdepCC_TRUE='#'
5480  am__fastdepCC_FALSE=
5481fi
5482
5483
5484if test "x$CC" != xcc; then
5485  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5486$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5487else
5488  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5489$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5490fi
5491set dummy $CC; ac_cc=`$as_echo "$2" |
5492		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5493if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5494  $as_echo_n "(cached) " >&6
5495else
5496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5497/* end confdefs.h.  */
5498
5499int
5500main ()
5501{
5502
5503  ;
5504  return 0;
5505}
5506_ACEOF
5507# Make sure it works both with $CC and with simple cc.
5508# We do the test twice because some compilers refuse to overwrite an
5509# existing .o file with -o, though they will create one.
5510ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5511rm -f conftest2.*
5512if { { case "(($ac_try" in
5513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514  *) ac_try_echo=$ac_try;;
5515esac
5516eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5517$as_echo "$ac_try_echo"; } >&5
5518  (eval "$ac_try") 2>&5
5519  ac_status=$?
5520  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5521  test $ac_status = 0; } &&
5522   test -f conftest2.$ac_objext && { { case "(($ac_try" in
5523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524  *) ac_try_echo=$ac_try;;
5525esac
5526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5527$as_echo "$ac_try_echo"; } >&5
5528  (eval "$ac_try") 2>&5
5529  ac_status=$?
5530  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5531  test $ac_status = 0; };
5532then
5533  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5534  if test "x$CC" != xcc; then
5535    # Test first that cc exists at all.
5536    if { ac_try='cc -c conftest.$ac_ext >&5'
5537  { { case "(($ac_try" in
5538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539  *) ac_try_echo=$ac_try;;
5540esac
5541eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5542$as_echo "$ac_try_echo"; } >&5
5543  (eval "$ac_try") 2>&5
5544  ac_status=$?
5545  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5546  test $ac_status = 0; }; }; then
5547      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5548      rm -f conftest2.*
5549      if { { case "(($ac_try" in
5550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551  *) ac_try_echo=$ac_try;;
5552esac
5553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5554$as_echo "$ac_try_echo"; } >&5
5555  (eval "$ac_try") 2>&5
5556  ac_status=$?
5557  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5558  test $ac_status = 0; } &&
5559	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561  *) ac_try_echo=$ac_try;;
5562esac
5563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5564$as_echo "$ac_try_echo"; } >&5
5565  (eval "$ac_try") 2>&5
5566  ac_status=$?
5567  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5568  test $ac_status = 0; };
5569      then
5570	# cc works too.
5571	:
5572      else
5573	# cc exists but doesn't like -o.
5574	eval ac_cv_prog_cc_${ac_cc}_c_o=no
5575      fi
5576    fi
5577  fi
5578else
5579  eval ac_cv_prog_cc_${ac_cc}_c_o=no
5580fi
5581rm -f core conftest*
5582
5583fi
5584if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5586$as_echo "yes" >&6; }
5587else
5588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5589$as_echo "no" >&6; }
5590
5591$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5592
5593fi
5594
5595ac_ext=m
5596ac_cpp='$OBJCPP $CPPFLAGS'
5597ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5598ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5599ac_compiler_gnu=$ac_cv_objc_compiler_gnu
5600if test -n "$ac_tool_prefix"; then
5601  for ac_prog in gcc objcc objc cc CC
5602  do
5603    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5604set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5606$as_echo_n "checking for $ac_word... " >&6; }
5607if ${ac_cv_prog_OBJC+:} false; then :
5608  $as_echo_n "(cached) " >&6
5609else
5610  if test -n "$OBJC"; then
5611  ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
5612else
5613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614for as_dir in $PATH
5615do
5616  IFS=$as_save_IFS
5617  test -z "$as_dir" && as_dir=.
5618    for ac_exec_ext in '' $ac_executable_extensions; do
5619  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5620    ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
5621    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5622    break 2
5623  fi
5624done
5625  done
5626IFS=$as_save_IFS
5627
5628fi
5629fi
5630OBJC=$ac_cv_prog_OBJC
5631if test -n "$OBJC"; then
5632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
5633$as_echo "$OBJC" >&6; }
5634else
5635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5636$as_echo "no" >&6; }
5637fi
5638
5639
5640    test -n "$OBJC" && break
5641  done
5642fi
5643if test -z "$OBJC"; then
5644  ac_ct_OBJC=$OBJC
5645  for ac_prog in gcc objcc objc cc CC
5646do
5647  # Extract the first word of "$ac_prog", so it can be a program name with args.
5648set dummy $ac_prog; ac_word=$2
5649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5650$as_echo_n "checking for $ac_word... " >&6; }
5651if ${ac_cv_prog_ac_ct_OBJC+:} false; then :
5652  $as_echo_n "(cached) " >&6
5653else
5654  if test -n "$ac_ct_OBJC"; then
5655  ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
5656else
5657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658for as_dir in $PATH
5659do
5660  IFS=$as_save_IFS
5661  test -z "$as_dir" && as_dir=.
5662    for ac_exec_ext in '' $ac_executable_extensions; do
5663  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5664    ac_cv_prog_ac_ct_OBJC="$ac_prog"
5665    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5666    break 2
5667  fi
5668done
5669  done
5670IFS=$as_save_IFS
5671
5672fi
5673fi
5674ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
5675if test -n "$ac_ct_OBJC"; then
5676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5
5677$as_echo "$ac_ct_OBJC" >&6; }
5678else
5679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680$as_echo "no" >&6; }
5681fi
5682
5683
5684  test -n "$ac_ct_OBJC" && break
5685done
5686
5687  if test "x$ac_ct_OBJC" = x; then
5688    OBJC="gcc"
5689  else
5690    case $cross_compiling:$ac_tool_warned in
5691yes:)
5692{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5693$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5694ac_tool_warned=yes ;;
5695esac
5696    OBJC=$ac_ct_OBJC
5697  fi
5698fi
5699
5700# Provide some information about the compiler.
5701$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5
5702set X $ac_compile
5703ac_compiler=$2
5704for ac_option in --version -v -V -qversion; do
5705  { { ac_try="$ac_compiler $ac_option >&5"
5706case "(($ac_try" in
5707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5708  *) ac_try_echo=$ac_try;;
5709esac
5710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5711$as_echo "$ac_try_echo"; } >&5
5712  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5713  ac_status=$?
5714  if test -s conftest.err; then
5715    sed '10a\
5716... rest of stderr output deleted ...
5717         10q' conftest.err >conftest.er1
5718    cat conftest.er1 >&5
5719  fi
5720  rm -f conftest.er1 conftest.err
5721  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5722  test $ac_status = 0; }
5723done
5724
5725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5
5726$as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
5727if ${ac_cv_objc_compiler_gnu+:} false; then :
5728  $as_echo_n "(cached) " >&6
5729else
5730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5731/* end confdefs.h.  */
5732
5733int
5734main ()
5735{
5736#ifndef __GNUC__
5737       choke me
5738#endif
5739
5740  ;
5741  return 0;
5742}
5743_ACEOF
5744if ac_fn_objc_try_compile "$LINENO"; then :
5745  ac_compiler_gnu=yes
5746else
5747  ac_compiler_gnu=no
5748fi
5749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5750ac_cv_objc_compiler_gnu=$ac_compiler_gnu
5751
5752fi
5753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
5754$as_echo "$ac_cv_objc_compiler_gnu" >&6; }
5755if test $ac_compiler_gnu = yes; then
5756  GOBJC=yes
5757else
5758  GOBJC=
5759fi
5760ac_test_OBJCFLAGS=${OBJCFLAGS+set}
5761ac_save_OBJCFLAGS=$OBJCFLAGS
5762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
5763$as_echo_n "checking whether $OBJC accepts -g... " >&6; }
5764if ${ac_cv_prog_objc_g+:} false; then :
5765  $as_echo_n "(cached) " >&6
5766else
5767  ac_save_objc_werror_flag=$ac_objc_werror_flag
5768   ac_objc_werror_flag=yes
5769   ac_cv_prog_objc_g=no
5770   OBJCFLAGS="-g"
5771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772/* end confdefs.h.  */
5773
5774int
5775main ()
5776{
5777
5778  ;
5779  return 0;
5780}
5781_ACEOF
5782if ac_fn_objc_try_compile "$LINENO"; then :
5783  ac_cv_prog_objc_g=yes
5784else
5785  OBJCFLAGS=""
5786      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787/* end confdefs.h.  */
5788
5789int
5790main ()
5791{
5792
5793  ;
5794  return 0;
5795}
5796_ACEOF
5797if ac_fn_objc_try_compile "$LINENO"; then :
5798
5799else
5800  ac_objc_werror_flag=$ac_save_objc_werror_flag
5801	 OBJCFLAGS="-g"
5802	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803/* end confdefs.h.  */
5804
5805int
5806main ()
5807{
5808
5809  ;
5810  return 0;
5811}
5812_ACEOF
5813if ac_fn_objc_try_compile "$LINENO"; then :
5814  ac_cv_prog_objc_g=yes
5815fi
5816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5817fi
5818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5819fi
5820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5821   ac_objc_werror_flag=$ac_save_objc_werror_flag
5822fi
5823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5
5824$as_echo "$ac_cv_prog_objc_g" >&6; }
5825if test "$ac_test_OBJCFLAGS" = set; then
5826  OBJCFLAGS=$ac_save_OBJCFLAGS
5827elif test $ac_cv_prog_objc_g = yes; then
5828  if test "$GOBJC" = yes; then
5829    OBJCFLAGS="-g -O2"
5830  else
5831    OBJCFLAGS="-g"
5832  fi
5833else
5834  if test "$GOBJC" = yes; then
5835    OBJCFLAGS="-O2"
5836  else
5837    OBJCFLAGS=
5838  fi
5839fi
5840ac_ext=c
5841ac_cpp='$CPP $CPPFLAGS'
5842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5844ac_compiler_gnu=$ac_cv_c_compiler_gnu
5845
5846depcc="$OBJC" am_compiler_list='gcc3 gcc'
5847
5848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5849$as_echo_n "checking dependency style of $depcc... " >&6; }
5850if ${am_cv_OBJC_dependencies_compiler_type+:} false; then :
5851  $as_echo_n "(cached) " >&6
5852else
5853  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5854  # We make a subdir and do the tests there.  Otherwise we can end up
5855  # making bogus files that we don't know about and never remove.  For
5856  # instance it was reported that on HP-UX the gcc test will end up
5857  # making a dummy file named 'D' -- because '-MD' means "put the output
5858  # in D".
5859  rm -rf conftest.dir
5860  mkdir conftest.dir
5861  # Copy depcomp to subdir because otherwise we won't find it if we're
5862  # using a relative directory.
5863  cp "$am_depcomp" conftest.dir
5864  cd conftest.dir
5865  # We will build objects and dependencies in a subdirectory because
5866  # it helps to detect inapplicable dependency modes.  For instance
5867  # both Tru64's cc and ICC support -MD to output dependencies as a
5868  # side effect of compilation, but ICC will put the dependencies in
5869  # the current directory while Tru64 will put them in the object
5870  # directory.
5871  mkdir sub
5872
5873  am_cv_OBJC_dependencies_compiler_type=none
5874  if test "$am_compiler_list" = ""; then
5875     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5876  fi
5877  am__universal=false
5878
5879
5880  for depmode in $am_compiler_list; do
5881    # Setup a source with many dependencies, because some compilers
5882    # like to wrap large dependency lists on column 80 (with \), and
5883    # we should not choose a depcomp mode which is confused by this.
5884    #
5885    # We need to recreate these files for each test, as the compiler may
5886    # overwrite some of them when testing with obscure command lines.
5887    # This happens at least with the AIX C compiler.
5888    : > sub/conftest.c
5889    for i in 1 2 3 4 5 6; do
5890      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5891      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5892      # Solaris 10 /bin/sh.
5893      echo '/* dummy */' > sub/conftst$i.h
5894    done
5895    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5896
5897    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5898    # mode.  It turns out that the SunPro C++ compiler does not properly
5899    # handle '-M -o', and we need to detect this.  Also, some Intel
5900    # versions had trouble with output in subdirs.
5901    am__obj=sub/conftest.${OBJEXT-o}
5902    am__minus_obj="-o $am__obj"
5903    case $depmode in
5904    gcc)
5905      # This depmode causes a compiler race in universal mode.
5906      test "$am__universal" = false || continue
5907      ;;
5908    nosideeffect)
5909      # After this tag, mechanisms are not by side-effect, so they'll
5910      # only be used when explicitly requested.
5911      if test "x$enable_dependency_tracking" = xyes; then
5912	continue
5913      else
5914	break
5915      fi
5916      ;;
5917    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5918      # This compiler won't grok '-c -o', but also, the minuso test has
5919      # not run yet.  These depmodes are late enough in the game, and
5920      # so weak that their functioning should not be impacted.
5921      am__obj=conftest.${OBJEXT-o}
5922      am__minus_obj=
5923      ;;
5924    none) break ;;
5925    esac
5926    if depmode=$depmode \
5927       source=sub/conftest.c object=$am__obj \
5928       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5929       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5930         >/dev/null 2>conftest.err &&
5931       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5932       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5933       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5934       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5935      # icc doesn't choke on unknown options, it will just issue warnings
5936      # or remarks (even with -Werror).  So we grep stderr for any message
5937      # that says an option was ignored or not supported.
5938      # When given -MP, icc 7.0 and 7.1 complain thusly:
5939      #   icc: Command line warning: ignoring option '-M'; no argument required
5940      # The diagnosis changed in icc 8.0:
5941      #   icc: Command line remark: option '-MP' not supported
5942      if (grep 'ignoring option' conftest.err ||
5943          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5944        am_cv_OBJC_dependencies_compiler_type=$depmode
5945        break
5946      fi
5947    fi
5948  done
5949
5950  cd ..
5951  rm -rf conftest.dir
5952else
5953  am_cv_OBJC_dependencies_compiler_type=none
5954fi
5955
5956fi
5957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5
5958$as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
5959OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
5960
5961 if
5962  test "x$enable_dependency_tracking" != xno \
5963  && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
5964  am__fastdepOBJC_TRUE=
5965  am__fastdepOBJC_FALSE='#'
5966else
5967  am__fastdepOBJC_TRUE='#'
5968  am__fastdepOBJC_FALSE=
5969fi
5970
5971
5972ac_ext=c
5973ac_cpp='$CPP $CPPFLAGS'
5974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5976ac_compiler_gnu=$ac_cv_c_compiler_gnu
5977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5978$as_echo_n "checking how to run the C preprocessor... " >&6; }
5979# On Suns, sometimes $CPP names a directory.
5980if test -n "$CPP" && test -d "$CPP"; then
5981  CPP=
5982fi
5983if test -z "$CPP"; then
5984  if ${ac_cv_prog_CPP+:} false; then :
5985  $as_echo_n "(cached) " >&6
5986else
5987      # Double quotes because CPP needs to be expanded
5988    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5989    do
5990      ac_preproc_ok=false
5991for ac_c_preproc_warn_flag in '' yes
5992do
5993  # Use a header file that comes with gcc, so configuring glibc
5994  # with a fresh cross-compiler works.
5995  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5996  # <limits.h> exists even on freestanding compilers.
5997  # On the NeXT, cc -E runs the code through the compiler's parser,
5998  # not just through cpp. "Syntax error" is here to catch this case.
5999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6000/* end confdefs.h.  */
6001#ifdef __STDC__
6002# include <limits.h>
6003#else
6004# include <assert.h>
6005#endif
6006		     Syntax error
6007_ACEOF
6008if ac_fn_c_try_cpp "$LINENO"; then :
6009
6010else
6011  # Broken: fails on valid input.
6012continue
6013fi
6014rm -f conftest.err conftest.i conftest.$ac_ext
6015
6016  # OK, works on sane cases.  Now check whether nonexistent headers
6017  # can be detected and how.
6018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6019/* end confdefs.h.  */
6020#include <ac_nonexistent.h>
6021_ACEOF
6022if ac_fn_c_try_cpp "$LINENO"; then :
6023  # Broken: success on invalid input.
6024continue
6025else
6026  # Passes both tests.
6027ac_preproc_ok=:
6028break
6029fi
6030rm -f conftest.err conftest.i conftest.$ac_ext
6031
6032done
6033# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6034rm -f conftest.i conftest.err conftest.$ac_ext
6035if $ac_preproc_ok; then :
6036  break
6037fi
6038
6039    done
6040    ac_cv_prog_CPP=$CPP
6041
6042fi
6043  CPP=$ac_cv_prog_CPP
6044else
6045  ac_cv_prog_CPP=$CPP
6046fi
6047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6048$as_echo "$CPP" >&6; }
6049ac_preproc_ok=false
6050for ac_c_preproc_warn_flag in '' yes
6051do
6052  # Use a header file that comes with gcc, so configuring glibc
6053  # with a fresh cross-compiler works.
6054  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6055  # <limits.h> exists even on freestanding compilers.
6056  # On the NeXT, cc -E runs the code through the compiler's parser,
6057  # not just through cpp. "Syntax error" is here to catch this case.
6058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6059/* end confdefs.h.  */
6060#ifdef __STDC__
6061# include <limits.h>
6062#else
6063# include <assert.h>
6064#endif
6065		     Syntax error
6066_ACEOF
6067if ac_fn_c_try_cpp "$LINENO"; then :
6068
6069else
6070  # Broken: fails on valid input.
6071continue
6072fi
6073rm -f conftest.err conftest.i conftest.$ac_ext
6074
6075  # OK, works on sane cases.  Now check whether nonexistent headers
6076  # can be detected and how.
6077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6078/* end confdefs.h.  */
6079#include <ac_nonexistent.h>
6080_ACEOF
6081if ac_fn_c_try_cpp "$LINENO"; then :
6082  # Broken: success on invalid input.
6083continue
6084else
6085  # Passes both tests.
6086ac_preproc_ok=:
6087break
6088fi
6089rm -f conftest.err conftest.i conftest.$ac_ext
6090
6091done
6092# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6093rm -f conftest.i conftest.err conftest.$ac_ext
6094if $ac_preproc_ok; then :
6095
6096else
6097  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6098$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6099as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6100See \`config.log' for more details" "$LINENO" 5; }
6101fi
6102
6103ac_ext=c
6104ac_cpp='$CPP $CPPFLAGS'
6105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6107ac_compiler_gnu=$ac_cv_c_compiler_gnu
6108
6109ac_ext=cpp
6110ac_cpp='$CXXCPP $CPPFLAGS'
6111ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6112ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6113ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6114if test -z "$CXX"; then
6115  if test -n "$CCC"; then
6116    CXX=$CCC
6117  else
6118    if test -n "$ac_tool_prefix"; then
6119  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6120  do
6121    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6122set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6124$as_echo_n "checking for $ac_word... " >&6; }
6125if ${ac_cv_prog_CXX+:} false; then :
6126  $as_echo_n "(cached) " >&6
6127else
6128  if test -n "$CXX"; then
6129  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6130else
6131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132for as_dir in $PATH
6133do
6134  IFS=$as_save_IFS
6135  test -z "$as_dir" && as_dir=.
6136    for ac_exec_ext in '' $ac_executable_extensions; do
6137  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6138    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6139    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6140    break 2
6141  fi
6142done
6143  done
6144IFS=$as_save_IFS
6145
6146fi
6147fi
6148CXX=$ac_cv_prog_CXX
6149if test -n "$CXX"; then
6150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6151$as_echo "$CXX" >&6; }
6152else
6153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6154$as_echo "no" >&6; }
6155fi
6156
6157
6158    test -n "$CXX" && break
6159  done
6160fi
6161if test -z "$CXX"; then
6162  ac_ct_CXX=$CXX
6163  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6164do
6165  # Extract the first word of "$ac_prog", so it can be a program name with args.
6166set dummy $ac_prog; ac_word=$2
6167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6168$as_echo_n "checking for $ac_word... " >&6; }
6169if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6170  $as_echo_n "(cached) " >&6
6171else
6172  if test -n "$ac_ct_CXX"; then
6173  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6174else
6175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176for as_dir in $PATH
6177do
6178  IFS=$as_save_IFS
6179  test -z "$as_dir" && as_dir=.
6180    for ac_exec_ext in '' $ac_executable_extensions; do
6181  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6182    ac_cv_prog_ac_ct_CXX="$ac_prog"
6183    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6184    break 2
6185  fi
6186done
6187  done
6188IFS=$as_save_IFS
6189
6190fi
6191fi
6192ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6193if test -n "$ac_ct_CXX"; then
6194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6195$as_echo "$ac_ct_CXX" >&6; }
6196else
6197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6198$as_echo "no" >&6; }
6199fi
6200
6201
6202  test -n "$ac_ct_CXX" && break
6203done
6204
6205  if test "x$ac_ct_CXX" = x; then
6206    CXX="g++"
6207  else
6208    case $cross_compiling:$ac_tool_warned in
6209yes:)
6210{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6211$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6212ac_tool_warned=yes ;;
6213esac
6214    CXX=$ac_ct_CXX
6215  fi
6216fi
6217
6218  fi
6219fi
6220# Provide some information about the compiler.
6221$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6222set X $ac_compile
6223ac_compiler=$2
6224for ac_option in --version -v -V -qversion; do
6225  { { ac_try="$ac_compiler $ac_option >&5"
6226case "(($ac_try" in
6227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6228  *) ac_try_echo=$ac_try;;
6229esac
6230eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6231$as_echo "$ac_try_echo"; } >&5
6232  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6233  ac_status=$?
6234  if test -s conftest.err; then
6235    sed '10a\
6236... rest of stderr output deleted ...
6237         10q' conftest.err >conftest.er1
6238    cat conftest.er1 >&5
6239  fi
6240  rm -f conftest.er1 conftest.err
6241  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6242  test $ac_status = 0; }
6243done
6244
6245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6246$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6247if ${ac_cv_cxx_compiler_gnu+:} false; then :
6248  $as_echo_n "(cached) " >&6
6249else
6250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6251/* end confdefs.h.  */
6252
6253int
6254main ()
6255{
6256#ifndef __GNUC__
6257       choke me
6258#endif
6259
6260  ;
6261  return 0;
6262}
6263_ACEOF
6264if ac_fn_cxx_try_compile "$LINENO"; then :
6265  ac_compiler_gnu=yes
6266else
6267  ac_compiler_gnu=no
6268fi
6269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6270ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6271
6272fi
6273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6274$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6275if test $ac_compiler_gnu = yes; then
6276  GXX=yes
6277else
6278  GXX=
6279fi
6280ac_test_CXXFLAGS=${CXXFLAGS+set}
6281ac_save_CXXFLAGS=$CXXFLAGS
6282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6283$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6284if ${ac_cv_prog_cxx_g+:} false; then :
6285  $as_echo_n "(cached) " >&6
6286else
6287  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6288   ac_cxx_werror_flag=yes
6289   ac_cv_prog_cxx_g=no
6290   CXXFLAGS="-g"
6291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292/* end confdefs.h.  */
6293
6294int
6295main ()
6296{
6297
6298  ;
6299  return 0;
6300}
6301_ACEOF
6302if ac_fn_cxx_try_compile "$LINENO"; then :
6303  ac_cv_prog_cxx_g=yes
6304else
6305  CXXFLAGS=""
6306      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6307/* end confdefs.h.  */
6308
6309int
6310main ()
6311{
6312
6313  ;
6314  return 0;
6315}
6316_ACEOF
6317if ac_fn_cxx_try_compile "$LINENO"; then :
6318
6319else
6320  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6321	 CXXFLAGS="-g"
6322	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6323/* end confdefs.h.  */
6324
6325int
6326main ()
6327{
6328
6329  ;
6330  return 0;
6331}
6332_ACEOF
6333if ac_fn_cxx_try_compile "$LINENO"; then :
6334  ac_cv_prog_cxx_g=yes
6335fi
6336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6337fi
6338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6339fi
6340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6341   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6342fi
6343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6344$as_echo "$ac_cv_prog_cxx_g" >&6; }
6345if test "$ac_test_CXXFLAGS" = set; then
6346  CXXFLAGS=$ac_save_CXXFLAGS
6347elif test $ac_cv_prog_cxx_g = yes; then
6348  if test "$GXX" = yes; then
6349    CXXFLAGS="-g -O2"
6350  else
6351    CXXFLAGS="-g"
6352  fi
6353else
6354  if test "$GXX" = yes; then
6355    CXXFLAGS="-O2"
6356  else
6357    CXXFLAGS=
6358  fi
6359fi
6360ac_ext=c
6361ac_cpp='$CPP $CPPFLAGS'
6362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6364ac_compiler_gnu=$ac_cv_c_compiler_gnu
6365
6366depcc="$CXX"  am_compiler_list=
6367
6368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6369$as_echo_n "checking dependency style of $depcc... " >&6; }
6370if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6371  $as_echo_n "(cached) " >&6
6372else
6373  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6374  # We make a subdir and do the tests there.  Otherwise we can end up
6375  # making bogus files that we don't know about and never remove.  For
6376  # instance it was reported that on HP-UX the gcc test will end up
6377  # making a dummy file named 'D' -- because '-MD' means "put the output
6378  # in D".
6379  rm -rf conftest.dir
6380  mkdir conftest.dir
6381  # Copy depcomp to subdir because otherwise we won't find it if we're
6382  # using a relative directory.
6383  cp "$am_depcomp" conftest.dir
6384  cd conftest.dir
6385  # We will build objects and dependencies in a subdirectory because
6386  # it helps to detect inapplicable dependency modes.  For instance
6387  # both Tru64's cc and ICC support -MD to output dependencies as a
6388  # side effect of compilation, but ICC will put the dependencies in
6389  # the current directory while Tru64 will put them in the object
6390  # directory.
6391  mkdir sub
6392
6393  am_cv_CXX_dependencies_compiler_type=none
6394  if test "$am_compiler_list" = ""; then
6395     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6396  fi
6397  am__universal=false
6398  case " $depcc " in #(
6399     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6400     esac
6401
6402  for depmode in $am_compiler_list; do
6403    # Setup a source with many dependencies, because some compilers
6404    # like to wrap large dependency lists on column 80 (with \), and
6405    # we should not choose a depcomp mode which is confused by this.
6406    #
6407    # We need to recreate these files for each test, as the compiler may
6408    # overwrite some of them when testing with obscure command lines.
6409    # This happens at least with the AIX C compiler.
6410    : > sub/conftest.c
6411    for i in 1 2 3 4 5 6; do
6412      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6413      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6414      # Solaris 10 /bin/sh.
6415      echo '/* dummy */' > sub/conftst$i.h
6416    done
6417    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6418
6419    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6420    # mode.  It turns out that the SunPro C++ compiler does not properly
6421    # handle '-M -o', and we need to detect this.  Also, some Intel
6422    # versions had trouble with output in subdirs.
6423    am__obj=sub/conftest.${OBJEXT-o}
6424    am__minus_obj="-o $am__obj"
6425    case $depmode in
6426    gcc)
6427      # This depmode causes a compiler race in universal mode.
6428      test "$am__universal" = false || continue
6429      ;;
6430    nosideeffect)
6431      # After this tag, mechanisms are not by side-effect, so they'll
6432      # only be used when explicitly requested.
6433      if test "x$enable_dependency_tracking" = xyes; then
6434	continue
6435      else
6436	break
6437      fi
6438      ;;
6439    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6440      # This compiler won't grok '-c -o', but also, the minuso test has
6441      # not run yet.  These depmodes are late enough in the game, and
6442      # so weak that their functioning should not be impacted.
6443      am__obj=conftest.${OBJEXT-o}
6444      am__minus_obj=
6445      ;;
6446    none) break ;;
6447    esac
6448    if depmode=$depmode \
6449       source=sub/conftest.c object=$am__obj \
6450       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6451       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6452         >/dev/null 2>conftest.err &&
6453       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6454       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6455       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6456       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6457      # icc doesn't choke on unknown options, it will just issue warnings
6458      # or remarks (even with -Werror).  So we grep stderr for any message
6459      # that says an option was ignored or not supported.
6460      # When given -MP, icc 7.0 and 7.1 complain thusly:
6461      #   icc: Command line warning: ignoring option '-M'; no argument required
6462      # The diagnosis changed in icc 8.0:
6463      #   icc: Command line remark: option '-MP' not supported
6464      if (grep 'ignoring option' conftest.err ||
6465          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6466        am_cv_CXX_dependencies_compiler_type=$depmode
6467        break
6468      fi
6469    fi
6470  done
6471
6472  cd ..
6473  rm -rf conftest.dir
6474else
6475  am_cv_CXX_dependencies_compiler_type=none
6476fi
6477
6478fi
6479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6480$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6481CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6482
6483 if
6484  test "x$enable_dependency_tracking" != xno \
6485  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6486  am__fastdepCXX_TRUE=
6487  am__fastdepCXX_FALSE='#'
6488else
6489  am__fastdepCXX_TRUE='#'
6490  am__fastdepCXX_FALSE=
6491fi
6492
6493
6494ac_ext=cpp
6495ac_cpp='$CXXCPP $CPPFLAGS'
6496ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6497ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6498ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6500$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6501if test -z "$CXXCPP"; then
6502  if ${ac_cv_prog_CXXCPP+:} false; then :
6503  $as_echo_n "(cached) " >&6
6504else
6505      # Double quotes because CXXCPP needs to be expanded
6506    for CXXCPP in "$CXX -E" "/lib/cpp"
6507    do
6508      ac_preproc_ok=false
6509for ac_cxx_preproc_warn_flag in '' yes
6510do
6511  # Use a header file that comes with gcc, so configuring glibc
6512  # with a fresh cross-compiler works.
6513  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6514  # <limits.h> exists even on freestanding compilers.
6515  # On the NeXT, cc -E runs the code through the compiler's parser,
6516  # not just through cpp. "Syntax error" is here to catch this case.
6517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518/* end confdefs.h.  */
6519#ifdef __STDC__
6520# include <limits.h>
6521#else
6522# include <assert.h>
6523#endif
6524		     Syntax error
6525_ACEOF
6526if ac_fn_cxx_try_cpp "$LINENO"; then :
6527
6528else
6529  # Broken: fails on valid input.
6530continue
6531fi
6532rm -f conftest.err conftest.i conftest.$ac_ext
6533
6534  # OK, works on sane cases.  Now check whether nonexistent headers
6535  # can be detected and how.
6536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537/* end confdefs.h.  */
6538#include <ac_nonexistent.h>
6539_ACEOF
6540if ac_fn_cxx_try_cpp "$LINENO"; then :
6541  # Broken: success on invalid input.
6542continue
6543else
6544  # Passes both tests.
6545ac_preproc_ok=:
6546break
6547fi
6548rm -f conftest.err conftest.i conftest.$ac_ext
6549
6550done
6551# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6552rm -f conftest.i conftest.err conftest.$ac_ext
6553if $ac_preproc_ok; then :
6554  break
6555fi
6556
6557    done
6558    ac_cv_prog_CXXCPP=$CXXCPP
6559
6560fi
6561  CXXCPP=$ac_cv_prog_CXXCPP
6562else
6563  ac_cv_prog_CXXCPP=$CXXCPP
6564fi
6565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6566$as_echo "$CXXCPP" >&6; }
6567ac_preproc_ok=false
6568for ac_cxx_preproc_warn_flag in '' yes
6569do
6570  # Use a header file that comes with gcc, so configuring glibc
6571  # with a fresh cross-compiler works.
6572  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6573  # <limits.h> exists even on freestanding compilers.
6574  # On the NeXT, cc -E runs the code through the compiler's parser,
6575  # not just through cpp. "Syntax error" is here to catch this case.
6576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6577/* end confdefs.h.  */
6578#ifdef __STDC__
6579# include <limits.h>
6580#else
6581# include <assert.h>
6582#endif
6583		     Syntax error
6584_ACEOF
6585if ac_fn_cxx_try_cpp "$LINENO"; then :
6586
6587else
6588  # Broken: fails on valid input.
6589continue
6590fi
6591rm -f conftest.err conftest.i conftest.$ac_ext
6592
6593  # OK, works on sane cases.  Now check whether nonexistent headers
6594  # can be detected and how.
6595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6596/* end confdefs.h.  */
6597#include <ac_nonexistent.h>
6598_ACEOF
6599if ac_fn_cxx_try_cpp "$LINENO"; then :
6600  # Broken: success on invalid input.
6601continue
6602else
6603  # Passes both tests.
6604ac_preproc_ok=:
6605break
6606fi
6607rm -f conftest.err conftest.i conftest.$ac_ext
6608
6609done
6610# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6611rm -f conftest.i conftest.err conftest.$ac_ext
6612if $ac_preproc_ok; then :
6613
6614else
6615  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6616$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6617as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6618See \`config.log' for more details" "$LINENO" 5; }
6619fi
6620
6621ac_ext=c
6622ac_cpp='$CPP $CPPFLAGS'
6623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6625ac_compiler_gnu=$ac_cv_c_compiler_gnu
6626
6627
6628
6629
6630save_cross_compiling=$cross_compiling
6631save_ac_tool_prefix=$ac_tool_prefix
6632cross_compiling=no
6633ac_tool_prefix=
6634
6635ac_ext=c
6636ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6637ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6638ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6639ac_compiler_gnu=$ac_cv_c_compiler_gnu
6640if test -n "$ac_tool_prefix"; then
6641  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6642set dummy ${ac_tool_prefix}gcc; ac_word=$2
6643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6644$as_echo_n "checking for $ac_word... " >&6; }
6645if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
6646  $as_echo_n "(cached) " >&6
6647else
6648  if test -n "$CC_FOR_BUILD"; then
6649  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
6650else
6651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652for as_dir in $PATH
6653do
6654  IFS=$as_save_IFS
6655  test -z "$as_dir" && as_dir=.
6656    for ac_exec_ext in '' $ac_executable_extensions; do
6657  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6658    ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}gcc"
6659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6660    break 2
6661  fi
6662done
6663  done
6664IFS=$as_save_IFS
6665
6666fi
6667fi
6668CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
6669if test -n "$CC_FOR_BUILD"; then
6670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
6671$as_echo "$CC_FOR_BUILD" >&6; }
6672else
6673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674$as_echo "no" >&6; }
6675fi
6676
6677
6678fi
6679if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
6680  ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
6681  # Extract the first word of "gcc", so it can be a program name with args.
6682set dummy gcc; ac_word=$2
6683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6684$as_echo_n "checking for $ac_word... " >&6; }
6685if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
6686  $as_echo_n "(cached) " >&6
6687else
6688  if test -n "$ac_ct_CC_FOR_BUILD"; then
6689  ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
6690else
6691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692for as_dir in $PATH
6693do
6694  IFS=$as_save_IFS
6695  test -z "$as_dir" && as_dir=.
6696    for ac_exec_ext in '' $ac_executable_extensions; do
6697  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6698    ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
6699    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6700    break 2
6701  fi
6702done
6703  done
6704IFS=$as_save_IFS
6705
6706fi
6707fi
6708ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
6709if test -n "$ac_ct_CC_FOR_BUILD"; then
6710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
6711$as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
6712else
6713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6714$as_echo "no" >&6; }
6715fi
6716
6717  if test "x$ac_ct_CC_FOR_BUILD" = x; then
6718    CC_FOR_BUILD=""
6719  else
6720    case $cross_compiling:$ac_tool_warned in
6721yes:)
6722{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
6723$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
6724ac_tool_warned=yes ;;
6725esac
6726    CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
6727  fi
6728else
6729  CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
6730fi
6731
6732if test -z "$CC_FOR_BUILD"; then
6733          if test -n "$ac_tool_prefix"; then
6734    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6735set dummy ${ac_tool_prefix}cc; ac_word=$2
6736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6737$as_echo_n "checking for $ac_word... " >&6; }
6738if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
6739  $as_echo_n "(cached) " >&6
6740else
6741  if test -n "$CC_FOR_BUILD"; then
6742  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
6743else
6744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745for as_dir in $PATH
6746do
6747  IFS=$as_save_IFS
6748  test -z "$as_dir" && as_dir=.
6749    for ac_exec_ext in '' $ac_executable_extensions; do
6750  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6751    ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}cc"
6752    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6753    break 2
6754  fi
6755done
6756  done
6757IFS=$as_save_IFS
6758
6759fi
6760fi
6761CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
6762if test -n "$CC_FOR_BUILD"; then
6763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
6764$as_echo "$CC_FOR_BUILD" >&6; }
6765else
6766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6767$as_echo "no" >&6; }
6768fi
6769
6770
6771  fi
6772fi
6773if test -z "$CC_FOR_BUILD"; then
6774  # Extract the first word of "cc", so it can be a program name with args.
6775set dummy cc; ac_word=$2
6776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777$as_echo_n "checking for $ac_word... " >&6; }
6778if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
6779  $as_echo_n "(cached) " >&6
6780else
6781  if test -n "$CC_FOR_BUILD"; then
6782  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
6783else
6784  ac_prog_rejected=no
6785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786for as_dir in $PATH
6787do
6788  IFS=$as_save_IFS
6789  test -z "$as_dir" && as_dir=.
6790    for ac_exec_ext in '' $ac_executable_extensions; do
6791  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6792    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6793       ac_prog_rejected=yes
6794       continue
6795     fi
6796    ac_cv_prog_CC_FOR_BUILD="cc"
6797    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6798    break 2
6799  fi
6800done
6801  done
6802IFS=$as_save_IFS
6803
6804if test $ac_prog_rejected = yes; then
6805  # We found a bogon in the path, so make sure we never use it.
6806  set dummy $ac_cv_prog_CC_FOR_BUILD
6807  shift
6808  if test $# != 0; then
6809    # We chose a different compiler from the bogus one.
6810    # However, it has the same basename, so the bogon will be chosen
6811    # first if we set CC_FOR_BUILD to just the basename; use the full file name.
6812    shift
6813    ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
6814  fi
6815fi
6816fi
6817fi
6818CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
6819if test -n "$CC_FOR_BUILD"; then
6820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
6821$as_echo "$CC_FOR_BUILD" >&6; }
6822else
6823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824$as_echo "no" >&6; }
6825fi
6826
6827
6828fi
6829if test -z "$CC_FOR_BUILD"; then
6830  if test -n "$ac_tool_prefix"; then
6831  for ac_prog in cl.exe
6832  do
6833    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6834set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6836$as_echo_n "checking for $ac_word... " >&6; }
6837if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
6838  $as_echo_n "(cached) " >&6
6839else
6840  if test -n "$CC_FOR_BUILD"; then
6841  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
6842else
6843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844for as_dir in $PATH
6845do
6846  IFS=$as_save_IFS
6847  test -z "$as_dir" && as_dir=.
6848    for ac_exec_ext in '' $ac_executable_extensions; do
6849  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6850    ac_cv_prog_CC_FOR_BUILD="$ac_tool_prefix$ac_prog"
6851    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6852    break 2
6853  fi
6854done
6855  done
6856IFS=$as_save_IFS
6857
6858fi
6859fi
6860CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
6861if test -n "$CC_FOR_BUILD"; then
6862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
6863$as_echo "$CC_FOR_BUILD" >&6; }
6864else
6865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6866$as_echo "no" >&6; }
6867fi
6868
6869
6870    test -n "$CC_FOR_BUILD" && break
6871  done
6872fi
6873if test -z "$CC_FOR_BUILD"; then
6874  ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
6875  for ac_prog in cl.exe
6876do
6877  # Extract the first word of "$ac_prog", so it can be a program name with args.
6878set dummy $ac_prog; ac_word=$2
6879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6880$as_echo_n "checking for $ac_word... " >&6; }
6881if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
6882  $as_echo_n "(cached) " >&6
6883else
6884  if test -n "$ac_ct_CC_FOR_BUILD"; then
6885  ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
6886else
6887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888for as_dir in $PATH
6889do
6890  IFS=$as_save_IFS
6891  test -z "$as_dir" && as_dir=.
6892    for ac_exec_ext in '' $ac_executable_extensions; do
6893  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6894    ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
6895    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6896    break 2
6897  fi
6898done
6899  done
6900IFS=$as_save_IFS
6901
6902fi
6903fi
6904ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
6905if test -n "$ac_ct_CC_FOR_BUILD"; then
6906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
6907$as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
6908else
6909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6910$as_echo "no" >&6; }
6911fi
6912
6913
6914  test -n "$ac_ct_CC_FOR_BUILD" && break
6915done
6916
6917  if test "x$ac_ct_CC_FOR_BUILD" = x; then
6918    CC_FOR_BUILD=""
6919  else
6920    case $cross_compiling:$ac_tool_warned in
6921yes:)
6922{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
6923$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
6924ac_tool_warned=yes ;;
6925esac
6926    CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
6927  fi
6928fi
6929
6930fi
6931
6932
6933test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6934$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6935as_fn_error $? "no acceptable C compiler found in \$PATH
6936See \`config.log' for more details" "$LINENO" 5; }
6937
6938# Provide some information about the compiler.
6939$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6940set X $ac_build_compile
6941ac_compiler=$2
6942for ac_option in --version -v -V -qversion; do
6943  { { ac_try="$ac_compiler $ac_option >&5"
6944case "(($ac_try" in
6945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6946  *) ac_try_echo=$ac_try;;
6947esac
6948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6949$as_echo "$ac_try_echo"; } >&5
6950  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6951  ac_status=$?
6952  if test -s conftest.err; then
6953    sed '10a\
6954... rest of stderr output deleted ...
6955         10q' conftest.err >conftest.er1
6956    cat conftest.er1 >&5
6957  fi
6958  rm -f conftest.er1 conftest.err
6959  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6960  test $ac_status = 0; }
6961done
6962
6963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6964$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6965if ${ac_cv_c_compiler_gnu+:} false; then :
6966  $as_echo_n "(cached) " >&6
6967else
6968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6969/* end confdefs.h.  */
6970
6971int
6972main ()
6973{
6974#ifndef __GNUC__
6975       choke me
6976#endif
6977
6978  ;
6979  return 0;
6980}
6981_ACEOF
6982if ac_fn_c_try_compile "$LINENO"; then :
6983  ac_compiler_gnu=yes
6984else
6985  ac_compiler_gnu=no
6986fi
6987rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6988ac_cv_c_compiler_gnu=$ac_compiler_gnu
6989
6990fi
6991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6992$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6993if test $ac_compiler_gnu = yes; then
6994  GCC=yes
6995else
6996  GCC=
6997fi
6998ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
6999ac_save_CFLAGS=$CFLAGS_FOR_BUILD
7000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
7001$as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
7002if ${ac_cv_build_prog_cc_g+:} false; then :
7003  $as_echo_n "(cached) " >&6
7004else
7005  ac_save_c_werror_flag=$ac_c_werror_flag
7006   ac_c_werror_flag=yes
7007   ac_cv_build_prog_cc_g=no
7008   CFLAGS_FOR_BUILD="-g"
7009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7010/* end confdefs.h.  */
7011
7012int
7013main ()
7014{
7015
7016  ;
7017  return 0;
7018}
7019_ACEOF
7020if ac_fn_c_try_compile "$LINENO"; then :
7021  ac_cv_build_prog_cc_g=yes
7022else
7023  CFLAGS_FOR_BUILD=""
7024      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7025/* end confdefs.h.  */
7026
7027int
7028main ()
7029{
7030
7031  ;
7032  return 0;
7033}
7034_ACEOF
7035if ac_fn_c_try_compile "$LINENO"; then :
7036
7037else
7038  ac_c_werror_flag=$ac_save_c_werror_flag
7039	 CFLAGS_FOR_BUILD="-g"
7040	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7041/* end confdefs.h.  */
7042
7043int
7044main ()
7045{
7046
7047  ;
7048  return 0;
7049}
7050_ACEOF
7051if ac_fn_c_try_compile "$LINENO"; then :
7052  ac_cv_build_prog_cc_g=yes
7053fi
7054rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
7055fi
7056rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
7057fi
7058rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
7059   ac_c_werror_flag=$ac_save_c_werror_flag
7060fi
7061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
7062$as_echo "$ac_cv_build_prog_cc_g" >&6; }
7063if test "$ac_test_CFLAGS" = set; then
7064  CFLAGS_FOR_BUILD=$ac_save_CFLAGS
7065elif test $ac_cv_build_prog_cc_g = yes; then
7066  if test "$GCC" = yes; then
7067    CFLAGS_FOR_BUILD="-g -O2"
7068  else
7069    CFLAGS_FOR_BUILD="-g"
7070  fi
7071else
7072  if test "$GCC" = yes; then
7073    CFLAGS_FOR_BUILD="-O2"
7074  else
7075    CFLAGS_FOR_BUILD=
7076  fi
7077fi
7078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
7079$as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; }
7080if ${ac_cv_prog_cc_c89+:} false; then :
7081  $as_echo_n "(cached) " >&6
7082else
7083  ac_cv_prog_cc_c89=no
7084ac_save_CC=$CC_FOR_BUILD
7085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7086/* end confdefs.h.  */
7087#include <stdarg.h>
7088#include <stdio.h>
7089struct stat;
7090/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
7091struct buf { int x; };
7092FILE * (*rcsopen) (struct buf *, struct stat *, int);
7093static char *e (p, i)
7094     char **p;
7095     int i;
7096{
7097  return p[i];
7098}
7099static char *f (char * (*g) (char **, int), char **p, ...)
7100{
7101  char *s;
7102  va_list v;
7103  va_start (v,p);
7104  s = g (p, va_arg (v,int));
7105  va_end (v);
7106  return s;
7107}
7108
7109/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
7110   function prototypes and stuff, but not '\xHH' hex character constants.
7111   These don't provoke an error unfortunately, instead are silently treated
7112   as 'x'.  The following induces an error, until -std is added to get
7113   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
7114   array size at least.  It's necessary to write '\x00'==0 to get something
7115   that's true only with -std.  */
7116int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7117
7118/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7119   inside strings and character constants.  */
7120#define FOO(x) 'x'
7121int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7122
7123int test (int i, double x);
7124struct s1 {int (*f) (int a);};
7125struct s2 {int (*f) (double a);};
7126int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7127int argc;
7128char **argv;
7129int
7130main ()
7131{
7132return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
7133  ;
7134  return 0;
7135}
7136_ACEOF
7137for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7138	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7139do
7140  CC_FOR_BUILD="$ac_save_CC $ac_arg"
7141  if ac_fn_c_try_compile "$LINENO"; then :
7142  ac_cv_prog_cc_c89=$ac_arg
7143fi
7144rm -f core conftest.err conftest.$ac_build_objext
7145  test "x$ac_cv_prog_cc_c89" != "xno" && break
7146done
7147rm -f conftest.$ac_ext
7148CC_FOR_BUILD=$ac_save_CC
7149
7150fi
7151# AC_CACHE_VAL
7152case "x$ac_cv_prog_cc_c89" in
7153  x)
7154    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7155$as_echo "none needed" >&6; } ;;
7156  xno)
7157    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7158$as_echo "unsupported" >&6; } ;;
7159  *)
7160    CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89"
7161    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7162$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7163esac
7164if test "x$ac_cv_prog_cc_c89" != xno; then :
7165
7166fi
7167
7168ac_ext=c
7169ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7170ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7171ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
7172ac_compiler_gnu=$ac_cv_c_compiler_gnu
7173
7174ac_ext=c
7175ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7176ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7177ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
7178ac_compiler_gnu=$ac_cv_c_compiler_gnu
7179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5
7180$as_echo_n "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; }
7181if ${am_cv_prog_cc_c_o+:} false; then :
7182  $as_echo_n "(cached) " >&6
7183else
7184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7185/* end confdefs.h.  */
7186
7187int
7188main ()
7189{
7190
7191  ;
7192  return 0;
7193}
7194_ACEOF
7195  # Make sure it works both with $CC and with simple cc.
7196  # Following AC_PROG_CC_C_O, we do the test twice because some
7197  # compilers refuse to overwrite an existing .o file with -o,
7198  # though they will create one.
7199  am_cv_prog_cc_c_o=yes
7200  for am_i in 1 2; do
7201    if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5
7202   ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5
7203   ac_status=$?
7204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205   (exit $ac_status); } \
7206         && test -f conftest2.$ac_build_objext; then
7207      : OK
7208    else
7209      am_cv_prog_cc_c_o=no
7210      break
7211    fi
7212  done
7213  rm -f core conftest*
7214  unset am_i
7215fi
7216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
7217$as_echo "$am_cv_prog_cc_c_o" >&6; }
7218if test "$am_cv_prog_cc_c_o" != yes; then
7219   # Losing compiler, so override with the script.
7220   # FIXME: It is wrong to rewrite CC.
7221   # But if we don't then we get into trouble of one sort or another.
7222   # A longer-term fix would be to have automake use am__CC in this case,
7223   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7224   CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD"
7225fi
7226ac_ext=c
7227ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7228ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7229ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
7230ac_compiler_gnu=$ac_cv_c_compiler_gnu
7231
7232
7233depcc="$CC_FOR_BUILD"   am_compiler_list=
7234
7235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7236$as_echo_n "checking dependency style of $depcc... " >&6; }
7237if ${am_cv_CC_dependencies_compiler_type+:} false; then :
7238  $as_echo_n "(cached) " >&6
7239else
7240  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7241  # We make a subdir and do the tests there.  Otherwise we can end up
7242  # making bogus files that we don't know about and never remove.  For
7243  # instance it was reported that on HP-UX the gcc test will end up
7244  # making a dummy file named 'D' -- because '-MD' means "put the output
7245  # in D".
7246  rm -rf conftest.dir
7247  mkdir conftest.dir
7248  # Copy depcomp to subdir because otherwise we won't find it if we're
7249  # using a relative directory.
7250  cp "$am_depcomp" conftest.dir
7251  cd conftest.dir
7252  # We will build objects and dependencies in a subdirectory because
7253  # it helps to detect inapplicable dependency modes.  For instance
7254  # both Tru64's cc and ICC support -MD to output dependencies as a
7255  # side effect of compilation, but ICC will put the dependencies in
7256  # the current directory while Tru64 will put them in the object
7257  # directory.
7258  mkdir sub
7259
7260  am_cv_CC_dependencies_compiler_type=none
7261  if test "$am_compiler_list" = ""; then
7262     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7263  fi
7264  am__universal=false
7265  case " $depcc " in #(
7266     *\ -arch\ *\ -arch\ *) am__universal=true ;;
7267     esac
7268
7269  for depmode in $am_compiler_list; do
7270    # Setup a source with many dependencies, because some compilers
7271    # like to wrap large dependency lists on column 80 (with \), and
7272    # we should not choose a depcomp mode which is confused by this.
7273    #
7274    # We need to recreate these files for each test, as the compiler may
7275    # overwrite some of them when testing with obscure command lines.
7276    # This happens at least with the AIX C compiler.
7277    : > sub/conftest.c
7278    for i in 1 2 3 4 5 6; do
7279      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7280      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7281      # Solaris 10 /bin/sh.
7282      echo '/* dummy */' > sub/conftst$i.h
7283    done
7284    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7285
7286    # We check with '-c' and '-o' for the sake of the "dashmstdout"
7287    # mode.  It turns out that the SunPro C++ compiler does not properly
7288    # handle '-M -o', and we need to detect this.  Also, some Intel
7289    # versions had trouble with output in subdirs.
7290    am__obj=sub/conftest.${OBJEXT-o}
7291    am__minus_obj="-o $am__obj"
7292    case $depmode in
7293    gcc)
7294      # This depmode causes a compiler race in universal mode.
7295      test "$am__universal" = false || continue
7296      ;;
7297    nosideeffect)
7298      # After this tag, mechanisms are not by side-effect, so they'll
7299      # only be used when explicitly requested.
7300      if test "x$enable_dependency_tracking" = xyes; then
7301	continue
7302      else
7303	break
7304      fi
7305      ;;
7306    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7307      # This compiler won't grok '-c -o', but also, the minuso test has
7308      # not run yet.  These depmodes are late enough in the game, and
7309      # so weak that their functioning should not be impacted.
7310      am__obj=conftest.${OBJEXT-o}
7311      am__minus_obj=
7312      ;;
7313    none) break ;;
7314    esac
7315    if depmode=$depmode \
7316       source=sub/conftest.c object=$am__obj \
7317       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7318       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7319         >/dev/null 2>conftest.err &&
7320       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7321       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7322       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7323       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7324      # icc doesn't choke on unknown options, it will just issue warnings
7325      # or remarks (even with -Werror).  So we grep stderr for any message
7326      # that says an option was ignored or not supported.
7327      # When given -MP, icc 7.0 and 7.1 complain thusly:
7328      #   icc: Command line warning: ignoring option '-M'; no argument required
7329      # The diagnosis changed in icc 8.0:
7330      #   icc: Command line remark: option '-MP' not supported
7331      if (grep 'ignoring option' conftest.err ||
7332          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7333        am_cv_CC_dependencies_compiler_type=$depmode
7334        break
7335      fi
7336    fi
7337  done
7338
7339  cd ..
7340  rm -rf conftest.dir
7341else
7342  am_cv_CC_dependencies_compiler_type=none
7343fi
7344
7345fi
7346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7347$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7348CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7349
7350 if
7351  test "x$enable_dependency_tracking" != xno \
7352  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7353  am__fastdepCC_TRUE=
7354  am__fastdepCC_FALSE='#'
7355else
7356  am__fastdepCC_TRUE='#'
7357  am__fastdepCC_FALSE=
7358fi
7359
7360
7361ac_ext=c
7362ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7363ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7364ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
7365ac_compiler_gnu=$ac_cv_c_compiler_gnu
7366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7367$as_echo_n "checking how to run the C preprocessor... " >&6; }
7368# On Suns, sometimes $CPP names a directory.
7369if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
7370  CPP_FOR_BUILD=
7371fi
7372if test -z "$CPP_FOR_BUILD"; then
7373  if ${ac_cv_build_prog_CPP+:} false; then :
7374  $as_echo_n "(cached) " >&6
7375else
7376      # Double quotes because CPP needs to be expanded
7377    for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
7378    do
7379      ac_preproc_ok=false
7380for ac_c_preproc_warn_flag in '' yes
7381do
7382  # Use a header file that comes with gcc, so configuring glibc
7383  # with a fresh cross-compiler works.
7384  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7385  # <limits.h> exists even on freestanding compilers.
7386  # On the NeXT, cc -E runs the code through the compiler's parser,
7387  # not just through cpp. "Syntax error" is here to catch this case.
7388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7389/* end confdefs.h.  */
7390#ifdef __STDC__
7391# include <limits.h>
7392#else
7393# include <assert.h>
7394#endif
7395		     Syntax error
7396_ACEOF
7397if ac_fn_c_try_cpp "$LINENO"; then :
7398
7399else
7400  # Broken: fails on valid input.
7401continue
7402fi
7403rm -f conftest.err conftest.i conftest.$ac_ext
7404
7405  # OK, works on sane cases.  Now check whether nonexistent headers
7406  # can be detected and how.
7407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408/* end confdefs.h.  */
7409#include <ac_nonexistent.h>
7410_ACEOF
7411if ac_fn_c_try_cpp "$LINENO"; then :
7412  # Broken: success on invalid input.
7413continue
7414else
7415  # Passes both tests.
7416ac_preproc_ok=:
7417break
7418fi
7419rm -f conftest.err conftest.i conftest.$ac_ext
7420
7421done
7422# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7423rm -f conftest.i conftest.err conftest.$ac_ext
7424if $ac_preproc_ok; then :
7425  break
7426fi
7427
7428    done
7429    ac_cv_build_prog_CPP=$CPP_FOR_BUILD
7430
7431fi
7432  CPP_FOR_BUILD=$ac_cv_build_prog_CPP
7433else
7434  ac_cv_build_prog_CPP=$CPP_FOR_BUILD
7435fi
7436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
7437$as_echo "$CPP_FOR_BUILD" >&6; }
7438ac_preproc_ok=false
7439for ac_c_preproc_warn_flag in '' yes
7440do
7441  # Use a header file that comes with gcc, so configuring glibc
7442  # with a fresh cross-compiler works.
7443  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7444  # <limits.h> exists even on freestanding compilers.
7445  # On the NeXT, cc -E runs the code through the compiler's parser,
7446  # not just through cpp. "Syntax error" is here to catch this case.
7447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448/* end confdefs.h.  */
7449#ifdef __STDC__
7450# include <limits.h>
7451#else
7452# include <assert.h>
7453#endif
7454		     Syntax error
7455_ACEOF
7456if ac_fn_c_try_cpp "$LINENO"; then :
7457
7458else
7459  # Broken: fails on valid input.
7460continue
7461fi
7462rm -f conftest.err conftest.i conftest.$ac_ext
7463
7464  # OK, works on sane cases.  Now check whether nonexistent headers
7465  # can be detected and how.
7466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7467/* end confdefs.h.  */
7468#include <ac_nonexistent.h>
7469_ACEOF
7470if ac_fn_c_try_cpp "$LINENO"; then :
7471  # Broken: success on invalid input.
7472continue
7473else
7474  # Passes both tests.
7475ac_preproc_ok=:
7476break
7477fi
7478rm -f conftest.err conftest.i conftest.$ac_ext
7479
7480done
7481# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7482rm -f conftest.i conftest.err conftest.$ac_ext
7483if $ac_preproc_ok; then :
7484
7485else
7486  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7487$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7488as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
7489See \`config.log' for more details" "$LINENO" 5; }
7490fi
7491
7492ac_ext=c
7493ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7494ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7495ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
7496ac_compiler_gnu=$ac_cv_c_compiler_gnu
7497
7498
7499
7500ac_tool_prefix=$save_ac_tool_prefix
7501cross_compiling=$save_cross_compiling
7502
7503
7504BUILD_EXEEXT=$ac_build_exeext
7505BUILD_OBJEXT=$ac_build_objext
7506
7507
7508
7509save_cross_compiling=$cross_compiling
7510save_ac_tool_prefix=$ac_tool_prefix
7511cross_compiling=no
7512ac_tool_prefix=
7513
7514ac_ext=cpp
7515ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7516ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7517ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
7518ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7519if test -z "$CXX_FOR_BUILD"; then
7520  if test -n "$CCC"; then
7521    CXX_FOR_BUILD=$CCC
7522  else
7523    if test -n "$ac_tool_prefix"; then
7524  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7525  do
7526    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7527set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7529$as_echo_n "checking for $ac_word... " >&6; }
7530if ${ac_cv_prog_CXX_FOR_BUILD+:} false; then :
7531  $as_echo_n "(cached) " >&6
7532else
7533  if test -n "$CXX_FOR_BUILD"; then
7534  ac_cv_prog_CXX_FOR_BUILD="$CXX_FOR_BUILD" # Let the user override the test.
7535else
7536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537for as_dir in $PATH
7538do
7539  IFS=$as_save_IFS
7540  test -z "$as_dir" && as_dir=.
7541    for ac_exec_ext in '' $ac_executable_extensions; do
7542  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7543    ac_cv_prog_CXX_FOR_BUILD="$ac_tool_prefix$ac_prog"
7544    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7545    break 2
7546  fi
7547done
7548  done
7549IFS=$as_save_IFS
7550
7551fi
7552fi
7553CXX_FOR_BUILD=$ac_cv_prog_CXX_FOR_BUILD
7554if test -n "$CXX_FOR_BUILD"; then
7555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_BUILD" >&5
7556$as_echo "$CXX_FOR_BUILD" >&6; }
7557else
7558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7559$as_echo "no" >&6; }
7560fi
7561
7562
7563    test -n "$CXX_FOR_BUILD" && break
7564  done
7565fi
7566if test -z "$CXX_FOR_BUILD"; then
7567  ac_ct_CXX_FOR_BUILD=$CXX_FOR_BUILD
7568  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7569do
7570  # Extract the first word of "$ac_prog", so it can be a program name with args.
7571set dummy $ac_prog; ac_word=$2
7572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7573$as_echo_n "checking for $ac_word... " >&6; }
7574if ${ac_cv_prog_ac_ct_CXX_FOR_BUILD+:} false; then :
7575  $as_echo_n "(cached) " >&6
7576else
7577  if test -n "$ac_ct_CXX_FOR_BUILD"; then
7578  ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_ct_CXX_FOR_BUILD" # Let the user override the test.
7579else
7580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581for as_dir in $PATH
7582do
7583  IFS=$as_save_IFS
7584  test -z "$as_dir" && as_dir=.
7585    for ac_exec_ext in '' $ac_executable_extensions; do
7586  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7587    ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_prog"
7588    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7589    break 2
7590  fi
7591done
7592  done
7593IFS=$as_save_IFS
7594
7595fi
7596fi
7597ac_ct_CXX_FOR_BUILD=$ac_cv_prog_ac_ct_CXX_FOR_BUILD
7598if test -n "$ac_ct_CXX_FOR_BUILD"; then
7599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX_FOR_BUILD" >&5
7600$as_echo "$ac_ct_CXX_FOR_BUILD" >&6; }
7601else
7602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603$as_echo "no" >&6; }
7604fi
7605
7606
7607  test -n "$ac_ct_CXX_FOR_BUILD" && break
7608done
7609
7610  if test "x$ac_ct_CXX_FOR_BUILD" = x; then
7611    CXX_FOR_BUILD="g++"
7612  else
7613    case $cross_compiling:$ac_tool_warned in
7614yes:)
7615{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
7616$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
7617ac_tool_warned=yes ;;
7618esac
7619    CXX_FOR_BUILD=$ac_ct_CXX_FOR_BUILD
7620  fi
7621fi
7622
7623  fi
7624fi
7625# Provide some information about the compiler.
7626$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7627set X $ac_build_compile
7628ac_compiler=$2
7629for ac_option in --version -v -V -qversion; do
7630  { { ac_try="$ac_compiler $ac_option >&5"
7631case "(($ac_try" in
7632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633  *) ac_try_echo=$ac_try;;
7634esac
7635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7636$as_echo "$ac_try_echo"; } >&5
7637  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7638  ac_status=$?
7639  if test -s conftest.err; then
7640    sed '10a\
7641... rest of stderr output deleted ...
7642         10q' conftest.err >conftest.er1
7643    cat conftest.er1 >&5
7644  fi
7645  rm -f conftest.er1 conftest.err
7646  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7647  test $ac_status = 0; }
7648done
7649
7650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7651$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7652if ${ac_cv_cxx_compiler_gnu+:} false; then :
7653  $as_echo_n "(cached) " >&6
7654else
7655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656/* end confdefs.h.  */
7657
7658int
7659main ()
7660{
7661#ifndef __GNUC__
7662       choke me
7663#endif
7664
7665  ;
7666  return 0;
7667}
7668_ACEOF
7669if ac_fn_cxx_try_compile "$LINENO"; then :
7670  ac_compiler_gnu=yes
7671else
7672  ac_compiler_gnu=no
7673fi
7674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7675ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7676
7677fi
7678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7679$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7680if test $ac_compiler_gnu = yes; then
7681  GXX=yes
7682else
7683  GXX=
7684fi
7685ac_test_CXXFLAGS=${CXXFLAGS_FOR_BUILD+set}
7686ac_save_CXXFLAGS=$CXXFLAGS_FOR_BUILD
7687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX_FOR_BUILD accepts -g" >&5
7688$as_echo_n "checking whether $CXX_FOR_BUILD accepts -g... " >&6; }
7689if ${ac_cv_build_prog_cxx_g+:} false; then :
7690  $as_echo_n "(cached) " >&6
7691else
7692  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7693   ac_cxx_werror_flag=yes
7694   ac_cv_build_prog_cxx_g=no
7695   CXXFLAGS_FOR_BUILD="-g"
7696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697/* end confdefs.h.  */
7698
7699int
7700main ()
7701{
7702
7703  ;
7704  return 0;
7705}
7706_ACEOF
7707if ac_fn_cxx_try_compile "$LINENO"; then :
7708  ac_cv_build_prog_cxx_g=yes
7709else
7710  CXXFLAGS_FOR_BUILD=""
7711      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7712/* end confdefs.h.  */
7713
7714int
7715main ()
7716{
7717
7718  ;
7719  return 0;
7720}
7721_ACEOF
7722if ac_fn_cxx_try_compile "$LINENO"; then :
7723
7724else
7725  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7726	 CXXFLAGS_FOR_BUILD="-g"
7727	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7728/* end confdefs.h.  */
7729
7730int
7731main ()
7732{
7733
7734  ;
7735  return 0;
7736}
7737_ACEOF
7738if ac_fn_cxx_try_compile "$LINENO"; then :
7739  ac_cv_build_prog_cxx_g=yes
7740fi
7741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7742fi
7743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7744fi
7745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7746   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7747fi
7748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cxx_g" >&5
7749$as_echo "$ac_cv_build_prog_cxx_g" >&6; }
7750if test "$ac_test_CXXFLAGS" = set; then
7751  CXXFLAGS_FOR_BUILD=$ac_save_CXXFLAGS
7752elif test $ac_cv_build_prog_cxx_g = yes; then
7753  if test "$GXX" = yes; then
7754    CXXFLAGS_FOR_BUILD="-g -O2"
7755  else
7756    CXXFLAGS_FOR_BUILD="-g"
7757  fi
7758else
7759  if test "$GXX" = yes; then
7760    CXXFLAGS_FOR_BUILD="-O2"
7761  else
7762    CXXFLAGS_FOR_BUILD=
7763  fi
7764fi
7765ac_ext=c
7766ac_cpp='$CPP $CPPFLAGS_FOR_BUILD'
7767ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7768ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
7769ac_compiler_gnu=$ac_cv_c_compiler_gnu
7770
7771depcc="$CXX_FOR_BUILD"  am_compiler_list=
7772
7773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7774$as_echo_n "checking dependency style of $depcc... " >&6; }
7775if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
7776  $as_echo_n "(cached) " >&6
7777else
7778  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7779  # We make a subdir and do the tests there.  Otherwise we can end up
7780  # making bogus files that we don't know about and never remove.  For
7781  # instance it was reported that on HP-UX the gcc test will end up
7782  # making a dummy file named 'D' -- because '-MD' means "put the output
7783  # in D".
7784  rm -rf conftest.dir
7785  mkdir conftest.dir
7786  # Copy depcomp to subdir because otherwise we won't find it if we're
7787  # using a relative directory.
7788  cp "$am_depcomp" conftest.dir
7789  cd conftest.dir
7790  # We will build objects and dependencies in a subdirectory because
7791  # it helps to detect inapplicable dependency modes.  For instance
7792  # both Tru64's cc and ICC support -MD to output dependencies as a
7793  # side effect of compilation, but ICC will put the dependencies in
7794  # the current directory while Tru64 will put them in the object
7795  # directory.
7796  mkdir sub
7797
7798  am_cv_CXX_dependencies_compiler_type=none
7799  if test "$am_compiler_list" = ""; then
7800     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7801  fi
7802  am__universal=false
7803  case " $depcc " in #(
7804     *\ -arch\ *\ -arch\ *) am__universal=true ;;
7805     esac
7806
7807  for depmode in $am_compiler_list; do
7808    # Setup a source with many dependencies, because some compilers
7809    # like to wrap large dependency lists on column 80 (with \), and
7810    # we should not choose a depcomp mode which is confused by this.
7811    #
7812    # We need to recreate these files for each test, as the compiler may
7813    # overwrite some of them when testing with obscure command lines.
7814    # This happens at least with the AIX C compiler.
7815    : > sub/conftest.c
7816    for i in 1 2 3 4 5 6; do
7817      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7818      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7819      # Solaris 10 /bin/sh.
7820      echo '/* dummy */' > sub/conftst$i.h
7821    done
7822    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7823
7824    # We check with '-c' and '-o' for the sake of the "dashmstdout"
7825    # mode.  It turns out that the SunPro C++ compiler does not properly
7826    # handle '-M -o', and we need to detect this.  Also, some Intel
7827    # versions had trouble with output in subdirs.
7828    am__obj=sub/conftest.${OBJEXT-o}
7829    am__minus_obj="-o $am__obj"
7830    case $depmode in
7831    gcc)
7832      # This depmode causes a compiler race in universal mode.
7833      test "$am__universal" = false || continue
7834      ;;
7835    nosideeffect)
7836      # After this tag, mechanisms are not by side-effect, so they'll
7837      # only be used when explicitly requested.
7838      if test "x$enable_dependency_tracking" = xyes; then
7839	continue
7840      else
7841	break
7842      fi
7843      ;;
7844    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7845      # This compiler won't grok '-c -o', but also, the minuso test has
7846      # not run yet.  These depmodes are late enough in the game, and
7847      # so weak that their functioning should not be impacted.
7848      am__obj=conftest.${OBJEXT-o}
7849      am__minus_obj=
7850      ;;
7851    none) break ;;
7852    esac
7853    if depmode=$depmode \
7854       source=sub/conftest.c object=$am__obj \
7855       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7856       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7857         >/dev/null 2>conftest.err &&
7858       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7859       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7860       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7861       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7862      # icc doesn't choke on unknown options, it will just issue warnings
7863      # or remarks (even with -Werror).  So we grep stderr for any message
7864      # that says an option was ignored or not supported.
7865      # When given -MP, icc 7.0 and 7.1 complain thusly:
7866      #   icc: Command line warning: ignoring option '-M'; no argument required
7867      # The diagnosis changed in icc 8.0:
7868      #   icc: Command line remark: option '-MP' not supported
7869      if (grep 'ignoring option' conftest.err ||
7870          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7871        am_cv_CXX_dependencies_compiler_type=$depmode
7872        break
7873      fi
7874    fi
7875  done
7876
7877  cd ..
7878  rm -rf conftest.dir
7879else
7880  am_cv_CXX_dependencies_compiler_type=none
7881fi
7882
7883fi
7884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7885$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7886CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7887
7888 if
7889  test "x$enable_dependency_tracking" != xno \
7890  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7891  am__fastdepCXX_TRUE=
7892  am__fastdepCXX_FALSE='#'
7893else
7894  am__fastdepCXX_TRUE='#'
7895  am__fastdepCXX_FALSE=
7896fi
7897
7898
7899ac_ext=cpp
7900ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
7901ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
7902ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
7903ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7905$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7906if test -z "$CXXCPP_FOR_BUILD"; then
7907  if ${ac_cv_build_prog_CXXCPP+:} false; then :
7908  $as_echo_n "(cached) " >&6
7909else
7910      # Double quotes because CXXCPP needs to be expanded
7911    for CXXCPP_FOR_BUILD in "$CXX_FOR_BUILD -E" "/lib/cpp"
7912    do
7913      ac_preproc_ok=false
7914for ac_cxx_preproc_warn_flag in '' yes
7915do
7916  # Use a header file that comes with gcc, so configuring glibc
7917  # with a fresh cross-compiler works.
7918  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7919  # <limits.h> exists even on freestanding compilers.
7920  # On the NeXT, cc -E runs the code through the compiler's parser,
7921  # not just through cpp. "Syntax error" is here to catch this case.
7922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7923/* end confdefs.h.  */
7924#ifdef __STDC__
7925# include <limits.h>
7926#else
7927# include <assert.h>
7928#endif
7929		     Syntax error
7930_ACEOF
7931if ac_fn_cxx_try_cpp "$LINENO"; then :
7932
7933else
7934  # Broken: fails on valid input.
7935continue
7936fi
7937rm -f conftest.err conftest.i conftest.$ac_ext
7938
7939  # OK, works on sane cases.  Now check whether nonexistent headers
7940  # can be detected and how.
7941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942/* end confdefs.h.  */
7943#include <ac_nonexistent.h>
7944_ACEOF
7945if ac_fn_cxx_try_cpp "$LINENO"; then :
7946  # Broken: success on invalid input.
7947continue
7948else
7949  # Passes both tests.
7950ac_preproc_ok=:
7951break
7952fi
7953rm -f conftest.err conftest.i conftest.$ac_ext
7954
7955done
7956# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7957rm -f conftest.i conftest.err conftest.$ac_ext
7958if $ac_preproc_ok; then :
7959  break
7960fi
7961
7962    done
7963    ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD
7964
7965fi
7966  CXXCPP_FOR_BUILD=$ac_cv_build_prog_CXXCPP
7967else
7968  ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD
7969fi
7970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP_FOR_BUILD" >&5
7971$as_echo "$CXXCPP_FOR_BUILD" >&6; }
7972ac_preproc_ok=false
7973for ac_cxx_preproc_warn_flag in '' yes
7974do
7975  # Use a header file that comes with gcc, so configuring glibc
7976  # with a fresh cross-compiler works.
7977  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7978  # <limits.h> exists even on freestanding compilers.
7979  # On the NeXT, cc -E runs the code through the compiler's parser,
7980  # not just through cpp. "Syntax error" is here to catch this case.
7981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7982/* end confdefs.h.  */
7983#ifdef __STDC__
7984# include <limits.h>
7985#else
7986# include <assert.h>
7987#endif
7988		     Syntax error
7989_ACEOF
7990if ac_fn_cxx_try_cpp "$LINENO"; then :
7991
7992else
7993  # Broken: fails on valid input.
7994continue
7995fi
7996rm -f conftest.err conftest.i conftest.$ac_ext
7997
7998  # OK, works on sane cases.  Now check whether nonexistent headers
7999  # can be detected and how.
8000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001/* end confdefs.h.  */
8002#include <ac_nonexistent.h>
8003_ACEOF
8004if ac_fn_cxx_try_cpp "$LINENO"; then :
8005  # Broken: success on invalid input.
8006continue
8007else
8008  # Passes both tests.
8009ac_preproc_ok=:
8010break
8011fi
8012rm -f conftest.err conftest.i conftest.$ac_ext
8013
8014done
8015# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8016rm -f conftest.i conftest.err conftest.$ac_ext
8017if $ac_preproc_ok; then :
8018
8019else
8020  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8021$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8022as_fn_error $? "C++ preprocessor \"$CXXCPP_FOR_BUILD\" fails sanity check
8023See \`config.log' for more details" "$LINENO" 5; }
8024fi
8025
8026ac_ext=c
8027ac_cpp='$CPP $CPPFLAGS_FOR_BUILD'
8028ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
8029ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
8030ac_compiler_gnu=$ac_cv_c_compiler_gnu
8031
8032
8033ac_tool_prefix=$save_ac_tool_prefix
8034cross_compiling=$save_cross_compiling
8035
8036
8037
8038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8039$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8040set x ${MAKE-make}
8041ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8042if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8043  $as_echo_n "(cached) " >&6
8044else
8045  cat >conftest.make <<\_ACEOF
8046SHELL = /bin/sh
8047all:
8048	@echo '@@@%%%=$(MAKE)=@@@%%%'
8049_ACEOF
8050# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8051case `${MAKE-make} -f conftest.make 2>/dev/null` in
8052  *@@@%%%=?*=@@@%%%*)
8053    eval ac_cv_prog_make_${ac_make}_set=yes;;
8054  *)
8055    eval ac_cv_prog_make_${ac_make}_set=no;;
8056esac
8057rm -f conftest.make
8058fi
8059if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8061$as_echo "yes" >&6; }
8062  SET_MAKE=
8063else
8064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065$as_echo "no" >&6; }
8066  SET_MAKE="MAKE=${MAKE-make}"
8067fi
8068
8069
8070
8071if test -n "$ac_tool_prefix"; then
8072  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8073set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8075$as_echo_n "checking for $ac_word... " >&6; }
8076if ${ac_cv_prog_RANLIB+:} false; then :
8077  $as_echo_n "(cached) " >&6
8078else
8079  if test -n "$RANLIB"; then
8080  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8081else
8082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083for as_dir in $PATH
8084do
8085  IFS=$as_save_IFS
8086  test -z "$as_dir" && as_dir=.
8087    for ac_exec_ext in '' $ac_executable_extensions; do
8088  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8089    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8091    break 2
8092  fi
8093done
8094  done
8095IFS=$as_save_IFS
8096
8097fi
8098fi
8099RANLIB=$ac_cv_prog_RANLIB
8100if test -n "$RANLIB"; then
8101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8102$as_echo "$RANLIB" >&6; }
8103else
8104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105$as_echo "no" >&6; }
8106fi
8107
8108
8109fi
8110if test -z "$ac_cv_prog_RANLIB"; then
8111  ac_ct_RANLIB=$RANLIB
8112  # Extract the first word of "ranlib", so it can be a program name with args.
8113set dummy ranlib; ac_word=$2
8114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8115$as_echo_n "checking for $ac_word... " >&6; }
8116if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8117  $as_echo_n "(cached) " >&6
8118else
8119  if test -n "$ac_ct_RANLIB"; then
8120  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8121else
8122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123for as_dir in $PATH
8124do
8125  IFS=$as_save_IFS
8126  test -z "$as_dir" && as_dir=.
8127    for ac_exec_ext in '' $ac_executable_extensions; do
8128  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8129    ac_cv_prog_ac_ct_RANLIB="ranlib"
8130    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8131    break 2
8132  fi
8133done
8134  done
8135IFS=$as_save_IFS
8136
8137fi
8138fi
8139ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8140if test -n "$ac_ct_RANLIB"; then
8141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8142$as_echo "$ac_ct_RANLIB" >&6; }
8143else
8144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145$as_echo "no" >&6; }
8146fi
8147
8148  if test "x$ac_ct_RANLIB" = x; then
8149    RANLIB=":"
8150  else
8151    case $cross_compiling:$ac_tool_warned in
8152yes:)
8153{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8154$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8155ac_tool_warned=yes ;;
8156esac
8157    RANLIB=$ac_ct_RANLIB
8158  fi
8159else
8160  RANLIB="$ac_cv_prog_RANLIB"
8161fi
8162
8163# Extract the first word of "perl", so it can be a program name with args.
8164set dummy perl; ac_word=$2
8165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8166$as_echo_n "checking for $ac_word... " >&6; }
8167if ${ac_cv_path_PERL+:} false; then :
8168  $as_echo_n "(cached) " >&6
8169else
8170  case $PERL in
8171  [\\/]* | ?:[\\/]*)
8172  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8173  ;;
8174  *)
8175  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176for as_dir in $PATH
8177do
8178  IFS=$as_save_IFS
8179  test -z "$as_dir" && as_dir=.
8180    for ac_exec_ext in '' $ac_executable_extensions; do
8181  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8182    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8183    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8184    break 2
8185  fi
8186done
8187  done
8188IFS=$as_save_IFS
8189
8190  ;;
8191esac
8192fi
8193PERL=$ac_cv_path_PERL
8194if test -n "$PERL"; then
8195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
8196$as_echo "$PERL" >&6; }
8197else
8198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8199$as_echo "no" >&6; }
8200fi
8201
8202
8203if test -n "$ac_tool_prefix"; then
8204  for ac_prog in windres
8205  do
8206    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8207set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8209$as_echo_n "checking for $ac_word... " >&6; }
8210if ${ac_cv_prog_WINDRES+:} false; then :
8211  $as_echo_n "(cached) " >&6
8212else
8213  if test -n "$WINDRES"; then
8214  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8215else
8216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8217for as_dir in $PATH
8218do
8219  IFS=$as_save_IFS
8220  test -z "$as_dir" && as_dir=.
8221    for ac_exec_ext in '' $ac_executable_extensions; do
8222  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8223    ac_cv_prog_WINDRES="$ac_tool_prefix$ac_prog"
8224    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8225    break 2
8226  fi
8227done
8228  done
8229IFS=$as_save_IFS
8230
8231fi
8232fi
8233WINDRES=$ac_cv_prog_WINDRES
8234if test -n "$WINDRES"; then
8235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8236$as_echo "$WINDRES" >&6; }
8237else
8238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239$as_echo "no" >&6; }
8240fi
8241
8242
8243    test -n "$WINDRES" && break
8244  done
8245fi
8246if test -z "$WINDRES"; then
8247  ac_ct_WINDRES=$WINDRES
8248  for ac_prog in windres
8249do
8250  # Extract the first word of "$ac_prog", so it can be a program name with args.
8251set dummy $ac_prog; ac_word=$2
8252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8253$as_echo_n "checking for $ac_word... " >&6; }
8254if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
8255  $as_echo_n "(cached) " >&6
8256else
8257  if test -n "$ac_ct_WINDRES"; then
8258  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8259else
8260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261for as_dir in $PATH
8262do
8263  IFS=$as_save_IFS
8264  test -z "$as_dir" && as_dir=.
8265    for ac_exec_ext in '' $ac_executable_extensions; do
8266  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8267    ac_cv_prog_ac_ct_WINDRES="$ac_prog"
8268    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8269    break 2
8270  fi
8271done
8272  done
8273IFS=$as_save_IFS
8274
8275fi
8276fi
8277ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8278if test -n "$ac_ct_WINDRES"; then
8279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8280$as_echo "$ac_ct_WINDRES" >&6; }
8281else
8282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283$as_echo "no" >&6; }
8284fi
8285
8286
8287  test -n "$ac_ct_WINDRES" && break
8288done
8289
8290  if test "x$ac_ct_WINDRES" = x; then
8291    WINDRES=":"
8292  else
8293    case $cross_compiling:$ac_tool_warned in
8294yes:)
8295{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8296$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8297ac_tool_warned=yes ;;
8298esac
8299    WINDRES=$ac_ct_WINDRES
8300  fi
8301fi
8302
8303
8304
8305
8306
8307
8308
8309
8310if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8311	if test -n "$ac_tool_prefix"; then
8312  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8313set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8315$as_echo_n "checking for $ac_word... " >&6; }
8316if ${ac_cv_path_PKG_CONFIG+:} false; then :
8317  $as_echo_n "(cached) " >&6
8318else
8319  case $PKG_CONFIG in
8320  [\\/]* | ?:[\\/]*)
8321  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8322  ;;
8323  *)
8324  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325for as_dir in $PATH
8326do
8327  IFS=$as_save_IFS
8328  test -z "$as_dir" && as_dir=.
8329    for ac_exec_ext in '' $ac_executable_extensions; do
8330  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8331    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8332    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8333    break 2
8334  fi
8335done
8336  done
8337IFS=$as_save_IFS
8338
8339  ;;
8340esac
8341fi
8342PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8343if test -n "$PKG_CONFIG"; then
8344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8345$as_echo "$PKG_CONFIG" >&6; }
8346else
8347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348$as_echo "no" >&6; }
8349fi
8350
8351
8352fi
8353if test -z "$ac_cv_path_PKG_CONFIG"; then
8354  ac_pt_PKG_CONFIG=$PKG_CONFIG
8355  # Extract the first word of "pkg-config", so it can be a program name with args.
8356set dummy pkg-config; ac_word=$2
8357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358$as_echo_n "checking for $ac_word... " >&6; }
8359if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8360  $as_echo_n "(cached) " >&6
8361else
8362  case $ac_pt_PKG_CONFIG in
8363  [\\/]* | ?:[\\/]*)
8364  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8365  ;;
8366  *)
8367  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368for as_dir in $PATH
8369do
8370  IFS=$as_save_IFS
8371  test -z "$as_dir" && as_dir=.
8372    for ac_exec_ext in '' $ac_executable_extensions; do
8373  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8374    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8375    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8376    break 2
8377  fi
8378done
8379  done
8380IFS=$as_save_IFS
8381
8382  ;;
8383esac
8384fi
8385ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8386if test -n "$ac_pt_PKG_CONFIG"; then
8387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8388$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8389else
8390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8391$as_echo "no" >&6; }
8392fi
8393
8394  if test "x$ac_pt_PKG_CONFIG" = x; then
8395    PKG_CONFIG=""
8396  else
8397    case $cross_compiling:$ac_tool_warned in
8398yes:)
8399{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8400$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8401ac_tool_warned=yes ;;
8402esac
8403    PKG_CONFIG=$ac_pt_PKG_CONFIG
8404  fi
8405else
8406  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8407fi
8408
8409fi
8410if test -n "$PKG_CONFIG"; then
8411	_pkg_min_version=0.9.0
8412	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8413$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8414	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8415		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8416$as_echo "yes" >&6; }
8417	else
8418		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419$as_echo "no" >&6; }
8420		PKG_CONFIG=""
8421	fi
8422fi
8423
8424
8425
8426
8427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8428$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
8429if ${ac_cv_path_GREP+:} false; then :
8430  $as_echo_n "(cached) " >&6
8431else
8432  if test -z "$GREP"; then
8433  ac_path_GREP_found=false
8434  # Loop through the user's path and test for each of PROGNAME-LIST
8435  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8436for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8437do
8438  IFS=$as_save_IFS
8439  test -z "$as_dir" && as_dir=.
8440    for ac_prog in grep ggrep; do
8441    for ac_exec_ext in '' $ac_executable_extensions; do
8442      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
8443      as_fn_executable_p "$ac_path_GREP" || continue
8444# Check for GNU ac_path_GREP and select it if it is found.
8445  # Check for GNU $ac_path_GREP
8446case `"$ac_path_GREP" --version 2>&1` in
8447*GNU*)
8448  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8449*)
8450  ac_count=0
8451  $as_echo_n 0123456789 >"conftest.in"
8452  while :
8453  do
8454    cat "conftest.in" "conftest.in" >"conftest.tmp"
8455    mv "conftest.tmp" "conftest.in"
8456    cp "conftest.in" "conftest.nl"
8457    $as_echo 'GREP' >> "conftest.nl"
8458    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8459    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8460    as_fn_arith $ac_count + 1 && ac_count=$as_val
8461    if test $ac_count -gt ${ac_path_GREP_max-0}; then
8462      # Best one so far, save it but keep looking for a better one
8463      ac_cv_path_GREP="$ac_path_GREP"
8464      ac_path_GREP_max=$ac_count
8465    fi
8466    # 10*(2^10) chars as input seems more than enough
8467    test $ac_count -gt 10 && break
8468  done
8469  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8470esac
8471
8472      $ac_path_GREP_found && break 3
8473    done
8474  done
8475  done
8476IFS=$as_save_IFS
8477  if test -z "$ac_cv_path_GREP"; then
8478    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8479  fi
8480else
8481  ac_cv_path_GREP=$GREP
8482fi
8483
8484fi
8485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
8486$as_echo "$ac_cv_path_GREP" >&6; }
8487 GREP="$ac_cv_path_GREP"
8488
8489
8490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8491$as_echo_n "checking for egrep... " >&6; }
8492if ${ac_cv_path_EGREP+:} false; then :
8493  $as_echo_n "(cached) " >&6
8494else
8495  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8496   then ac_cv_path_EGREP="$GREP -E"
8497   else
8498     if test -z "$EGREP"; then
8499  ac_path_EGREP_found=false
8500  # Loop through the user's path and test for each of PROGNAME-LIST
8501  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8502for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8503do
8504  IFS=$as_save_IFS
8505  test -z "$as_dir" && as_dir=.
8506    for ac_prog in egrep; do
8507    for ac_exec_ext in '' $ac_executable_extensions; do
8508      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8509      as_fn_executable_p "$ac_path_EGREP" || continue
8510# Check for GNU ac_path_EGREP and select it if it is found.
8511  # Check for GNU $ac_path_EGREP
8512case `"$ac_path_EGREP" --version 2>&1` in
8513*GNU*)
8514  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8515*)
8516  ac_count=0
8517  $as_echo_n 0123456789 >"conftest.in"
8518  while :
8519  do
8520    cat "conftest.in" "conftest.in" >"conftest.tmp"
8521    mv "conftest.tmp" "conftest.in"
8522    cp "conftest.in" "conftest.nl"
8523    $as_echo 'EGREP' >> "conftest.nl"
8524    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8525    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8526    as_fn_arith $ac_count + 1 && ac_count=$as_val
8527    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8528      # Best one so far, save it but keep looking for a better one
8529      ac_cv_path_EGREP="$ac_path_EGREP"
8530      ac_path_EGREP_max=$ac_count
8531    fi
8532    # 10*(2^10) chars as input seems more than enough
8533    test $ac_count -gt 10 && break
8534  done
8535  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8536esac
8537
8538      $ac_path_EGREP_found && break 3
8539    done
8540  done
8541  done
8542IFS=$as_save_IFS
8543  if test -z "$ac_cv_path_EGREP"; then
8544    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8545  fi
8546else
8547  ac_cv_path_EGREP=$EGREP
8548fi
8549
8550   fi
8551fi
8552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8553$as_echo "$ac_cv_path_EGREP" >&6; }
8554 EGREP="$ac_cv_path_EGREP"
8555
8556
8557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8558$as_echo_n "checking for ANSI C header files... " >&6; }
8559if ${ac_cv_header_stdc+:} false; then :
8560  $as_echo_n "(cached) " >&6
8561else
8562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8563/* end confdefs.h.  */
8564#include <stdlib.h>
8565#include <stdarg.h>
8566#include <string.h>
8567#include <float.h>
8568
8569int
8570main ()
8571{
8572
8573  ;
8574  return 0;
8575}
8576_ACEOF
8577if ac_fn_c_try_compile "$LINENO"; then :
8578  ac_cv_header_stdc=yes
8579else
8580  ac_cv_header_stdc=no
8581fi
8582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8583
8584if test $ac_cv_header_stdc = yes; then
8585  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8587/* end confdefs.h.  */
8588#include <string.h>
8589
8590_ACEOF
8591if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8592  $EGREP "memchr" >/dev/null 2>&1; then :
8593
8594else
8595  ac_cv_header_stdc=no
8596fi
8597rm -f conftest*
8598
8599fi
8600
8601if test $ac_cv_header_stdc = yes; then
8602  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8604/* end confdefs.h.  */
8605#include <stdlib.h>
8606
8607_ACEOF
8608if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8609  $EGREP "free" >/dev/null 2>&1; then :
8610
8611else
8612  ac_cv_header_stdc=no
8613fi
8614rm -f conftest*
8615
8616fi
8617
8618if test $ac_cv_header_stdc = yes; then
8619  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8620  if test "$cross_compiling" = yes; then :
8621  :
8622else
8623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8624/* end confdefs.h.  */
8625#include <ctype.h>
8626#include <stdlib.h>
8627#if ((' ' & 0x0FF) == 0x020)
8628# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8629# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8630#else
8631# define ISLOWER(c) \
8632		   (('a' <= (c) && (c) <= 'i') \
8633		     || ('j' <= (c) && (c) <= 'r') \
8634		     || ('s' <= (c) && (c) <= 'z'))
8635# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8636#endif
8637
8638#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8639int
8640main ()
8641{
8642  int i;
8643  for (i = 0; i < 256; i++)
8644    if (XOR (islower (i), ISLOWER (i))
8645	|| toupper (i) != TOUPPER (i))
8646      return 2;
8647  return 0;
8648}
8649_ACEOF
8650if ac_fn_c_try_run "$LINENO"; then :
8651
8652else
8653  ac_cv_header_stdc=no
8654fi
8655rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8656  conftest.$ac_objext conftest.beam conftest.$ac_ext
8657fi
8658
8659fi
8660fi
8661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8662$as_echo "$ac_cv_header_stdc" >&6; }
8663if test $ac_cv_header_stdc = yes; then
8664
8665$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8666
8667fi
8668
8669ac_header_dirent=no
8670for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8671  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8673$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8674if eval \${$as_ac_Header+:} false; then :
8675  $as_echo_n "(cached) " >&6
8676else
8677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8678/* end confdefs.h.  */
8679#include <sys/types.h>
8680#include <$ac_hdr>
8681
8682int
8683main ()
8684{
8685if ((DIR *) 0)
8686return 0;
8687  ;
8688  return 0;
8689}
8690_ACEOF
8691if ac_fn_c_try_compile "$LINENO"; then :
8692  eval "$as_ac_Header=yes"
8693else
8694  eval "$as_ac_Header=no"
8695fi
8696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8697fi
8698eval ac_res=\$$as_ac_Header
8699	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8700$as_echo "$ac_res" >&6; }
8701if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8702  cat >>confdefs.h <<_ACEOF
8703#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8704_ACEOF
8705
8706ac_header_dirent=$ac_hdr; break
8707fi
8708
8709done
8710# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8711if test $ac_header_dirent = dirent.h; then
8712  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8713$as_echo_n "checking for library containing opendir... " >&6; }
8714if ${ac_cv_search_opendir+:} false; then :
8715  $as_echo_n "(cached) " >&6
8716else
8717  ac_func_search_save_LIBS=$LIBS
8718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8719/* end confdefs.h.  */
8720
8721/* Override any GCC internal prototype to avoid an error.
8722   Use char because int might match the return type of a GCC
8723   builtin and then its argument prototype would still apply.  */
8724#ifdef __cplusplus
8725extern "C"
8726#endif
8727char opendir ();
8728int
8729main ()
8730{
8731return opendir ();
8732  ;
8733  return 0;
8734}
8735_ACEOF
8736for ac_lib in '' dir; do
8737  if test -z "$ac_lib"; then
8738    ac_res="none required"
8739  else
8740    ac_res=-l$ac_lib
8741    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8742  fi
8743  if ac_fn_c_try_link "$LINENO"; then :
8744  ac_cv_search_opendir=$ac_res
8745fi
8746rm -f core conftest.err conftest.$ac_objext \
8747    conftest$ac_exeext
8748  if ${ac_cv_search_opendir+:} false; then :
8749  break
8750fi
8751done
8752if ${ac_cv_search_opendir+:} false; then :
8753
8754else
8755  ac_cv_search_opendir=no
8756fi
8757rm conftest.$ac_ext
8758LIBS=$ac_func_search_save_LIBS
8759fi
8760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8761$as_echo "$ac_cv_search_opendir" >&6; }
8762ac_res=$ac_cv_search_opendir
8763if test "$ac_res" != no; then :
8764  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8765
8766fi
8767
8768else
8769  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8770$as_echo_n "checking for library containing opendir... " >&6; }
8771if ${ac_cv_search_opendir+:} false; then :
8772  $as_echo_n "(cached) " >&6
8773else
8774  ac_func_search_save_LIBS=$LIBS
8775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8776/* end confdefs.h.  */
8777
8778/* Override any GCC internal prototype to avoid an error.
8779   Use char because int might match the return type of a GCC
8780   builtin and then its argument prototype would still apply.  */
8781#ifdef __cplusplus
8782extern "C"
8783#endif
8784char opendir ();
8785int
8786main ()
8787{
8788return opendir ();
8789  ;
8790  return 0;
8791}
8792_ACEOF
8793for ac_lib in '' x; do
8794  if test -z "$ac_lib"; then
8795    ac_res="none required"
8796  else
8797    ac_res=-l$ac_lib
8798    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8799  fi
8800  if ac_fn_c_try_link "$LINENO"; then :
8801  ac_cv_search_opendir=$ac_res
8802fi
8803rm -f core conftest.err conftest.$ac_objext \
8804    conftest$ac_exeext
8805  if ${ac_cv_search_opendir+:} false; then :
8806  break
8807fi
8808done
8809if ${ac_cv_search_opendir+:} false; then :
8810
8811else
8812  ac_cv_search_opendir=no
8813fi
8814rm conftest.$ac_ext
8815LIBS=$ac_func_search_save_LIBS
8816fi
8817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8818$as_echo "$ac_cv_search_opendir" >&6; }
8819ac_res=$ac_cv_search_opendir
8820if test "$ac_res" != no; then :
8821  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8822
8823fi
8824
8825fi
8826
8827# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8828for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8829		  inttypes.h stdint.h unistd.h
8830do :
8831  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8832ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8833"
8834if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8835  cat >>confdefs.h <<_ACEOF
8836#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8837_ACEOF
8838
8839fi
8840
8841done
8842
8843
8844for ac_header in unistd.h fcntl.h sys/mman.h mach/mach.h sys/ioctl.h
8845do :
8846  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8847ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8848if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8849  cat >>confdefs.h <<_ACEOF
8850#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8851_ACEOF
8852
8853fi
8854
8855done
8856
8857for ac_header in getopt.h
8858do :
8859  ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
8860if test "x$ac_cv_header_getopt_h" = xyes; then :
8861  cat >>confdefs.h <<_ACEOF
8862#define HAVE_GETOPT_H 1
8863_ACEOF
8864
8865fi
8866
8867done
8868
8869for ac_header in termios.h termio.h alloca.h sys/statfs.h sys/statvfs.h
8870do :
8871  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8872ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8873if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8874  cat >>confdefs.h <<_ACEOF
8875#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8876_ACEOF
8877
8878fi
8879
8880done
8881
8882for ac_header in sys/types.h sys/stat.h sys/vfs.h utime.h sys/param.h
8883do :
8884  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8885ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8886if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8887  cat >>confdefs.h <<_ACEOF
8888#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8889_ACEOF
8890
8891fi
8892
8893done
8894
8895for ac_header in sys/mount.h types.h stat.h ext2fs/ext2_fs.h
8896do :
8897  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8898ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8899if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8900  cat >>confdefs.h <<_ACEOF
8901#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8902_ACEOF
8903
8904fi
8905
8906done
8907
8908for ac_header in sys/socket.h
8909do :
8910  ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
8911if test "x$ac_cv_header_sys_socket_h" = xyes; then :
8912  cat >>confdefs.h <<_ACEOF
8913#define HAVE_SYS_SOCKET_H 1
8914_ACEOF
8915
8916fi
8917
8918done
8919
8920for ac_header in linux/if.h linux/if_tun.h net/if.h net/if_tun.h
8921do :
8922  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8923ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
8924#ifdef HAVE_SYS_SOCKET_H
8925#include <sys/socket.h>
8926#endif
8927
8928"
8929if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8930  cat >>confdefs.h <<_ACEOF
8931#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8932_ACEOF
8933
8934fi
8935
8936done
8937
8938for ac_header in net/bpf.h
8939do :
8940  ac_fn_c_check_header_mongrel "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
8941if test "x$ac_cv_header_net_bpf_h" = xyes; then :
8942  cat >>confdefs.h <<_ACEOF
8943#define HAVE_NET_BPF_H 1
8944_ACEOF
8945
8946fi
8947
8948done
8949
8950
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8952$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8953if ${ac_cv_c_bigendian+:} false; then :
8954  $as_echo_n "(cached) " >&6
8955else
8956  ac_cv_c_bigendian=unknown
8957    # See if we're dealing with a universal compiler.
8958    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959/* end confdefs.h.  */
8960#ifndef __APPLE_CC__
8961	       not a universal capable compiler
8962	     #endif
8963	     typedef int dummy;
8964
8965_ACEOF
8966if ac_fn_c_try_compile "$LINENO"; then :
8967
8968	# Check for potential -arch flags.  It is not universal unless
8969	# there are at least two -arch flags with different values.
8970	ac_arch=
8971	ac_prev=
8972	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8973	 if test -n "$ac_prev"; then
8974	   case $ac_word in
8975	     i?86 | x86_64 | ppc | ppc64)
8976	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8977		 ac_arch=$ac_word
8978	       else
8979		 ac_cv_c_bigendian=universal
8980		 break
8981	       fi
8982	       ;;
8983	   esac
8984	   ac_prev=
8985	 elif test "x$ac_word" = "x-arch"; then
8986	   ac_prev=arch
8987	 fi
8988       done
8989fi
8990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8991    if test $ac_cv_c_bigendian = unknown; then
8992      # See if sys/param.h defines the BYTE_ORDER macro.
8993      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8994/* end confdefs.h.  */
8995#include <sys/types.h>
8996	     #include <sys/param.h>
8997
8998int
8999main ()
9000{
9001#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9002		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9003		     && LITTLE_ENDIAN)
9004	      bogus endian macros
9005	     #endif
9006
9007  ;
9008  return 0;
9009}
9010_ACEOF
9011if ac_fn_c_try_compile "$LINENO"; then :
9012  # It does; now see whether it defined to BIG_ENDIAN or not.
9013	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9014/* end confdefs.h.  */
9015#include <sys/types.h>
9016		#include <sys/param.h>
9017
9018int
9019main ()
9020{
9021#if BYTE_ORDER != BIG_ENDIAN
9022		 not big endian
9023		#endif
9024
9025  ;
9026  return 0;
9027}
9028_ACEOF
9029if ac_fn_c_try_compile "$LINENO"; then :
9030  ac_cv_c_bigendian=yes
9031else
9032  ac_cv_c_bigendian=no
9033fi
9034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9035fi
9036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9037    fi
9038    if test $ac_cv_c_bigendian = unknown; then
9039      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9040      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9041/* end confdefs.h.  */
9042#include <limits.h>
9043
9044int
9045main ()
9046{
9047#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9048	      bogus endian macros
9049	     #endif
9050
9051  ;
9052  return 0;
9053}
9054_ACEOF
9055if ac_fn_c_try_compile "$LINENO"; then :
9056  # It does; now see whether it defined to _BIG_ENDIAN or not.
9057	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9058/* end confdefs.h.  */
9059#include <limits.h>
9060
9061int
9062main ()
9063{
9064#ifndef _BIG_ENDIAN
9065		 not big endian
9066		#endif
9067
9068  ;
9069  return 0;
9070}
9071_ACEOF
9072if ac_fn_c_try_compile "$LINENO"; then :
9073  ac_cv_c_bigendian=yes
9074else
9075  ac_cv_c_bigendian=no
9076fi
9077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9078fi
9079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9080    fi
9081    if test $ac_cv_c_bigendian = unknown; then
9082      # Compile a test program.
9083      if test "$cross_compiling" = yes; then :
9084  # Try to guess by grepping values from an object file.
9085	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086/* end confdefs.h.  */
9087short int ascii_mm[] =
9088		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9089		short int ascii_ii[] =
9090		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9091		int use_ascii (int i) {
9092		  return ascii_mm[i] + ascii_ii[i];
9093		}
9094		short int ebcdic_ii[] =
9095		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9096		short int ebcdic_mm[] =
9097		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9098		int use_ebcdic (int i) {
9099		  return ebcdic_mm[i] + ebcdic_ii[i];
9100		}
9101		extern int foo;
9102
9103int
9104main ()
9105{
9106return use_ascii (foo) == use_ebcdic (foo);
9107  ;
9108  return 0;
9109}
9110_ACEOF
9111if ac_fn_c_try_compile "$LINENO"; then :
9112  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9113	      ac_cv_c_bigendian=yes
9114	    fi
9115	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9116	      if test "$ac_cv_c_bigendian" = unknown; then
9117		ac_cv_c_bigendian=no
9118	      else
9119		# finding both strings is unlikely to happen, but who knows?
9120		ac_cv_c_bigendian=unknown
9121	      fi
9122	    fi
9123fi
9124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9125else
9126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9127/* end confdefs.h.  */
9128$ac_includes_default
9129int
9130main ()
9131{
9132
9133	     /* Are we little or big endian?  From Harbison&Steele.  */
9134	     union
9135	     {
9136	       long int l;
9137	       char c[sizeof (long int)];
9138	     } u;
9139	     u.l = 1;
9140	     return u.c[sizeof (long int) - 1] == 1;
9141
9142  ;
9143  return 0;
9144}
9145_ACEOF
9146if ac_fn_c_try_run "$LINENO"; then :
9147  ac_cv_c_bigendian=no
9148else
9149  ac_cv_c_bigendian=yes
9150fi
9151rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9152  conftest.$ac_objext conftest.beam conftest.$ac_ext
9153fi
9154
9155    fi
9156fi
9157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9158$as_echo "$ac_cv_c_bigendian" >&6; }
9159 case $ac_cv_c_bigendian in #(
9160   yes)
9161     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9162;; #(
9163   no)
9164      ;; #(
9165   universal)
9166
9167$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9168
9169     ;; #(
9170   *)
9171     as_fn_error $? "unknown endianness
9172 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9173 esac
9174
9175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9176$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9177if ${ac_cv_c_const+:} false; then :
9178  $as_echo_n "(cached) " >&6
9179else
9180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9181/* end confdefs.h.  */
9182
9183int
9184main ()
9185{
9186
9187#ifndef __cplusplus
9188  /* Ultrix mips cc rejects this sort of thing.  */
9189  typedef int charset[2];
9190  const charset cs = { 0, 0 };
9191  /* SunOS 4.1.1 cc rejects this.  */
9192  char const *const *pcpcc;
9193  char **ppc;
9194  /* NEC SVR4.0.2 mips cc rejects this.  */
9195  struct point {int x, y;};
9196  static struct point const zero = {0,0};
9197  /* AIX XL C 1.02.0.0 rejects this.
9198     It does not let you subtract one const X* pointer from another in
9199     an arm of an if-expression whose if-part is not a constant
9200     expression */
9201  const char *g = "string";
9202  pcpcc = &g + (g ? g-g : 0);
9203  /* HPUX 7.0 cc rejects these. */
9204  ++pcpcc;
9205  ppc = (char**) pcpcc;
9206  pcpcc = (char const *const *) ppc;
9207  { /* SCO 3.2v4 cc rejects this sort of thing.  */
9208    char tx;
9209    char *t = &tx;
9210    char const *s = 0 ? (char *) 0 : (char const *) 0;
9211
9212    *t++ = 0;
9213    if (s) return 0;
9214  }
9215  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9216    int x[] = {25, 17};
9217    const int *foo = &x[0];
9218    ++foo;
9219  }
9220  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9221    typedef const int *iptr;
9222    iptr p = 0;
9223    ++p;
9224  }
9225  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
9226       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9227    struct s { int j; const int *ap[3]; } bx;
9228    struct s *b = &bx; b->j = 5;
9229  }
9230  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9231    const int foo = 10;
9232    if (!foo) return 0;
9233  }
9234  return !cs[0] && !zero.x;
9235#endif
9236
9237  ;
9238  return 0;
9239}
9240_ACEOF
9241if ac_fn_c_try_compile "$LINENO"; then :
9242  ac_cv_c_const=yes
9243else
9244  ac_cv_c_const=no
9245fi
9246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9247fi
9248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9249$as_echo "$ac_cv_c_const" >&6; }
9250if test $ac_cv_c_const = no; then
9251
9252$as_echo "#define const /**/" >>confdefs.h
9253
9254fi
9255
9256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9257$as_echo_n "checking for inline... " >&6; }
9258if ${ac_cv_c_inline+:} false; then :
9259  $as_echo_n "(cached) " >&6
9260else
9261  ac_cv_c_inline=no
9262for ac_kw in inline __inline__ __inline; do
9263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9264/* end confdefs.h.  */
9265#ifndef __cplusplus
9266typedef int foo_t;
9267static $ac_kw foo_t static_foo () {return 0; }
9268$ac_kw foo_t foo () {return 0; }
9269#endif
9270
9271_ACEOF
9272if ac_fn_c_try_compile "$LINENO"; then :
9273  ac_cv_c_inline=$ac_kw
9274fi
9275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9276  test "$ac_cv_c_inline" != no && break
9277done
9278
9279fi
9280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9281$as_echo "$ac_cv_c_inline" >&6; }
9282
9283case $ac_cv_c_inline in
9284  inline | yes) ;;
9285  *)
9286    case $ac_cv_c_inline in
9287      no) ac_val=;;
9288      *) ac_val=$ac_cv_c_inline;;
9289    esac
9290    cat >>confdefs.h <<_ACEOF
9291#ifndef __cplusplus
9292#define inline $ac_val
9293#endif
9294_ACEOF
9295    ;;
9296esac
9297
9298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
9299$as_echo_n "checking for working volatile... " >&6; }
9300if ${ac_cv_c_volatile+:} false; then :
9301  $as_echo_n "(cached) " >&6
9302else
9303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9304/* end confdefs.h.  */
9305
9306int
9307main ()
9308{
9309
9310volatile int x;
9311int * volatile y = (int *) 0;
9312return !x && !y;
9313  ;
9314  return 0;
9315}
9316_ACEOF
9317if ac_fn_c_try_compile "$LINENO"; then :
9318  ac_cv_c_volatile=yes
9319else
9320  ac_cv_c_volatile=no
9321fi
9322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9323fi
9324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
9325$as_echo "$ac_cv_c_volatile" >&6; }
9326if test $ac_cv_c_volatile = no; then
9327
9328$as_echo "#define volatile /**/" >>confdefs.h
9329
9330fi
9331
9332# The cast to long int works around a bug in the HP C Compiler
9333# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9334# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9335# This bug is HP SR number 8606223364.
9336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
9337$as_echo_n "checking size of short... " >&6; }
9338if ${ac_cv_sizeof_short+:} false; then :
9339  $as_echo_n "(cached) " >&6
9340else
9341  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
9342
9343else
9344  if test "$ac_cv_type_short" = yes; then
9345     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9346$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9347as_fn_error 77 "cannot compute sizeof (short)
9348See \`config.log' for more details" "$LINENO" 5; }
9349   else
9350     ac_cv_sizeof_short=0
9351   fi
9352fi
9353
9354fi
9355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
9356$as_echo "$ac_cv_sizeof_short" >&6; }
9357
9358
9359
9360cat >>confdefs.h <<_ACEOF
9361#define SIZEOF_SHORT $ac_cv_sizeof_short
9362_ACEOF
9363
9364
9365# The cast to long int works around a bug in the HP C Compiler
9366# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9367# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9368# This bug is HP SR number 8606223364.
9369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
9370$as_echo_n "checking size of int... " >&6; }
9371if ${ac_cv_sizeof_int+:} false; then :
9372  $as_echo_n "(cached) " >&6
9373else
9374  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
9375
9376else
9377  if test "$ac_cv_type_int" = yes; then
9378     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9379$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9380as_fn_error 77 "cannot compute sizeof (int)
9381See \`config.log' for more details" "$LINENO" 5; }
9382   else
9383     ac_cv_sizeof_int=0
9384   fi
9385fi
9386
9387fi
9388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
9389$as_echo "$ac_cv_sizeof_int" >&6; }
9390
9391
9392
9393cat >>confdefs.h <<_ACEOF
9394#define SIZEOF_INT $ac_cv_sizeof_int
9395_ACEOF
9396
9397
9398# The cast to long int works around a bug in the HP C Compiler
9399# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9400# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9401# This bug is HP SR number 8606223364.
9402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
9403$as_echo_n "checking size of long... " >&6; }
9404if ${ac_cv_sizeof_long+:} false; then :
9405  $as_echo_n "(cached) " >&6
9406else
9407  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
9408
9409else
9410  if test "$ac_cv_type_long" = yes; then
9411     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9412$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9413as_fn_error 77 "cannot compute sizeof (long)
9414See \`config.log' for more details" "$LINENO" 5; }
9415   else
9416     ac_cv_sizeof_long=0
9417   fi
9418fi
9419
9420fi
9421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
9422$as_echo "$ac_cv_sizeof_long" >&6; }
9423
9424
9425
9426cat >>confdefs.h <<_ACEOF
9427#define SIZEOF_LONG $ac_cv_sizeof_long
9428_ACEOF
9429
9430
9431# The cast to long int works around a bug in the HP C Compiler
9432# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9433# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9434# This bug is HP SR number 8606223364.
9435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
9436$as_echo_n "checking size of long long... " >&6; }
9437if ${ac_cv_sizeof_long_long+:} false; then :
9438  $as_echo_n "(cached) " >&6
9439else
9440  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
9441
9442else
9443  if test "$ac_cv_type_long_long" = yes; then
9444     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9445$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9446as_fn_error 77 "cannot compute sizeof (long long)
9447See \`config.log' for more details" "$LINENO" 5; }
9448   else
9449     ac_cv_sizeof_long_long=0
9450   fi
9451fi
9452
9453fi
9454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
9455$as_echo "$ac_cv_sizeof_long_long" >&6; }
9456
9457
9458
9459cat >>confdefs.h <<_ACEOF
9460#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9461_ACEOF
9462
9463
9464# The cast to long int works around a bug in the HP C Compiler
9465# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9466# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9467# This bug is HP SR number 8606223364.
9468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
9469$as_echo_n "checking size of float... " >&6; }
9470if ${ac_cv_sizeof_float+:} false; then :
9471  $as_echo_n "(cached) " >&6
9472else
9473  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
9474
9475else
9476  if test "$ac_cv_type_float" = yes; then
9477     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9479as_fn_error 77 "cannot compute sizeof (float)
9480See \`config.log' for more details" "$LINENO" 5; }
9481   else
9482     ac_cv_sizeof_float=0
9483   fi
9484fi
9485
9486fi
9487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
9488$as_echo "$ac_cv_sizeof_float" >&6; }
9489
9490
9491
9492cat >>confdefs.h <<_ACEOF
9493#define SIZEOF_FLOAT $ac_cv_sizeof_float
9494_ACEOF
9495
9496
9497# The cast to long int works around a bug in the HP C Compiler
9498# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9499# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9500# This bug is HP SR number 8606223364.
9501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
9502$as_echo_n "checking size of double... " >&6; }
9503if ${ac_cv_sizeof_double+:} false; then :
9504  $as_echo_n "(cached) " >&6
9505else
9506  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
9507
9508else
9509  if test "$ac_cv_type_double" = yes; then
9510     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9512as_fn_error 77 "cannot compute sizeof (double)
9513See \`config.log' for more details" "$LINENO" 5; }
9514   else
9515     ac_cv_sizeof_double=0
9516   fi
9517fi
9518
9519fi
9520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
9521$as_echo "$ac_cv_sizeof_double" >&6; }
9522
9523
9524
9525cat >>confdefs.h <<_ACEOF
9526#define SIZEOF_DOUBLE $ac_cv_sizeof_double
9527_ACEOF
9528
9529
9530# The cast to long int works around a bug in the HP C Compiler
9531# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9532# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9533# This bug is HP SR number 8606223364.
9534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
9535$as_echo_n "checking size of long double... " >&6; }
9536if ${ac_cv_sizeof_long_double+:} false; then :
9537  $as_echo_n "(cached) " >&6
9538else
9539  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
9540
9541else
9542  if test "$ac_cv_type_long_double" = yes; then
9543     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9544$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9545as_fn_error 77 "cannot compute sizeof (long double)
9546See \`config.log' for more details" "$LINENO" 5; }
9547   else
9548     ac_cv_sizeof_long_double=0
9549   fi
9550fi
9551
9552fi
9553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
9554$as_echo "$ac_cv_sizeof_long_double" >&6; }
9555
9556
9557
9558cat >>confdefs.h <<_ACEOF
9559#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
9560_ACEOF
9561
9562
9563# The cast to long int works around a bug in the HP C Compiler
9564# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9565# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9566# This bug is HP SR number 8606223364.
9567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
9568$as_echo_n "checking size of void *... " >&6; }
9569if ${ac_cv_sizeof_void_p+:} false; then :
9570  $as_echo_n "(cached) " >&6
9571else
9572  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
9573
9574else
9575  if test "$ac_cv_type_void_p" = yes; then
9576     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9577$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9578as_fn_error 77 "cannot compute sizeof (void *)
9579See \`config.log' for more details" "$LINENO" 5; }
9580   else
9581     ac_cv_sizeof_void_p=0
9582   fi
9583fi
9584
9585fi
9586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
9587$as_echo "$ac_cv_sizeof_void_p" >&6; }
9588
9589
9590
9591cat >>confdefs.h <<_ACEOF
9592#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
9593_ACEOF
9594
9595
9596ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9597if test "x$ac_cv_type_off_t" = xyes; then :
9598
9599else
9600
9601cat >>confdefs.h <<_ACEOF
9602#define off_t long int
9603_ACEOF
9604
9605fi
9606
9607ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
9608if test "x$ac_cv_type_loff_t" = xyes; then :
9609
9610else
9611
9612cat >>confdefs.h <<_ACEOF
9613#define loff_t off_t
9614_ACEOF
9615
9616fi
9617
9618ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9619if test "x$ac_cv_type_size_t" = xyes; then :
9620
9621else
9622
9623cat >>confdefs.h <<_ACEOF
9624#define size_t unsigned int
9625_ACEOF
9626
9627fi
9628
9629ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9630if test "x$ac_cv_type_ssize_t" = xyes; then :
9631
9632else
9633
9634cat >>confdefs.h <<_ACEOF
9635#define ssize_t size_t
9636_ACEOF
9637
9638fi
9639
9640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9641$as_echo_n "checking return type of signal handlers... " >&6; }
9642if ${ac_cv_type_signal+:} false; then :
9643  $as_echo_n "(cached) " >&6
9644else
9645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9646/* end confdefs.h.  */
9647#include <sys/types.h>
9648#include <signal.h>
9649
9650int
9651main ()
9652{
9653return *(signal (0, 0)) (0) == 1;
9654  ;
9655  return 0;
9656}
9657_ACEOF
9658if ac_fn_c_try_compile "$LINENO"; then :
9659  ac_cv_type_signal=int
9660else
9661  ac_cv_type_signal=void
9662fi
9663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9664fi
9665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9666$as_echo "$ac_cv_type_signal" >&6; }
9667
9668cat >>confdefs.h <<_ACEOF
9669#define RETSIGTYPE $ac_cv_type_signal
9670_ACEOF
9671
9672
9673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9674$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9675if ${ac_cv_header_time+:} false; then :
9676  $as_echo_n "(cached) " >&6
9677else
9678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9679/* end confdefs.h.  */
9680#include <sys/types.h>
9681#include <sys/time.h>
9682#include <time.h>
9683
9684int
9685main ()
9686{
9687if ((struct tm *) 0)
9688return 0;
9689  ;
9690  return 0;
9691}
9692_ACEOF
9693if ac_fn_c_try_compile "$LINENO"; then :
9694  ac_cv_header_time=yes
9695else
9696  ac_cv_header_time=no
9697fi
9698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9699fi
9700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9701$as_echo "$ac_cv_header_time" >&6; }
9702if test $ac_cv_header_time = yes; then
9703
9704$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9705
9706fi
9707
9708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
9709$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
9710if ${ac_cv_struct_tm+:} false; then :
9711  $as_echo_n "(cached) " >&6
9712else
9713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714/* end confdefs.h.  */
9715#include <sys/types.h>
9716#include <time.h>
9717
9718int
9719main ()
9720{
9721struct tm tm;
9722				     int *p = &tm.tm_sec;
9723				     return !p;
9724  ;
9725  return 0;
9726}
9727_ACEOF
9728if ac_fn_c_try_compile "$LINENO"; then :
9729  ac_cv_struct_tm=time.h
9730else
9731  ac_cv_struct_tm=sys/time.h
9732fi
9733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9734fi
9735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
9736$as_echo "$ac_cv_struct_tm" >&6; }
9737if test $ac_cv_struct_tm = sys/time.h; then
9738
9739$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
9740
9741fi
9742
9743# Check whether --enable-largefile was given.
9744if test "${enable_largefile+set}" = set; then :
9745  enableval=$enable_largefile;
9746fi
9747
9748if test "$enable_largefile" != no; then
9749
9750  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9751$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9752if ${ac_cv_sys_largefile_CC+:} false; then :
9753  $as_echo_n "(cached) " >&6
9754else
9755  ac_cv_sys_largefile_CC=no
9756     if test "$GCC" != yes; then
9757       ac_save_CC=$CC
9758       while :; do
9759	 # IRIX 6.2 and later do not support large files by default,
9760	 # so use the C compiler's -n32 option if that helps.
9761	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9762/* end confdefs.h.  */
9763#include <sys/types.h>
9764 /* Check that off_t can represent 2**63 - 1 correctly.
9765    We can't simply define LARGE_OFF_T to be 9223372036854775807,
9766    since some C++ compilers masquerading as C compilers
9767    incorrectly reject 9223372036854775807.  */
9768#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
9769  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9770		       && LARGE_OFF_T % 2147483647 == 1)
9771		      ? 1 : -1];
9772int
9773main ()
9774{
9775
9776  ;
9777  return 0;
9778}
9779_ACEOF
9780	 if ac_fn_c_try_compile "$LINENO"; then :
9781  break
9782fi
9783rm -f core conftest.err conftest.$ac_objext
9784	 CC="$CC -n32"
9785	 if ac_fn_c_try_compile "$LINENO"; then :
9786  ac_cv_sys_largefile_CC=' -n32'; break
9787fi
9788rm -f core conftest.err conftest.$ac_objext
9789	 break
9790       done
9791       CC=$ac_save_CC
9792       rm -f conftest.$ac_ext
9793    fi
9794fi
9795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
9796$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9797  if test "$ac_cv_sys_largefile_CC" != no; then
9798    CC=$CC$ac_cv_sys_largefile_CC
9799  fi
9800
9801  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9802$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
9803if ${ac_cv_sys_file_offset_bits+:} false; then :
9804  $as_echo_n "(cached) " >&6
9805else
9806  while :; do
9807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9808/* end confdefs.h.  */
9809#include <sys/types.h>
9810 /* Check that off_t can represent 2**63 - 1 correctly.
9811    We can't simply define LARGE_OFF_T to be 9223372036854775807,
9812    since some C++ compilers masquerading as C compilers
9813    incorrectly reject 9223372036854775807.  */
9814#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
9815  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9816		       && LARGE_OFF_T % 2147483647 == 1)
9817		      ? 1 : -1];
9818int
9819main ()
9820{
9821
9822  ;
9823  return 0;
9824}
9825_ACEOF
9826if ac_fn_c_try_compile "$LINENO"; then :
9827  ac_cv_sys_file_offset_bits=no; break
9828fi
9829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9831/* end confdefs.h.  */
9832#define _FILE_OFFSET_BITS 64
9833#include <sys/types.h>
9834 /* Check that off_t can represent 2**63 - 1 correctly.
9835    We can't simply define LARGE_OFF_T to be 9223372036854775807,
9836    since some C++ compilers masquerading as C compilers
9837    incorrectly reject 9223372036854775807.  */
9838#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
9839  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9840		       && LARGE_OFF_T % 2147483647 == 1)
9841		      ? 1 : -1];
9842int
9843main ()
9844{
9845
9846  ;
9847  return 0;
9848}
9849_ACEOF
9850if ac_fn_c_try_compile "$LINENO"; then :
9851  ac_cv_sys_file_offset_bits=64; break
9852fi
9853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9854  ac_cv_sys_file_offset_bits=unknown
9855  break
9856done
9857fi
9858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
9859$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9860case $ac_cv_sys_file_offset_bits in #(
9861  no | unknown) ;;
9862  *)
9863cat >>confdefs.h <<_ACEOF
9864#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9865_ACEOF
9866;;
9867esac
9868rm -rf conftest*
9869  if test $ac_cv_sys_file_offset_bits = unknown; then
9870    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
9871$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
9872if ${ac_cv_sys_large_files+:} false; then :
9873  $as_echo_n "(cached) " >&6
9874else
9875  while :; do
9876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9877/* end confdefs.h.  */
9878#include <sys/types.h>
9879 /* Check that off_t can represent 2**63 - 1 correctly.
9880    We can't simply define LARGE_OFF_T to be 9223372036854775807,
9881    since some C++ compilers masquerading as C compilers
9882    incorrectly reject 9223372036854775807.  */
9883#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
9884  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9885		       && LARGE_OFF_T % 2147483647 == 1)
9886		      ? 1 : -1];
9887int
9888main ()
9889{
9890
9891  ;
9892  return 0;
9893}
9894_ACEOF
9895if ac_fn_c_try_compile "$LINENO"; then :
9896  ac_cv_sys_large_files=no; break
9897fi
9898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9900/* end confdefs.h.  */
9901#define _LARGE_FILES 1
9902#include <sys/types.h>
9903 /* Check that off_t can represent 2**63 - 1 correctly.
9904    We can't simply define LARGE_OFF_T to be 9223372036854775807,
9905    since some C++ compilers masquerading as C compilers
9906    incorrectly reject 9223372036854775807.  */
9907#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
9908  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9909		       && LARGE_OFF_T % 2147483647 == 1)
9910		      ? 1 : -1];
9911int
9912main ()
9913{
9914
9915  ;
9916  return 0;
9917}
9918_ACEOF
9919if ac_fn_c_try_compile "$LINENO"; then :
9920  ac_cv_sys_large_files=1; break
9921fi
9922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9923  ac_cv_sys_large_files=unknown
9924  break
9925done
9926fi
9927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9928$as_echo "$ac_cv_sys_large_files" >&6; }
9929case $ac_cv_sys_large_files in #(
9930  no | unknown) ;;
9931  *)
9932cat >>confdefs.h <<_ACEOF
9933#define _LARGE_FILES $ac_cv_sys_large_files
9934_ACEOF
9935;;
9936esac
9937rm -rf conftest*
9938  fi
9939
9940
9941fi
9942
9943
9944 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
9945"
9946if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
9947
9948cat >>confdefs.h <<_ACEOF
9949#define HAVE_STRUCT_TM_TM_GMTOFF 1
9950_ACEOF
9951
9952
9953fi
9954
9955
9956
9957  for ac_header in sys/time.h
9958do :
9959  ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
9960if test "x$ac_cv_header_sys_time_h" = xyes; then :
9961  cat >>confdefs.h <<_ACEOF
9962#define HAVE_SYS_TIME_H 1
9963_ACEOF
9964
9965fi
9966
9967done
9968
9969
9970  ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
9971     #include <sys/stat.h>
9972"
9973if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
9974
9975cat >>confdefs.h <<_ACEOF
9976#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
9977_ACEOF
9978
9979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
9980$as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
9981if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then :
9982  $as_echo_n "(cached) " >&6
9983else
9984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9985/* end confdefs.h.  */
9986
9987            #include <sys/types.h>
9988            #include <sys/stat.h>
9989            #if HAVE_SYS_TIME_H
9990            # include <sys/time.h>
9991            #endif
9992            #include <time.h>
9993            struct timespec ts;
9994            struct stat st;
9995
9996int
9997main ()
9998{
9999
10000            st.st_atim = ts;
10001
10002  ;
10003  return 0;
10004}
10005_ACEOF
10006if ac_fn_c_try_compile "$LINENO"; then :
10007  ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
10008else
10009  ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
10010fi
10011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10012fi
10013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
10014$as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
10015     if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
10016
10017$as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
10018
10019     fi
10020else
10021  ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
10022        #include <sys/stat.h>
10023"
10024if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
10025
10026cat >>confdefs.h <<_ACEOF
10027#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
10028_ACEOF
10029
10030
10031else
10032  ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
10033           #include <sys/stat.h>
10034"
10035if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
10036
10037cat >>confdefs.h <<_ACEOF
10038#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
10039_ACEOF
10040
10041
10042else
10043  ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
10044              #include <sys/stat.h>
10045"
10046if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then :
10047
10048cat >>confdefs.h <<_ACEOF
10049#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
10050_ACEOF
10051
10052
10053fi
10054
10055fi
10056
10057fi
10058
10059fi
10060
10061
10062
10063
10064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
10065$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
10066if ${ac_cv_cxx_bool+:} false; then :
10067  $as_echo_n "(cached) " >&6
10068else
10069
10070    ac_ext=cpp
10071ac_cpp='$CXXCPP $CPPFLAGS'
10072ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10073ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10074ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10075
10076    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10077/* end confdefs.h.  */
10078
10079  int f(int  x){return 1;}
10080  int f(char x){return 1;}
10081  int f(bool x){return 1;}
10082
10083int
10084main ()
10085{
10086bool b = true; return f(b);
10087  ;
10088  return 0;
10089}
10090_ACEOF
10091if ac_fn_cxx_try_compile "$LINENO"; then :
10092  ac_cv_cxx_bool=yes
10093else
10094  ac_cv_cxx_bool=no
10095fi
10096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10097  ac_ext=c
10098ac_cpp='$CPP $CPPFLAGS'
10099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10101ac_compiler_gnu=$ac_cv_c_compiler_gnu
10102
10103
10104fi
10105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_bool" >&5
10106$as_echo "$ac_cv_cxx_bool" >&6; }
10107  if test "$ac_cv_cxx_bool" = yes; then
10108
10109$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
10110
10111  fi
10112
10113
10114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
10115$as_echo_n "checking for sin in -lm... " >&6; }
10116if ${ac_cv_lib_m_sin+:} false; then :
10117  $as_echo_n "(cached) " >&6
10118else
10119  ac_check_lib_save_LIBS=$LIBS
10120LIBS="-lm  $LIBS"
10121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10122/* end confdefs.h.  */
10123
10124/* Override any GCC internal prototype to avoid an error.
10125   Use char because int might match the return type of a GCC
10126   builtin and then its argument prototype would still apply.  */
10127#ifdef __cplusplus
10128extern "C"
10129#endif
10130char sin ();
10131int
10132main ()
10133{
10134return sin ();
10135  ;
10136  return 0;
10137}
10138_ACEOF
10139if ac_fn_c_try_link "$LINENO"; then :
10140  ac_cv_lib_m_sin=yes
10141else
10142  ac_cv_lib_m_sin=no
10143fi
10144rm -f core conftest.err conftest.$ac_objext \
10145    conftest$ac_exeext conftest.$ac_ext
10146LIBS=$ac_check_lib_save_LIBS
10147fi
10148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
10149$as_echo "$ac_cv_lib_m_sin" >&6; }
10150if test "x$ac_cv_lib_m_sin" = xyes; then :
10151  LIBS="$LIBS -lm"
10152fi
10153
10154
10155for ac_func in strdup
10156do :
10157  ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
10158if test "x$ac_cv_func_strdup" = xyes; then :
10159  cat >>confdefs.h <<_ACEOF
10160#define HAVE_STRDUP 1
10161_ACEOF
10162
10163fi
10164done
10165
10166for ac_func in sigaction signal sigsetjmp
10167do :
10168  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10169ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10170if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10171  cat >>confdefs.h <<_ACEOF
10172#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10173_ACEOF
10174
10175fi
10176done
10177
10178for ac_func in mmap mprotect munmap
10179do :
10180  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10181ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10182if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10183  cat >>confdefs.h <<_ACEOF
10184#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10185_ACEOF
10186
10187fi
10188done
10189
10190for ac_func in vm_allocate vm_deallocate vm_protect sbrk
10191do :
10192  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10193ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10194if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10195  cat >>confdefs.h <<_ACEOF
10196#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10197_ACEOF
10198
10199fi
10200done
10201
10202for ac_func in strchr memcpy bcopy
10203do :
10204  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10205ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10206if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10207  cat >>confdefs.h <<_ACEOF
10208#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10209_ACEOF
10210
10211fi
10212done
10213
10214for ac_func in usleep gettimeofday
10215do :
10216  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10217ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10218if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10219  cat >>confdefs.h <<_ACEOF
10220#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10221_ACEOF
10222
10223fi
10224done
10225
10226for ac_func in fseeko fsync futimes futimens link readlink symlink lstat truncate pathconf
10227do :
10228  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10229ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10230if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10231  cat >>confdefs.h <<_ACEOF
10232#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10233_ACEOF
10234
10235fi
10236done
10237
10238for ac_func in canonicalize_file_name realpath
10239do :
10240  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10241ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10242if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10243  cat >>confdefs.h <<_ACEOF
10244#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10245_ACEOF
10246
10247fi
10248done
10249
10250
10251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sigsetjmp is supported" >&5
10252$as_echo_n "checking whether sigsetjmp is supported... " >&6; }
10253if ${ac_cv_have_sigsetjmp+:} false; then :
10254  $as_echo_n "(cached) " >&6
10255else
10256
10257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10258/* end confdefs.h.  */
10259
10260    #include <signal.h>
10261    #include <setjmp.h>
10262
10263int
10264main ()
10265{
10266
10267    sigjmp_buf b;
10268    sigsetjmp(b, 1);
10269    siglongjmp(b, 1);
10270
10271  ;
10272  return 0;
10273}
10274_ACEOF
10275if ac_fn_c_try_link "$LINENO"; then :
10276  ac_cv_have_sigsetjmp=yes
10277else
10278  ac_cv_have_sigsetjmp=no
10279
10280fi
10281rm -f core conftest.err conftest.$ac_objext \
10282    conftest$ac_exeext conftest.$ac_ext
10283
10284fi
10285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sigsetjmp" >&5
10286$as_echo "$ac_cv_have_sigsetjmp" >&6; }
10287if test "$ac_cv_have_sigsetjmp" = "yes"; then
10288  $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
10289
10290fi
10291
10292for ac_func in mach_task_self task_self
10293do :
10294  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10295ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10296if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10297  cat >>confdefs.h <<_ACEOF
10298#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10299_ACEOF
10300
10301fi
10302done
10303
10304
10305
10306$as_echo "#define DIRSEPARATOR \"/\"" >>confdefs.h
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316if test "$OS_TYPE" = "linux"; then
10317   for ac_header in libudev.h
10318do :
10319  ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
10320if test "x$ac_cv_header_libudev_h" = xyes; then :
10321  cat >>confdefs.h <<_ACEOF
10322#define HAVE_LIBUDEV_H 1
10323_ACEOF
10324
10325fi
10326
10327done
10328
10329   if test "$ac_cv_header_libudev_h" = yes; then
10330      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev_monitor_new_from_netlink in -ludev" >&5
10331$as_echo_n "checking for udev_monitor_new_from_netlink in -ludev... " >&6; }
10332if ${ac_cv_lib_udev_udev_monitor_new_from_netlink+:} false; then :
10333  $as_echo_n "(cached) " >&6
10334else
10335  ac_check_lib_save_LIBS=$LIBS
10336LIBS="-ludev  $LIBS"
10337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10338/* end confdefs.h.  */
10339
10340/* Override any GCC internal prototype to avoid an error.
10341   Use char because int might match the return type of a GCC
10342   builtin and then its argument prototype would still apply.  */
10343#ifdef __cplusplus
10344extern "C"
10345#endif
10346char udev_monitor_new_from_netlink ();
10347int
10348main ()
10349{
10350return udev_monitor_new_from_netlink ();
10351  ;
10352  return 0;
10353}
10354_ACEOF
10355if ac_fn_c_try_link "$LINENO"; then :
10356  ac_cv_lib_udev_udev_monitor_new_from_netlink=yes
10357else
10358  ac_cv_lib_udev_udev_monitor_new_from_netlink=no
10359fi
10360rm -f core conftest.err conftest.$ac_objext \
10361    conftest$ac_exeext conftest.$ac_ext
10362LIBS=$ac_check_lib_save_LIBS
10363fi
10364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udev_udev_monitor_new_from_netlink" >&5
10365$as_echo "$ac_cv_lib_udev_udev_monitor_new_from_netlink" >&6; }
10366if test "x$ac_cv_lib_udev_udev_monitor_new_from_netlink" = xyes; then :
10367  LIBS="$LIBS -ludev"
10368fi
10369
10370      if test $ac_cv_lib_udev_udev_monitor_new_from_netlink = yes; then
10371        $as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
10372
10373      fi
10374   fi
10375fi
10376
10377case "$host_os" in
10378  linux*)
10379    ;;
10380  cygwin*|mingw*)
10381    $as_echo "#define ARANYMHOME \"aranym\"" >>confdefs.h
10382
10383    ;;
10384  solaris*)
10385
10386$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
10387
10388
10389$as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
10390
10391    DEFINES="$DEFINES -DBSD_COMP -D__EXTENSIONS__"
10392    ;;
10393  freebsd*|kfreebsd*-gnu)
10394    $as_echo "#define HAVE_O_FSYNC 1" >>confdefs.h
10395
10396    ;;
10397  darwin*)
10398	$as_echo "#define HAVE_O_FSYNC 1" >>confdefs.h
10399
10400	if test "x$WITH_FINK" = "xyes"; then
10401		$as_echo "#define ARANYMHOME \"aranym\"" >>confdefs.h
10402
10403	else
10404		$as_echo "#define ARANYMHOME \"ARAnyM\"" >>confdefs.h
10405
10406
10407		if test "x$WITH_CLASSIC_CONFIG" = "xyes"; then
10408			echo "Using classic config"
10409			$as_echo "#define ARANYMCONFIG \"config\"" >>confdefs.h
10410
10411			$as_echo "#define ARANYMNVRAM \"nvram\"" >>confdefs.h
10412
10413			$as_echo "#define ARANYMKEYMAP \"keymap\"" >>confdefs.h
10414
10415		else
10416			echo "Using preference files"
10417			$as_echo "#define ARANYMCONFIG \"org.aranym.amcfg\"" >>confdefs.h
10418
10419			$as_echo "#define ARANYMNVRAM \"org.aranym.nvram\"" >>confdefs.h
10420
10421			$as_echo "#define ARANYMKEYMAP \"org.aranym.keymap\"" >>confdefs.h
10422
10423		fi
10424
10425		BUNDLE_FRAMEWORKS=
10426
10427    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports framework AppKit" >&5
10428$as_echo_n "checking whether compiler supports framework AppKit... " >&6; }
10429if ${aranym_cv_have_framework_AppKit+:} false; then :
10430  $as_echo_n "(cached) " >&6
10431else
10432
10433    saved_LIBS="$LIBS"
10434    LIBS="$LIBS -framework AppKit"
10435    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10436/* end confdefs.h.  */
10437
10438int
10439main ()
10440{
10441
10442  ;
10443  return 0;
10444}
10445_ACEOF
10446if ac_fn_c_try_link "$LINENO"; then :
10447  aranym_cv_have_framework_AppKit=yes; AppKit_LIBS=" -framework AppKit"
10448else
10449  aranym_cv_have_framework_AppKit=no
10450
10451fi
10452rm -f core conftest.err conftest.$ac_objext \
10453    conftest$ac_exeext conftest.$ac_ext
10454    LIBS="$saved_LIBS"
10455
10456fi
10457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $aranym_cv_have_framework_AppKit" >&5
10458$as_echo "$aranym_cv_have_framework_AppKit" >&6; }
10459  if test $aranym_cv_have_framework_AppKit = yes; then :
10460
10461$as_echo "#define HAVE_FRAMEWORK_APPKIT 1" >>confdefs.h
10462
10463
10464fi
10465  have_framework_AppKit=$aranym_cv_have_framework_AppKit
10466
10467
10468    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports framework CoreFoundation" >&5
10469$as_echo_n "checking whether compiler supports framework CoreFoundation... " >&6; }
10470if ${aranym_cv_have_framework_CoreFoundation+:} false; then :
10471  $as_echo_n "(cached) " >&6
10472else
10473
10474    saved_LIBS="$LIBS"
10475    LIBS="$LIBS -framework CoreFoundation"
10476    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10477/* end confdefs.h.  */
10478#include <CoreFoundation/CoreFoundation.h>
10479int
10480main ()
10481{
10482
10483  ;
10484  return 0;
10485}
10486_ACEOF
10487if ac_fn_c_try_link "$LINENO"; then :
10488  aranym_cv_have_framework_CoreFoundation=yes; CoreFoundation_LIBS=" -framework CoreFoundation"
10489else
10490  aranym_cv_have_framework_CoreFoundation=no
10491
10492fi
10493rm -f core conftest.err conftest.$ac_objext \
10494    conftest$ac_exeext conftest.$ac_ext
10495    LIBS="$saved_LIBS"
10496
10497fi
10498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $aranym_cv_have_framework_CoreFoundation" >&5
10499$as_echo "$aranym_cv_have_framework_CoreFoundation" >&6; }
10500  if test $aranym_cv_have_framework_CoreFoundation = yes; then :
10501
10502$as_echo "#define HAVE_FRAMEWORK_COREFOUNDATION 1" >>confdefs.h
10503
10504
10505fi
10506  have_framework_CoreFoundation=$aranym_cv_have_framework_CoreFoundation
10507
10508
10509    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports framework IOKit" >&5
10510$as_echo_n "checking whether compiler supports framework IOKit... " >&6; }
10511if ${aranym_cv_have_framework_IOKit+:} false; then :
10512  $as_echo_n "(cached) " >&6
10513else
10514
10515    saved_LIBS="$LIBS"
10516    LIBS="$LIBS -framework IOKit"
10517    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10518/* end confdefs.h.  */
10519#include <IOKit/IOKitLib.h>
10520int
10521main ()
10522{
10523
10524  ;
10525  return 0;
10526}
10527_ACEOF
10528if ac_fn_c_try_link "$LINENO"; then :
10529  aranym_cv_have_framework_IOKit=yes; IOKit_LIBS=" -framework IOKit"
10530else
10531  aranym_cv_have_framework_IOKit=no
10532
10533fi
10534rm -f core conftest.err conftest.$ac_objext \
10535    conftest$ac_exeext conftest.$ac_ext
10536    LIBS="$saved_LIBS"
10537
10538fi
10539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $aranym_cv_have_framework_IOKit" >&5
10540$as_echo "$aranym_cv_have_framework_IOKit" >&6; }
10541  if test $aranym_cv_have_framework_IOKit = yes; then :
10542
10543$as_echo "#define HAVE_FRAMEWORK_IOKIT 1" >>confdefs.h
10544
10545
10546fi
10547  have_framework_IOKit=$aranym_cv_have_framework_IOKit
10548
10549
10550    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports framework Security" >&5
10551$as_echo_n "checking whether compiler supports framework Security... " >&6; }
10552if ${aranym_cv_have_framework_Security+:} false; then :
10553  $as_echo_n "(cached) " >&6
10554else
10555
10556    saved_LIBS="$LIBS"
10557    LIBS="$LIBS -framework Security"
10558    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10559/* end confdefs.h.  */
10560#include <Security/Security.h>
10561int
10562main ()
10563{
10564
10565  ;
10566  return 0;
10567}
10568_ACEOF
10569if ac_fn_c_try_link "$LINENO"; then :
10570  aranym_cv_have_framework_Security=yes; Security_LIBS=" -framework Security"
10571else
10572  aranym_cv_have_framework_Security=no
10573
10574fi
10575rm -f core conftest.err conftest.$ac_objext \
10576    conftest$ac_exeext conftest.$ac_ext
10577    LIBS="$saved_LIBS"
10578
10579fi
10580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $aranym_cv_have_framework_Security" >&5
10581$as_echo "$aranym_cv_have_framework_Security" >&6; }
10582  if test $aranym_cv_have_framework_Security = yes; then :
10583
10584$as_echo "#define HAVE_FRAMEWORK_SECURITY 1" >>confdefs.h
10585
10586
10587fi
10588  have_framework_Security=$aranym_cv_have_framework_Security
10589
10590
10591                PKG_CONFIG=""
10592
10593	fi
10594	;;
10595  beos*|haiku*)
10596        # Extract the first word of "xres", so it can be a program name with args.
10597set dummy xres; ac_word=$2
10598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10599$as_echo_n "checking for $ac_word... " >&6; }
10600if ${ac_cv_path_BEOS_XRES+:} false; then :
10601  $as_echo_n "(cached) " >&6
10602else
10603  case $BEOS_XRES in
10604  [\\/]* | ?:[\\/]*)
10605  ac_cv_path_BEOS_XRES="$BEOS_XRES" # Let the user override the test with a path.
10606  ;;
10607  *)
10608  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10609for as_dir in $PATH
10610do
10611  IFS=$as_save_IFS
10612  test -z "$as_dir" && as_dir=.
10613    for ac_exec_ext in '' $ac_executable_extensions; do
10614  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10615    ac_cv_path_BEOS_XRES="$as_dir/$ac_word$ac_exec_ext"
10616    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10617    break 2
10618  fi
10619done
10620  done
10621IFS=$as_save_IFS
10622
10623  test -z "$ac_cv_path_BEOS_XRES" && ac_cv_path_BEOS_XRES="as_fn_error $? "xres not found." "$LINENO" 5"
10624  ;;
10625esac
10626fi
10627BEOS_XRES=$ac_cv_path_BEOS_XRES
10628if test -n "$BEOS_XRES"; then
10629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BEOS_XRES" >&5
10630$as_echo "$BEOS_XRES" >&6; }
10631else
10632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10633$as_echo "no" >&6; }
10634fi
10635
10636
10637    # Extract the first word of "rc", so it can be a program name with args.
10638set dummy rc; ac_word=$2
10639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10640$as_echo_n "checking for $ac_word... " >&6; }
10641if ${ac_cv_path_BEOS_RC+:} false; then :
10642  $as_echo_n "(cached) " >&6
10643else
10644  case $BEOS_RC in
10645  [\\/]* | ?:[\\/]*)
10646  ac_cv_path_BEOS_RC="$BEOS_RC" # Let the user override the test with a path.
10647  ;;
10648  *)
10649  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10650for as_dir in $PATH
10651do
10652  IFS=$as_save_IFS
10653  test -z "$as_dir" && as_dir=.
10654    for ac_exec_ext in '' $ac_executable_extensions; do
10655  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10656    ac_cv_path_BEOS_RC="$as_dir/$ac_word$ac_exec_ext"
10657    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10658    break 2
10659  fi
10660done
10661  done
10662IFS=$as_save_IFS
10663
10664  test -z "$ac_cv_path_BEOS_RC" && ac_cv_path_BEOS_RC="as_fn_error $? "rc not found." "$LINENO" 5"
10665  ;;
10666esac
10667fi
10668BEOS_RC=$ac_cv_path_BEOS_RC
10669if test -n "$BEOS_RC"; then
10670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BEOS_RC" >&5
10671$as_echo "$BEOS_RC" >&6; }
10672else
10673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10674$as_echo "no" >&6; }
10675fi
10676
10677
10678    # Extract the first word of "setversion", so it can be a program name with args.
10679set dummy setversion; ac_word=$2
10680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10681$as_echo_n "checking for $ac_word... " >&6; }
10682if ${ac_cv_path_BEOS_SETVERSION+:} false; then :
10683  $as_echo_n "(cached) " >&6
10684else
10685  case $BEOS_SETVERSION in
10686  [\\/]* | ?:[\\/]*)
10687  ac_cv_path_BEOS_SETVERSION="$BEOS_SETVERSION" # Let the user override the test with a path.
10688  ;;
10689  *)
10690  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10691for as_dir in $PATH
10692do
10693  IFS=$as_save_IFS
10694  test -z "$as_dir" && as_dir=.
10695    for ac_exec_ext in '' $ac_executable_extensions; do
10696  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10697    ac_cv_path_BEOS_SETVERSION="$as_dir/$ac_word$ac_exec_ext"
10698    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10699    break 2
10700  fi
10701done
10702  done
10703IFS=$as_save_IFS
10704
10705  test -z "$ac_cv_path_BEOS_SETVERSION" && ac_cv_path_BEOS_SETVERSION="as_fn_error $? "setversion not found." "$LINENO" 5"
10706  ;;
10707esac
10708fi
10709BEOS_SETVERSION=$ac_cv_path_BEOS_SETVERSION
10710if test -n "$BEOS_SETVERSION"; then
10711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BEOS_SETVERSION" >&5
10712$as_echo "$BEOS_SETVERSION" >&6; }
10713else
10714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10715$as_echo "no" >&6; }
10716fi
10717
10718
10719    WANT_UNIXSERIALPORT=no
10720    ac_cv_tun_tap_support=no
10721    ;;
10722  *)
10723    ;;
10724esac
10725
10726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TUN/TAP is supported" >&5
10727$as_echo_n "checking whether TUN/TAP is supported... " >&6; }
10728if ${ac_cv_tun_tap_support+:} false; then :
10729  $as_echo_n "(cached) " >&6
10730else
10731
10732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10733/* end confdefs.h.  */
10734
10735    #if defined(HAVE_LINUX_IF_H) && defined(HAVE_LINUX_IF_TUN_H)
10736    #ifdef HAVE_SYS_SOCKET_H
10737    #include <sys/socket.h>
10738    #endif
10739    #include <linux/if.h>
10740    #include <linux/if_tun.h>
10741    #endif
10742    #if defined(HAVE_NET_IF_H) && defined(HAVE_NET_IF_TUN_H)
10743    #include <net/if.h>
10744    #include <net/if_tun.h>
10745    #endif
10746
10747int
10748main ()
10749{
10750
10751    struct ifreq ifr;
10752    memset(&ifr, 0, sizeof(ifr));
10753    ifr.ifr_flags = IFF_TAP | IFF_NO_PI;
10754
10755  ;
10756  return 0;
10757}
10758_ACEOF
10759if ac_fn_c_try_compile "$LINENO"; then :
10760  ac_cv_tun_tap_support=yes
10761else
10762  ac_cv_tun_tap_support=no
10763
10764fi
10765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10766
10767fi
10768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tun_tap_support" >&5
10769$as_echo "$ac_cv_tun_tap_support" >&6; }
10770
10771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BPF is supported" >&5
10772$as_echo_n "checking whether BPF is supported... " >&6; }
10773if ${ac_cv_bpf_support+:} false; then :
10774  $as_echo_n "(cached) " >&6
10775else
10776
10777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10778/* end confdefs.h.  */
10779
10780    #if defined(HAVE_NET_BPF_H)
10781    #include <net/bpf.h>
10782    #endif
10783
10784int
10785main ()
10786{
10787
10788    struct bpf_program filter;
10789
10790  ;
10791  return 0;
10792}
10793_ACEOF
10794if ac_fn_c_try_compile "$LINENO"; then :
10795  ac_cv_bpf_support=yes
10796else
10797  ac_cv_bpf_support=no
10798
10799fi
10800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10801
10802fi
10803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_bpf_support" >&5
10804$as_echo "$ac_cv_bpf_support" >&6; }
10805
10806
10807have_mach_vm=no
10808if [ "x$ac_cv_func_vm_allocate" = "xyes" -a "x$ac_cv_func_vm_deallocate" = "xyes" -a \
10809      "x$ac_cv_func_vm_protect" = "xyes" ]; then
10810  have_mach_vm=yes
10811fi
10812
10813    if [ "x$have_mach_vm" = "xyes" -o "x$have_mach_vm" = "xguessing yes" ]; then
10814
10815$as_echo "#define HAVE_MACH_VM 1" >>confdefs.h
10816
10817    fi
10818
10819
10820case "$host_os" in
10821  darwin*)	OSdarwinReq="#define OS_darwin";;
10822  *)		OSdarwinReq= ;;
10823esac
10824
10825if [ "x$have_mach_vm" = "xyes" ]; then
10826
10827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vm_protect works" >&5
10828$as_echo_n "checking whether vm_protect works... " >&6; }
10829if ${ac_cv_vm_protect_works+:} false; then :
10830  $as_echo_n "(cached) " >&6
10831else
10832
10833
10834  ac_ext=cpp
10835ac_cpp='$CXXCPP $CPPFLAGS'
10836ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10837ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10838ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10839
10840  ac_cv_vm_protect_works=yes
10841    for test_def in NONE_READ NONE_WRITE READ_WRITE; do
10842    if test "$cross_compiling" = yes; then :
10843      ac_cv_vm_protect_works="guessing no"
10844
10845else
10846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10847/* end confdefs.h.  */
10848
10849      #define CONFIGURE_TEST_VM_MAP
10850      #define TEST_VM_PROT_$test_def
10851	  $OSdarwinReq
10852      #include "$srcdir/src/Unix/vm_alloc.cpp"
10853
10854_ACEOF
10855if ac_fn_cxx_try_run "$LINENO"; then :
10856  ac_cv_vm_protect_works=no
10857else
10858  rm -f core
10859fi
10860rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10861  conftest.$ac_objext conftest.beam conftest.$ac_ext
10862fi
10863
10864  done
10865  if test "$cross_compiling" = yes; then :
10866    ac_cv_vm_protect_works="guessing no"
10867
10868else
10869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10870/* end confdefs.h.  */
10871
10872    #define CONFIGURE_TEST_VM_MAP
10873    #define TEST_VM_PROT_RDWR_WRITE
10874    $OSdarwinReq
10875    #include "$srcdir/src/Unix/vm_alloc.cpp"
10876
10877_ACEOF
10878if ac_fn_cxx_try_run "$LINENO"; then :
10879
10880else
10881  ac_cv_vm_protect_works=no
10882fi
10883rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10884  conftest.$ac_objext conftest.beam conftest.$ac_ext
10885fi
10886
10887  ac_ext=c
10888ac_cpp='$CPP $CPPFLAGS'
10889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10891ac_compiler_gnu=$ac_cv_c_compiler_gnu
10892
10893
10894
10895fi
10896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_vm_protect_works" >&5
10897$as_echo "$ac_cv_vm_protect_works" >&6; }
10898
10899if [ "x$have_mach_vm" = "xyes" ]; then
10900  case $ac_cv_vm_protect_works in
10901    *yes) have_mach_vm=yes;;
10902    *no) have_mach_vm=no;;
10903  esac
10904fi
10905
10906    if [ "x$have_mach_vm" = "xyes" -o "x$have_mach_vm" = "xguessing yes" ]; then
10907
10908$as_echo "#define HAVE_MACH_VM 1" >>confdefs.h
10909
10910    fi
10911
10912
10913fi
10914have_mmap_vm=no
10915if [ "x$ac_cv_func_mmap" = "xyes" -a "x$ac_cv_func_munmap" = "xyes" -a \
10916      "x$ac_cv_func_mprotect" = "xyes" ]; then
10917  if [ "x$have_mach_vm" = "xno" ]; then
10918    have_mmap_vm=yes
10919  fi
10920fi
10921
10922    if [ "x$have_mmap_vm" = "xyes" -o "x$have_mmap_vm" = "xguessing yes" ]; then
10923
10924$as_echo "#define HAVE_MMAP_VM 1" >>confdefs.h
10925
10926    fi
10927
10928
10929if [ "x$have_mmap_vm" = "xyes" ]; then
10930
10931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap supports MAP_ANON" >&5
10932$as_echo_n "checking whether mmap supports MAP_ANON... " >&6; }
10933if ${ac_cv_mmap_anon+:} false; then :
10934  $as_echo_n "(cached) " >&6
10935else
10936
10937
10938  ac_ext=cpp
10939ac_cpp='$CXXCPP $CPPFLAGS'
10940ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10941ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10942ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10943
10944  if test "$cross_compiling" = yes; then :
10945    ac_cv_mmap_anon="guessing no"
10946
10947else
10948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10949/* end confdefs.h.  */
10950
10951    #define HAVE_MMAP_ANON
10952    #define CONFIGURE_TEST_VM_MAP
10953    #define TEST_VM_MMAP_ANON
10954    #include "$srcdir/src/Unix/vm_alloc.cpp"
10955
10956_ACEOF
10957if ac_fn_cxx_try_run "$LINENO"; then :
10958  ac_cv_mmap_anon=yes
10959else
10960  ac_cv_mmap_anon=no
10961fi
10962rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10963  conftest.$ac_objext conftest.beam conftest.$ac_ext
10964fi
10965
10966  ac_ext=c
10967ac_cpp='$CPP $CPPFLAGS'
10968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10970ac_compiler_gnu=$ac_cv_c_compiler_gnu
10971
10972
10973
10974fi
10975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mmap_anon" >&5
10976$as_echo "$ac_cv_mmap_anon" >&6; }
10977
10978    if [ "x$ac_cv_mmap_anon" = "xyes" -o "x$ac_cv_mmap_anon" = "xguessing yes" ]; then
10979
10980$as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10981
10982    fi
10983
10984
10985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap supports MAP_ANONYMOUS" >&5
10986$as_echo_n "checking whether mmap supports MAP_ANONYMOUS... " >&6; }
10987if ${ac_cv_mmap_anonymous+:} false; then :
10988  $as_echo_n "(cached) " >&6
10989else
10990
10991
10992  ac_ext=cpp
10993ac_cpp='$CXXCPP $CPPFLAGS'
10994ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10995ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10996ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10997
10998  if test "$cross_compiling" = yes; then :
10999    ac_cv_mmap_anonymous="guessing no"
11000
11001else
11002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11003/* end confdefs.h.  */
11004
11005    #define HAVE_MMAP_ANONYMOUS
11006    #define CONFIGURE_TEST_VM_MAP
11007    #define TEST_VM_MMAP_ANON
11008    #include "$srcdir/src/Unix/vm_alloc.cpp"
11009
11010_ACEOF
11011if ac_fn_cxx_try_run "$LINENO"; then :
11012  ac_cv_mmap_anonymous=yes
11013else
11014  ac_cv_mmap_anonymous=no
11015fi
11016rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11017  conftest.$ac_objext conftest.beam conftest.$ac_ext
11018fi
11019
11020  ac_ext=c
11021ac_cpp='$CPP $CPPFLAGS'
11022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11024ac_compiler_gnu=$ac_cv_c_compiler_gnu
11025
11026
11027
11028fi
11029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mmap_anonymous" >&5
11030$as_echo "$ac_cv_mmap_anonymous" >&6; }
11031
11032    if [ "x$ac_cv_mmap_anonymous" = "xyes" -o "x$ac_cv_mmap_anonymous" = "xguessing yes" ]; then
11033
11034$as_echo "#define HAVE_MMAP_ANONYMOUS 1" >>confdefs.h
11035
11036    fi
11037
11038
11039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mprotect works" >&5
11040$as_echo_n "checking whether mprotect works... " >&6; }
11041if ${ac_cv_mprotect_works+:} false; then :
11042  $as_echo_n "(cached) " >&6
11043else
11044
11045
11046  ac_ext=cpp
11047ac_cpp='$CXXCPP $CPPFLAGS'
11048ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11049ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11050ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11051
11052  ac_cv_mprotect_works=yes
11053    for test_def in NONE_READ NONE_WRITE READ_WRITE; do
11054    if test "$cross_compiling" = yes; then :
11055      ac_cv_mprotect_works="guessing no"
11056
11057else
11058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11059/* end confdefs.h.  */
11060
11061      #define CONFIGURE_TEST_VM_MAP
11062      #define TEST_VM_PROT_$test_def
11063      #include "$srcdir/src/Unix/vm_alloc.cpp"
11064
11065_ACEOF
11066if ac_fn_cxx_try_run "$LINENO"; then :
11067  ac_cv_mprotect_works=no
11068else
11069  rm -f core
11070fi
11071rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11072  conftest.$ac_objext conftest.beam conftest.$ac_ext
11073fi
11074
11075  done
11076  if test "$cross_compiling" = yes; then :
11077    ac_cv_mprotect_works="guessing no"
11078
11079else
11080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11081/* end confdefs.h.  */
11082
11083    #define CONFIGURE_TEST_VM_MAP
11084    #define TEST_VM_PROT_RDWR_WRITE
11085    #include "$srcdir/src/Unix/vm_alloc.cpp"
11086
11087_ACEOF
11088if ac_fn_cxx_try_run "$LINENO"; then :
11089
11090else
11091  ac_cv_mprotect_works=no
11092fi
11093rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11094  conftest.$ac_objext conftest.beam conftest.$ac_ext
11095fi
11096
11097  ac_ext=c
11098ac_cpp='$CPP $CPPFLAGS'
11099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11101ac_compiler_gnu=$ac_cv_c_compiler_gnu
11102
11103
11104
11105fi
11106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mprotect_works" >&5
11107$as_echo "$ac_cv_mprotect_works" >&6; }
11108
11109if [ "x$have_mmap_vm" = "xyes" ]; then
11110  case $ac_cv_mprotect_works in
11111    *yes) have_mmap_vm=yes;;
11112    *no) have_mmap_vm=no;;
11113  esac
11114fi
11115
11116    if [ "x$have_mmap_vm" = "xyes" -o "x$have_mmap_vm" = "xguessing yes" ]; then
11117
11118$as_echo "#define HAVE_MMAP_VM 1" >>confdefs.h
11119
11120    fi
11121
11122
11123fi
11124
11125if test "$OS_TYPE" = mingw; then
11126	$as_echo "#define HAVE_WIN32_VM 1" >>confdefs.h
11127
11128        if $HAVE_I386; then
11129		LDFLAGS="$LDFLAGS -Wl,--large-address-aware"
11130	fi
11131fi
11132
11133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signal handlers need to be reinstalled" >&5
11134$as_echo_n "checking whether signal handlers need to be reinstalled... " >&6; }
11135if ${ac_cv_signal_need_reinstall+:} false; then :
11136  $as_echo_n "(cached) " >&6
11137else
11138
11139
11140  ac_ext=cpp
11141ac_cpp='$CXXCPP $CPPFLAGS'
11142ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11143ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11144ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11145
11146  if test "$cross_compiling" = yes; then :
11147    ac_cv_signal_need_reinstall="guessing yes"
11148
11149else
11150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11151/* end confdefs.h.  */
11152
11153    #include <stdlib.h>
11154    #ifdef HAVE_UNISTD_H
11155    #include <unistd.h>
11156    #endif
11157    #include <signal.h>
11158    static int handled_signal = 0;
11159    RETSIGTYPE sigusr1_handler(int) { handled_signal++; }
11160    int main(void) { /* returns 0 if signals need not to be reinstalled */
11161      signal(SIGUSR1, sigusr1_handler); raise(SIGUSR1); raise(SIGUSR1);
11162      exit(handled_signal == 2);
11163    }
11164
11165_ACEOF
11166if ac_fn_cxx_try_run "$LINENO"; then :
11167  ac_cv_signal_need_reinstall=yes
11168else
11169  ac_cv_signal_need_reinstall=no
11170fi
11171rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11172  conftest.$ac_objext conftest.beam conftest.$ac_ext
11173fi
11174
11175  ac_ext=c
11176ac_cpp='$CPP $CPPFLAGS'
11177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11179ac_compiler_gnu=$ac_cv_c_compiler_gnu
11180
11181
11182
11183fi
11184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_signal_need_reinstall" >&5
11185$as_echo "$ac_cv_signal_need_reinstall" >&6; }
11186
11187    if [ "x$ac_cv_signal_need_reinstall" = "xyes" -o "x$ac_cv_signal_need_reinstall" = "xguessing yes" ]; then
11188
11189$as_echo "#define SIGNAL_NEED_REINSTALL 1" >>confdefs.h
11190
11191    fi
11192
11193
11194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sigaction handlers need to be reinstalled" >&5
11195$as_echo_n "checking whether sigaction handlers need to be reinstalled... " >&6; }
11196if ${ac_cv_sigaction_need_reinstall+:} false; then :
11197  $as_echo_n "(cached) " >&6
11198else
11199
11200
11201  ac_ext=cpp
11202ac_cpp='$CXXCPP $CPPFLAGS'
11203ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11204ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11205ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11206
11207  if test "$cross_compiling" = yes; then :
11208    ac_cv_sigaction_need_reinstall="guessing yes"
11209
11210else
11211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11212/* end confdefs.h.  */
11213
11214    #include <stdlib.h>
11215    #ifdef HAVE_UNISTD_H
11216    #include <unistd.h>
11217    #endif
11218    #include <signal.h>
11219    static int handled_signal = 0;
11220    RETSIGTYPE sigusr1_handler(int) { handled_signal++; }
11221    typedef RETSIGTYPE (*signal_handler)(int);
11222    static signal_handler mysignal(int sig, signal_handler handler) {
11223      struct sigaction old_sa;
11224      struct sigaction new_sa;
11225      new_sa.sa_handler = handler;
11226      return ((sigaction(sig,&new_sa,&old_sa) < 0) ? SIG_IGN : old_sa.sa_handler);
11227    }
11228    int main(void) { /* returns 0 if signals need not to be reinstalled */
11229      mysignal(SIGUSR1, sigusr1_handler); raise(SIGUSR1); raise(SIGUSR1);
11230      exit(handled_signal == 2);
11231    }
11232
11233_ACEOF
11234if ac_fn_cxx_try_run "$LINENO"; then :
11235  ac_cv_sigaction_need_reinstall=yes
11236else
11237  ac_cv_sigaction_need_reinstall=no
11238fi
11239rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11240  conftest.$ac_objext conftest.beam conftest.$ac_ext
11241fi
11242
11243  ac_ext=c
11244ac_cpp='$CPP $CPPFLAGS'
11245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11247ac_compiler_gnu=$ac_cv_c_compiler_gnu
11248
11249
11250
11251fi
11252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sigaction_need_reinstall" >&5
11253$as_echo "$ac_cv_sigaction_need_reinstall" >&6; }
11254
11255    if [ "x$ac_cv_sigaction_need_reinstall" = "xyes" -o "x$ac_cv_sigaction_need_reinstall" = "xguessing yes" ]; then
11256
11257$as_echo "#define SIGACTION_NEED_REINSTALL 1" >>confdefs.h
11258
11259    fi
11260
11261
11262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for vasprintf" >&5
11263$as_echo_n "checking for vasprintf... " >&6; }
11264if ${ac_cv_have_vasprintf+:} false; then :
11265  $as_echo_n "(cached) " >&6
11266else
11267
11268
11269  ac_ext=cpp
11270ac_cpp='$CXXCPP $CPPFLAGS'
11271ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11272ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11273ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11274
11275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11276/* end confdefs.h.  */
11277
11278    #define _GNU_SOURCE
11279    #include <stdarg.h>
11280    #include <stdio.h>
11281
11282int
11283main ()
11284{
11285
11286    va_list a;
11287    vasprintf(NULL, NULL, a);
11288
11289  ;
11290  return 0;
11291}
11292_ACEOF
11293if ac_fn_cxx_try_compile "$LINENO"; then :
11294  ac_cv_have_vasprintf=yes
11295else
11296  ac_cv_have_vasprintf=no
11297
11298fi
11299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11300  ac_ext=c
11301ac_cpp='$CPP $CPPFLAGS'
11302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11304ac_compiler_gnu=$ac_cv_c_compiler_gnu
11305
11306
11307
11308fi
11309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_vasprintf" >&5
11310$as_echo "$ac_cv_have_vasprintf" >&6; }
11311
11312    if [ "x$ac_cv_have_vasprintf" = "xyes" -o "x$ac_cv_have_vasprintf" = "xguessing yes" ]; then
11313
11314$as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
11315
11316    fi
11317
11318if [ "x$ac_cv_have_vasprintf" = "xyes" ]; then
11319  DEFINES="$DEFINES -D_GNU_SOURCE"
11320fi
11321
11322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sighandler_t" >&5
11323$as_echo_n "checking for sighandler_t... " >&6; }
11324if ${ac_cv_have_sighandler_t+:} false; then :
11325  $as_echo_n "(cached) " >&6
11326else
11327
11328
11329  ac_ext=cpp
11330ac_cpp='$CXXCPP $CPPFLAGS'
11331ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11332ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11333ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11334
11335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11336/* end confdefs.h.  */
11337
11338    #define _GNU_SOURCE
11339    #include <signal.h>
11340    #include <stdio.h>
11341
11342int
11343main ()
11344{
11345
11346    signal(0, (sighandler_t)NULL);
11347
11348  ;
11349  return 0;
11350}
11351_ACEOF
11352if ac_fn_cxx_try_compile "$LINENO"; then :
11353  ac_cv_have_sighandler_t=yes
11354else
11355  ac_cv_have_sighandler_t=no
11356
11357fi
11358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11359  ac_ext=c
11360ac_cpp='$CPP $CPPFLAGS'
11361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11363ac_compiler_gnu=$ac_cv_c_compiler_gnu
11364
11365
11366
11367fi
11368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sighandler_t" >&5
11369$as_echo "$ac_cv_have_sighandler_t" >&6; }
11370
11371    if [ "x$ac_cv_have_sighandler_t" = "xyes" -o "x$ac_cv_have_sighandler_t" = "xguessing yes" ]; then
11372
11373$as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
11374
11375    fi
11376
11377
11378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt_long" >&5
11379$as_echo_n "checking for getopt_long... " >&6; }
11380if ${ac_cv_have_getopt_long+:} false; then :
11381  $as_echo_n "(cached) " >&6
11382else
11383
11384
11385  ac_ext=cpp
11386ac_cpp='$CXXCPP $CPPFLAGS'
11387ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11388ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11389ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11390
11391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11392/* end confdefs.h.  */
11393
11394    #define _GNU_SOURCE
11395    #include <unistd.h>
11396    #include <getopt.h>
11397
11398int
11399main ()
11400{
11401
11402    getopt_long(0, NULL, NULL, NULL, NULL);
11403
11404  ;
11405  return 0;
11406}
11407_ACEOF
11408if ac_fn_cxx_try_compile "$LINENO"; then :
11409  ac_cv_have_getopt_long=yes
11410else
11411  ac_cv_have_getopt_long=no
11412
11413fi
11414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11415  ac_ext=c
11416ac_cpp='$CPP $CPPFLAGS'
11417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11419ac_compiler_gnu=$ac_cv_c_compiler_gnu
11420
11421
11422
11423fi
11424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getopt_long" >&5
11425$as_echo "$ac_cv_have_getopt_long" >&6; }
11426
11427    if [ "x$ac_cv_have_getopt_long" = "xyes" -o "x$ac_cv_have_getopt_long" = "xguessing yes" ]; then
11428        $as_echo "#define HAVE_GETOPT_H 1" >>confdefs.h
11429
11430    fi
11431
11432
11433 if test "$ac_cv_have_getopt_long" = "no"; then
11434  NEED_GETOPT_TRUE=
11435  NEED_GETOPT_FALSE='#'
11436else
11437  NEED_GETOPT_TRUE='#'
11438  NEED_GETOPT_FALSE=
11439fi
11440
11441
11442
11443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap16" >&5
11444$as_echo_n "checking for __builtin_bswap16... " >&6; }
11445if ${ac_cv_have___builtin_bswap16+:} false; then :
11446  $as_echo_n "(cached) " >&6
11447else
11448
11449
11450  ac_ext=cpp
11451ac_cpp='$CXXCPP $CPPFLAGS'
11452ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11453ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11454ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11455
11456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11457/* end confdefs.h.  */
11458
11459    #include <stdarg.h>
11460    #include <stdio.h>
11461    unsigned short v;
11462
11463int
11464main ()
11465{
11466
11467    v = __builtin_bswap16(v);
11468
11469  ;
11470  return 0;
11471}
11472_ACEOF
11473if ac_fn_cxx_try_compile "$LINENO"; then :
11474  ac_cv_have___builtin_bswap16=yes
11475else
11476  ac_cv_have___builtin_bswap16=no
11477
11478fi
11479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11480  ac_ext=c
11481ac_cpp='$CPP $CPPFLAGS'
11482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11484ac_compiler_gnu=$ac_cv_c_compiler_gnu
11485
11486
11487
11488fi
11489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___builtin_bswap16" >&5
11490$as_echo "$ac_cv_have___builtin_bswap16" >&6; }
11491
11492    if [ "x$ac_cv_have___builtin_bswap16" = "xyes" -o "x$ac_cv_have___builtin_bswap16" = "xguessing yes" ]; then
11493
11494$as_echo "#define HAVE___BUILTIN_BSWAP16 1" >>confdefs.h
11495
11496    fi
11497
11498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
11499$as_echo_n "checking for __builtin_bswap32... " >&6; }
11500if ${ac_cv_have___builtin_bswap32+:} false; then :
11501  $as_echo_n "(cached) " >&6
11502else
11503
11504
11505  ac_ext=cpp
11506ac_cpp='$CXXCPP $CPPFLAGS'
11507ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11508ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11509ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11510
11511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11512/* end confdefs.h.  */
11513
11514    #include <stdarg.h>
11515    #include <stdio.h>
11516    unsigned int v;
11517
11518int
11519main ()
11520{
11521
11522    v = __builtin_bswap32(v);
11523
11524  ;
11525  return 0;
11526}
11527_ACEOF
11528if ac_fn_cxx_try_compile "$LINENO"; then :
11529  ac_cv_have___builtin_bswap32=yes
11530else
11531  ac_cv_have___builtin_bswap32=no
11532
11533fi
11534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11535  ac_ext=c
11536ac_cpp='$CPP $CPPFLAGS'
11537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11539ac_compiler_gnu=$ac_cv_c_compiler_gnu
11540
11541
11542
11543fi
11544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___builtin_bswap32" >&5
11545$as_echo "$ac_cv_have___builtin_bswap32" >&6; }
11546
11547    if [ "x$ac_cv_have___builtin_bswap32" = "xyes" -o "x$ac_cv_have___builtin_bswap32" = "xguessing yes" ]; then
11548
11549$as_echo "#define HAVE___BUILTIN_BSWAP32 1" >>confdefs.h
11550
11551    fi
11552
11553
11554
11555
11556
11557case $CONTROL_KEY in
11558	meta)
11559		$as_echo "#define MAP_META_TO_CONTROL 1" >>confdefs.h
11560
11561		;;
11562	both)
11563		$as_echo "#define MAP_META_TO_CONTROL 1" >>confdefs.h
11564
11565		$as_echo "#define MAP_CONTROL_TO_CONTROL 1" >>confdefs.h
11566
11567		;;
11568	ctrl)
11569		$as_echo "#define MAP_CONTROL_TO_CONTROL 1" >>confdefs.h
11570
11571		;;
11572esac
11573
11574if [ "x$WANT_JIT" = "xyes" ]; then
11575  WANT_EXSIGSEGV=yes
11576  MEMORY_CHECK=sseg
11577fi
11578
11579
11580
11581
11582
11583
11584case $MEMORY_CHECK in
11585  no)   $as_echo "#define NOCHECKBOUNDARY 1" >>confdefs.h
11586
11587        ;;
11588  page) $as_echo "#define ARAM_PAGE_CHECK 1" >>confdefs.h
11589
11590        ;;
11591  hwsp) ADDRESSING_TEST_ORDER="fixed"
11592        WANT_EXSIGSEGV="yes"
11593        $as_echo "#define NOCHECKBOUNDARY 1" >>confdefs.h
11594
11595	$as_echo "#define EXTENDED_SIGSEGV 1" >>confdefs.h
11596
11597        $as_echo "#define RAMENDNEEDED 1" >>confdefs.h
11598
11599        ;;
11600  pagehwsp) ADDRESSING_TEST_ORDER="fixed"
11601        WANT_EXSIGSEGV="yes"
11602        $as_echo "#define ARAM_PAGE_CHECK 1" >>confdefs.h
11603
11604        $as_echo "#define NOCHECKBOUNDARY 1" >>confdefs.h
11605
11606	$as_echo "#define EXTENDED_SIGSEGV 1" >>confdefs.h
11607
11608        $as_echo "#define RAMENDNEEDED 1" >>confdefs.h
11609
11610        ;;
11611   sseg) ADDRESSING_TEST_ORDER="fixed"
11612        WANT_EXSIGSEGV="yes"
11613        $as_echo "#define NOCHECKBOUNDARY 1" >>confdefs.h
11614
11615	$as_echo "#define RAMENDNEEDED 1" >>confdefs.h
11616
11617        $as_echo "#define EXTENDED_SIGSEGV 1" >>confdefs.h
11618
11619	$as_echo "#define HW_SIGSEGV 1" >>confdefs.h
11620
11621        ;;
11622  *) ;;
11623esac
11624
11625if [ "x$WANT_HISTORY" = "xyes" ]; then
11626
11627$as_echo "#define FULL_HISTORY 1" >>confdefs.h
11628
11629fi
11630
11631if [ "x$WANT_FLIGHTRECORDER" = "xyes" ]; then
11632
11633$as_echo "#define FLIGHT_RECORDER 1" >>confdefs.h
11634
11635fi
11636
11637if [ "x$WANT_CDROM" = "xyes" ]; then
11638
11639$as_echo "#define SUPPORT_CDROM 1" >>confdefs.h
11640
11641fi
11642
11643if [ "x$WANT_MMU" = "xyes" ]; then
11644
11645$as_echo "#define FULLMMU 1" >>confdefs.h
11646
11647fi
11648 if test "$WANT_MMU" = "yes"; then
11649  FULLMMU_TRUE=
11650  FULLMMU_FALSE='#'
11651else
11652  FULLMMU_TRUE='#'
11653  FULLMMU_FALSE=
11654fi
11655
11656
11657if [ "x$ATC_TYPE" = "xsmall" ]; then
11658
11659$as_echo "#define SMALL_ATC 1" >>confdefs.h
11660
11661fi
11662
11663if [ "x$ATC_TYPE" = "xno" ]; then
11664
11665$as_echo "#define DISABLE_ATC 1" >>confdefs.h
11666
11667fi
11668
11669if [ "x$WANT_DSP" = "xyes" ]; then
11670
11671$as_echo "#define DSP_EMULATION 1" >>confdefs.h
11672
11673        if [ "x$WANT_DSP_DISASM" = "xyes" ]; then
11674
11675$as_echo "#define DSP_DISASM 1" >>confdefs.h
11676
11677    fi
11678fi
11679 if test "$WANT_DSP" = "yes"; then
11680  WANT_DSP_TRUE=
11681  WANT_DSP_FALSE='#'
11682else
11683  WANT_DSP_TRUE='#'
11684  WANT_DSP_FALSE=
11685fi
11686
11687 if test "$WANT_DSP_DISASM" = "yes"; then
11688  WANT_DSP_DISASM_TRUE=
11689  WANT_DSP_DISASM_FALSE='#'
11690else
11691  WANT_DSP_DISASM_TRUE='#'
11692  WANT_DSP_DISASM_FALSE=
11693fi
11694
11695
11696
11697
11698
11699if [ "x$WANT_PROTECT2K" != "xno" ]; then
11700
11701$as_echo "#define PROTECT2K 1" >>confdefs.h
11702
11703fi
11704
11705if [ "x$WANT_FIXEDFASTRAM" != "xno" ]; then
11706
11707cat >>confdefs.h <<_ACEOF
11708#define FixedSizeFastRAM $WANT_FIXEDFASTRAM
11709_ACEOF
11710
11711fi
11712
11713if [ "x$WANT_FIXEDVIDEORAM" = "xyes" ]; then
11714  $as_echo "#define FIXED_VIDEORAM 1" >>confdefs.h
11715
11716else
11717  if [ "x$WANT_MMU" = "xyes" ]; then
11718    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Protection of first 2kB RAM enabled as well - won't hurt" >&5
11719$as_echo "$as_me: WARNING: Protection of first 2kB RAM enabled as well - won't hurt" >&2;}
11720    $as_echo "#define PROTECT2K 1" >>confdefs.h
11721
11722  fi
11723  if [ "x$WANT_BLITSDLBLIT" = "xyes" ]; then
11724    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Blitter SDL surface blitting support needs fixed position of VideoRAM" >&5
11725$as_echo "$as_me: WARNING: Blitter SDL surface blitting support needs fixed position of VideoRAM" >&2;}
11726    $as_echo "#define FIXED_VIDEORAM 1" >>confdefs.h
11727
11728    WANT_FIXEDVIDEORAM="yes"
11729  fi
11730fi
11731
11732if [ "x$WANT_REALSTOP" = "xyes" ]; then
11733
11734$as_echo "#define ENABLE_REALSTOP 1" >>confdefs.h
11735
11736  WANT_SPCFLAGS_EXCL=yes
11737fi
11738
11739if [ "x$WANT_BLITMEMMOVE" = "xyes" ]; then
11740
11741$as_echo "#define BLITTER_MEMMOVE 1" >>confdefs.h
11742
11743fi
11744
11745  if [ "x$WANT_BLITSDLBLIT" = "xyes" ]; then
11746    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Blitter SDL surface blitting support needs fixed position of VideoRAM" >&5
11747$as_echo "$as_me: WARNING: Blitter SDL surface blitting support needs fixed position of VideoRAM" >&2;}
11748    $as_echo "#define FIXED_VIDEORAM 1" >>confdefs.h
11749
11750    WANT_FIXEDVIDEORAM="yes"
11751  fi
11752if [ "x$WANT_BLITSDLBLIT" = "xyes" ]; then
11753
11754$as_echo "#define BLITTER_SDLBLIT 1" >>confdefs.h
11755
11756
11757$as_echo "#define BLITTER_MEMMOVE 1" >>confdefs.h
11758	fi
11759
11760
11761HAVE_ETHERNET=no
11762NEED_ARATAPIF=no
11763if [ "x$WANT_ETHERNET" = "xyes" ]; then
11764  if [ "x$ac_cv_tun_tap_support" = "xyes" ]; then
11765    $as_echo "#define ETHERNET_SUPPORT 1" >>confdefs.h
11766
11767    NEED_ARATAPIF="yes"
11768    HAVE_ETHERNET="yes"
11769  elif test "x$OS_TYPE" = "xcygwin" && ( $HAVE_I386 || $HAVE_X86_64 ); then
11770    $as_echo "#define ETHERNET_SUPPORT 1" >>confdefs.h
11771
11772    HAVE_ETHERNET="yes"
11773  elif [ "x$OS_TYPE" = "xdarwin" ]; then
11774    $as_echo "#define ETHERNET_SUPPORT 1" >>confdefs.h
11775
11776    if [ "x$WANT_BFP_ETHERNET" = "xyes" ]; then
11777
11778    if [ "x$ac_cv_bpf_support" = "xyes" -o "x$ac_cv_bpf_support" = "xguessing yes" ]; then
11779
11780$as_echo "#define ENABLE_BPF 1" >>confdefs.h
11781
11782    fi
11783
11784    else
11785      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ethernet won't work without TunTap driver for Mac OS X. See http://tuntaposx.sourceforge.net/" >&5
11786$as_echo "$as_me: WARNING: Ethernet won't work without TunTap driver for Mac OS X. See http://tuntaposx.sourceforge.net/" >&2;}
11787    fi
11788    HAVE_ETHERNET="yes"
11789  else
11790    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ethernet interface not supported on your system" >&5
11791$as_echo "$as_me: WARNING: Ethernet interface not supported on your system" >&2;}
11792  fi
11793fi
11794 if test "$NEED_ARATAPIF" = "yes"; then
11795  NEED_ARATAPIF_TRUE=
11796  NEED_ARATAPIF_FALSE='#'
11797else
11798  NEED_ARATAPIF_TRUE='#'
11799  NEED_ARATAPIF_FALSE=
11800fi
11801
11802 if test "$HAVE_ETHERNET" = "yes"; then
11803  ETHERNET_SUPPORT_TRUE=
11804  ETHERNET_SUPPORT_FALSE='#'
11805else
11806  ETHERNET_SUPPORT_TRUE='#'
11807  ETHERNET_SUPPORT_FALSE=
11808fi
11809
11810
11811
11812if [ "x$HAVE_ETHERNET" = "xyes" ]; then
11813  PROVIDES_NF="$PROVIDES_NF ethernet"
11814fi
11815
11816if [ "x$WANT_HOSTFS" = "xyes" ]; then
11817
11818$as_echo "#define HOSTFS_SUPPORT 1" >>confdefs.h
11819
11820  PROVIDES_NF="$PROVIDES_NF hostfs"
11821fi
11822 if test "$WANT_HOSTFS" = "yes"; then
11823  HOSTFS_SUPPORT_TRUE=
11824  HOSTFS_SUPPORT_FALSE='#'
11825else
11826  HOSTFS_SUPPORT_TRUE='#'
11827  HOSTFS_SUPPORT_FALSE=
11828fi
11829
11830
11831
11832if test "x$WANT_SDLGUI" = "xyes" ; then
11833
11834$as_echo "#define SDL_GUI 1" >>confdefs.h
11835
11836fi
11837 if test "$WANT_SDLGUI" = yes; then
11838  SDL_GUI_TRUE=
11839  SDL_GUI_FALSE='#'
11840else
11841  SDL_GUI_TRUE='#'
11842  SDL_GUI_FALSE=
11843fi
11844
11845
11846
11847if [ "x$WANT_EXSIGSEGV" = "xyes" ]; then
11848  WANT_CXX_EXCEPTIONS="no"
11849fi
11850if [ "x$WANT_CXX_EXCEPTIONS" = "xno" ]; then
11851
11852$as_echo "#define EXCEPTIONS_VIA_LONGJMP 1" >>confdefs.h
11853
11854fi
11855
11856
11857
11858
11859if [ "x$WANT_EXSIGSEGV" = "xyes" ]; then
11860  case "$host_os" in
11861    linux*)
11862      case "$CPU_TYPE" in
11863        i386)
11864          $as_echo "#define NO_NESTED_SIGSEGV 1" >>confdefs.h
11865
11866	  ;;
11867	x86_64)
11868          $as_echo "#define NO_NESTED_SIGSEGV 1" >>confdefs.h
11869
11870          ;;
11871	arm)
11872          CFLAGS="$CFLAGS -marm"
11873          CXXFLAGS="$CXXFLAGS -marm"
11874          $as_echo "#define NO_NESTED_SIGSEGV 1" >>confdefs.h
11875
11876          ;;
11877        *)
11878          as_fn_error $? "Sorry, extended segfault handler not supported on your platform" "$LINENO" 5
11879          ;;
11880      esac
11881      ;;
11882    openbsd*)
11883      case "$CPU_TYPE" in
11884        i386)
11885          $as_echo "#define NO_NESTED_SIGSEGV 1" >>confdefs.h
11886
11887	  ;;
11888	x86_64)
11889          $as_echo "#define NO_NESTED_SIGSEGV 1" >>confdefs.h
11890
11891          ;;
11892        *)
11893          as_fn_error $? "Sorry, extended segfault handler not supported on your platform" "$LINENO" 5
11894          ;;
11895      esac
11896      ;;
11897    darwin*)
11898      if [ "x$CPU_TYPE" = "powerpc" ]; then
11899        as_fn_error $? "Sorry, extended segfault handler not supported on your platform" "$LINENO" 5
11900      else
11901        $as_echo "#define NO_NESTED_SIGSEGV 1" >>confdefs.h
11902
11903      fi
11904      ;;
11905    netbsd*)
11906      if $HAVE_I386 || $HAVE_X86_64; then
11907        :
11908      else
11909        as_fn_error $? "Sorry, extended segfault handler not supported on your platform" "$LINENO" 5
11910      fi
11911      ;;
11912    freebsd*|kfreebsd*-gnu)
11913      case "$CPU_TYPE" in
11914        i386)
11915          $as_echo "#define NO_NESTED_SIGSEGV 1" >>confdefs.h
11916
11917	  ;;
11918	x86_64)
11919          $as_echo "#define NO_NESTED_SIGSEGV 1" >>confdefs.h
11920
11921
11922	  	    	  case "$host_os" in
11923          freebsd*)
11924            CFLAGS="$CFLAGS -mstackrealign"
11925	    CXXFLAGS="$CXXFLAGS -mstackrealign"
11926            ;;
11927          *) :
11928            ;;
11929          esac
11930          ;;
11931        *)
11932          as_fn_error $? "Sorry, extended segfault handler not supported on your platform" "$LINENO" 5
11933          ;;
11934      esac
11935      ;;
11936    cygwin*|mingw*)
11937      if $HAVE_I386 || $HAVE_X86_64; then
11938        $as_echo "#define NO_NESTED_SIGSEGV 1" >>confdefs.h
11939
11940      else
11941        as_fn_error $? "Sorry, extended segfault handler not supported on your platform" "$LINENO" 5
11942      fi
11943      ;;
11944    solaris*)
11945      case "$CPU_TYPE" in
11946        i386)
11947	  ;;
11948	x86_64)
11949	  ;;
11950        *)
11951          as_fn_error $? "Sorry, extended segfault handler not supported on your platform" "$LINENO" 5
11952          ;;
11953      esac
11954      ;;
11955    beos* | haiku*)
11956      case "$CPU_TYPE" in
11957        i386)
11958          $as_echo "#define NO_NESTED_SIGSEGV 1" >>confdefs.h
11959
11960	      ;;
11961	x86_64)
11962          $as_echo "#define NO_NESTED_SIGSEGV 1" >>confdefs.h
11963
11964          ;;
11965        *)
11966          as_fn_error $? "Sorry, extended segfault handler not supported on your platform" "$LINENO" 5
11967          ;;
11968       esac
11969              as_fn_error $? "Sorry, extended segfault handler not supported on your platform" "$LINENO" 5
11970       ;;
11971    *)
11972      as_fn_error $? "Sorry, extended segfault handler not supported on your platform" "$LINENO" 5
11973      ;;
11974  esac
11975fi
11976 if test "$WANT_EXSIGSEGV" = yes; then
11977  EXTENDED_SIGSEGV_TRUE=
11978  EXTENDED_SIGSEGV_FALSE='#'
11979else
11980  EXTENDED_SIGSEGV_TRUE='#'
11981  EXTENDED_SIGSEGV_FALSE=
11982fi
11983
11984
11985ADDRESSING_MODE=""
11986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the addressing mode to use" >&5
11987$as_echo_n "checking for the addressing mode to use... " >&6; }
11988for am in $ADDRESSING_TEST_ORDER; do
11989  case $am in
11990  direct)
11991    if [ "x$HAVE_MMAP_VM" = "xno" -a "x$HAVE_MACH_VM" = "xno" ]; then
11992      continue
11993    fi
11994        if [ "x$OS_TYPE" = "xsolaris" ]; then
11995      continue
11996    fi
11997    ADDRESSING_MODE="direct"
11998    DEFINES="$DEFINES -DDIRECT_ADDRESSING"
11999    break
12000    ;;
12001  fixed)
12002    if [ "x$HAVE_MMAP_VM" = "xno" -a "x$HAVE_MACH_VM" = "xno" ]; then
12003      continue
12004    fi
12005    if test "$OS_TYPE" = "linux" && ( $HAVE_I386 || $HAVE_X86_64 || $HAVE_ARM ); then
12006      ADDRESSING_MODE="fixed (0x51000000)"
12007      DEFINES="$DEFINES -DFIXED_ADDRESSING -DFMEMORY=0x51000000"
12008      break
12009    fi
12010    if test "$OS_TYPE" = "freebsd" && ( $HAVE_I386 || $HAVE_X86_64 ); then
12011      ADDRESSING_MODE="fixed (0x51000000)"
12012      DEFINES="$DEFINES -DFIXED_ADDRESSING -DFMEMORY=0x51000000"
12013      break
12014    fi
12015    if test "$OS_TYPE" = "openbsd" && ( $HAVE_I386 || $HAVE_X86_64 ); then
12016      ADDRESSING_MODE="fixed (0x51000000)"
12017      DEFINES="$DEFINES -DFIXED_ADDRESSING -DFMEMORY=0x51000000"
12018      break
12019    fi
12020    if test "$OS_TYPE" = "darwin" && ( $HAVE_I386 || $HAVE_X86_64 ); then
12021      ADDRESSING_MODE="fixed (0x51000000)"
12022      DEFINES="$DEFINES -DFIXED_ADDRESSING -DFMEMORY=0x51000000"
12023      break
12024    fi
12025    if test "$OS_TYPE" = "cygwin" && ( $HAVE_I386 || $HAVE_X86_64 ); then
12026      ADDRESSING_MODE="fixed (0x51000000)"
12027      DEFINES="$DEFINES -DFIXED_ADDRESSING -DFMEMORY=0x51000000"
12028      break
12029    fi
12030    if test "$OS_TYPE" = "mingw" && ( $HAVE_I386 || $HAVE_X86_64 ); then
12031      ADDRESSING_MODE="fixed (0x51000000)"
12032      DEFINES="$DEFINES -DFIXED_ADDRESSING -DFMEMORY=0x51000000"
12033      break
12034    fi
12035    if test "$OS_TYPE" = "solaris" && ( $HAVE_I386 || $HAVE_X86_64 ); then
12036      ADDRESSING_MODE="fixed (0x51000000)"
12037      DEFINES="$DEFINES -DFIXED_ADDRESSING -DFMEMORY=0x51000000"
12038      break
12039    fi
12040    if test "$OS_TYPE" = "beos" && ( $HAVE_I386 || $HAVE_X86_64 ); then
12041      ADDRESSING_MODE="fixed (0x51000000)"
12042      DEFINES="$DEFINES -DFIXED_ADDRESSING -DFMEMORY=0x51000000"
12043      break
12044    fi
12045    ;;
12046  normal)
12047    ADDRESSING_MODE="normal"
12048    DEFINES="$DEFINES -DNORMAL_ADDRESSING"
12049    break
12050    ;;
12051  *)
12052    as_fn_error $? "Internal configure.in script error for $am addressing mode" "$LINENO" 5
12053  esac
12054done
12055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ADDRESSING_MODE" >&5
12056$as_echo "$ADDRESSING_MODE" >&6; }
12057if [ "x$ADDRESSING_MODE" = "x" ]; then
12058  as_fn_error $? "Sorry, no suitable addressing mode in $ADDRESSING_TEST_ORDER" "$LINENO" 5
12059fi
12060
12061HAVE_GAS=no
12062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAS .p2align feature" >&5
12063$as_echo_n "checking for GAS .p2align feature... " >&6; }
12064cat >conftest.S << EOF
12065	.text
12066	.p2align 5
12067EOF
12068if $CC conftest.S -c -o conftest.o >/dev/null 2>&1 ; then HAVE_GAS=yes; fi
12069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GAS" >&5
12070$as_echo "$HAVE_GAS" >&6; }
12071
12072if [ "x$GCC" = "xyes" -a "x$FPE_CORE" = "xx86" ]; then
12073  SAVED_CXXFLAGS="$CXXFLAGS"
12074  CXXFLAGS="$CXXFLAGS -fno-merge-constants"
12075  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC supports constants merging" >&5
12076$as_echo_n "checking whether GCC supports constants merging... " >&6; }
12077if ${ac_cv_gcc_constants_merging+:} false; then :
12078  $as_echo_n "(cached) " >&6
12079else
12080
12081
12082    ac_ext=cpp
12083ac_cpp='$CXXCPP $CPPFLAGS'
12084ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12085ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12086ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12087
12088    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12089/* end confdefs.h.  */
12090
12091int
12092main ()
12093{
12094
12095  ;
12096  return 0;
12097}
12098_ACEOF
12099if ac_fn_cxx_try_compile "$LINENO"; then :
12100  ac_cv_gcc_constants_merging=yes
12101else
12102  ac_cv_gcc_constants_merging=no
12103fi
12104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12105    ac_ext=c
12106ac_cpp='$CPP $CPPFLAGS'
12107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12109ac_compiler_gnu=$ac_cv_c_compiler_gnu
12110
12111
12112fi
12113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_constants_merging" >&5
12114$as_echo "$ac_cv_gcc_constants_merging" >&6; }
12115  if [ "x$ac_cv_gcc_constants_merging" != "xyes" ]; then
12116    CXXFLAGS="$SAVED_CXXFLAGS"
12117  fi
12118fi
12119
12120ASM_OPTIMIZATIONS=none
12121
12122CAN_JIT=no
12123JITSRCS=
12124GENJITSRCS="compemu1.cpp compemu2.cpp compemu3.cpp compemu4.cpp compemu5.cpp compemu6.cpp compemu7.cpp compemu8.cpp"
12125GENCOMP_ARCH=
12126
12127
12128
12129if test "$GCC" = yes && $HAVE_I386; then
12130    DEFINES="$DEFINES -DUNALIGNED_PROFITABLE -DREGPARAM=\"__attribute__((regparm(3)))\""
12131  if [ "x$HAVE_GAS" = "xyes" ]; then
12132    ASM_OPTIMIZATIONS=i386
12133    DEFINES="$DEFINES -DX86_ASSEMBLY -DOPTIMIZED_FLAGS -DSAHF_SETO_PROFITABLE"
12134    CAN_JIT=yes
12135    GENCOMP_ARCH=x86
12136  fi
12137elif test "$GCC" = yes && $HAVE_X86_64; then
12138    DEFINES="$DEFINES -DUNALIGNED_PROFITABLE"
12139  if [ "x$HAVE_GAS" = "xyes" ]; then
12140    ASM_OPTIMIZATIONS="x86-64"
12141    DEFINES="$DEFINES -DX86_64_ASSEMBLY -DOPTIMIZED_FLAGS"
12142    CAN_JIT=yes
12143    GENCOMP_ARCH=x86
12144	SAVED_CXXFLAGS="$CXXFLAGS"
12145	CXXFLAGS="$CXXFLAGS -mno-red-zone"
12146	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC supports -mno-red-zone" >&5
12147$as_echo_n "checking whether GCC supports -mno-red-zone... " >&6; }
12148if ${ac_cv_gcc_no_red_zone+:} false; then :
12149  $as_echo_n "(cached) " >&6
12150else
12151
12152
12153	    ac_ext=cpp
12154ac_cpp='$CXXCPP $CPPFLAGS'
12155ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12156ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12157ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12158
12159	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12160/* end confdefs.h.  */
12161
12162int
12163main ()
12164{
12165
12166  ;
12167  return 0;
12168}
12169_ACEOF
12170if ac_fn_cxx_try_compile "$LINENO"; then :
12171  ac_cv_gcc_no_red_zone=yes
12172else
12173  ac_cv_gcc_no_red_zone=no
12174fi
12175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12176	    ac_ext=c
12177ac_cpp='$CPP $CPPFLAGS'
12178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12180ac_compiler_gnu=$ac_cv_c_compiler_gnu
12181
12182
12183fi
12184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_no_red_zone" >&5
12185$as_echo "$ac_cv_gcc_no_red_zone" >&6; }
12186	  CXXFLAGS="$SAVED_CXXFLAGS"
12187	  if [ "x$ac_cv_gcc_no_red_zone" = "xyes" ]; then
12188	     $as_echo "#define HAVE_CFLAG_NO_REDZONE 1" >>confdefs.h
12189
12190	  fi
12191  fi
12192elif test "$GCC" = yes && $HAVE_SPARC; then
12193    case "$host_os" in
12194  solaris*)
12195    { $as_echo "$as_me:${as_lineno-$LINENO}: checking SPARC CPU architecture" >&5
12196$as_echo_n "checking SPARC CPU architecture... " >&6; }
12197    SPARC_TYPE=`solaris/which_sparc`
12198    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPARC_TYPE" >&5
12199$as_echo "$SPARC_TYPE" >&6; }
12200    case "$SPARC_TYPE" in
12201    SPARC_V8)
12202      ASM_OPTIMIZATIONS="SPARC V8 architecture"
12203      DEFINES="$DEFINES -DSPARC_V8_ASSEMBLY"       CFLAGS="$CFLAGS -Wa,-Av8"
12204      CXXFLAGS="$CXXFLAGS -Wa,-Av8"
12205      ;;
12206    SPARC_V9)
12207      ASM_OPTIMIZATIONS="SPARC V9 architecture"
12208      DEFINES="$DEFINES -DSPARC_V9_ASSEMBLY"       CFLAGS="$CFLAGS -Wa,-Av9"
12209      CXXFLAGS="$CXXFLAGS -Wa,-Av9"
12210      ;;
12211    esac
12212    ;;
12213  esac
12214elif test "$GCC" = yes && $HAVE_ARM; then
12215    if [ "x$HAVE_GAS" = "xyes" ]; then
12216    case "$host_cpu" in
12217	armv6*|armv7*|armv8*|armv9*)
12218           ASM_OPTIMIZATIONS="ARM/V6 architecture w optimized flags"
12219	   DEFINES="$DEFINES -DARMV6_ASSEMBLY -DARM_ASSEMBLY -DOPTIMIZED_FLAGS"
12220           CFLAGS="$CFLAGS -march=armv6"
12221           CXXFLAGS="$CXXFLAGS -march=armv6"
12222	   ;;
12223	*)
12224	              case "$host_os" in
12225                *-androideabi)
12226                        ASM_OPTIMIZATIONS="ARM/V6 architecture w optimized flags"
12227                        DEFINES="$DEFINES -DARMV6_ASSEMBLY -DARM_ASSEMBLY -DOPTIMIZED_FLAGS"
12228                        ;;
12229                *)
12230                        ASM_OPTIMIZATIONS="ARM/generic w optimized flags"
12231                        DEFINES="$DEFINES -DARM_ASSEMBLY -DOPTIMIZED_FLAGS"
12232                        ;;
12233           esac
12234	   ;;
12235    esac
12236    GENCOMP_ARCH=arm
12237    CAN_JIT=yes
12238  fi
12239fi
12240
12241if [ "x$WANT_JIT2" = "xyes" ]; then
12242  if $HAVE_ARM; then
12243    DEFINES="$DEFINES -DUSE_JIT2=1"
12244  else
12245    as_fn_error $? "JIT Version 2 is only available for ARM" "$LINENO" 5
12246  fi
12247fi
12248
12249 if test "$GENCOMP_ARCH" = "x86"; then
12250  GENCOMP_ARCH_X86_TRUE=
12251  GENCOMP_ARCH_X86_FALSE='#'
12252else
12253  GENCOMP_ARCH_X86_TRUE='#'
12254  GENCOMP_ARCH_X86_FALSE=
12255fi
12256
12257 if test "$GENCOMP_ARCH" = "arm"; then
12258  GENCOMP_ARCH_ARM_TRUE=
12259  GENCOMP_ARCH_ARM_FALSE='#'
12260else
12261  GENCOMP_ARCH_ARM_TRUE='#'
12262  GENCOMP_ARCH_ARM_FALSE=
12263fi
12264
12265
12266
12267if [ "x$WANT_JIT" = "xyes" -a "x$CAN_JIT" = "xyes" ]; then
12268  if [ "x$WANT_MMU" = "xyes" ]; then
12269      as_fn_error $? "MMU&JIT in combination are not supported" "$LINENO" 5
12270  fi
12271  JITSRCS="$JITSRCS uae_cpu/compiler/compemu_support.cpp"
12272  DEFINES="$DEFINES -DUSE_JIT=1"
12273
12274    CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
12275
12276  if [ "x$WANT_JIT_DEBUG" = "xyes" ]; then
12277    DEFINES="$DEFINES -DJIT_DEBUG=1"
12278  fi
12279
12280  if [ "x$WANT_JIT_FPU" = "xyes" ]; then
12281    DEFINES="$DEFINES -DUSE_JIT_FPU=1"
12282  fi
12283  if test "$OS_TYPE" != darwin && $HAVE_X86_64; then
12284     # Force text address; needed at least on ArchLinux
12285     # where it is otherwise set to a high memory address
12286     # which is not in the range for the JIT addressing scheme
12287     LDFLAGS="$LDFLAGS -Wl,-Ttext-segment=0x10000000"
12288  fi
12289else
12290  WANT_JIT=no
12291  WANT_JIT_FPU=no
12292  WANT_JIT_DEBUG=no
12293  JITSRCS=""
12294  GENJITSRCS=""
12295fi
12296 if test "$WANT_JIT" = "yes"; then
12297  USE_JIT_TRUE=
12298  USE_JIT_FALSE='#'
12299else
12300  USE_JIT_TRUE='#'
12301  USE_JIT_FALSE=
12302fi
12303
12304 if test "$WANT_JIT_FPU" = "yes"; then
12305  USE_JIT_FPU_TRUE=
12306  USE_JIT_FPU_FALSE='#'
12307else
12308  USE_JIT_FPU_TRUE='#'
12309  USE_JIT_FPU_FALSE=
12310fi
12311
12312 if test "$WANT_JIT2" = "yes"; then
12313  USE_JIT2_TRUE=
12314  USE_JIT2_FALSE='#'
12315else
12316  USE_JIT2_TRUE='#'
12317  USE_JIT2_FALSE=
12318fi
12319
12320
12321
12322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking floating point format" >&5
12323$as_echo_n "checking floating point format... " >&6; }
12324if ${ac_cv_c_float_format+:} false; then :
12325  $as_echo_n "(cached) " >&6
12326else
12327
12328ac_ext=c
12329ac_cpp='$CPP $CPPFLAGS'
12330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12332ac_compiler_gnu=$ac_cv_c_compiler_gnu
12333
12334cat > conftest.$ac_ext <<EOF
12335#line 12335 "configure"
12336#include "confdefs.h"
12337/* This will not work unless sizeof(double) == 8.  */
12338extern char sizeof_double_must_be_8 [sizeof(double) == 8 ? 1 : -1];
12339
12340/* This structure must have no internal padding.  */
12341struct possibility {
12342  char prefix[8];
12343  double candidate;
12344  char postfix[8];
12345};
12346
12347#define C(cand) { "\nformat:", cand, ":tamrof\n" }
12348struct possibility table [] =
12349{
12350  C( 3.25724264705901305206e+01), /* @@IEEEFP - IEEE 754 */
12351  C( 3.53802595280598432000e+18), /* D__float - VAX */
12352  C( 5.32201830133125317057e-19), /* D.PDP-10 - PDP-10 - the dot is 0x13a */
12353  C( 1.77977764695171661377e+10), /* IBMHEXFP - s/390 format, ascii */
12354  C(-5.22995989424860458374e+10)  /* IBMHEXFP - s/390 format, EBCDIC */
12355};
12356EOF
12357if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12358  (eval $ac_compile) 2>&5
12359  ac_status=$?
12360  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12361  test $ac_status = 0; }; then
12362  od -c conftest.o |
12363    sed 's/^[0-7]*[ 	]*/ /
12364	  s/\*/./g
12365	  s/ \\n/*/g
12366	  s/ [0-9][0-9][0-9]/./g
12367	  s/  \\[^ ]/./g' |
12368    tr -d '
12369 ' | tr -s '*' '
12370' | fold | sed '$a\
12371' > conftest.dmp
12372  if   grep 'format:.@IEEEF.:tamrof' conftest.dmp >/dev/null 2>&1; then
12373    ac_cv_c_float_format='IEEE (big-endian)'
12374  elif grep 'format:.I@@PFE.:tamrof' conftest.dmp >/dev/null 2>&1; then
12375    ac_cv_c_float_format='IEEE (big-endian)'
12376  elif grep 'format:.FEEEI@.:tamrof' conftest.dmp >/dev/null 2>&1; then
12377    ac_cv_c_float_format='IEEE (little-endian)'
12378  elif grep 'format:.EFP@@I.:tamrof' conftest.dmp >/dev/null 2>&1; then
12379    ac_cv_c_float_format='IEEE (little-endian)'
12380  elif grep 'format:.__floa.:tamrof' conftest.dmp >/dev/null 2>&1; then
12381    ac_cv_c_float_format='VAX D-float'
12382  elif grep 'format:..PDP-1.:tamrof' conftest.dmp >/dev/null 2>&1; then
12383    ac_cv_c_float_format='PDP-10'
12384  elif grep 'format:.BMHEXF.:tamrof' conftest.dmp >/dev/null 2>&1; then
12385    ac_cv_c_float_format='IBM 370 hex'
12386  else
12387    as_fn_error $? "Unknown floating point format" "$LINENO" 5
12388  fi
12389else
12390  as_fn_error $? "compile failed" "$LINENO" 5
12391fi
12392rm -rf conftest*
12393ac_ext=c
12394ac_cpp='$CPP $CPPFLAGS'
12395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12397ac_compiler_gnu=$ac_cv_c_compiler_gnu
12398
12399
12400fi
12401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_float_format" >&5
12402$as_echo "$ac_cv_c_float_format" >&6; }
12403# IEEE is the default format.  If the float endianness isn't the same
12404# as the integer endianness, we have to set FLOAT_WORDS_BIG_ENDIAN
12405# (which is a tristate: yes, no, default).  This is only an issue with
12406# IEEE; the other formats are only supported by a few machines each,
12407# all with the same endianness.
12408format=IEEE_FLOAT_FORMAT
12409fbigend=
12410case $ac_cv_c_float_format in
12411    'IEEE (big-endian)' )
12412	if test $ac_cv_c_bigendian = no; then
12413	    fbigend=1
12414	fi
12415	if test $ac_cv_c_bigendian = universal; then
12416	    fbigend=WORDS_BIGENDIAN
12417	fi
12418	;;
12419    'IEEE (little-endian)' )
12420	if test $ac_cv_c_bigendian = yes; then
12421	    fbigend=0
12422	fi
12423	if test $ac_cv_c_bigendian = universal; then
12424	    fbigend='!WORDS_BIGENDIAN'
12425	fi
12426	;;
12427    'VAX D-float' )
12428	format=VAX_FLOAT_FORMAT
12429	;;
12430    'PDP-10' )
12431	format=PDP10_FLOAT_FORMAT
12432	;;
12433    'IBM 370 hex' )
12434	format=IBM_FLOAT_FORMAT
12435	;;
12436esac
12437
12438cat >>confdefs.h <<_ACEOF
12439#define HOST_FLOAT_FORMAT $format
12440_ACEOF
12441
12442if test -n "$fbigend"; then
12443
12444cat >>confdefs.h <<_ACEOF
12445#define HOST_FLOAT_WORDS_BIG_ENDIAN $fbigend
12446_ACEOF
12447
12448fi
12449
12450for ac_header in ieee754.h ieeefp.h floatingpoint.h nan.h math.h
12451do :
12452  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12453ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12454if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12455  cat >>confdefs.h <<_ACEOF
12456#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12457_ACEOF
12458
12459fi
12460
12461done
12462
12463
12464if [ "x$WANT_JIT_FPU" = "xyes" -a "x$FPE_CORE_TEST_ORDER" != "xieee" ]; then
12465  FPE_CORE_TEST_ORDER="ieee"
12466  fi
12467
12468
12469
12470for fpe in $FPE_CORE_TEST_ORDER; do
12471  case $fpe in
12472  ieee)
12473    case $ac_cv_c_float_format in
12474    IEEE*)
12475      FPE_CORE="IEEE fpu core"
12476      $as_echo "#define USES_FPU_CORE \"IEEE\"" >>confdefs.h
12477
12478      DEFINES="$DEFINES -DFPU_IEEE"
12479            for ac_func in isnanl isinfl
12480do :
12481  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12482ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12483if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12484  cat >>confdefs.h <<_ACEOF
12485#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12486_ACEOF
12487
12488fi
12489done
12490
12491                        for ac_func in logl log10l expl powl exp2l pow2l exp10l pow10l fabsl sqrtl log1pl expm1l exp2 pow2
12492do :
12493  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12494ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12495if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12496  cat >>confdefs.h <<_ACEOF
12497#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12498_ACEOF
12499
12500fi
12501done
12502
12503      for ac_func in sinl cosl tanl sinhl coshl tanhl
12504do :
12505  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12506ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12507if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12508  cat >>confdefs.h <<_ACEOF
12509#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12510_ACEOF
12511
12512fi
12513done
12514
12515      for ac_func in asinl acosl atanl asinhl acoshl atanhl
12516do :
12517  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12518ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12519if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12520  cat >>confdefs.h <<_ACEOF
12521#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12522_ACEOF
12523
12524fi
12525done
12526
12527      for ac_func in floorl ceill truncl roundl
12528do :
12529  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12530ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12531if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12532  cat >>confdefs.h <<_ACEOF
12533#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12534_ACEOF
12535
12536fi
12537done
12538
12539      case $CPU_TYPE in
12540        alpha)
12541          	  CXXFLAGS="$CXXFLAGS -mieee"
12542	  LDFLAGS="$LDFLAGS -mieee"
12543	  break
12544	  ;;
12545        *)
12546          ;;
12547      esac
12548      break
12549      ;;
12550    esac
12551    ;;
12552  x86)
12553    if test ":$GCC:$HAVE_I386:$HAVE_GAS:" = ":yes:true:yes:" -o ":$GCC:$HAVE_X86_64:$HAVE_GAS:" = ":yes:true:yes:"; then
12554      FPE_CORE="i387 fpu core"
12555      DEFINES="$DEFINES -DFPU_X86"
12556      break
12557    fi
12558    ;;
12559  uae)
12560    FPE_CORE="uae fpu core"
12561    $as_echo "#define USES_FPU_CORE \"UAE\"" >>confdefs.h
12562
12563    DEFINES="$DEFINES -DFPU_UAE"
12564    break
12565    ;;
12566  mpfr)
12567    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpfr_set_zero in -lmpfr" >&5
12568$as_echo_n "checking for mpfr_set_zero in -lmpfr... " >&6; }
12569if ${ac_cv_lib_mpfr_mpfr_set_zero+:} false; then :
12570  $as_echo_n "(cached) " >&6
12571else
12572  ac_check_lib_save_LIBS=$LIBS
12573LIBS="-lmpfr -lgmp $LIBS"
12574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12575/* end confdefs.h.  */
12576
12577/* Override any GCC internal prototype to avoid an error.
12578   Use char because int might match the return type of a GCC
12579   builtin and then its argument prototype would still apply.  */
12580#ifdef __cplusplus
12581extern "C"
12582#endif
12583char mpfr_set_zero ();
12584int
12585main ()
12586{
12587return mpfr_set_zero ();
12588  ;
12589  return 0;
12590}
12591_ACEOF
12592if ac_fn_c_try_link "$LINENO"; then :
12593  ac_cv_lib_mpfr_mpfr_set_zero=yes
12594else
12595  ac_cv_lib_mpfr_mpfr_set_zero=no
12596fi
12597rm -f core conftest.err conftest.$ac_objext \
12598    conftest$ac_exeext conftest.$ac_ext
12599LIBS=$ac_check_lib_save_LIBS
12600fi
12601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpfr_mpfr_set_zero" >&5
12602$as_echo "$ac_cv_lib_mpfr_mpfr_set_zero" >&6; }
12603if test "x$ac_cv_lib_mpfr_mpfr_set_zero" = xyes; then :
12604  LIBS="$LIBS -lmpfr -lgmp"
12605fi
12606
12607    if test $ac_cv_lib_mpfr_mpfr_set_zero = yes; then
12608      FPE_CORE="mpfr fpu core"
12609      $as_echo "#define USES_FPU_CORE \"MPFR\"" >>confdefs.h
12610
12611      DEFINES="$DEFINES -DFPU_MPFR"
12612      break
12613    fi
12614    ;;
12615  *)
12616    as_fn_error $? "Internal configure.in script error for $fpe fpu core" "$LINENO" 5
12617    ;;
12618  esac
12619done
12620if [ "x$FPE_CORE" = "x" ]; then
12621  as_fn_error $? "Sorry, no suitable FPU core found in $FPE_CORE_TEST_ORDER" "$LINENO" 5
12622fi
12623 if test "$fpe" = "ieee"; then
12624  FPU_IEEE_TRUE=
12625  FPU_IEEE_FALSE='#'
12626else
12627  FPU_IEEE_TRUE='#'
12628  FPU_IEEE_FALSE=
12629fi
12630
12631 if test "$fpe" = "x86"; then
12632  FPU_X86_TRUE=
12633  FPU_X86_FALSE='#'
12634else
12635  FPU_X86_TRUE='#'
12636  FPU_X86_FALSE=
12637fi
12638
12639 if test "$fpe" = "uae"; then
12640  FPU_UAE_TRUE=
12641  FPU_UAE_FALSE='#'
12642else
12643  FPU_UAE_TRUE='#'
12644  FPU_UAE_FALSE=
12645fi
12646
12647 if test "$fpe" = "mpfr"; then
12648  FPU_MPFR_TRUE=
12649  FPU_MPFR_FALSE='#'
12650else
12651  FPU_MPFR_TRUE='#'
12652  FPU_MPFR_FALSE=
12653fi
12654
12655
12656
12657for ac_func in atanh
12658do :
12659  ac_fn_c_check_func "$LINENO" "atanh" "ac_cv_func_atanh"
12660if test "x$ac_cv_func_atanh" = xyes; then :
12661  cat >>confdefs.h <<_ACEOF
12662#define HAVE_ATANH 1
12663_ACEOF
12664
12665fi
12666done
12667
12668for ac_func in isnan isinf finite isnormal signbit
12669do :
12670  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12671ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12672if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12673  cat >>confdefs.h <<_ACEOF
12674#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12675_ACEOF
12676
12677fi
12678done
12679
12680
12681
12682if [ "x$WANT_JIT" = "xno" ]; then
12683    if [ "$USE_DEBUGGER" = "yes" ]; then
12684    $as_echo "#define DEBUGGER 1" >>confdefs.h
12685
12686  fi
12687else
12688  if [ "$USE_DEBUGGER" = "yes" ]; then
12689    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: interactive debugger not usable with JIT" >&5
12690$as_echo "$as_me: WARNING: interactive debugger not usable with JIT" >&2;}
12691    USE_DEBUGGER=no
12692  fi
12693fi
12694 if test "$USE_DEBUGGER" = yes; then
12695  USE_DEBUGGER_TRUE=
12696  USE_DEBUGGER_FALSE='#'
12697else
12698  USE_DEBUGGER_TRUE='#'
12699  USE_DEBUGGER_FALSE=
12700fi
12701
12702
12703
12704
12705
12706
12707# Check whether --with-opcodes was given.
12708if test "${with_opcodes+set}" = set; then :
12709  withval=$with_opcodes; with_opcodes=$withval
12710else
12711  with_opcodes=
12712fi
12713
12714
12715# Check whether --enable-disasm was given.
12716if test "${enable_disasm+set}" = set; then :
12717  enableval=$enable_disasm; enable_disasm=$enableval
12718else
12719  enable_disasm=no; enable_disasm_defaulted=yes
12720fi
12721
12722case "$enable_disasm" in
12723no|builtin|opcodes)
12724	;;
12725yes|auto)
12726	enable_disasm=auto
12727	;;
12728*)
12729	as_fn_error $? "unknown disassembler $enable_disasm" "$LINENO" 5
12730	;;
12731esac
12732
12733# check wether we need disassembly support, and which one
12734DISASM_CFLAGS=
12735DISASM_LIBS=
12736if test "$USE_DEBUGGER" != no -o "$WANT_HISTORY" = yes; then
12737   if test "$enable_disasm" = no; then
12738     if test "$enable_disasm_defaulted" = "yes"; then
12739        if test "$with_opcodes" != ""; then
12740          enable_disasm=opcodes
12741        else
12742          enable_disasm=auto
12743        fi
12744     else
12745        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: you have requested debug support but disabled disassembly.
12746The debugger needs some disassembling support." >&5
12747$as_echo "$as_me: WARNING: you have requested debug support but disabled disassembly.
12748The debugger needs some disassembling support." >&2;}
12749     fi
12750   fi
12751fi
12752if test "$enable_disasm" = auto -o "$enable_disasm" = opcodes; then
12753   CPPFLAGS_save="$CPPFLAGS"
12754   LIBS_save="$LIBS"
12755   if test "$with_opcodes" != ""; then
12756      if test -f "$with_opcodes/build-dir/bfd/bfd.h" ; then
12757        OPCODES_CFLAGS="-I$with_opcodes/build-dir/bfd -I$with_opcodes/build-dir/libiberty -I$with_opcodes/build-dir/opcodes"
12758        OPCODES_LIBS="-L$with_opcodes/build-dir/bfd -L$with_opcodes/build-dir/libiberty -L$with_opcodes/build-dir/opcodes"
12759      else
12760        OPCODES_CFLAGS="-I$with_opcodes/include"
12761        OPCODES_LIBS="-L$with_opcodes/lib"
12762      fi
12763      CPPFLAGS="$CPPFLAGS $OPCODES_CFLAGS"
12764   fi
12765   OPCODES_LIBS="$OPCODES_LIBS -lopcodes -lbfd -lz -ldl"
12766   found=no
12767   for ac_header in bfd.h
12768do :
12769  ac_fn_c_check_header_mongrel "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
12770if test "x$ac_cv_header_bfd_h" = xyes; then :
12771  cat >>confdefs.h <<_ACEOF
12772#define HAVE_BFD_H 1
12773_ACEOF
12774 found=yes
12775else
12776  found=no
12777fi
12778
12779done
12780
12781   for ac_header in dis-asm.h
12782do :
12783  ac_fn_c_check_header_mongrel "$LINENO" "dis-asm.h" "ac_cv_header_dis_asm_h" "$ac_includes_default"
12784if test "x$ac_cv_header_dis_asm_h" = xyes; then :
12785  cat >>confdefs.h <<_ACEOF
12786#define HAVE_DIS_ASM_H 1
12787_ACEOF
12788 found=yes
12789else
12790  found=no
12791fi
12792
12793done
12794
12795   CPPFLAGS="$CPPFLAGS_save"
12796   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for print_insn_m68k in -lopcodes" >&5
12797$as_echo_n "checking for print_insn_m68k in -lopcodes... " >&6; }
12798if ${ac_cv_lib_opcodes_print_insn_m68k+:} false; then :
12799  $as_echo_n "(cached) " >&6
12800else
12801  ac_check_lib_save_LIBS=$LIBS
12802LIBS="-lopcodes $OPCODES_LIBS $LIBS"
12803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12804/* end confdefs.h.  */
12805
12806/* Override any GCC internal prototype to avoid an error.
12807   Use char because int might match the return type of a GCC
12808   builtin and then its argument prototype would still apply.  */
12809#ifdef __cplusplus
12810extern "C"
12811#endif
12812char print_insn_m68k ();
12813int
12814main ()
12815{
12816return print_insn_m68k ();
12817  ;
12818  return 0;
12819}
12820_ACEOF
12821if ac_fn_c_try_link "$LINENO"; then :
12822  ac_cv_lib_opcodes_print_insn_m68k=yes
12823else
12824  ac_cv_lib_opcodes_print_insn_m68k=no
12825fi
12826rm -f core conftest.err conftest.$ac_objext \
12827    conftest$ac_exeext conftest.$ac_ext
12828LIBS=$ac_check_lib_save_LIBS
12829fi
12830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opcodes_print_insn_m68k" >&5
12831$as_echo "$ac_cv_lib_opcodes_print_insn_m68k" >&6; }
12832if test "x$ac_cv_lib_opcodes_print_insn_m68k" = xyes; then :
12833  found=yes
12834else
12835  unset ac_cv_lib_opcodes_print_insn_m68k
12836            OPCODES_LIBS="$OPCODES_LIBS -liberty"
12837	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for print_insn_m68k in -lopcodes" >&5
12838$as_echo_n "checking for print_insn_m68k in -lopcodes... " >&6; }
12839if ${ac_cv_lib_opcodes_print_insn_m68k+:} false; then :
12840  $as_echo_n "(cached) " >&6
12841else
12842  ac_check_lib_save_LIBS=$LIBS
12843LIBS="-lopcodes $OPCODES_LIBS $LIBS"
12844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12845/* end confdefs.h.  */
12846
12847/* Override any GCC internal prototype to avoid an error.
12848   Use char because int might match the return type of a GCC
12849   builtin and then its argument prototype would still apply.  */
12850#ifdef __cplusplus
12851extern "C"
12852#endif
12853char print_insn_m68k ();
12854int
12855main ()
12856{
12857return print_insn_m68k ();
12858  ;
12859  return 0;
12860}
12861_ACEOF
12862if ac_fn_c_try_link "$LINENO"; then :
12863  ac_cv_lib_opcodes_print_insn_m68k=yes
12864else
12865  ac_cv_lib_opcodes_print_insn_m68k=no
12866fi
12867rm -f core conftest.err conftest.$ac_objext \
12868    conftest$ac_exeext conftest.$ac_ext
12869LIBS=$ac_check_lib_save_LIBS
12870fi
12871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opcodes_print_insn_m68k" >&5
12872$as_echo "$ac_cv_lib_opcodes_print_insn_m68k" >&6; }
12873if test "x$ac_cv_lib_opcodes_print_insn_m68k" = xyes; then :
12874  found=yes
12875else
12876  found=no
12877fi
12878
12879fi
12880
12881   LIBS="$LIBS_save"
12882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opcodes usability" >&5
12883$as_echo_n "checking for opcodes usability... " >&6; }
12884   if test "$found" = "yes"; then
12885      $as_echo "#define DISASM_USE_OPCODES 1" >>confdefs.h
12886
12887      DISASM_CFLAGS="$OPCODES_CFLAGS"
12888      DISASM_LIBS="$OPCODES_LIBS"
12889      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
12890$as_echo "$found" >&6; }
12891      if test "$with_opcodes" != ""; then
12892        DISASM_LIBS="$DISASM_LIBS -Wl,-rpath,$with_opcodes/lib"
12893      fi
12894      enable_disasm=opcodes
12895   else
12896      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
12897$as_echo "$found" >&6; }
12898      if test "$enable_disasm" = "opcodes"; then
12899        { $as_echo "$as_me:${as_lineno-$LINENO}:
12900
12901Required libraries not found.
12902You may have to specify the path to the correct directory.
12903If your system isn't m68k-based, the libraries may be installed
12904in some unusual place (maybe something like
12905/usr/$host/m68k-unknown-linux-gnu).
12906In the meantime, i will use the builtin support.
12907" >&5
12908$as_echo "$as_me:
12909
12910Required libraries not found.
12911You may have to specify the path to the correct directory.
12912If your system isn't m68k-based, the libraries may be installed
12913in some unusual place (maybe something like
12914/usr/$host/m68k-unknown-linux-gnu).
12915In the meantime, i will use the builtin support.
12916" >&6;}
12917      fi
12918      enable_disasm=auto
12919   fi
12920fi
12921if test "$enable_disasm" = auto -o "$enable_disasm" = builtin; then
12922   $as_echo "#define DISASM_USE_BUILTIN 1" >>confdefs.h
12923
12924   enable_disasm=builtin
12925fi
12926
12927
12928 if test "$enable_disasm" = "builtin"; then
12929  DISASM_USE_BUILTIN_TRUE=
12930  DISASM_USE_BUILTIN_FALSE='#'
12931else
12932  DISASM_USE_BUILTIN_TRUE='#'
12933  DISASM_USE_BUILTIN_FALSE=
12934fi
12935
12936 if test "$enable_disasm" = "opcodes"; then
12937  DISASM_USE_OPCODES_TRUE=
12938  DISASM_USE_OPCODES_FALSE='#'
12939else
12940  DISASM_USE_OPCODES_TRUE='#'
12941  DISASM_USE_OPCODES_FALSE=
12942fi
12943
12944
12945
12946if [ "x$WANT_SPCFLAGS_EXCL" = "xyes" ]; then
12947  DEFINES="$DEFINES -DENABLE_EXCLUSIVE_SPCFLAGS"
12948fi
12949
12950CPUSRCS="$CPUSRCS $JITSRCS"
12951GENCPUSRCS="$GENCPUSRCS cpudefs.cpp cpustbl.cpp cpufunctbl.cpp $GENJITSRCS"
12952
12953if [ "x$GCC" = "xyes" ]; then
12954  if test "$ac_test_CFLAGS" != set; then
12955    CFLAGS=`echo $CFLAGS | sed -e 's/-g\b//g'`
12956  fi
12957  if test "$ac_test_CXXFLAGS" != set; then
12958    CXXFLAGS=`echo $CXXFLAGS | sed -e 's/-g\b//g'`
12959  fi
12960fi
12961if [ "x$WANT_NATDEBUG" = "xyes" ]; then
12962  DBGSP="-g"
12963  WFLAGS=""
12964  if [ "x$GCC" = "xyes" ]; then
12965    WFLAGS="$WFLAGS -W -Wall -Wundef"
12966  fi
12967else
12968  DBGSP=""
12969  WFLAGS=""
12970fi
12971
12972if [ "x$WANT_FULLDEBUG" = "xyes" ]; then
12973  CFLAGS="$CFLAGS -DWHOLEDEBUG"
12974  CXXFLAGS="$CXXFLAGS -DWHOLEDEBUG"
12975fi
12976
12977if [ "x$GCC" = "xyes" ]; then
12978  if test "$ac_test_CFLAGS" != set; then
12979    CFLAGS=`echo $CFLAGS | sed -e 's/-O2//g'`
12980    CFLAGS="-O3 $CFLAGS"
12981  fi
12982  if test "$ac_test_CXXFLAGS" != set; then
12983    CXXFLAGS=`echo $CXXFLAGS | sed -e 's/-O2//g'`
12984    CXXFLAGS="-O3 $CXXFLAGS"
12985  fi
12986fi
12987
12988if [ "x$HAVE_OFAST" = "xyes" ]; then
12989  CFLAGS="`echo $CFLAGS | sed -e 's/-g//g'` -Ofast"
12990  CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-g//g'` -Ofast"
12991  CXXFLAGS="-LANG:std $CXXFLAGS"
12992  LDFLAGS="$LDFLAGS -ipa"
12993fi
12994
12995
12996# Check whether --enable-sdl2 was given.
12997if test "${enable_sdl2+set}" = set; then :
12998  enableval=$enable_sdl2;
12999else
13000  enable_sdl2=auto
13001fi
13002
13003
13004SDL_CFLAGS=
13005SDL_LIBS=
13006no_sdl=yes
13007no_sdl2=yes
13008if test "$OS_TYPE" == darwin -a "$WITH_FINK" = no; then
13009
13010    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports framework SDL" >&5
13011$as_echo_n "checking whether compiler supports framework SDL... " >&6; }
13012if ${aranym_cv_have_framework_SDL+:} false; then :
13013  $as_echo_n "(cached) " >&6
13014else
13015
13016    saved_LIBS="$LIBS"
13017    LIBS="$LIBS -framework SDL"
13018    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13019/* end confdefs.h.  */
13020
13021int
13022main ()
13023{
13024
13025  ;
13026  return 0;
13027}
13028_ACEOF
13029if ac_fn_c_try_link "$LINENO"; then :
13030  aranym_cv_have_framework_SDL=yes; SDL_LIBS=" -framework SDL"
13031else
13032  aranym_cv_have_framework_SDL=no
13033
13034fi
13035rm -f core conftest.err conftest.$ac_objext \
13036    conftest$ac_exeext conftest.$ac_ext
13037    LIBS="$saved_LIBS"
13038
13039fi
13040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $aranym_cv_have_framework_SDL" >&5
13041$as_echo "$aranym_cv_have_framework_SDL" >&6; }
13042  if test $aranym_cv_have_framework_SDL = yes; then :
13043
13044$as_echo "#define HAVE_FRAMEWORK_SDL 1" >>confdefs.h
13045
13046
13047fi
13048  have_framework_SDL=$aranym_cv_have_framework_SDL
13049
13050	if test "$have_framework_SDL" = yes ; then
13051
13052		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking location of SDL framework" >&5
13053$as_echo_n "checking location of SDL framework... " >&6; }
13054if ${aranym_cv_SDL_location+:} false; then :
13055  $as_echo_n "(cached) " >&6
13056else
13057
13058		aranym_cv_SDL_location=""
13059		echo "#error dummy" > conftest.c
13060		pos_locations=`$CC -v conftest.c -framework SDL 2>&1 | grep -e "> search" -A 999 | grep -e "End of " -B 999 | grep -e "^ "`
13061		rm -f conftest.c
13062		for pos_location in $FRAMEWORK_SEARCH_PATHS $pos_locations ; do
13063			pos_location="`echo $pos_location | sed 's/^"//' | sed 's/"$//'`"
13064			framework_loc="$pos_location/SDL.framework"
13065			if test -d "$framework_loc" ; then
13066				aranym_cv_SDL_location="$framework_loc"
13067				break;
13068			fi
13069		done
13070
13071fi
13072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $aranym_cv_SDL_location" >&5
13073$as_echo "$aranym_cv_SDL_location" >&6; }
13074	if test -z $aranym_cv_SDL_location ; then
13075		as_fn_error $? "SDL framework not found" "$LINENO" 5
13076	fi
13077	SDL_LOCATION=$aranym_cv_SDL_location
13078
13079        	sdl_version="`defaults read $SDL_LOCATION/Resources/Info.plist CFBundleShortVersionString`"
13080		# SDL 1.2.15 has still 1.2.14 in the Info.plist file
13081		if test "$sdl_version" = "1.2.14"; then
13082			if test `defaults read $SDL_LOCATION/Resources/Info.plist BuildMachineOSBuild` = "12F2518"; then
13083				sdl_version=1.2.15
13084			fi
13085		fi
13086        	no_sdl=no
13087	fi
13088    if test "$enable_sdl2" != no; then
13089
13090    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports framework SDL2" >&5
13091$as_echo_n "checking whether compiler supports framework SDL2... " >&6; }
13092if ${aranym_cv_have_framework_SDL2+:} false; then :
13093  $as_echo_n "(cached) " >&6
13094else
13095
13096    saved_LIBS="$LIBS"
13097    LIBS="$LIBS -framework SDL2"
13098    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13099/* end confdefs.h.  */
13100
13101int
13102main ()
13103{
13104
13105  ;
13106  return 0;
13107}
13108_ACEOF
13109if ac_fn_c_try_link "$LINENO"; then :
13110  aranym_cv_have_framework_SDL2=yes; SDL2_LIBS=" -framework SDL2"
13111else
13112  aranym_cv_have_framework_SDL2=no
13113
13114fi
13115rm -f core conftest.err conftest.$ac_objext \
13116    conftest$ac_exeext conftest.$ac_ext
13117    LIBS="$saved_LIBS"
13118
13119fi
13120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $aranym_cv_have_framework_SDL2" >&5
13121$as_echo "$aranym_cv_have_framework_SDL2" >&6; }
13122  if test $aranym_cv_have_framework_SDL2 = yes; then :
13123
13124$as_echo "#define HAVE_FRAMEWORK_SDL2 1" >>confdefs.h
13125
13126
13127fi
13128  have_framework_SDL2=$aranym_cv_have_framework_SDL2
13129
13130		if test "$have_framework_SDL2" = yes ; then
13131
13132		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking location of SDL2 framework" >&5
13133$as_echo_n "checking location of SDL2 framework... " >&6; }
13134if ${aranym_cv_SDL2_location+:} false; then :
13135  $as_echo_n "(cached) " >&6
13136else
13137
13138		aranym_cv_SDL2_location=""
13139		echo "#error dummy" > conftest.c
13140		pos_locations=`$CC -v conftest.c -framework SDL2 2>&1 | grep -e "> search" -A 999 | grep -e "End of " -B 999 | grep -e "^ "`
13141		rm -f conftest.c
13142		for pos_location in $FRAMEWORK_SEARCH_PATHS $pos_locations ; do
13143			pos_location="`echo $pos_location | sed 's/^"//' | sed 's/"$//'`"
13144			framework_loc="$pos_location/SDL2.framework"
13145			if test -d "$framework_loc" ; then
13146				aranym_cv_SDL2_location="$framework_loc"
13147				break;
13148			fi
13149		done
13150
13151fi
13152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $aranym_cv_SDL2_location" >&5
13153$as_echo "$aranym_cv_SDL2_location" >&6; }
13154	if test -z $aranym_cv_SDL2_location ; then
13155		as_fn_error $? "SDL2 framework not found" "$LINENO" 5
13156	fi
13157	SDL2_LOCATION=$aranym_cv_SDL2_location
13158
13159            sdl2_version="`defaults read $SDL2_LOCATION/Resources/Info.plist CFBundleShortVersionString`"
13160            no_sdl2=no
13161		fi
13162	fi
13163else
13164
13165# Check whether --with-sdl-prefix was given.
13166if test "${with_sdl_prefix+set}" = set; then :
13167  withval=$with_sdl_prefix; sdl_prefix="$withval"
13168else
13169  sdl_prefix=""
13170fi
13171
13172
13173# Check whether --with-sdl-exec-prefix was given.
13174if test "${with_sdl_exec_prefix+set}" = set; then :
13175  withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
13176else
13177  sdl_exec_prefix=""
13178fi
13179
13180# Check whether --enable-sdltest was given.
13181if test "${enable_sdltest+set}" = set; then :
13182  enableval=$enable_sdltest;
13183else
13184  enable_sdltest=yes
13185fi
13186
13187
13188  as_save_PATH="$PATH"
13189  if test "x$prefix" != xNONE; then
13190    PATH="$prefix/bin:$prefix/usr/bin:$PATH"
13191  fi
13192
13193#
13194# provide some defaults on cygwin,
13195# where we use the MinGW version of the SDL library,
13196# to simplify standard configuration.
13197# But only if the user did not override it.
13198#
13199case $host in
13200  *-*-cygwin*)
13201  MINGW_ROOT=$prefix/i686-w64-mingw32/sys-root/mingw
13202  if test -d "$MINGW_ROOT"; then
13203     if test "$sdl_prefix" = "" ; then
13204        sdl_prefix="$MINGW_ROOT"
13205        sdl_exec_prefix="$MINGW_ROOT/bin"
13206     fi
13207  fi
13208  ;;
13209esac
13210
13211  if test x$sdl_exec_prefix != x ; then
13212    sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
13213    PATH="$sdl_exec_prefix:$PATH"
13214  fi
13215  if test x$sdl_prefix != x ; then
13216    sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
13217    PATH="$sdl_prefix/bin:$PATH"
13218  fi
13219
13220  if test x${SDL_CONFIG+set} != xset ; then
13221    # Extract the first word of "sdl-config", so it can be a program name with args.
13222set dummy sdl-config; ac_word=$2
13223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13224$as_echo_n "checking for $ac_word... " >&6; }
13225if ${ac_cv_path_SDL_CONFIG+:} false; then :
13226  $as_echo_n "(cached) " >&6
13227else
13228  case $SDL_CONFIG in
13229  [\\/]* | ?:[\\/]*)
13230  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
13231  ;;
13232  *)
13233  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13234for as_dir in $PATH
13235do
13236  IFS=$as_save_IFS
13237  test -z "$as_dir" && as_dir=.
13238    for ac_exec_ext in '' $ac_executable_extensions; do
13239  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13240    ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13241    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13242    break 2
13243  fi
13244done
13245  done
13246IFS=$as_save_IFS
13247
13248  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
13249  ;;
13250esac
13251fi
13252SDL_CONFIG=$ac_cv_path_SDL_CONFIG
13253if test -n "$SDL_CONFIG"; then
13254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
13255$as_echo "$SDL_CONFIG" >&6; }
13256else
13257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13258$as_echo "no" >&6; }
13259fi
13260
13261
13262  else
13263    test -f "$SDL_CONFIG" || SDL_CONFIG=no
13264  fi
13265  PATH="$as_save_PATH"
13266  min_sdl_version=1.2.12
13267  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
13268$as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
13269  no_sdl=""
13270  if test "$SDL_CONFIG" = "no" ; then
13271    no_sdl=yes
13272  else
13273    SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
13274    SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
13275
13276case $host in
13277  *-*-cygwin*)
13278  # switches that must be removed for the mixed cygwin/MinGW32 platform
13279  # also replaces -L... -lSDL by the absolute pathname of the library,
13280  # because the -L points to mingw libraries instead of cygwin libraries
13281  nosdlswitch='s/-Dmain=SDL_main//;
13282s=-I/usr/include.*/SDL='-I${includedir}/SDL'=;
13283s=-I/mingw/include.*/SDL='-I${includedir}/SDL'=;
13284s/-DWIN32//;
13285s/-Uunix//;
13286s/-mno-cygwin//;
13287s/-lmingw32//;
13288s/-lSDLmain//;
13289s/-mwindows//;
13290s/-mms-bitfields//;
13291s=-L\([^ ]*\).*-l\(SDL[^ ]*\)=\1/lib\2.dll.a=;
13292'
13293	SDL_CFLAGS=`echo $SDL_CFLAGS | sed -e "$nosdlswitch"`
13294	SDL_LIBS=`echo $SDL_LIBS | sed -e "$nosdlswitch"`
13295        enable_sdltest=no
13296	;;
13297  *-*-mingw*)
13298  # switches that must be removed because we dont link SDLmain
13299  nosdlswitch='s/-Dmain=SDL_main//;
13300s=-I/usr/include.*/SDL='-I${includedir}/SDL'=;
13301s=-I/mingw/include.*/SDL='-I${includedir}/SDL'=;
13302s/-DWIN32//;
13303s/-Uunix//;
13304s/-lmingw32//;
13305s/-lSDLmain//;
13306s/-mwindows//;
13307'
13308	SDL_CFLAGS=`echo $SDL_CFLAGS | sed -e "$nosdlswitch"`
13309	SDL_LIBS=`echo $SDL_LIBS | sed -e "$nosdlswitch"`
13310        enable_sdltest=no
13311	;;
13312esac
13313
13314# remove -L/usr/lib{32,64} from SDL_LIBS; this is
13315# a default search directory anyways,
13316# and will cause trouble when compiling in 32-bit mode
13317# on 64-bit machines
13318SDL_LIBS=`echo $SDL_LIBS | sed -e 's,-L/usr/lib[2346]* ,,'`
13319
13320    sdl_version=`$SDL_CONFIG $sdl_config_args --version`
13321    sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
13322           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13323    sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
13324           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13325    sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
13326           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13327    if test "x$enable_sdltest" = "xyes" ; then
13328      ac_save_CFLAGS="$CFLAGS"
13329      ac_save_CXXFLAGS="$CXXFLAGS"
13330      ac_save_LIBS="$LIBS"
13331      CFLAGS="$CFLAGS $SDL_CFLAGS"
13332      eval CFLAGS=\"$CFLAGS\"
13333      eval CFLAGS=\"$CFLAGS\"
13334      CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
13335      eval CXXFLAGS=\"$CXXFLAGS\"
13336      eval CXXFLAGS=\"$CXXFLAGS\"
13337      LIBS="$LIBS $SDL_LIBS"
13338      rm -f conf.sdltest
13339      if test "$cross_compiling" = yes; then :
13340  echo $ac_n "cross compiling; assumed OK... $ac_c"
13341else
13342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13343/* end confdefs.h.  */
13344
13345#include <stdio.h>
13346#include <stdlib.h>
13347#include <string.h>
13348#include "SDL.h"
13349
13350char*
13351my_strdup (char *str)
13352{
13353  char *new_str;
13354
13355  if (str)
13356    {
13357      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
13358      strcpy (new_str, str);
13359    }
13360  else
13361    new_str = NULL;
13362
13363  return new_str;
13364}
13365
13366int main (int argc, char *argv[])
13367{
13368  int major, minor, micro;
13369  char *tmp_version;
13370
13371  /* This hangs on some systems (?)
13372  system ("touch conf.sdltest");
13373  */
13374  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
13375
13376  /* HP/UX 9 (%@#!) writes to sscanf strings */
13377  tmp_version = my_strdup("$min_sdl_version");
13378  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13379     printf("%s, bad version string\n", "$min_sdl_version");
13380     exit(1);
13381   }
13382
13383   if (($sdl_major_version > major) ||
13384      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
13385      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
13386    {
13387      return 0;
13388    }
13389  else
13390    {
13391      printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
13392      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
13393      printf("*** best to upgrade to the required version.\n");
13394      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
13395      printf("*** to point to the correct copy of sdl-config, and remove the file\n");
13396      printf("*** config.cache before re-running configure\n");
13397      return 1;
13398    }
13399}
13400
13401
13402_ACEOF
13403if ac_fn_c_try_run "$LINENO"; then :
13404
13405else
13406  no_sdl=yes
13407fi
13408rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13409  conftest.$ac_objext conftest.beam conftest.$ac_ext
13410fi
13411
13412       CFLAGS="$ac_save_CFLAGS"
13413       CXXFLAGS="$ac_save_CXXFLAGS"
13414       LIBS="$ac_save_LIBS"
13415     fi
13416  fi
13417  if test "x$no_sdl" = x ; then
13418     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13419$as_echo "yes" >&6; }
13420     :
13421  else
13422     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13423$as_echo "no" >&6; }
13424     if test "$SDL_CONFIG" = "no" ; then
13425       echo "*** The sdl-config script installed by SDL could not be found"
13426       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
13427       echo "*** your path, or set the SDL_CONFIG environment variable to the"
13428       echo "*** full path to sdl-config."
13429     else
13430       if test -f conf.sdltest ; then
13431        :
13432       else
13433          echo "*** Could not run SDL test program, checking why..."
13434          CFLAGS="$CFLAGS $SDL_CFLAGS"
13435          CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
13436          LIBS="$LIBS $SDL_LIBS"
13437          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13438/* end confdefs.h.  */
13439
13440#include <stdio.h>
13441#include "SDL.h"
13442
13443int main(int argc, char *argv[])
13444{ return 0; }
13445#undef  main
13446#define main K_and_R_C_main
13447
13448int
13449main ()
13450{
13451 return 0;
13452  ;
13453  return 0;
13454}
13455_ACEOF
13456if ac_fn_c_try_link "$LINENO"; then :
13457   echo "*** The test program compiled, but did not run. This usually means"
13458          echo "*** that the run-time linker is not finding SDL or finding the wrong"
13459          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
13460          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13461          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13462          echo "*** is required on your system"
13463	  echo "***"
13464          echo "*** If you have an old version installed, it is best to remove it, although"
13465          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13466else
13467   echo "*** The test program failed to compile or link. See the file config.log for the"
13468          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
13469          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
13470          echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
13471fi
13472rm -f core conftest.err conftest.$ac_objext \
13473    conftest$ac_exeext conftest.$ac_ext
13474          CFLAGS="$ac_save_CFLAGS"
13475          CXXFLAGS="$ac_save_CXXFLAGS"
13476          LIBS="$ac_save_LIBS"
13477       fi
13478     fi
13479     SDL_CFLAGS=""
13480     SDL_LIBS=""
13481     :
13482  fi
13483
13484
13485  rm -f conf.sdltest
13486
13487	if test "$enable_sdl2" != no; then
13488
13489# Check whether --with-sdl2-prefix was given.
13490if test "${with_sdl2_prefix+set}" = set; then :
13491  withval=$with_sdl2_prefix; sdl2_prefix="$withval"
13492else
13493  sdl2_prefix=""
13494fi
13495
13496
13497# Check whether --with-sdl2-exec-prefix was given.
13498if test "${with_sdl2_exec_prefix+set}" = set; then :
13499  withval=$with_sdl2_exec_prefix; sdl2_exec_prefix="$withval"
13500else
13501  sdl2_exec_prefix=""
13502fi
13503
13504# Check whether --enable-sdltest was given.
13505if test "${enable_sdltest+set}" = set; then :
13506  enableval=$enable_sdltest;
13507else
13508  enable_sdltest=yes
13509fi
13510
13511
13512  min_sdl2_version=2.0.3
13513
13514  if test "x$sdl2_prefix$sdl2_exec_prefix" = x ; then
13515
13516pkg_failed=no
13517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL2" >&5
13518$as_echo_n "checking for SDL2... " >&6; }
13519
13520if test -n "$SDL2_CFLAGS"; then
13521    pkg_cv_SDL2_CFLAGS="$SDL2_CFLAGS"
13522 elif test -n "$PKG_CONFIG"; then
13523    if test -n "$PKG_CONFIG" && \
13524    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl2_version\""; } >&5
13525  ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl2_version") 2>&5
13526  ac_status=$?
13527  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13528  test $ac_status = 0; }; then
13529  pkg_cv_SDL2_CFLAGS=`$PKG_CONFIG --cflags "sdl2 >= $min_sdl2_version" 2>/dev/null`
13530		      test "x$?" != "x0" && pkg_failed=yes
13531else
13532  pkg_failed=yes
13533fi
13534 else
13535    pkg_failed=untried
13536fi
13537if test -n "$SDL2_LIBS"; then
13538    pkg_cv_SDL2_LIBS="$SDL2_LIBS"
13539 elif test -n "$PKG_CONFIG"; then
13540    if test -n "$PKG_CONFIG" && \
13541    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl2_version\""; } >&5
13542  ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl2_version") 2>&5
13543  ac_status=$?
13544  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13545  test $ac_status = 0; }; then
13546  pkg_cv_SDL2_LIBS=`$PKG_CONFIG --libs "sdl2 >= $min_sdl2_version" 2>/dev/null`
13547		      test "x$?" != "x0" && pkg_failed=yes
13548else
13549  pkg_failed=yes
13550fi
13551 else
13552    pkg_failed=untried
13553fi
13554
13555
13556
13557if test $pkg_failed = yes; then
13558   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13559$as_echo "no" >&6; }
13560
13561if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13562        _pkg_short_errors_supported=yes
13563else
13564        _pkg_short_errors_supported=no
13565fi
13566        if test $_pkg_short_errors_supported = yes; then
13567	        SDL2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2 >= $min_sdl2_version" 2>&1`
13568        else
13569	        SDL2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2 >= $min_sdl2_version" 2>&1`
13570        fi
13571	# Put the nasty error message in config.log where it belongs
13572	echo "$SDL2_PKG_ERRORS" >&5
13573
13574	sdl2_pc=no
13575elif test $pkg_failed = untried; then
13576     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13577$as_echo "no" >&6; }
13578	sdl2_pc=no
13579else
13580	SDL2_CFLAGS=$pkg_cv_SDL2_CFLAGS
13581	SDL2_LIBS=$pkg_cv_SDL2_LIBS
13582        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13583$as_echo "yes" >&6; }
13584	sdl2_pc=yes
13585fi
13586    if test "x$sdl2_pc" = xyes ; then
13587      #
13588      # sdl2.pc fails to add -I{includedir}/directfb to cflags if SDL2 was
13589      # configured with --enable-directfb; we may have to add it ourselves
13590      #
13591      case `$PKG_CONFIG --libs --static sdl2` in
13592      *-ldirectfb*)
13593	 SDL2_CFLAGS="$SDL2_CFLAGS -I`$PKG_CONFIG --variable=includedir sdl2`/directfb"
13594	 ;;
13595      esac
13596    fi
13597  else
13598    sdl2_pc=no
13599  fi
13600
13601  if test "x$sdl2_pc" = xyes ; then
13602    no_sdl2=""
13603    SDL2_CONFIG="$PKG_CONFIG sdl2"
13604    sdl2_version=`$PKG_CONFIG --modversion sdl2`
13605  else
13606
13607    as_save_PATH="$PATH"
13608    if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then
13609      PATH="$prefix/bin:$prefix/usr/bin:$PATH"
13610    fi
13611
13612    #
13613    # provide some defaults on cygwin,
13614    # where we use the MinGW version of the SDL library,
13615    # to simplify standard configuration.
13616    # But only if the user did not override it.
13617    #
13618    case $host in
13619      *-*-cygwin*)
13620      MINGW_ROOT=$prefix/i686-w64-mingw32/sys-root/mingw
13621      if test -d "$MINGW_ROOT"; then
13622         if test "$sdl2_prefix" = "" ; then
13623            sdl2_prefix="$MINGW_ROOT"
13624            sdl2_exec_prefix="$MINGW_ROOT/bin"
13625         fi
13626      fi
13627      ;;
13628    esac
13629
13630    if test x$sdl2_exec_prefix != x ; then
13631      sdl2_config_args="$sdl2_config_args --exec-prefix=$sdl2_exec_prefix"
13632      PATH="$sdl2_exec_prefix:$PATH"
13633    fi
13634    if test x$sdl2_prefix != x ; then
13635      sdl2_config_args="$sdl2_config_args --prefix=$sdl2_prefix"
13636      PATH="$sdl2_prefix/bin:$PATH"
13637    fi
13638    if test x${SDL2_CONFIG+set} != xset ; then
13639      # Extract the first word of "sdl2-config", so it can be a program name with args.
13640set dummy sdl2-config; ac_word=$2
13641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13642$as_echo_n "checking for $ac_word... " >&6; }
13643if ${ac_cv_path_SDL2_CONFIG+:} false; then :
13644  $as_echo_n "(cached) " >&6
13645else
13646  case $SDL2_CONFIG in
13647  [\\/]* | ?:[\\/]*)
13648  ac_cv_path_SDL2_CONFIG="$SDL2_CONFIG" # Let the user override the test with a path.
13649  ;;
13650  *)
13651  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13652for as_dir in $PATH
13653do
13654  IFS=$as_save_IFS
13655  test -z "$as_dir" && as_dir=.
13656    for ac_exec_ext in '' $ac_executable_extensions; do
13657  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13658    ac_cv_path_SDL2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13660    break 2
13661  fi
13662done
13663  done
13664IFS=$as_save_IFS
13665
13666  test -z "$ac_cv_path_SDL2_CONFIG" && ac_cv_path_SDL2_CONFIG="no"
13667  ;;
13668esac
13669fi
13670SDL2_CONFIG=$ac_cv_path_SDL2_CONFIG
13671if test -n "$SDL2_CONFIG"; then
13672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL2_CONFIG" >&5
13673$as_echo "$SDL2_CONFIG" >&6; }
13674else
13675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13676$as_echo "no" >&6; }
13677fi
13678
13679
13680    else
13681      test -f "$SDL2_CONFIG" || SDL2_CONFIG=no
13682    fi
13683    PATH="$as_save_PATH"
13684    no_sdl2=""
13685
13686    if test "$SDL2_CONFIG" = "no" ; then
13687      no_sdl2=yes
13688    else
13689      SDL2_CFLAGS=`$SDL2_CONFIG $sdl2_config_args --cflags`
13690      SDL2_LIBS=`$SDL2_CONFIG $sdl2_config_args --libs`
13691      sdl2_version=`$SDL2_CONFIG $sdl2_config_args --version`
13692      #
13693      # sdl2-config fails to add -I{includedir}/directfb to cflags if SDL2 was
13694      # configured with --enable-directfb; we may have to add it ourselves
13695      #
13696      case `$SDL2_CONFIG $sdl2_config_args --static-libs` in
13697      *-ldirectfb*)
13698	 SDL2_CFLAGS="$SDL2_CFLAGS -I`$SDL2_CONFIG $sdl2_config_args --prefix`/include/directfb"
13699	 ;;
13700      esac
13701    fi
13702  fi
13703
13704case $host in
13705  *-*-cygwin*)
13706  # switches that must be removed for the mixed cygwin/MinGW32 platform
13707  # also replaces -L... -lSDL by the absolute pathname of the library,
13708  # because the -L points to mingw libraries instead of cygwin libraries
13709  nosdlswitch='s/-Dmain=SDL_main//;
13710s=-I/usr/include.*/SDL='-I${includedir}/SDL'=;
13711s=-I/mingw/include.*/SDL='-I${includedir}/SDL'=;
13712s/-DWIN32//;
13713s/-Uunix//;
13714s/-mno-cygwin//;
13715s/-lmingw32//;
13716s/-lSDL2main//;
13717s/-mwindows//;
13718s/-mms-bitfields//;
13719s=-L\([^ ]*\).*-l\(SDL[^ ]*\)=\1/lib\2.dll.a=;
13720'
13721	SDL2_CFLAGS=`echo $SDL2_CFLAGS | sed -e "$nosdlswitch"`
13722	SDL2_LIBS=`echo $SDL2_LIBS | sed -e "$nosdlswitch"`
13723        enable_sdltest=no
13724	;;
13725  *-*-mingw*)
13726  # switches that must be removed because we dont link SDLmain
13727  nosdlswitch='s/-Dmain=SDL_main//;
13728s=-I/usr/include.*/SDL='-I${includedir}/SDL'=;
13729s=-I/mingw/include.*/SDL='-I${includedir}/SDL'=;
13730s/-DWIN32//;
13731s/-Uunix//;
13732s/-lmingw32//;
13733s/-lSDL2main//;
13734s/-mwindows//;
13735'
13736	SDL2_CFLAGS=`echo $SDL2_CFLAGS | sed -e "$nosdlswitch"`
13737	SDL2_LIBS=`echo $SDL2_LIBS | sed -e "$nosdlswitch"`
13738        enable_sdltest=no
13739	;;
13740esac
13741
13742# remove -L/usr/lib{32,64} from SDL_LIBS; this is
13743# a default search directory anyways,
13744# and will cause trouble when compiling in 32-bit mode
13745# on 64-bit machines
13746SDL2_LIBS=`echo $SDL2_LIBS | sed -e 's,-L/usr/lib[2346]* ,,'`
13747
13748  if test "$no_sdl2" != yes ; then
13749      if test "x$enable_sdltest" = "xyes" ; then
13750        ac_save_CFLAGS="$CFLAGS"
13751        ac_save_CXXFLAGS="$CXXFLAGS"
13752        ac_save_LIBS="$LIBS"
13753        CFLAGS="$CFLAGS $SDL2_CFLAGS"
13754        eval CFLAGS=\"$CFLAGS\"
13755        eval CFLAGS=\"$CFLAGS\"
13756        CXXFLAGS="$CXXFLAGS $SDL2_CFLAGS"
13757        eval CXXFLAGS=\"$CXXFLAGS\"
13758        eval CXXFLAGS=\"$CXXFLAGS\"
13759        LIBS="$LIBS $SDL2_LIBS"
13760
13761      sdl2_major_version=`echo $sdl2_version | \
13762             sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13763      sdl2_minor_version=`echo $sdl2_version | \
13764             sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13765      sdl2_micro_version=`echo $sdl2_version | \
13766             sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13767      rm -f conf.sdltest
13768      if test "$cross_compiling" = yes; then :
13769  echo $ac_n "cross compiling; assumed OK... $ac_c"
13770else
13771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13772/* end confdefs.h.  */
13773
13774#include <stdio.h>
13775#include <stdlib.h>
13776#include <string.h>
13777#include "SDL.h"
13778
13779char*
13780my_strdup (char *str)
13781{
13782  char *new_str;
13783
13784  if (str)
13785    {
13786      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
13787      strcpy (new_str, str);
13788    }
13789  else
13790    new_str = NULL;
13791
13792  return new_str;
13793}
13794
13795int main (int argc, char *argv[])
13796{
13797  int major, minor, micro;
13798  char *tmp_version;
13799
13800  /* This hangs on some systems (?)
13801  system ("touch conf.sdltest");
13802  */
13803  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
13804
13805  /* HP/UX 9 (%@#!) writes to sscanf strings */
13806  tmp_version = my_strdup("$min_sdl2_version");
13807  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13808     printf("%s, bad version string\n", "$min_sdl2_version");
13809     exit(1);
13810   }
13811
13812   if (($sdl2_major_version > major) ||
13813      (($sdl2_major_version == major) && ($sdl2_minor_version > minor)) ||
13814      (($sdl2_major_version == major) && ($sdl2_minor_version == minor) && ($sdl2_micro_version >= micro)))
13815    {
13816      return 0;
13817    }
13818  else
13819    {
13820      printf("\n*** 'sdl2-config --version' returned %d.%d.%d, but the minimum version\n", $sdl2_major_version, $sdl2_minor_version, $sdl2_micro_version);
13821      printf("*** of SDL required is %d.%d.%d. If sdl2-config is correct, then it is\n", major, minor, micro);
13822      printf("*** best to upgrade to the required version.\n");
13823      printf("*** If sdl2-config was wrong, set the environment variable SDL2_CONFIG\n");
13824      printf("*** to point to the correct copy of sdl2-config, and remove the file\n");
13825      printf("*** config.cache before re-running configure\n");
13826      return 1;
13827    }
13828}
13829
13830
13831_ACEOF
13832if ac_fn_c_try_run "$LINENO"; then :
13833
13834else
13835  no_sdl2=yes
13836fi
13837rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13838  conftest.$ac_objext conftest.beam conftest.$ac_ext
13839fi
13840
13841        CFLAGS="$ac_save_CFLAGS"
13842        CXXFLAGS="$ac_save_CXXFLAGS"
13843        LIBS="$ac_save_LIBS"
13844      fi
13845    fi
13846
13847    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL2 - version >= $min_sdl2_version" >&5
13848$as_echo_n "checking for SDL2 - version >= $min_sdl2_version... " >&6; }
13849    if test "x$no_sdl2" = x ; then
13850      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13851$as_echo "yes" >&6; }
13852    else
13853      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13854$as_echo "no" >&6; }
13855    fi
13856
13857  if test "x$no_sdl2" = x ; then
13858     :
13859  else
13860     if test "$SDL2_CONFIG" = "no" ; then
13861       echo "*** The sdl2-config script installed by SDL could not be found"
13862       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
13863       echo "*** your path, or set the SDL2_CONFIG environment variable to the"
13864       echo "*** full path to sdl2-config."
13865     else
13866       if test -f conf.sdltest ; then
13867        :
13868       else
13869          echo "*** Could not run SDL2 test program, checking why..."
13870          CFLAGS="$CFLAGS $SDL2_CFLAGS"
13871          CXXFLAGS="$CXXFLAGS $SDL2_CFLAGS"
13872          LIBS="$LIBS $SDL2_LIBS"
13873          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13874/* end confdefs.h.  */
13875
13876#include <stdio.h>
13877#include "SDL.h"
13878
13879int main(int argc, char *argv[])
13880{ return 0; }
13881#undef  main
13882#define main K_and_R_C_main
13883
13884int
13885main ()
13886{
13887 return 0;
13888  ;
13889  return 0;
13890}
13891_ACEOF
13892if ac_fn_c_try_link "$LINENO"; then :
13893   echo "*** The test program compiled, but did not run. This usually means"
13894          echo "*** that the run-time linker is not finding SDL or finding the wrong"
13895          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
13896          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13897          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13898          echo "*** is required on your system"
13899	  echo "***"
13900          echo "*** If you have an old version installed, it is best to remove it, although"
13901          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13902else
13903   echo "*** The test program failed to compile or link. See the file config.log for the"
13904          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
13905          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
13906          echo "*** may want to edit the sdl2-config script: $SDL2_CONFIG"
13907fi
13908rm -f core conftest.err conftest.$ac_objext \
13909    conftest$ac_exeext conftest.$ac_ext
13910          CFLAGS="$ac_save_CFLAGS"
13911          CXXFLAGS="$ac_save_CXXFLAGS"
13912          LIBS="$ac_save_LIBS"
13913       fi
13914     fi
13915     SDL2_CFLAGS=""
13916     SDL2_LIBS=""
13917     :
13918  fi
13919
13920
13921  rm -f conf.sdltest
13922
13923	fi
13924fi
13925if test "$no_sdl" = yes -a "$no_sdl2" = yes; then
13926	as_fn_error $? "*** neither SDL nor SDL2 found! ***" "$LINENO" 5
13927else
13928	case "$host" in #(
13929  arm*-*-linux*) :
13930    on_rpi=`awk -v r=0 '/^Hardware[ \t]+:[ \t]+BCM2708/ { ++r;} /^Serial[ \t]+:/ { ++r; } END { print ((r > 1) ? "yes" : "no");}' /proc/cpuinfo` ;; #(
13931  *) :
13932    on_rpi="no" ;;
13933esac
13934
13935	if test "$on_rpi" = yes; then
13936
13937$as_echo "#define USE_FIXED_CONSOLE_FBVIDEOMODE 1" >>confdefs.h
13938
13939	fi
13940fi
13941if test "$no_sdl2" = yes -a "$enable_sdl2" = yes; then
13942	as_fn_error $? "*** SDL2 was requested, but was not found ***" "$LINENO" 5
13943fi
13944if test "$no_sdl2" != yes -a "$enable_sdl2" != no; then
13945	enable_sdl2=yes
13946fi
13947if test "$have_framework_SDL" = yes -o "$have_framework_SDL2" = yes; then
13948	if test "$enable_sdl2" = yes; then
13949		SDL_CFLAGS="-I$SDL2_LOCATION/Headers"
13950		BUNDLE_FRAMEWORKS="$BUNDLE_FRAMEWORKS $SDL2_LOCATION"
13951		SDL_LIBS="$SDL2_LIBS"
13952		sdl_version="$sdl2_version"
13953	else
13954		SDL_CFLAGS="-I$SDL_LOCATION/Headers"
13955		BUNDLE_FRAMEWORKS="$BUNDLE_FRAMEWORKS $SDL_LOCATION"
13956	fi
13957else
13958	if test "$enable_sdl2" = yes; then
13959		SDL_CFLAGS="$SDL2_CFLAGS"
13960		SDL_LIBS="$SDL2_LIBS"
13961		sdl_version="$sdl2_version"
13962	fi
13963fi
13964 if test "$enable_sdl2" = yes; then
13965  ENABLE_SDL2_TRUE=
13966  ENABLE_SDL2_FALSE='#'
13967else
13968  ENABLE_SDL2_TRUE='#'
13969  ENABLE_SDL2_FALSE=
13970fi
13971
13972#
13973# SDL2 on macOS needs 10.6 or above
13974if test "$enable_sdl2" = yes -a "$OS_TYPE" == darwin; then
13975	export MACOSX_DEPLOYMENT_TARGET=10.6
13976fi
13977
13978have_jpeglib_h=no
13979have_jpeglib_lib=no
13980for ac_header in jpeglib.h
13981do :
13982  ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
13983if test "x$ac_cv_header_jpeglib_h" = xyes; then :
13984  cat >>confdefs.h <<_ACEOF
13985#define HAVE_JPEGLIB_H 1
13986_ACEOF
13987 have_jpeglib_h=yes
13988fi
13989
13990done
13991
13992if test "$have_jpeglib_h" = yes; then
13993	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateDecompress in -ljpeg" >&5
13994$as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; }
13995if ${ac_cv_lib_jpeg_jpeg_CreateDecompress+:} false; then :
13996  $as_echo_n "(cached) " >&6
13997else
13998  ac_check_lib_save_LIBS=$LIBS
13999LIBS="-ljpeg  $LIBS"
14000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14001/* end confdefs.h.  */
14002
14003/* Override any GCC internal prototype to avoid an error.
14004   Use char because int might match the return type of a GCC
14005   builtin and then its argument prototype would still apply.  */
14006#ifdef __cplusplus
14007extern "C"
14008#endif
14009char jpeg_CreateDecompress ();
14010int
14011main ()
14012{
14013return jpeg_CreateDecompress ();
14014  ;
14015  return 0;
14016}
14017_ACEOF
14018if ac_fn_c_try_link "$LINENO"; then :
14019  ac_cv_lib_jpeg_jpeg_CreateDecompress=yes
14020else
14021  ac_cv_lib_jpeg_jpeg_CreateDecompress=no
14022fi
14023rm -f core conftest.err conftest.$ac_objext \
14024    conftest$ac_exeext conftest.$ac_ext
14025LIBS=$ac_check_lib_save_LIBS
14026fi
14027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5
14028$as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; }
14029if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = xyes; then :
14030  have_jpeglib_lib=yes
14031fi
14032
14033fi
14034if test "$have_jpeglib_h" = yes -a "$have_jpeglib_lib" = yes; then
14035
14036$as_echo "#define HAVE_JPEGLIB 1" >>confdefs.h
14037
14038	JPEG_LIBS="-ljpeg"
14039fi
14040
14041
14042if test "$have_jpeglib_lib" = no; then
14043if test "$enable_sdl2" = yes; then
14044
14045    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports framework SDL2_image" >&5
14046$as_echo_n "checking whether compiler supports framework SDL2_image... " >&6; }
14047if ${aranym_cv_have_framework_SDL2_image+:} false; then :
14048  $as_echo_n "(cached) " >&6
14049else
14050
14051    saved_LIBS="$LIBS"
14052    LIBS="$LIBS -framework SDL2_image"
14053    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14054/* end confdefs.h.  */
14055
14056int
14057main ()
14058{
14059
14060  ;
14061  return 0;
14062}
14063_ACEOF
14064if ac_fn_c_try_link "$LINENO"; then :
14065  aranym_cv_have_framework_SDL2_image=yes; SDL2_image_LIBS=" -framework SDL2_image"
14066else
14067  aranym_cv_have_framework_SDL2_image=no
14068
14069fi
14070rm -f core conftest.err conftest.$ac_objext \
14071    conftest$ac_exeext conftest.$ac_ext
14072    LIBS="$saved_LIBS"
14073
14074fi
14075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $aranym_cv_have_framework_SDL2_image" >&5
14076$as_echo "$aranym_cv_have_framework_SDL2_image" >&6; }
14077  if test $aranym_cv_have_framework_SDL2_image = yes; then :
14078
14079$as_echo "#define HAVE_FRAMEWORK_SDL2_IMAGE 1" >>confdefs.h
14080
14081
14082fi
14083  have_framework_SDL2_image=$aranym_cv_have_framework_SDL2_image
14084
14085else
14086
14087    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports framework SDL_image" >&5
14088$as_echo_n "checking whether compiler supports framework SDL_image... " >&6; }
14089if ${aranym_cv_have_framework_SDL_image+:} false; then :
14090  $as_echo_n "(cached) " >&6
14091else
14092
14093    saved_LIBS="$LIBS"
14094    LIBS="$LIBS -framework SDL_image"
14095    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14096/* end confdefs.h.  */
14097
14098int
14099main ()
14100{
14101
14102  ;
14103  return 0;
14104}
14105_ACEOF
14106if ac_fn_c_try_link "$LINENO"; then :
14107  aranym_cv_have_framework_SDL_image=yes; SDL_image_LIBS=" -framework SDL_image"
14108else
14109  aranym_cv_have_framework_SDL_image=no
14110
14111fi
14112rm -f core conftest.err conftest.$ac_objext \
14113    conftest$ac_exeext conftest.$ac_ext
14114    LIBS="$saved_LIBS"
14115
14116fi
14117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $aranym_cv_have_framework_SDL_image" >&5
14118$as_echo "$aranym_cv_have_framework_SDL_image" >&6; }
14119  if test $aranym_cv_have_framework_SDL_image = yes; then :
14120
14121$as_echo "#define HAVE_FRAMEWORK_SDL_IMAGE 1" >>confdefs.h
14122
14123
14124fi
14125  have_framework_SDL_image=$aranym_cv_have_framework_SDL_image
14126
14127fi
14128if test "$have_framework_SDL2_image" = yes ; then
14129
14130		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking location of SDL2_image framework" >&5
14131$as_echo_n "checking location of SDL2_image framework... " >&6; }
14132if ${aranym_cv_SDL2_image_location+:} false; then :
14133  $as_echo_n "(cached) " >&6
14134else
14135
14136		aranym_cv_SDL2_image_location=""
14137		echo "#error dummy" > conftest.c
14138		pos_locations=`$CC -v conftest.c -framework SDL2_image 2>&1 | grep -e "> search" -A 999 | grep -e "End of " -B 999 | grep -e "^ "`
14139		rm -f conftest.c
14140		for pos_location in $FRAMEWORK_SEARCH_PATHS $pos_locations ; do
14141			pos_location="`echo $pos_location | sed 's/^"//' | sed 's/"$//'`"
14142			framework_loc="$pos_location/SDL2_image.framework"
14143			if test -d "$framework_loc" ; then
14144				aranym_cv_SDL2_image_location="$framework_loc"
14145				break;
14146			fi
14147		done
14148
14149fi
14150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $aranym_cv_SDL2_image_location" >&5
14151$as_echo "$aranym_cv_SDL2_image_location" >&6; }
14152	if test -z $aranym_cv_SDL2_image_location ; then
14153		as_fn_error $? "SDL2_image framework not found" "$LINENO" 5
14154	fi
14155	SDL2_image_LOCATION=$aranym_cv_SDL2_image_location
14156
14157	SDL_CFLAGS="$SDL_CFLAGS -I$SDL2_image_LOCATION/Headers"
14158	BUNDLE_FRAMEWORKS="$BUNDLE_FRAMEWORKS $SDL2_image_LOCATION"
14159	have_sdlimage_lib=yes
14160	have_sdlimage_h=yes
14161elif test "$have_framework_SDL_image" = yes ; then
14162
14163		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking location of SDL_image framework" >&5
14164$as_echo_n "checking location of SDL_image framework... " >&6; }
14165if ${aranym_cv_SDL_image_location+:} false; then :
14166  $as_echo_n "(cached) " >&6
14167else
14168
14169		aranym_cv_SDL_image_location=""
14170		echo "#error dummy" > conftest.c
14171		pos_locations=`$CC -v conftest.c -framework SDL_image 2>&1 | grep -e "> search" -A 999 | grep -e "End of " -B 999 | grep -e "^ "`
14172		rm -f conftest.c
14173		for pos_location in $FRAMEWORK_SEARCH_PATHS $pos_locations ; do
14174			pos_location="`echo $pos_location | sed 's/^"//' | sed 's/"$//'`"
14175			framework_loc="$pos_location/SDL_image.framework"
14176			if test -d "$framework_loc" ; then
14177				aranym_cv_SDL_image_location="$framework_loc"
14178				break;
14179			fi
14180		done
14181
14182fi
14183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $aranym_cv_SDL_image_location" >&5
14184$as_echo "$aranym_cv_SDL_image_location" >&6; }
14185	if test -z $aranym_cv_SDL_image_location ; then
14186		as_fn_error $? "SDL_image framework not found" "$LINENO" 5
14187	fi
14188	SDL_image_LOCATION=$aranym_cv_SDL_image_location
14189
14190	CPPFLAGS="$CPPFLAGS -I$SDL_image_LOCATION/Headers"
14191	BUNDLE_FRAMEWORKS="$BUNDLE_FRAMEWORKS $SDL_image_LOCATION"
14192	have_sdlimage_lib=yes
14193	have_sdlimage_h=yes
14194else
14195	tmp_cflags="$CFLAGS"
14196	tmp_cppflags="$CPPFLAGS"
14197	tmp_ldflags="$LDFLAGS"
14198	CFLAGS="$CFLAGS $SDL_CFLAGS"
14199	CPPFLAGS="$CPPFLAGS $SDL_CFLAGS"
14200	LDFLAGS="$LDFLAGS $SDL_LIBS"
14201
14202	case "$host" in
14203		# the mixed environment on cygwin usually
14204		# causes link tests against SDL fail here,
14205		# just assume it is present
14206		*-*-cygwin*)
14207			have_sdlimage_lib=yes
14208			have_sdlimage_h=yes
14209			if test "$enable_sdl2" = yes; then
14210				SDL_LIBS="$SDL_LIBS `echo $SDL_LIBS | sed -e 's/SDL2.dll/SDL2_image.dll/'`"
14211			else
14212				SDL_LIBS="$SDL_LIBS `echo $SDL_LIBS | sed -e 's/SDL.dll/SDL_image.dll/'`"
14213			fi
14214			;;
14215		*-*-mingw*)
14216			have_sdlimage_lib=yes
14217			have_sdlimage_h=yes
14218			if test "$enable_sdl2" = yes; then
14219				SDL_LIBS="$SDL_LIBS -lSDL2_image"
14220			else
14221				SDL_LIBS="$SDL_LIBS -lSDL_image"
14222			fi
14223			;;
14224		*)
14225			ac_fn_c_check_header_mongrel "$LINENO" "SDL_image.h" "ac_cv_header_SDL_image_h" "$ac_includes_default"
14226if test "x$ac_cv_header_SDL_image_h" = xyes; then :
14227  have_sdlimage_h=yes
14228else
14229  havesdlimage_h=no
14230fi
14231
14232
14233			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMG_isJPG in -lSDL_image" >&5
14234$as_echo_n "checking for IMG_isJPG in -lSDL_image... " >&6; }
14235if ${ac_cv_lib_SDL_image_IMG_isJPG+:} false; then :
14236  $as_echo_n "(cached) " >&6
14237else
14238  ac_check_lib_save_LIBS=$LIBS
14239LIBS="-lSDL_image  $LIBS"
14240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14241/* end confdefs.h.  */
14242
14243/* Override any GCC internal prototype to avoid an error.
14244   Use char because int might match the return type of a GCC
14245   builtin and then its argument prototype would still apply.  */
14246#ifdef __cplusplus
14247extern "C"
14248#endif
14249char IMG_isJPG ();
14250int
14251main ()
14252{
14253return IMG_isJPG ();
14254  ;
14255  return 0;
14256}
14257_ACEOF
14258if ac_fn_c_try_link "$LINENO"; then :
14259  ac_cv_lib_SDL_image_IMG_isJPG=yes
14260else
14261  ac_cv_lib_SDL_image_IMG_isJPG=no
14262fi
14263rm -f core conftest.err conftest.$ac_objext \
14264    conftest$ac_exeext conftest.$ac_ext
14265LIBS=$ac_check_lib_save_LIBS
14266fi
14267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_image_IMG_isJPG" >&5
14268$as_echo "$ac_cv_lib_SDL_image_IMG_isJPG" >&6; }
14269if test "x$ac_cv_lib_SDL_image_IMG_isJPG" = xyes; then :
14270  have_sdlimage_lib=yes
14271else
14272  have_sdlimage_lib=no
14273fi
14274
14275			if test "$have_sdlimage_h" = yes -a "$have_sdlimage_lib" = yes; then
14276				if test "$enable_sdl2" = yes; then
14277					SDL_LIBS="$SDL_LIBS -lSDL2_image"
14278				else
14279					SDL_LIBS="$SDL_LIBS -lSDL_image"
14280				fi
14281			fi
14282			;;
14283	esac
14284
14285	CFLAGS="$tmp_cflags"
14286	CPPFLAGS="$tmp_cppflags"
14287	LDFLAGS="$tmp_ldflags"
14288fi
14289if test "$have_sdlimage_h" = yes -a "$have_sdlimage_lib" = yes; then
14290
14291$as_echo "#define HAVE_SDL_IMAGE 1" >>confdefs.h
14292
14293fi
14294fi
14295
14296if test "x$WANT_OPENGL" = "xyes"; then
14297	have_opengl="no"
14298	if test "x$PKG_CONFIG" != "x"; then
14299
14300pkg_failed=no
14301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL" >&5
14302$as_echo_n "checking for GL... " >&6; }
14303
14304if test -n "$GL_CFLAGS"; then
14305    pkg_cv_GL_CFLAGS="$GL_CFLAGS"
14306 elif test -n "$PKG_CONFIG"; then
14307    if test -n "$PKG_CONFIG" && \
14308    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5
14309  ($PKG_CONFIG --exists --print-errors "gl") 2>&5
14310  ac_status=$?
14311  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14312  test $ac_status = 0; }; then
14313  pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "gl" 2>/dev/null`
14314		      test "x$?" != "x0" && pkg_failed=yes
14315else
14316  pkg_failed=yes
14317fi
14318 else
14319    pkg_failed=untried
14320fi
14321if test -n "$GL_LIBS"; then
14322    pkg_cv_GL_LIBS="$GL_LIBS"
14323 elif test -n "$PKG_CONFIG"; then
14324    if test -n "$PKG_CONFIG" && \
14325    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5
14326  ($PKG_CONFIG --exists --print-errors "gl") 2>&5
14327  ac_status=$?
14328  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14329  test $ac_status = 0; }; then
14330  pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "gl" 2>/dev/null`
14331		      test "x$?" != "x0" && pkg_failed=yes
14332else
14333  pkg_failed=yes
14334fi
14335 else
14336    pkg_failed=untried
14337fi
14338
14339
14340
14341if test $pkg_failed = yes; then
14342   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14343$as_echo "no" >&6; }
14344
14345if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14346        _pkg_short_errors_supported=yes
14347else
14348        _pkg_short_errors_supported=no
14349fi
14350        if test $_pkg_short_errors_supported = yes; then
14351	        GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gl" 2>&1`
14352        else
14353	        GL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gl" 2>&1`
14354        fi
14355	# Put the nasty error message in config.log where it belongs
14356	echo "$GL_PKG_ERRORS" >&5
14357
14358	have_opengl="no"
14359elif test $pkg_failed = untried; then
14360     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14361$as_echo "no" >&6; }
14362	have_opengl="no"
14363else
14364	GL_CFLAGS=$pkg_cv_GL_CFLAGS
14365	GL_LIBS=$pkg_cv_GL_LIBS
14366        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14367$as_echo "yes" >&6; }
14368	have_opengl="yes"
14369fi
14370	fi
14371	if test "x$GL_LIBS" = "x"; then
14372		case "$host" in
14373			*-*-cygwin* | *-*-mingw*)
14374				GL_LIBS="-lopengl32"
14375				;;
14376			*-*-darwin*)
14377				GL_LIBS="-Wl,-framework,OpenGL"
14378				;;
14379			*)
14380				GL_LIBS="-lGL"
14381				;;
14382		esac
14383	fi
14384	case "$host" in
14385		# the mixed environment on cygwin usually
14386		# causes link tests against SDL fail here,
14387		# just assume it is present
14388		*-*-cygwin* | *-*-mingw*)
14389			have_opengl=yes
14390			;;
14391	esac
14392	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL support" >&5
14393$as_echo_n "checking for OpenGL support... " >&6; }
14394	tmp_cflags="$CFLAGS"
14395	tmp_libs="$LIBS"
14396	if test "$have_opengl" = no; then
14397		CFLAGS="$CFLAGS $SDL_CFLAGS"
14398		LIBS="$LIBS $SDL_LIBS $GL_LIBS"
14399		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14400/* end confdefs.h.  */
14401
14402			 #include "SDL_opengl.h"
14403
14404int
14405main ()
14406{
14407
14408  ;
14409  return 0;
14410}
14411_ACEOF
14412if ac_fn_c_try_compile "$LINENO"; then :
14413  have_opengl="yes"
14414fi
14415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14416	fi
14417	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_opengl" >&5
14418$as_echo "$have_opengl" >&6; }
14419	CFLAGS="$tmp_cflags"
14420	LIBS="$tmp_libs"
14421	if test "x$have_opengl" = "xyes"; then
14422
14423$as_echo "#define ENABLE_OPENGL 1" >>confdefs.h
14424
14425	else
14426		WANT_OPENGL="no"
14427	fi
14428fi
14429 if test "$WANT_OPENGL" = yes; then
14430  ENABLE_OPENGL_TRUE=
14431  ENABLE_OPENGL_FALSE='#'
14432else
14433  ENABLE_OPENGL_TRUE='#'
14434  ENABLE_OPENGL_FALSE=
14435fi
14436
14437
14438
14439if [ "x$WANT_LILO" = "xyes" ]; then
14440	have_zlib=no
14441	# Search using pkg-config
14442	if test "x$PKG_CONFIG" != "x"; then
14443
14444pkg_failed=no
14445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
14446$as_echo_n "checking for ZLIB... " >&6; }
14447
14448if test -n "$ZLIB_CFLAGS"; then
14449    pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
14450 elif test -n "$PKG_CONFIG"; then
14451    if test -n "$PKG_CONFIG" && \
14452    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
14453  ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
14454  ac_status=$?
14455  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14456  test $ac_status = 0; }; then
14457  pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
14458		      test "x$?" != "x0" && pkg_failed=yes
14459else
14460  pkg_failed=yes
14461fi
14462 else
14463    pkg_failed=untried
14464fi
14465if test -n "$ZLIB_LIBS"; then
14466    pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
14467 elif test -n "$PKG_CONFIG"; then
14468    if test -n "$PKG_CONFIG" && \
14469    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
14470  ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
14471  ac_status=$?
14472  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14473  test $ac_status = 0; }; then
14474  pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
14475		      test "x$?" != "x0" && pkg_failed=yes
14476else
14477  pkg_failed=yes
14478fi
14479 else
14480    pkg_failed=untried
14481fi
14482
14483
14484
14485if test $pkg_failed = yes; then
14486   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14487$as_echo "no" >&6; }
14488
14489if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14490        _pkg_short_errors_supported=yes
14491else
14492        _pkg_short_errors_supported=no
14493fi
14494        if test $_pkg_short_errors_supported = yes; then
14495	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
14496        else
14497	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
14498        fi
14499	# Put the nasty error message in config.log where it belongs
14500	echo "$ZLIB_PKG_ERRORS" >&5
14501
14502	have_zlib=no
14503elif test $pkg_failed = untried; then
14504     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14505$as_echo "no" >&6; }
14506	have_zlib=no
14507else
14508	ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
14509	ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
14510        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14511$as_echo "yes" >&6; }
14512	have_zlib=yes
14513fi
14514	fi
14515
14516	# Fallback to autoconf (helps in Ubuntu 10.04 LTS)
14517	if test "$have_zlib" = "no"; then
14518		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
14519$as_echo_n "checking for gzopen in -lz... " >&6; }
14520if ${ac_cv_lib_z_gzopen+:} false; then :
14521  $as_echo_n "(cached) " >&6
14522else
14523  ac_check_lib_save_LIBS=$LIBS
14524LIBS="-lz  $LIBS"
14525cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14526/* end confdefs.h.  */
14527
14528/* Override any GCC internal prototype to avoid an error.
14529   Use char because int might match the return type of a GCC
14530   builtin and then its argument prototype would still apply.  */
14531#ifdef __cplusplus
14532extern "C"
14533#endif
14534char gzopen ();
14535int
14536main ()
14537{
14538return gzopen ();
14539  ;
14540  return 0;
14541}
14542_ACEOF
14543if ac_fn_c_try_link "$LINENO"; then :
14544  ac_cv_lib_z_gzopen=yes
14545else
14546  ac_cv_lib_z_gzopen=no
14547fi
14548rm -f core conftest.err conftest.$ac_objext \
14549    conftest$ac_exeext conftest.$ac_ext
14550LIBS=$ac_check_lib_save_LIBS
14551fi
14552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
14553$as_echo "$ac_cv_lib_z_gzopen" >&6; }
14554if test "x$ac_cv_lib_z_gzopen" = xyes; then :
14555  have_zlib=yes
14556else
14557  have_zlib=no
14558fi
14559
14560	fi
14561
14562	if test "$have_zlib" = "yes"; then
14563
14564$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
14565
14566	fi
14567else
14568	have_zlib="not required"
14569fi
14570
14571WITH_USBHOST="no"
14572if test "x$WANT_USBHOST" = "xyes"; then
14573  # Search using pkg-config
14574    if test "x$PKG_CONFIG" != "x"; then
14575
14576pkg_failed=no
14577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
14578$as_echo_n "checking for LIBUSB... " >&6; }
14579
14580if test -n "$LIBUSB_CFLAGS"; then
14581    pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
14582 elif test -n "$PKG_CONFIG"; then
14583    if test -n "$PKG_CONFIG" && \
14584    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
14585  ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
14586  ac_status=$?
14587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14588  test $ac_status = 0; }; then
14589  pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
14590		      test "x$?" != "x0" && pkg_failed=yes
14591else
14592  pkg_failed=yes
14593fi
14594 else
14595    pkg_failed=untried
14596fi
14597if test -n "$LIBUSB_LIBS"; then
14598    pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
14599 elif test -n "$PKG_CONFIG"; then
14600    if test -n "$PKG_CONFIG" && \
14601    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
14602  ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
14603  ac_status=$?
14604  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14605  test $ac_status = 0; }; then
14606  pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
14607		      test "x$?" != "x0" && pkg_failed=yes
14608else
14609  pkg_failed=yes
14610fi
14611 else
14612    pkg_failed=untried
14613fi
14614
14615
14616
14617if test $pkg_failed = yes; then
14618   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14619$as_echo "no" >&6; }
14620
14621if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14622        _pkg_short_errors_supported=yes
14623else
14624        _pkg_short_errors_supported=no
14625fi
14626        if test $_pkg_short_errors_supported = yes; then
14627	        LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
14628        else
14629	        LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
14630        fi
14631	# Put the nasty error message in config.log where it belongs
14632	echo "$LIBUSB_PKG_ERRORS" >&5
14633
14634	WITH_USBHOST="no"
14635elif test $pkg_failed = untried; then
14636     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14637$as_echo "no" >&6; }
14638	WITH_USBHOST="no"
14639else
14640	LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
14641	LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
14642        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14643$as_echo "yes" >&6; }
14644	WITH_USBHOST="yes"
14645fi
14646    fi
14647
14648  # Search the library and headers directly
14649    if test "x$WITH_USBHOST" = "xno"; then
14650      ac_fn_c_check_header_mongrel "$LINENO" "libusb-1.0/libusb.h" "ac_cv_header_libusb_1_0_libusb_h" "$ac_includes_default"
14651if test "x$ac_cv_header_libusb_1_0_libusb_h" = xyes; then :
14652  WITH_USBHOST="yes"
14653else
14654  WITH_USBHOST="no"
14655fi
14656
14657
14658      if test "x$WITH_USBHOST" = "xyes"; then
14659        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb_init in -lusb-1.0" >&5
14660$as_echo_n "checking for libusb_init in -lusb-1.0... " >&6; }
14661if ${ac_cv_lib_usb_1_0_libusb_init+:} false; then :
14662  $as_echo_n "(cached) " >&6
14663else
14664  ac_check_lib_save_LIBS=$LIBS
14665LIBS="-lusb-1.0  $LIBS"
14666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14667/* end confdefs.h.  */
14668
14669/* Override any GCC internal prototype to avoid an error.
14670   Use char because int might match the return type of a GCC
14671   builtin and then its argument prototype would still apply.  */
14672#ifdef __cplusplus
14673extern "C"
14674#endif
14675char libusb_init ();
14676int
14677main ()
14678{
14679return libusb_init ();
14680  ;
14681  return 0;
14682}
14683_ACEOF
14684if ac_fn_c_try_link "$LINENO"; then :
14685  ac_cv_lib_usb_1_0_libusb_init=yes
14686else
14687  ac_cv_lib_usb_1_0_libusb_init=no
14688fi
14689rm -f core conftest.err conftest.$ac_objext \
14690    conftest$ac_exeext conftest.$ac_ext
14691LIBS=$ac_check_lib_save_LIBS
14692fi
14693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_1_0_libusb_init" >&5
14694$as_echo "$ac_cv_lib_usb_1_0_libusb_init" >&6; }
14695if test "x$ac_cv_lib_usb_1_0_libusb_init" = xyes; then :
14696  cat >>confdefs.h <<_ACEOF
14697#define HAVE_LIBUSB_1_0 1
14698_ACEOF
14699
14700  LIBS="-lusb-1.0 $LIBS"
14701
14702else
14703  WITH_USBHOST="no"
14704fi
14705
14706        LIBUSB_LIBS="-lusb-1.0"
14707      fi
14708    fi
14709
14710    if test "x$WITH_USBHOST" = "xno"; then
14711      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libusb is missing, USB NF disabled" >&5
14712$as_echo "$as_me: WARNING: libusb is missing, USB NF disabled" >&2;}
14713    fi
14714fi
14715
14716
14717if [ "x$WANT_LILO" = "xyes" ]; then
14718	if [ "x$WANT_MMU" = "xyes" ]; then
14719
14720$as_echo "#define ENABLE_LILO 1" >>confdefs.h
14721
14722	else
14723		as_fn_error $? "Linux kernel requires functional MMU emulation" "$LINENO" 5
14724	fi
14725fi
14726
14727
14728
14729NFCDROM_DRIVER=""
14730case "$host_os" in
14731	linux*)
14732		if [ "$ANDROID_OS" != "yes" ]; then
14733
14734$as_echo "#define NFCDROM_LINUX_SUPPORT 1" >>confdefs.h
14735
14736			NFCDROM_DRIVER="linux"
14737		fi
14738		;;
14739	mingw*|cygwin*)
14740
14741$as_echo "#define NFCDROM_WIN32_SUPPORT 1" >>confdefs.h
14742
14743		NFCDROM_DRIVER="win32"
14744		;;
14745esac
14746if test "$enable_sdl2" != yes; then
14747	test "$NFCDROM_DRIVER" != "" && NFCDROM_DRIVER="${NFCDROM_DRIVER},"
14748	NFCDROM_DRIVER="${NFCDROM_DRIVER}sdl"
14749fi
14750if test "$NFCDROM_DRIVER" != ""; then
14751	$as_echo "#define NFCDROM_SUPPORT 1" >>confdefs.h
14752
14753else
14754	NFCDROM_DRIVER=no
14755fi
14756PROVIDES_NF="$PROVIDES_NF cdrom($NFCDROM_DRIVER)"
14757 if test "$NFCDROM_DRIVER" != "no"; then
14758  NFCDROM_SUPPORT_TRUE=
14759  NFCDROM_SUPPORT_FALSE='#'
14760else
14761  NFCDROM_SUPPORT_TRUE='#'
14762  NFCDROM_SUPPORT_FALSE=
14763fi
14764
14765
14766
14767
14768if [ "x$WANT_NFPCI" = "xyes" ]; then
14769	case "$host_os" in
14770		linux*)
14771
14772$as_echo "#define NFPCI_SUPPORT 1" >>confdefs.h
14773
14774
14775$as_echo "#define NFPCI_LINUX_SUPPORT 1" >>confdefs.h
14776
14777			PROVIDES_NF="$PROVIDES_NF pci"
14778			;;
14779		*)
14780			as_fn_error $? "*** NatFeats PCI not supported by this OS ***" "$LINENO" 5
14781			WANT_NFPCI="no"
14782			;;
14783	esac
14784fi
14785 if test "$WANT_NFPCI" = "yes"; then
14786  NFPCI_SUPPORT_TRUE=
14787  NFPCI_SUPPORT_FALSE='#'
14788else
14789  NFPCI_SUPPORT_TRUE='#'
14790  NFPCI_SUPPORT_FALSE=
14791fi
14792
14793 if test "$WANT_NFPCI" = "yes" -a "$OS_TYPE" = "linux"; then
14794  NFPCI_LINUX_SUPPORT_TRUE=
14795  NFPCI_LINUX_SUPPORT_FALSE='#'
14796else
14797  NFPCI_LINUX_SUPPORT_TRUE='#'
14798  NFPCI_LINUX_SUPPORT_FALSE=
14799fi
14800
14801
14802
14803if [ "x$WANT_USBHOST" = "xyes" -a "x$WITH_USBHOST" = "xyes" ]; then
14804
14805$as_echo "#define USBHOST_SUPPORT 1" >>confdefs.h
14806
14807	LIBS="$LIBS $LIBUSB_LIBS"
14808	PROVIDES_NF="$PROVIDES_NF usb"
14809else
14810	WANT_USBHOST=no
14811fi
14812 if test "$WANT_USBHOST" = yes; then
14813  USBHOST_SUPPORT_TRUE=
14814  USBHOST_SUPPORT_FALSE='#'
14815else
14816  USBHOST_SUPPORT_TRUE='#'
14817  USBHOST_SUPPORT_FALSE=
14818fi
14819
14820
14821
14822
14823if [ "x$WANT_NFSCSI" = "xyes" ]; then
14824	case "$host_os" in
14825		linux*)
14826			for ac_header in scsi/sg.h
14827do :
14828  ac_fn_c_check_header_mongrel "$LINENO" "scsi/sg.h" "ac_cv_header_scsi_sg_h" "$ac_includes_default"
14829if test "x$ac_cv_header_scsi_sg_h" = xyes; then :
14830  cat >>confdefs.h <<_ACEOF
14831#define HAVE_SCSI_SG_H 1
14832_ACEOF
14833
14834fi
14835
14836done
14837
14838			if test "$ac_cv_header_scsi_sg_h" != yes; then
14839				WANT_NFSCSI=no
14840			fi
14841			;;
14842		*)
14843			WANT_NFSCSI=no
14844			;;
14845	esac
14846	if test "$WANT_NFSCSI" = "no"; then
14847		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** NatFeats SCSI not supported by this OS ***" >&5
14848$as_echo "$as_me: WARNING: *** NatFeats SCSI not supported by this OS ***" >&2;}
14849	else
14850		$as_echo "#define NFSCSI_SUPPORT 1" >>confdefs.h
14851
14852		PROVIDES_NF="$PROVIDES_NF scsi"
14853	fi
14854fi
14855
14856
14857
14858if test "x$WANT_NFOSMESA" = "xyes"; then
14859	have_osmesa=no
14860	if test "x$PKG_CONFIG" != "x"; then
14861
14862pkg_failed=no
14863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSMESA" >&5
14864$as_echo_n "checking for OSMESA... " >&6; }
14865
14866if test -n "$OSMESA_CFLAGS"; then
14867    pkg_cv_OSMESA_CFLAGS="$OSMESA_CFLAGS"
14868 elif test -n "$PKG_CONFIG"; then
14869    if test -n "$PKG_CONFIG" && \
14870    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"osmesa\""; } >&5
14871  ($PKG_CONFIG --exists --print-errors "osmesa") 2>&5
14872  ac_status=$?
14873  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14874  test $ac_status = 0; }; then
14875  pkg_cv_OSMESA_CFLAGS=`$PKG_CONFIG --cflags "osmesa" 2>/dev/null`
14876		      test "x$?" != "x0" && pkg_failed=yes
14877else
14878  pkg_failed=yes
14879fi
14880 else
14881    pkg_failed=untried
14882fi
14883if test -n "$OSMESA_LIBS"; then
14884    pkg_cv_OSMESA_LIBS="$OSMESA_LIBS"
14885 elif test -n "$PKG_CONFIG"; then
14886    if test -n "$PKG_CONFIG" && \
14887    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"osmesa\""; } >&5
14888  ($PKG_CONFIG --exists --print-errors "osmesa") 2>&5
14889  ac_status=$?
14890  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14891  test $ac_status = 0; }; then
14892  pkg_cv_OSMESA_LIBS=`$PKG_CONFIG --libs "osmesa" 2>/dev/null`
14893		      test "x$?" != "x0" && pkg_failed=yes
14894else
14895  pkg_failed=yes
14896fi
14897 else
14898    pkg_failed=untried
14899fi
14900
14901
14902
14903if test $pkg_failed = yes; then
14904   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14905$as_echo "no" >&6; }
14906
14907if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14908        _pkg_short_errors_supported=yes
14909else
14910        _pkg_short_errors_supported=no
14911fi
14912        if test $_pkg_short_errors_supported = yes; then
14913	        OSMESA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "osmesa" 2>&1`
14914        else
14915	        OSMESA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "osmesa" 2>&1`
14916        fi
14917	# Put the nasty error message in config.log where it belongs
14918	echo "$OSMESA_PKG_ERRORS" >&5
14919
14920	:
14921elif test $pkg_failed = untried; then
14922     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14923$as_echo "no" >&6; }
14924	:
14925else
14926	OSMESA_CFLAGS=$pkg_cv_OSMESA_CFLAGS
14927	OSMESA_LIBS=$pkg_cv_OSMESA_LIBS
14928        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14929$as_echo "yes" >&6; }
14930	have_osmesa=yes
14931fi
14932	fi
14933	if test "$have_osmesa" = "no"; then
14934		have_osmesa=yes
14935		for ac_header in GL/osmesa.h
14936do :
14937  ac_fn_c_check_header_mongrel "$LINENO" "GL/osmesa.h" "ac_cv_header_GL_osmesa_h" "$ac_includes_default"
14938if test "x$ac_cv_header_GL_osmesa_h" = xyes; then :
14939  cat >>confdefs.h <<_ACEOF
14940#define HAVE_GL_OSMESA_H 1
14941_ACEOF
14942
14943fi
14944
14945done
14946
14947	fi
14948	if test "$have_osmesa" = "yes"; then
14949		CPPFLAGS="$CPPFLAGS $OSMESA_CFLAGS"
14950		$as_echo "#define NFOSMESA_SUPPORT 1" >>confdefs.h
14951
14952	else
14953		WANT_NFOSMESA="no"
14954	fi
14955fi
14956 if test "$WANT_NFOSMESA" = yes; then
14957  NFOSMESA_SUPPORT_TRUE=
14958  NFOSMESA_SUPPORT_FALSE='#'
14959else
14960  NFOSMESA_SUPPORT_TRUE='#'
14961  NFOSMESA_SUPPORT_FALSE=
14962fi
14963
14964
14965if [ "x$WANT_NFOSMESA" = "xyes" ]; then
14966	PROVIDES_NF="$PROVIDES_NF osmesa"
14967fi
14968
14969
14970
14971if [ "x$WANT_NFJPEG" = "xyes" ]; then
14972	if test "$have_jpeglib_lib" = "yes"; then
14973		$as_echo "#define NFJPEG_SUPPORT 1" >>confdefs.h
14974
14975		PROVIDES_NF="$PROVIDES_NF jpeg"
14976	elif test "$have_sdlimage_h" = "yes" -a "$have_sdlimage_lib" = "yes"; then
14977		$as_echo "#define NFJPEG_SUPPORT 1" >>confdefs.h
14978
14979		PROVIDES_NF="$PROVIDES_NF jpeg"
14980	else
14981		WANT_NFJPEG="no"
14982                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no jpeg library found, JPEG NF disabled" >&5
14983$as_echo "$as_me: WARNING: no jpeg library found, JPEG NF disabled" >&2;}
14984	fi
14985fi
14986 if test "$WANT_NFJPEG" = yes; then
14987  NFJPEG_SUPPORT_TRUE=
14988  NFJPEG_SUPPORT_FALSE='#'
14989else
14990  NFJPEG_SUPPORT_TRUE='#'
14991  NFJPEG_SUPPORT_FALSE=
14992fi
14993
14994
14995
14996
14997if [ "x$WANT_NFVDI" = "xyes" ]; then
14998
14999$as_echo "#define NFVDI_SUPPORT 1" >>confdefs.h
15000
15001	NFVDI_DRIVER="sw"
15002	if [ "x$WANT_OPENGL" = "xyes" ]; then
15003		NFVDI_DRIVER="opengl,$NFVDI_DRIVER"
15004	fi
15005	PROVIDES_NF="$PROVIDES_NF vdi($NFVDI_DRIVER)"
15006fi
15007 if test "$WANT_NFVDI" = "yes"; then
15008  NFVDI_SUPPORT_TRUE=
15009  NFVDI_SUPPORT_FALSE='#'
15010else
15011  NFVDI_SUPPORT_TRUE='#'
15012  NFVDI_SUPPORT_FALSE=
15013fi
15014
15015
15016
15017
15018if [ "x$WANT_NFCLIPBRD" = "xyes" ]; then
15019	case $OS_TYPE in
15020	cygwin | mingw)
15021		$as_echo "#define NFCLIPBRD_SUPPORT 1" >>confdefs.h
15022
15023		;;
15024	darwin)
15025		$as_echo "#define NFCLIPBRD_SUPPORT 1" >>confdefs.h
15026
15027		# X-Headers are not always available on macOS
15028		tmp_cppflags="$CPPFLAGS"
15029		# not nice to hardcode the path here,
15030		# but it is also hardcoded in the XCode project
15031		CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include"
15032		for ac_header in X11/Xlib.h
15033do :
15034  ac_fn_c_check_header_mongrel "$LINENO" "X11/Xlib.h" "ac_cv_header_X11_Xlib_h" "$ac_includes_default"
15035if test "x$ac_cv_header_X11_Xlib_h" = xyes; then :
15036  cat >>confdefs.h <<_ACEOF
15037#define HAVE_X11_XLIB_H 1
15038_ACEOF
15039
15040fi
15041
15042done
15043
15044		CPPFLAGS="$tmp_cppflags"
15045		;;
15046	beos | haiku)
15047		$as_echo "#define NFCLIPBRD_SUPPORT 1" >>confdefs.h
15048
15049		LIBS="$LIBS -lbe"
15050		;;
15051	*)
15052		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5
15053$as_echo_n "checking for XOpenDisplay in -lX11... " >&6; }
15054if ${ac_cv_lib_X11_XOpenDisplay+:} false; then :
15055  $as_echo_n "(cached) " >&6
15056else
15057  ac_check_lib_save_LIBS=$LIBS
15058LIBS="-lX11 -L/usr/X11R6/lib $LIBS"
15059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15060/* end confdefs.h.  */
15061
15062/* Override any GCC internal prototype to avoid an error.
15063   Use char because int might match the return type of a GCC
15064   builtin and then its argument prototype would still apply.  */
15065#ifdef __cplusplus
15066extern "C"
15067#endif
15068char XOpenDisplay ();
15069int
15070main ()
15071{
15072return XOpenDisplay ();
15073  ;
15074  return 0;
15075}
15076_ACEOF
15077if ac_fn_c_try_link "$LINENO"; then :
15078  ac_cv_lib_X11_XOpenDisplay=yes
15079else
15080  ac_cv_lib_X11_XOpenDisplay=no
15081fi
15082rm -f core conftest.err conftest.$ac_objext \
15083    conftest$ac_exeext conftest.$ac_ext
15084LIBS=$ac_check_lib_save_LIBS
15085fi
15086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenDisplay" >&5
15087$as_echo "$ac_cv_lib_X11_XOpenDisplay" >&6; }
15088if test "x$ac_cv_lib_X11_XOpenDisplay" = xyes; then :
15089  SDL_LIBS="$SDL_LIBS -lX11"
15090fi
15091
15092		if [ "x$ac_cv_lib_X11_XOpenDisplay" = "xyes" ]; then
15093			$as_echo "#define NFCLIPBRD_SUPPORT 1" >>confdefs.h
15094
15095		else
15096		     	as_fn_error $? "Sorry, NatFeat Clipboard not implemented on your platform yet" "$LINENO" 5
15097			WANT_NFCLIPBRD="no"
15098		fi
15099		;;
15100	esac
15101fi
15102 if test "$WANT_NFCLIPBRD" = yes; then
15103  NFCLIPBRD_SUPPORT_TRUE=
15104  NFCLIPBRD_SUPPORT_FALSE='#'
15105else
15106  NFCLIPBRD_SUPPORT_TRUE='#'
15107  NFCLIPBRD_SUPPORT_FALSE=
15108fi
15109
15110
15111
15112if [ "$WANT_NFEXEC" = yes -a "$WANT_HOSTFS" != yes ]; then
15113	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NF exec disabled due to lack of support from HOSTFS" >&5
15114$as_echo "$as_me: WARNING: NF exec disabled due to lack of support from HOSTFS" >&2;}
15115	WANT_NFEXEC=no
15116fi
15117if [ "$WANT_NFEXEC" = yes ]; then
15118
15119$as_echo "#define NFEXEC_SUPPORT 1" >>confdefs.h
15120
15121	PROVIDES_NF="$PROVIDES_NF exec"
15122fi
15123 if test "$WANT_NFEXEC" = "yes"; then
15124  NFEXEC_SUPPORT_TRUE=
15125  NFEXEC_SUPPORT_FALSE='#'
15126else
15127  NFEXEC_SUPPORT_TRUE='#'
15128  NFEXEC_SUPPORT_FALSE=
15129fi
15130
15131
15132
15133if [ "x$WANT_NFCLIPBRD" = "xyes" ]; then
15134	PROVIDES_NF="$PROVIDES_NF clipboard"
15135fi
15136
15137
15138if [ "x$WANT_EPSLIMITER" = "xyes" ]; then
15139
15140$as_echo "#define ENABLE_EPSLIMITER 1" >>confdefs.h
15141
15142fi
15143
15144
15145if test "x$WANT_RTCTIMER" = "xyes" ; then
15146	if test "x$OS_TYPE" = "xlinux"; then
15147
15148$as_echo "#define RTC_TIMER 1" >>confdefs.h
15149
15150	else
15151		WANT_RTCTIMER="no"
15152	fi
15153fi
15154
15155
15156if test "x$WANT_PARALLELX86" = "xyes" ; then
15157	if test "x$OS_TYPE" = "xlinux" && $HAVE_I386; then
15158
15159$as_echo "#define ENABLE_PARALLELX86 1" >>confdefs.h
15160
15161	else
15162		WANT_PARALLELX86="no"
15163	fi
15164fi
15165 if test "$WANT_PARALLELX86" = yes; then
15166  ENABLE_PARALLELX86_TRUE=
15167  ENABLE_PARALLELX86_FALSE='#'
15168else
15169  ENABLE_PARALLELX86_TRUE='#'
15170  ENABLE_PARALLELX86_FALSE=
15171fi
15172
15173
15174
15175if test "x$WANT_PARALLELPARPORT" = "xyes" ; then
15176	if test "x$OS_TYPE" = "xlinux"; then
15177
15178$as_echo "#define ENABLE_PARALLELPARPORT 1" >>confdefs.h
15179
15180	else
15181		WANT_PARALLELPARPORT="no"
15182	fi
15183fi
15184 if test "$WANT_PARALLELPARPORT" = yes; then
15185  ENABLE_PARALLELPARPORT_TRUE=
15186  ENABLE_PARALLELPARPORT_FALSE='#'
15187else
15188  ENABLE_PARALLELPARPORT_TRUE='#'
15189  ENABLE_PARALLELPARPORT_FALSE=
15190fi
15191
15192
15193
15194if test "x$OS_TYPE" = "xlinux"; then
15195
15196$as_echo "#define ENABLE_MIDI_SEQUENCER 1" >>confdefs.h
15197
15198fi
15199
15200
15201if test "x$WANT_UNIXSERIALPORT" = "xyes" ; then
15202	if test "x$ac_cv_header_termios_h" = "xyes" -a "x$ac_cv_header_sys_ioctl_h" = "xyes"; then
15203
15204$as_echo "#define ENABLE_SERIALUNIX 1" >>confdefs.h
15205
15206	else
15207		WANT_UNIXSERIALPORT="no"
15208	fi
15209fi
15210 if test "$WANT_UNIXSERIALPORT" = yes; then
15211  ENABLE_SERIALUNIX_TRUE=
15212  ENABLE_SERIALUNIX_FALSE='#'
15213else
15214  ENABLE_SERIALUNIX_TRUE='#'
15215  ENABLE_SERIALUNIX_FALSE=
15216fi
15217
15218
15219
15220cat >>confdefs.h <<_ACEOF
15221#define PROVIDES_NATFEATS "$PROVIDES_NF"
15222_ACEOF
15223
15224
15225
15226APP=aranym
15227case "$host_os" in
15228	darwin*)
15229		if test "x$WITH_FINK" = "xyes"; then
15230			TARGET="\$(APP)"
15231		else
15232			TARGET="\$(APP_BUNDLE)"
15233		fi
15234		ARANYM_DATADIR="\"\\\"\${datadir}/\${APP}\\\"\""
15235		;;
15236	mingw*) TARGET="\$(APP)"
15237		ARANYM_DATADIR="\"\\\"./\${APP}\\\"\""
15238		;;
15239	*)	TARGET="\$(APP)"
15240		ARANYM_DATADIR="\"\\\"\${datadir}/\${APP}\\\"\""
15241		;;
15242esac
15243CFLAGS="$CFLAGS -DARANYM_DATADIR=$ARANYM_DATADIR"
15244CXXFLAGS="$CXXFLAGS -DARANYM_DATADIR=$ARANYM_DATADIR"
15245
15246if [ "x$ARCHFLAGS" != "x" ]; then
15247	CPPFLAGS=`echo $CPPFLAGS | sed -e "s:$ARCHFLAGS::g"`
15248	LDFLAGS=`echo $LDFLAGS | sed -e "s:$ARCHFLAGS::g"`
15249fi
15250
15251
15252
15253
15254ARCH="$CPU_TYPE"
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275if test "$am__include" = "include"; then am__include=-include; fi
15276
15277ac_config_files="$ac_config_files Makefile src/Makefile src/uae_cpu/Makefile doc/Makefile"
15278
15279
15280cat >confcache <<\_ACEOF
15281# This file is a shell script that caches the results of configure
15282# tests run on this system so they can be shared between configure
15283# scripts and configure runs, see configure's option --config-cache.
15284# It is not useful on other systems.  If it contains results you don't
15285# want to keep, you may remove or edit it.
15286#
15287# config.status only pays attention to the cache file if you give it
15288# the --recheck option to rerun configure.
15289#
15290# `ac_cv_env_foo' variables (set or unset) will be overridden when
15291# loading this file, other *unset* `ac_cv_foo' will be assigned the
15292# following values.
15293
15294_ACEOF
15295
15296# The following way of writing the cache mishandles newlines in values,
15297# but we know of no workaround that is simple, portable, and efficient.
15298# So, we kill variables containing newlines.
15299# Ultrix sh set writes to stderr and can't be redirected directly,
15300# and sets the high bit in the cache file unless we assign to the vars.
15301(
15302  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15303    eval ac_val=\$$ac_var
15304    case $ac_val in #(
15305    *${as_nl}*)
15306      case $ac_var in #(
15307      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15308$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15309      esac
15310      case $ac_var in #(
15311      _ | IFS | as_nl) ;; #(
15312      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15313      *) { eval $ac_var=; unset $ac_var;} ;;
15314      esac ;;
15315    esac
15316  done
15317
15318  (set) 2>&1 |
15319    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15320    *${as_nl}ac_space=\ *)
15321      # `set' does not quote correctly, so add quotes: double-quote
15322      # substitution turns \\\\ into \\, and sed turns \\ into \.
15323      sed -n \
15324	"s/'/'\\\\''/g;
15325	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15326      ;; #(
15327    *)
15328      # `set' quotes correctly as required by POSIX, so do not add quotes.
15329      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15330      ;;
15331    esac |
15332    sort
15333) |
15334  sed '
15335     /^ac_cv_env_/b end
15336     t clear
15337     :clear
15338     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15339     t end
15340     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15341     :end' >>confcache
15342if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15343  if test -w "$cache_file"; then
15344    if test "x$cache_file" != "x/dev/null"; then
15345      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15346$as_echo "$as_me: updating cache $cache_file" >&6;}
15347      if test ! -f "$cache_file" || test -h "$cache_file"; then
15348	cat confcache >"$cache_file"
15349      else
15350        case $cache_file in #(
15351        */* | ?:*)
15352	  mv -f confcache "$cache_file"$$ &&
15353	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15354        *)
15355	  mv -f confcache "$cache_file" ;;
15356	esac
15357      fi
15358    fi
15359  else
15360    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15361$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15362  fi
15363fi
15364rm -f confcache
15365
15366test "x$prefix" = xNONE && prefix=$ac_default_prefix
15367# Let make expand exec_prefix.
15368test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15369
15370DEFS=-DHAVE_CONFIG_H
15371
15372ac_libobjs=
15373ac_ltlibobjs=
15374U=
15375for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15376  # 1. Remove the extension, and $U if already installed.
15377  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15378  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15379  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15380  #    will be set to the directory where LIBOBJS objects are built.
15381  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15382  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15383done
15384LIBOBJS=$ac_libobjs
15385
15386LTLIBOBJS=$ac_ltlibobjs
15387
15388
15389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15390$as_echo_n "checking that generated files are newer than configure... " >&6; }
15391   if test -n "$am_sleep_pid"; then
15392     # Hide warnings about reused PIDs.
15393     wait $am_sleep_pid 2>/dev/null
15394   fi
15395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15396$as_echo "done" >&6; }
15397 if test -n "$EXEEXT"; then
15398  am__EXEEXT_TRUE=
15399  am__EXEEXT_FALSE='#'
15400else
15401  am__EXEEXT_TRUE='#'
15402  am__EXEEXT_FALSE=
15403fi
15404
15405if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15406  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15407Usually this means the macro was only invoked conditionally." "$LINENO" 5
15408fi
15409if test -z "${OS_TYPE_linux_TRUE}" && test -z "${OS_TYPE_linux_FALSE}"; then
15410  as_fn_error $? "conditional \"OS_TYPE_linux\" was never defined.
15411Usually this means the macro was only invoked conditionally." "$LINENO" 5
15412fi
15413if test -z "${OS_TYPE_openbsd_TRUE}" && test -z "${OS_TYPE_openbsd_FALSE}"; then
15414  as_fn_error $? "conditional \"OS_TYPE_openbsd\" was never defined.
15415Usually this means the macro was only invoked conditionally." "$LINENO" 5
15416fi
15417if test -z "${OS_TYPE_netbsd_TRUE}" && test -z "${OS_TYPE_netbsd_FALSE}"; then
15418  as_fn_error $? "conditional \"OS_TYPE_netbsd\" was never defined.
15419Usually this means the macro was only invoked conditionally." "$LINENO" 5
15420fi
15421if test -z "${OS_TYPE_freebsd_TRUE}" && test -z "${OS_TYPE_freebsd_FALSE}"; then
15422  as_fn_error $? "conditional \"OS_TYPE_freebsd\" was never defined.
15423Usually this means the macro was only invoked conditionally." "$LINENO" 5
15424fi
15425if test -z "${OS_TYPE_solaris_TRUE}" && test -z "${OS_TYPE_solaris_FALSE}"; then
15426  as_fn_error $? "conditional \"OS_TYPE_solaris\" was never defined.
15427Usually this means the macro was only invoked conditionally." "$LINENO" 5
15428fi
15429if test -z "${OS_TYPE_darwin_TRUE}" && test -z "${OS_TYPE_darwin_FALSE}"; then
15430  as_fn_error $? "conditional \"OS_TYPE_darwin\" was never defined.
15431Usually this means the macro was only invoked conditionally." "$LINENO" 5
15432fi
15433if test -z "${OS_TYPE_cygwin_TRUE}" && test -z "${OS_TYPE_cygwin_FALSE}"; then
15434  as_fn_error $? "conditional \"OS_TYPE_cygwin\" was never defined.
15435Usually this means the macro was only invoked conditionally." "$LINENO" 5
15436fi
15437if test -z "${OS_TYPE_irix_TRUE}" && test -z "${OS_TYPE_irix_FALSE}"; then
15438  as_fn_error $? "conditional \"OS_TYPE_irix\" was never defined.
15439Usually this means the macro was only invoked conditionally." "$LINENO" 5
15440fi
15441if test -z "${OS_TYPE_mint_TRUE}" && test -z "${OS_TYPE_mint_FALSE}"; then
15442  as_fn_error $? "conditional \"OS_TYPE_mint\" was never defined.
15443Usually this means the macro was only invoked conditionally." "$LINENO" 5
15444fi
15445if test -z "${OS_TYPE_beos_TRUE}" && test -z "${OS_TYPE_beos_FALSE}"; then
15446  as_fn_error $? "conditional \"OS_TYPE_beos\" was never defined.
15447Usually this means the macro was only invoked conditionally." "$LINENO" 5
15448fi
15449if test -z "${OS_TYPE_mingw_TRUE}" && test -z "${OS_TYPE_mingw_FALSE}"; then
15450  as_fn_error $? "conditional \"OS_TYPE_mingw\" was never defined.
15451Usually this means the macro was only invoked conditionally." "$LINENO" 5
15452fi
15453if test -z "${OS_TYPE_unknown_TRUE}" && test -z "${OS_TYPE_unknown_FALSE}"; then
15454  as_fn_error $? "conditional \"OS_TYPE_unknown\" was never defined.
15455Usually this means the macro was only invoked conditionally." "$LINENO" 5
15456fi
15457if test -z "${ANDROID_OS_TRUE}" && test -z "${ANDROID_OS_FALSE}"; then
15458  as_fn_error $? "conditional \"ANDROID_OS\" was never defined.
15459Usually this means the macro was only invoked conditionally." "$LINENO" 5
15460fi
15461if test -z "${WITH_FINK_TRUE}" && test -z "${WITH_FINK_FALSE}"; then
15462  as_fn_error $? "conditional \"WITH_FINK\" was never defined.
15463Usually this means the macro was only invoked conditionally." "$LINENO" 5
15464fi
15465if test -z "${CPU_TYPE_x86_TRUE}" && test -z "${CPU_TYPE_x86_FALSE}"; then
15466  as_fn_error $? "conditional \"CPU_TYPE_x86\" was never defined.
15467Usually this means the macro was only invoked conditionally." "$LINENO" 5
15468fi
15469if test -z "${CPU_TYPE_x86_64_TRUE}" && test -z "${CPU_TYPE_x86_64_FALSE}"; then
15470  as_fn_error $? "conditional \"CPU_TYPE_x86_64\" was never defined.
15471Usually this means the macro was only invoked conditionally." "$LINENO" 5
15472fi
15473if test -z "${CPU_TYPE_sparc_TRUE}" && test -z "${CPU_TYPE_sparc_FALSE}"; then
15474  as_fn_error $? "conditional \"CPU_TYPE_sparc\" was never defined.
15475Usually this means the macro was only invoked conditionally." "$LINENO" 5
15476fi
15477if test -z "${CPU_TYPE_arm_TRUE}" && test -z "${CPU_TYPE_arm_FALSE}"; then
15478  as_fn_error $? "conditional \"CPU_TYPE_arm\" was never defined.
15479Usually this means the macro was only invoked conditionally." "$LINENO" 5
15480fi
15481if test -z "${CPU_TYPE_powerpc_TRUE}" && test -z "${CPU_TYPE_powerpc_FALSE}"; then
15482  as_fn_error $? "conditional \"CPU_TYPE_powerpc\" was never defined.
15483Usually this means the macro was only invoked conditionally." "$LINENO" 5
15484fi
15485if test -z "${CPU_TYPE_unknown_TRUE}" && test -z "${CPU_TYPE_unknown_FALSE}"; then
15486  as_fn_error $? "conditional \"CPU_TYPE_unknown\" was never defined.
15487Usually this means the macro was only invoked conditionally." "$LINENO" 5
15488fi
15489if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15490  as_fn_error $? "conditional \"AMDEP\" was never defined.
15491Usually this means the macro was only invoked conditionally." "$LINENO" 5
15492fi
15493if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15494  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15495Usually this means the macro was only invoked conditionally." "$LINENO" 5
15496fi
15497if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
15498  as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined.
15499Usually this means the macro was only invoked conditionally." "$LINENO" 5
15500fi
15501if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15502  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15503Usually this means the macro was only invoked conditionally." "$LINENO" 5
15504fi
15505if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15506  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15507Usually this means the macro was only invoked conditionally." "$LINENO" 5
15508fi
15509if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15510  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15511Usually this means the macro was only invoked conditionally." "$LINENO" 5
15512fi
15513
15514if test -z "${NEED_GETOPT_TRUE}" && test -z "${NEED_GETOPT_FALSE}"; then
15515  as_fn_error $? "conditional \"NEED_GETOPT\" was never defined.
15516Usually this means the macro was only invoked conditionally." "$LINENO" 5
15517fi
15518if test -z "${FULLMMU_TRUE}" && test -z "${FULLMMU_FALSE}"; then
15519  as_fn_error $? "conditional \"FULLMMU\" was never defined.
15520Usually this means the macro was only invoked conditionally." "$LINENO" 5
15521fi
15522if test -z "${WANT_DSP_TRUE}" && test -z "${WANT_DSP_FALSE}"; then
15523  as_fn_error $? "conditional \"WANT_DSP\" was never defined.
15524Usually this means the macro was only invoked conditionally." "$LINENO" 5
15525fi
15526if test -z "${WANT_DSP_DISASM_TRUE}" && test -z "${WANT_DSP_DISASM_FALSE}"; then
15527  as_fn_error $? "conditional \"WANT_DSP_DISASM\" was never defined.
15528Usually this means the macro was only invoked conditionally." "$LINENO" 5
15529fi
15530if test -z "${NEED_ARATAPIF_TRUE}" && test -z "${NEED_ARATAPIF_FALSE}"; then
15531  as_fn_error $? "conditional \"NEED_ARATAPIF\" was never defined.
15532Usually this means the macro was only invoked conditionally." "$LINENO" 5
15533fi
15534if test -z "${ETHERNET_SUPPORT_TRUE}" && test -z "${ETHERNET_SUPPORT_FALSE}"; then
15535  as_fn_error $? "conditional \"ETHERNET_SUPPORT\" was never defined.
15536Usually this means the macro was only invoked conditionally." "$LINENO" 5
15537fi
15538if test -z "${HOSTFS_SUPPORT_TRUE}" && test -z "${HOSTFS_SUPPORT_FALSE}"; then
15539  as_fn_error $? "conditional \"HOSTFS_SUPPORT\" was never defined.
15540Usually this means the macro was only invoked conditionally." "$LINENO" 5
15541fi
15542if test -z "${SDL_GUI_TRUE}" && test -z "${SDL_GUI_FALSE}"; then
15543  as_fn_error $? "conditional \"SDL_GUI\" was never defined.
15544Usually this means the macro was only invoked conditionally." "$LINENO" 5
15545fi
15546if test -z "${EXTENDED_SIGSEGV_TRUE}" && test -z "${EXTENDED_SIGSEGV_FALSE}"; then
15547  as_fn_error $? "conditional \"EXTENDED_SIGSEGV\" was never defined.
15548Usually this means the macro was only invoked conditionally." "$LINENO" 5
15549fi
15550if test -z "${GENCOMP_ARCH_X86_TRUE}" && test -z "${GENCOMP_ARCH_X86_FALSE}"; then
15551  as_fn_error $? "conditional \"GENCOMP_ARCH_X86\" was never defined.
15552Usually this means the macro was only invoked conditionally." "$LINENO" 5
15553fi
15554if test -z "${GENCOMP_ARCH_ARM_TRUE}" && test -z "${GENCOMP_ARCH_ARM_FALSE}"; then
15555  as_fn_error $? "conditional \"GENCOMP_ARCH_ARM\" was never defined.
15556Usually this means the macro was only invoked conditionally." "$LINENO" 5
15557fi
15558if test -z "${USE_JIT_TRUE}" && test -z "${USE_JIT_FALSE}"; then
15559  as_fn_error $? "conditional \"USE_JIT\" was never defined.
15560Usually this means the macro was only invoked conditionally." "$LINENO" 5
15561fi
15562if test -z "${USE_JIT_FPU_TRUE}" && test -z "${USE_JIT_FPU_FALSE}"; then
15563  as_fn_error $? "conditional \"USE_JIT_FPU\" was never defined.
15564Usually this means the macro was only invoked conditionally." "$LINENO" 5
15565fi
15566if test -z "${USE_JIT2_TRUE}" && test -z "${USE_JIT2_FALSE}"; then
15567  as_fn_error $? "conditional \"USE_JIT2\" was never defined.
15568Usually this means the macro was only invoked conditionally." "$LINENO" 5
15569fi
15570if test -z "${FPU_IEEE_TRUE}" && test -z "${FPU_IEEE_FALSE}"; then
15571  as_fn_error $? "conditional \"FPU_IEEE\" was never defined.
15572Usually this means the macro was only invoked conditionally." "$LINENO" 5
15573fi
15574if test -z "${FPU_X86_TRUE}" && test -z "${FPU_X86_FALSE}"; then
15575  as_fn_error $? "conditional \"FPU_X86\" was never defined.
15576Usually this means the macro was only invoked conditionally." "$LINENO" 5
15577fi
15578if test -z "${FPU_UAE_TRUE}" && test -z "${FPU_UAE_FALSE}"; then
15579  as_fn_error $? "conditional \"FPU_UAE\" was never defined.
15580Usually this means the macro was only invoked conditionally." "$LINENO" 5
15581fi
15582if test -z "${FPU_MPFR_TRUE}" && test -z "${FPU_MPFR_FALSE}"; then
15583  as_fn_error $? "conditional \"FPU_MPFR\" was never defined.
15584Usually this means the macro was only invoked conditionally." "$LINENO" 5
15585fi
15586if test -z "${USE_DEBUGGER_TRUE}" && test -z "${USE_DEBUGGER_FALSE}"; then
15587  as_fn_error $? "conditional \"USE_DEBUGGER\" was never defined.
15588Usually this means the macro was only invoked conditionally." "$LINENO" 5
15589fi
15590if test -z "${DISASM_USE_BUILTIN_TRUE}" && test -z "${DISASM_USE_BUILTIN_FALSE}"; then
15591  as_fn_error $? "conditional \"DISASM_USE_BUILTIN\" was never defined.
15592Usually this means the macro was only invoked conditionally." "$LINENO" 5
15593fi
15594if test -z "${DISASM_USE_OPCODES_TRUE}" && test -z "${DISASM_USE_OPCODES_FALSE}"; then
15595  as_fn_error $? "conditional \"DISASM_USE_OPCODES\" was never defined.
15596Usually this means the macro was only invoked conditionally." "$LINENO" 5
15597fi
15598if test -z "${ENABLE_SDL2_TRUE}" && test -z "${ENABLE_SDL2_FALSE}"; then
15599  as_fn_error $? "conditional \"ENABLE_SDL2\" was never defined.
15600Usually this means the macro was only invoked conditionally." "$LINENO" 5
15601fi
15602if test -z "${ENABLE_OPENGL_TRUE}" && test -z "${ENABLE_OPENGL_FALSE}"; then
15603  as_fn_error $? "conditional \"ENABLE_OPENGL\" was never defined.
15604Usually this means the macro was only invoked conditionally." "$LINENO" 5
15605fi
15606if test -z "${NFCDROM_SUPPORT_TRUE}" && test -z "${NFCDROM_SUPPORT_FALSE}"; then
15607  as_fn_error $? "conditional \"NFCDROM_SUPPORT\" was never defined.
15608Usually this means the macro was only invoked conditionally." "$LINENO" 5
15609fi
15610if test -z "${NFPCI_SUPPORT_TRUE}" && test -z "${NFPCI_SUPPORT_FALSE}"; then
15611  as_fn_error $? "conditional \"NFPCI_SUPPORT\" was never defined.
15612Usually this means the macro was only invoked conditionally." "$LINENO" 5
15613fi
15614if test -z "${NFPCI_LINUX_SUPPORT_TRUE}" && test -z "${NFPCI_LINUX_SUPPORT_FALSE}"; then
15615  as_fn_error $? "conditional \"NFPCI_LINUX_SUPPORT\" was never defined.
15616Usually this means the macro was only invoked conditionally." "$LINENO" 5
15617fi
15618if test -z "${USBHOST_SUPPORT_TRUE}" && test -z "${USBHOST_SUPPORT_FALSE}"; then
15619  as_fn_error $? "conditional \"USBHOST_SUPPORT\" was never defined.
15620Usually this means the macro was only invoked conditionally." "$LINENO" 5
15621fi
15622if test -z "${NFOSMESA_SUPPORT_TRUE}" && test -z "${NFOSMESA_SUPPORT_FALSE}"; then
15623  as_fn_error $? "conditional \"NFOSMESA_SUPPORT\" was never defined.
15624Usually this means the macro was only invoked conditionally." "$LINENO" 5
15625fi
15626if test -z "${NFJPEG_SUPPORT_TRUE}" && test -z "${NFJPEG_SUPPORT_FALSE}"; then
15627  as_fn_error $? "conditional \"NFJPEG_SUPPORT\" was never defined.
15628Usually this means the macro was only invoked conditionally." "$LINENO" 5
15629fi
15630if test -z "${NFVDI_SUPPORT_TRUE}" && test -z "${NFVDI_SUPPORT_FALSE}"; then
15631  as_fn_error $? "conditional \"NFVDI_SUPPORT\" was never defined.
15632Usually this means the macro was only invoked conditionally." "$LINENO" 5
15633fi
15634if test -z "${NFCLIPBRD_SUPPORT_TRUE}" && test -z "${NFCLIPBRD_SUPPORT_FALSE}"; then
15635  as_fn_error $? "conditional \"NFCLIPBRD_SUPPORT\" was never defined.
15636Usually this means the macro was only invoked conditionally." "$LINENO" 5
15637fi
15638if test -z "${NFEXEC_SUPPORT_TRUE}" && test -z "${NFEXEC_SUPPORT_FALSE}"; then
15639  as_fn_error $? "conditional \"NFEXEC_SUPPORT\" was never defined.
15640Usually this means the macro was only invoked conditionally." "$LINENO" 5
15641fi
15642if test -z "${ENABLE_PARALLELX86_TRUE}" && test -z "${ENABLE_PARALLELX86_FALSE}"; then
15643  as_fn_error $? "conditional \"ENABLE_PARALLELX86\" was never defined.
15644Usually this means the macro was only invoked conditionally." "$LINENO" 5
15645fi
15646if test -z "${ENABLE_PARALLELPARPORT_TRUE}" && test -z "${ENABLE_PARALLELPARPORT_FALSE}"; then
15647  as_fn_error $? "conditional \"ENABLE_PARALLELPARPORT\" was never defined.
15648Usually this means the macro was only invoked conditionally." "$LINENO" 5
15649fi
15650if test -z "${ENABLE_SERIALUNIX_TRUE}" && test -z "${ENABLE_SERIALUNIX_FALSE}"; then
15651  as_fn_error $? "conditional \"ENABLE_SERIALUNIX\" was never defined.
15652Usually this means the macro was only invoked conditionally." "$LINENO" 5
15653fi
15654
15655: "${CONFIG_STATUS=./config.status}"
15656ac_write_fail=0
15657ac_clean_files_save=$ac_clean_files
15658ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15659{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15660$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15661as_write_fail=0
15662cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15663#! $SHELL
15664# Generated by $as_me.
15665# Run this file to recreate the current configuration.
15666# Compiler output produced by configure, useful for debugging
15667# configure, is in config.log if it exists.
15668
15669debug=false
15670ac_cs_recheck=false
15671ac_cs_silent=false
15672
15673SHELL=\${CONFIG_SHELL-$SHELL}
15674export SHELL
15675_ASEOF
15676cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15677## -------------------- ##
15678## M4sh Initialization. ##
15679## -------------------- ##
15680
15681# Be more Bourne compatible
15682DUALCASE=1; export DUALCASE # for MKS sh
15683if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15684  emulate sh
15685  NULLCMD=:
15686  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15687  # is contrary to our usage.  Disable this feature.
15688  alias -g '${1+"$@"}'='"$@"'
15689  setopt NO_GLOB_SUBST
15690else
15691  case `(set -o) 2>/dev/null` in #(
15692  *posix*) :
15693    set -o posix ;; #(
15694  *) :
15695     ;;
15696esac
15697fi
15698
15699
15700as_nl='
15701'
15702export as_nl
15703# Printing a long string crashes Solaris 7 /usr/bin/printf.
15704as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15705as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15706as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15707# Prefer a ksh shell builtin over an external printf program on Solaris,
15708# but without wasting forks for bash or zsh.
15709if test -z "$BASH_VERSION$ZSH_VERSION" \
15710    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15711  as_echo='print -r --'
15712  as_echo_n='print -rn --'
15713elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15714  as_echo='printf %s\n'
15715  as_echo_n='printf %s'
15716else
15717  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15718    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15719    as_echo_n='/usr/ucb/echo -n'
15720  else
15721    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15722    as_echo_n_body='eval
15723      arg=$1;
15724      case $arg in #(
15725      *"$as_nl"*)
15726	expr "X$arg" : "X\\(.*\\)$as_nl";
15727	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15728      esac;
15729      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15730    '
15731    export as_echo_n_body
15732    as_echo_n='sh -c $as_echo_n_body as_echo'
15733  fi
15734  export as_echo_body
15735  as_echo='sh -c $as_echo_body as_echo'
15736fi
15737
15738# The user is always right.
15739if test "${PATH_SEPARATOR+set}" != set; then
15740  PATH_SEPARATOR=:
15741  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15742    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15743      PATH_SEPARATOR=';'
15744  }
15745fi
15746
15747
15748# IFS
15749# We need space, tab and new line, in precisely that order.  Quoting is
15750# there to prevent editors from complaining about space-tab.
15751# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15752# splitting by setting IFS to empty value.)
15753IFS=" ""	$as_nl"
15754
15755# Find who we are.  Look in the path if we contain no directory separator.
15756as_myself=
15757case $0 in #((
15758  *[\\/]* ) as_myself=$0 ;;
15759  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15760for as_dir in $PATH
15761do
15762  IFS=$as_save_IFS
15763  test -z "$as_dir" && as_dir=.
15764    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15765  done
15766IFS=$as_save_IFS
15767
15768     ;;
15769esac
15770# We did not find ourselves, most probably we were run as `sh COMMAND'
15771# in which case we are not to be found in the path.
15772if test "x$as_myself" = x; then
15773  as_myself=$0
15774fi
15775if test ! -f "$as_myself"; then
15776  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15777  exit 1
15778fi
15779
15780# Unset variables that we do not need and which cause bugs (e.g. in
15781# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15782# suppresses any "Segmentation fault" message there.  '((' could
15783# trigger a bug in pdksh 5.2.14.
15784for as_var in BASH_ENV ENV MAIL MAILPATH
15785do eval test x\${$as_var+set} = xset \
15786  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15787done
15788PS1='$ '
15789PS2='> '
15790PS4='+ '
15791
15792# NLS nuisances.
15793LC_ALL=C
15794export LC_ALL
15795LANGUAGE=C
15796export LANGUAGE
15797
15798# CDPATH.
15799(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15800
15801
15802# as_fn_error STATUS ERROR [LINENO LOG_FD]
15803# ----------------------------------------
15804# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15805# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15806# script with STATUS, using 1 if that was 0.
15807as_fn_error ()
15808{
15809  as_status=$1; test $as_status -eq 0 && as_status=1
15810  if test "$4"; then
15811    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15812    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15813  fi
15814  $as_echo "$as_me: error: $2" >&2
15815  as_fn_exit $as_status
15816} # as_fn_error
15817
15818
15819# as_fn_set_status STATUS
15820# -----------------------
15821# Set $? to STATUS, without forking.
15822as_fn_set_status ()
15823{
15824  return $1
15825} # as_fn_set_status
15826
15827# as_fn_exit STATUS
15828# -----------------
15829# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15830as_fn_exit ()
15831{
15832  set +e
15833  as_fn_set_status $1
15834  exit $1
15835} # as_fn_exit
15836
15837# as_fn_unset VAR
15838# ---------------
15839# Portably unset VAR.
15840as_fn_unset ()
15841{
15842  { eval $1=; unset $1;}
15843}
15844as_unset=as_fn_unset
15845# as_fn_append VAR VALUE
15846# ----------------------
15847# Append the text in VALUE to the end of the definition contained in VAR. Take
15848# advantage of any shell optimizations that allow amortized linear growth over
15849# repeated appends, instead of the typical quadratic growth present in naive
15850# implementations.
15851if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15852  eval 'as_fn_append ()
15853  {
15854    eval $1+=\$2
15855  }'
15856else
15857  as_fn_append ()
15858  {
15859    eval $1=\$$1\$2
15860  }
15861fi # as_fn_append
15862
15863# as_fn_arith ARG...
15864# ------------------
15865# Perform arithmetic evaluation on the ARGs, and store the result in the
15866# global $as_val. Take advantage of shells that can avoid forks. The arguments
15867# must be portable across $(()) and expr.
15868if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15869  eval 'as_fn_arith ()
15870  {
15871    as_val=$(( $* ))
15872  }'
15873else
15874  as_fn_arith ()
15875  {
15876    as_val=`expr "$@" || test $? -eq 1`
15877  }
15878fi # as_fn_arith
15879
15880
15881if expr a : '\(a\)' >/dev/null 2>&1 &&
15882   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15883  as_expr=expr
15884else
15885  as_expr=false
15886fi
15887
15888if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15889  as_basename=basename
15890else
15891  as_basename=false
15892fi
15893
15894if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15895  as_dirname=dirname
15896else
15897  as_dirname=false
15898fi
15899
15900as_me=`$as_basename -- "$0" ||
15901$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15902	 X"$0" : 'X\(//\)$' \| \
15903	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15904$as_echo X/"$0" |
15905    sed '/^.*\/\([^/][^/]*\)\/*$/{
15906	    s//\1/
15907	    q
15908	  }
15909	  /^X\/\(\/\/\)$/{
15910	    s//\1/
15911	    q
15912	  }
15913	  /^X\/\(\/\).*/{
15914	    s//\1/
15915	    q
15916	  }
15917	  s/.*/./; q'`
15918
15919# Avoid depending upon Character Ranges.
15920as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15921as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15922as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15923as_cr_digits='0123456789'
15924as_cr_alnum=$as_cr_Letters$as_cr_digits
15925
15926ECHO_C= ECHO_N= ECHO_T=
15927case `echo -n x` in #(((((
15928-n*)
15929  case `echo 'xy\c'` in
15930  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15931  xy)  ECHO_C='\c';;
15932  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15933       ECHO_T='	';;
15934  esac;;
15935*)
15936  ECHO_N='-n';;
15937esac
15938
15939rm -f conf$$ conf$$.exe conf$$.file
15940if test -d conf$$.dir; then
15941  rm -f conf$$.dir/conf$$.file
15942else
15943  rm -f conf$$.dir
15944  mkdir conf$$.dir 2>/dev/null
15945fi
15946if (echo >conf$$.file) 2>/dev/null; then
15947  if ln -s conf$$.file conf$$ 2>/dev/null; then
15948    as_ln_s='ln -s'
15949    # ... but there are two gotchas:
15950    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15951    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15952    # In both cases, we have to default to `cp -pR'.
15953    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15954      as_ln_s='cp -pR'
15955  elif ln conf$$.file conf$$ 2>/dev/null; then
15956    as_ln_s=ln
15957  else
15958    as_ln_s='cp -pR'
15959  fi
15960else
15961  as_ln_s='cp -pR'
15962fi
15963rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15964rmdir conf$$.dir 2>/dev/null
15965
15966
15967# as_fn_mkdir_p
15968# -------------
15969# Create "$as_dir" as a directory, including parents if necessary.
15970as_fn_mkdir_p ()
15971{
15972
15973  case $as_dir in #(
15974  -*) as_dir=./$as_dir;;
15975  esac
15976  test -d "$as_dir" || eval $as_mkdir_p || {
15977    as_dirs=
15978    while :; do
15979      case $as_dir in #(
15980      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15981      *) as_qdir=$as_dir;;
15982      esac
15983      as_dirs="'$as_qdir' $as_dirs"
15984      as_dir=`$as_dirname -- "$as_dir" ||
15985$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15986	 X"$as_dir" : 'X\(//\)[^/]' \| \
15987	 X"$as_dir" : 'X\(//\)$' \| \
15988	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15989$as_echo X"$as_dir" |
15990    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15991	    s//\1/
15992	    q
15993	  }
15994	  /^X\(\/\/\)[^/].*/{
15995	    s//\1/
15996	    q
15997	  }
15998	  /^X\(\/\/\)$/{
15999	    s//\1/
16000	    q
16001	  }
16002	  /^X\(\/\).*/{
16003	    s//\1/
16004	    q
16005	  }
16006	  s/.*/./; q'`
16007      test -d "$as_dir" && break
16008    done
16009    test -z "$as_dirs" || eval "mkdir $as_dirs"
16010  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16011
16012
16013} # as_fn_mkdir_p
16014if mkdir -p . 2>/dev/null; then
16015  as_mkdir_p='mkdir -p "$as_dir"'
16016else
16017  test -d ./-p && rmdir ./-p
16018  as_mkdir_p=false
16019fi
16020
16021
16022# as_fn_executable_p FILE
16023# -----------------------
16024# Test if FILE is an executable regular file.
16025as_fn_executable_p ()
16026{
16027  test -f "$1" && test -x "$1"
16028} # as_fn_executable_p
16029as_test_x='test -x'
16030as_executable_p=as_fn_executable_p
16031
16032# Sed expression to map a string onto a valid CPP name.
16033as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16034
16035# Sed expression to map a string onto a valid variable name.
16036as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16037
16038
16039exec 6>&1
16040## ----------------------------------- ##
16041## Main body of $CONFIG_STATUS script. ##
16042## ----------------------------------- ##
16043_ASEOF
16044test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16045
16046cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16047# Save the log message, to keep $0 and so on meaningful, and to
16048# report actual input values of CONFIG_FILES etc. instead of their
16049# values after options handling.
16050ac_log="
16051This file was extended by aranym $as_me 1.1.0, which was
16052generated by GNU Autoconf 2.69.  Invocation command line was
16053
16054  CONFIG_FILES    = $CONFIG_FILES
16055  CONFIG_HEADERS  = $CONFIG_HEADERS
16056  CONFIG_LINKS    = $CONFIG_LINKS
16057  CONFIG_COMMANDS = $CONFIG_COMMANDS
16058  $ $0 $@
16059
16060on `(hostname || uname -n) 2>/dev/null | sed 1q`
16061"
16062
16063_ACEOF
16064
16065case $ac_config_files in *"
16066"*) set x $ac_config_files; shift; ac_config_files=$*;;
16067esac
16068
16069case $ac_config_headers in *"
16070"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16071esac
16072
16073
16074cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16075# Files that config.status was made for.
16076config_files="$ac_config_files"
16077config_headers="$ac_config_headers"
16078config_commands="$ac_config_commands"
16079
16080_ACEOF
16081
16082cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16083ac_cs_usage="\
16084\`$as_me' instantiates files and other configuration actions
16085from templates according to the current configuration.  Unless the files
16086and actions are specified as TAGs, all are instantiated by default.
16087
16088Usage: $0 [OPTION]... [TAG]...
16089
16090  -h, --help       print this help, then exit
16091  -V, --version    print version number and configuration settings, then exit
16092      --config     print configuration, then exit
16093  -q, --quiet, --silent
16094                   do not print progress messages
16095  -d, --debug      don't remove temporary files
16096      --recheck    update $as_me by reconfiguring in the same conditions
16097      --file=FILE[:TEMPLATE]
16098                   instantiate the configuration file FILE
16099      --header=FILE[:TEMPLATE]
16100                   instantiate the configuration header FILE
16101
16102Configuration files:
16103$config_files
16104
16105Configuration headers:
16106$config_headers
16107
16108Configuration commands:
16109$config_commands
16110
16111Report bugs to <aranym@googlegroups.com>.
16112aranym home page: <https://github.com/aranym/aranym>."
16113
16114_ACEOF
16115cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16116ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16117ac_cs_version="\\
16118aranym config.status 1.1.0
16119configured by $0, generated by GNU Autoconf 2.69,
16120  with options \\"\$ac_cs_config\\"
16121
16122Copyright (C) 2012 Free Software Foundation, Inc.
16123This config.status script is free software; the Free Software Foundation
16124gives unlimited permission to copy, distribute and modify it."
16125
16126ac_pwd='$ac_pwd'
16127srcdir='$srcdir'
16128INSTALL='$INSTALL'
16129MKDIR_P='$MKDIR_P'
16130AWK='$AWK'
16131test -n "\$AWK" || AWK=awk
16132_ACEOF
16133
16134cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16135# The default lists apply if the user does not specify any file.
16136ac_need_defaults=:
16137while test $# != 0
16138do
16139  case $1 in
16140  --*=?*)
16141    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16142    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16143    ac_shift=:
16144    ;;
16145  --*=)
16146    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16147    ac_optarg=
16148    ac_shift=:
16149    ;;
16150  *)
16151    ac_option=$1
16152    ac_optarg=$2
16153    ac_shift=shift
16154    ;;
16155  esac
16156
16157  case $ac_option in
16158  # Handling of the options.
16159  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16160    ac_cs_recheck=: ;;
16161  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16162    $as_echo "$ac_cs_version"; exit ;;
16163  --config | --confi | --conf | --con | --co | --c )
16164    $as_echo "$ac_cs_config"; exit ;;
16165  --debug | --debu | --deb | --de | --d | -d )
16166    debug=: ;;
16167  --file | --fil | --fi | --f )
16168    $ac_shift
16169    case $ac_optarg in
16170    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16171    '') as_fn_error $? "missing file argument" ;;
16172    esac
16173    as_fn_append CONFIG_FILES " '$ac_optarg'"
16174    ac_need_defaults=false;;
16175  --header | --heade | --head | --hea )
16176    $ac_shift
16177    case $ac_optarg in
16178    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16179    esac
16180    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16181    ac_need_defaults=false;;
16182  --he | --h)
16183    # Conflict between --help and --header
16184    as_fn_error $? "ambiguous option: \`$1'
16185Try \`$0 --help' for more information.";;
16186  --help | --hel | -h )
16187    $as_echo "$ac_cs_usage"; exit ;;
16188  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16189  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16190    ac_cs_silent=: ;;
16191
16192  # This is an error.
16193  -*) as_fn_error $? "unrecognized option: \`$1'
16194Try \`$0 --help' for more information." ;;
16195
16196  *) as_fn_append ac_config_targets " $1"
16197     ac_need_defaults=false ;;
16198
16199  esac
16200  shift
16201done
16202
16203ac_configure_extra_args=
16204
16205if $ac_cs_silent; then
16206  exec 6>/dev/null
16207  ac_configure_extra_args="$ac_configure_extra_args --silent"
16208fi
16209
16210_ACEOF
16211cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16212if \$ac_cs_recheck; then
16213  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16214  shift
16215  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16216  CONFIG_SHELL='$SHELL'
16217  export CONFIG_SHELL
16218  exec "\$@"
16219fi
16220
16221_ACEOF
16222cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16223exec 5>>config.log
16224{
16225  echo
16226  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16227## Running $as_me. ##
16228_ASBOX
16229  $as_echo "$ac_log"
16230} >&5
16231
16232_ACEOF
16233cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16234#
16235# INIT-COMMANDS
16236#
16237AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16238
16239_ACEOF
16240
16241cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16242
16243# Handling of arguments.
16244for ac_config_target in $ac_config_targets
16245do
16246  case $ac_config_target in
16247    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16248    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16249    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16250    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16251    "src/uae_cpu/Makefile") CONFIG_FILES="$CONFIG_FILES src/uae_cpu/Makefile" ;;
16252    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16253
16254  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16255  esac
16256done
16257
16258
16259# If the user did not use the arguments to specify the items to instantiate,
16260# then the envvar interface is used.  Set only those that are not.
16261# We use the long form for the default assignment because of an extremely
16262# bizarre bug on SunOS 4.1.3.
16263if $ac_need_defaults; then
16264  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16265  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16266  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16267fi
16268
16269# Have a temporary directory for convenience.  Make it in the build tree
16270# simply because there is no reason against having it here, and in addition,
16271# creating and moving files from /tmp can sometimes cause problems.
16272# Hook for its removal unless debugging.
16273# Note that there is a small window in which the directory will not be cleaned:
16274# after its creation but before its name has been assigned to `$tmp'.
16275$debug ||
16276{
16277  tmp= ac_tmp=
16278  trap 'exit_status=$?
16279  : "${ac_tmp:=$tmp}"
16280  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16281' 0
16282  trap 'as_fn_exit 1' 1 2 13 15
16283}
16284# Create a (secure) tmp directory for tmp files.
16285
16286{
16287  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16288  test -d "$tmp"
16289}  ||
16290{
16291  tmp=./conf$$-$RANDOM
16292  (umask 077 && mkdir "$tmp")
16293} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16294ac_tmp=$tmp
16295
16296# Set up the scripts for CONFIG_FILES section.
16297# No need to generate them if there are no CONFIG_FILES.
16298# This happens for instance with `./config.status config.h'.
16299if test -n "$CONFIG_FILES"; then
16300
16301
16302ac_cr=`echo X | tr X '\015'`
16303# On cygwin, bash can eat \r inside `` if the user requested igncr.
16304# But we know of no other shell where ac_cr would be empty at this
16305# point, so we can use a bashism as a fallback.
16306if test "x$ac_cr" = x; then
16307  eval ac_cr=\$\'\\r\'
16308fi
16309ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16310if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16311  ac_cs_awk_cr='\\r'
16312else
16313  ac_cs_awk_cr=$ac_cr
16314fi
16315
16316echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16317_ACEOF
16318
16319
16320{
16321  echo "cat >conf$$subs.awk <<_ACEOF" &&
16322  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16323  echo "_ACEOF"
16324} >conf$$subs.sh ||
16325  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16326ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16327ac_delim='%!_!# '
16328for ac_last_try in false false false false false :; do
16329  . ./conf$$subs.sh ||
16330    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16331
16332  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16333  if test $ac_delim_n = $ac_delim_num; then
16334    break
16335  elif $ac_last_try; then
16336    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16337  else
16338    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16339  fi
16340done
16341rm -f conf$$subs.sh
16342
16343cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16344cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16345_ACEOF
16346sed -n '
16347h
16348s/^/S["/; s/!.*/"]=/
16349p
16350g
16351s/^[^!]*!//
16352:repl
16353t repl
16354s/'"$ac_delim"'$//
16355t delim
16356:nl
16357h
16358s/\(.\{148\}\)..*/\1/
16359t more1
16360s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16361p
16362n
16363b repl
16364:more1
16365s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16366p
16367g
16368s/.\{148\}//
16369t nl
16370:delim
16371h
16372s/\(.\{148\}\)..*/\1/
16373t more2
16374s/["\\]/\\&/g; s/^/"/; s/$/"/
16375p
16376b
16377:more2
16378s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16379p
16380g
16381s/.\{148\}//
16382t delim
16383' <conf$$subs.awk | sed '
16384/^[^""]/{
16385  N
16386  s/\n//
16387}
16388' >>$CONFIG_STATUS || ac_write_fail=1
16389rm -f conf$$subs.awk
16390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16391_ACAWK
16392cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16393  for (key in S) S_is_set[key] = 1
16394  FS = ""
16395
16396}
16397{
16398  line = $ 0
16399  nfields = split(line, field, "@")
16400  substed = 0
16401  len = length(field[1])
16402  for (i = 2; i < nfields; i++) {
16403    key = field[i]
16404    keylen = length(key)
16405    if (S_is_set[key]) {
16406      value = S[key]
16407      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16408      len += length(value) + length(field[++i])
16409      substed = 1
16410    } else
16411      len += 1 + keylen
16412  }
16413
16414  print line
16415}
16416
16417_ACAWK
16418_ACEOF
16419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16420if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16421  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16422else
16423  cat
16424fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16425  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16426_ACEOF
16427
16428# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16429# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16430# trailing colons and then remove the whole line if VPATH becomes empty
16431# (actually we leave an empty line to preserve line numbers).
16432if test "x$srcdir" = x.; then
16433  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16434h
16435s///
16436s/^/:/
16437s/[	 ]*$/:/
16438s/:\$(srcdir):/:/g
16439s/:\${srcdir}:/:/g
16440s/:@srcdir@:/:/g
16441s/^:*//
16442s/:*$//
16443x
16444s/\(=[	 ]*\).*/\1/
16445G
16446s/\n//
16447s/^[^=]*=[	 ]*$//
16448}'
16449fi
16450
16451cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16452fi # test -n "$CONFIG_FILES"
16453
16454# Set up the scripts for CONFIG_HEADERS section.
16455# No need to generate them if there are no CONFIG_HEADERS.
16456# This happens for instance with `./config.status Makefile'.
16457if test -n "$CONFIG_HEADERS"; then
16458cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16459BEGIN {
16460_ACEOF
16461
16462# Transform confdefs.h into an awk script `defines.awk', embedded as
16463# here-document in config.status, that substitutes the proper values into
16464# config.h.in to produce config.h.
16465
16466# Create a delimiter string that does not exist in confdefs.h, to ease
16467# handling of long lines.
16468ac_delim='%!_!# '
16469for ac_last_try in false false :; do
16470  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16471  if test -z "$ac_tt"; then
16472    break
16473  elif $ac_last_try; then
16474    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16475  else
16476    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16477  fi
16478done
16479
16480# For the awk script, D is an array of macro values keyed by name,
16481# likewise P contains macro parameters if any.  Preserve backslash
16482# newline sequences.
16483
16484ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16485sed -n '
16486s/.\{148\}/&'"$ac_delim"'/g
16487t rset
16488:rset
16489s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16490t def
16491d
16492:def
16493s/\\$//
16494t bsnl
16495s/["\\]/\\&/g
16496s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16497D["\1"]=" \3"/p
16498s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16499d
16500:bsnl
16501s/["\\]/\\&/g
16502s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16503D["\1"]=" \3\\\\\\n"\\/p
16504t cont
16505s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16506t cont
16507d
16508:cont
16509n
16510s/.\{148\}/&'"$ac_delim"'/g
16511t clear
16512:clear
16513s/\\$//
16514t bsnlc
16515s/["\\]/\\&/g; s/^/"/; s/$/"/p
16516d
16517:bsnlc
16518s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16519b cont
16520' <confdefs.h | sed '
16521s/'"$ac_delim"'/"\\\
16522"/g' >>$CONFIG_STATUS || ac_write_fail=1
16523
16524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16525  for (key in D) D_is_set[key] = 1
16526  FS = ""
16527}
16528/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16529  line = \$ 0
16530  split(line, arg, " ")
16531  if (arg[1] == "#") {
16532    defundef = arg[2]
16533    mac1 = arg[3]
16534  } else {
16535    defundef = substr(arg[1], 2)
16536    mac1 = arg[2]
16537  }
16538  split(mac1, mac2, "(") #)
16539  macro = mac2[1]
16540  prefix = substr(line, 1, index(line, defundef) - 1)
16541  if (D_is_set[macro]) {
16542    # Preserve the white space surrounding the "#".
16543    print prefix "define", macro P[macro] D[macro]
16544    next
16545  } else {
16546    # Replace #undef with comments.  This is necessary, for example,
16547    # in the case of _POSIX_SOURCE, which is predefined and required
16548    # on some systems where configure will not decide to define it.
16549    if (defundef == "undef") {
16550      print "/*", prefix defundef, macro, "*/"
16551      next
16552    }
16553  }
16554}
16555{ print }
16556_ACAWK
16557_ACEOF
16558cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16559  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16560fi # test -n "$CONFIG_HEADERS"
16561
16562
16563eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16564shift
16565for ac_tag
16566do
16567  case $ac_tag in
16568  :[FHLC]) ac_mode=$ac_tag; continue;;
16569  esac
16570  case $ac_mode$ac_tag in
16571  :[FHL]*:*);;
16572  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16573  :[FH]-) ac_tag=-:-;;
16574  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16575  esac
16576  ac_save_IFS=$IFS
16577  IFS=:
16578  set x $ac_tag
16579  IFS=$ac_save_IFS
16580  shift
16581  ac_file=$1
16582  shift
16583
16584  case $ac_mode in
16585  :L) ac_source=$1;;
16586  :[FH])
16587    ac_file_inputs=
16588    for ac_f
16589    do
16590      case $ac_f in
16591      -) ac_f="$ac_tmp/stdin";;
16592      *) # Look for the file first in the build tree, then in the source tree
16593	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16594	 # because $ac_f cannot contain `:'.
16595	 test -f "$ac_f" ||
16596	   case $ac_f in
16597	   [\\/$]*) false;;
16598	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16599	   esac ||
16600	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16601      esac
16602      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16603      as_fn_append ac_file_inputs " '$ac_f'"
16604    done
16605
16606    # Let's still pretend it is `configure' which instantiates (i.e., don't
16607    # use $as_me), people would be surprised to read:
16608    #    /* config.h.  Generated by config.status.  */
16609    configure_input='Generated from '`
16610	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16611	`' by configure.'
16612    if test x"$ac_file" != x-; then
16613      configure_input="$ac_file.  $configure_input"
16614      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16615$as_echo "$as_me: creating $ac_file" >&6;}
16616    fi
16617    # Neutralize special characters interpreted by sed in replacement strings.
16618    case $configure_input in #(
16619    *\&* | *\|* | *\\* )
16620       ac_sed_conf_input=`$as_echo "$configure_input" |
16621       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16622    *) ac_sed_conf_input=$configure_input;;
16623    esac
16624
16625    case $ac_tag in
16626    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16627      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16628    esac
16629    ;;
16630  esac
16631
16632  ac_dir=`$as_dirname -- "$ac_file" ||
16633$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16634	 X"$ac_file" : 'X\(//\)[^/]' \| \
16635	 X"$ac_file" : 'X\(//\)$' \| \
16636	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16637$as_echo X"$ac_file" |
16638    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16639	    s//\1/
16640	    q
16641	  }
16642	  /^X\(\/\/\)[^/].*/{
16643	    s//\1/
16644	    q
16645	  }
16646	  /^X\(\/\/\)$/{
16647	    s//\1/
16648	    q
16649	  }
16650	  /^X\(\/\).*/{
16651	    s//\1/
16652	    q
16653	  }
16654	  s/.*/./; q'`
16655  as_dir="$ac_dir"; as_fn_mkdir_p
16656  ac_builddir=.
16657
16658case "$ac_dir" in
16659.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16660*)
16661  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16662  # A ".." for each directory in $ac_dir_suffix.
16663  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16664  case $ac_top_builddir_sub in
16665  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16666  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16667  esac ;;
16668esac
16669ac_abs_top_builddir=$ac_pwd
16670ac_abs_builddir=$ac_pwd$ac_dir_suffix
16671# for backward compatibility:
16672ac_top_builddir=$ac_top_build_prefix
16673
16674case $srcdir in
16675  .)  # We are building in place.
16676    ac_srcdir=.
16677    ac_top_srcdir=$ac_top_builddir_sub
16678    ac_abs_top_srcdir=$ac_pwd ;;
16679  [\\/]* | ?:[\\/]* )  # Absolute name.
16680    ac_srcdir=$srcdir$ac_dir_suffix;
16681    ac_top_srcdir=$srcdir
16682    ac_abs_top_srcdir=$srcdir ;;
16683  *) # Relative name.
16684    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16685    ac_top_srcdir=$ac_top_build_prefix$srcdir
16686    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16687esac
16688ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16689
16690
16691  case $ac_mode in
16692  :F)
16693  #
16694  # CONFIG_FILE
16695  #
16696
16697  case $INSTALL in
16698  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16699  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16700  esac
16701  ac_MKDIR_P=$MKDIR_P
16702  case $MKDIR_P in
16703  [\\/$]* | ?:[\\/]* ) ;;
16704  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16705  esac
16706_ACEOF
16707
16708cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16709# If the template does not know about datarootdir, expand it.
16710# FIXME: This hack should be removed a few years after 2.60.
16711ac_datarootdir_hack=; ac_datarootdir_seen=
16712ac_sed_dataroot='
16713/datarootdir/ {
16714  p
16715  q
16716}
16717/@datadir@/p
16718/@docdir@/p
16719/@infodir@/p
16720/@localedir@/p
16721/@mandir@/p'
16722case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16723*datarootdir*) ac_datarootdir_seen=yes;;
16724*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16725  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16726$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16727_ACEOF
16728cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16729  ac_datarootdir_hack='
16730  s&@datadir@&$datadir&g
16731  s&@docdir@&$docdir&g
16732  s&@infodir@&$infodir&g
16733  s&@localedir@&$localedir&g
16734  s&@mandir@&$mandir&g
16735  s&\\\${datarootdir}&$datarootdir&g' ;;
16736esac
16737_ACEOF
16738
16739# Neutralize VPATH when `$srcdir' = `.'.
16740# Shell code in configure.ac might set extrasub.
16741# FIXME: do we really want to maintain this feature?
16742cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16743ac_sed_extra="$ac_vpsub
16744$extrasub
16745_ACEOF
16746cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16747:t
16748/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16749s|@configure_input@|$ac_sed_conf_input|;t t
16750s&@top_builddir@&$ac_top_builddir_sub&;t t
16751s&@top_build_prefix@&$ac_top_build_prefix&;t t
16752s&@srcdir@&$ac_srcdir&;t t
16753s&@abs_srcdir@&$ac_abs_srcdir&;t t
16754s&@top_srcdir@&$ac_top_srcdir&;t t
16755s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16756s&@builddir@&$ac_builddir&;t t
16757s&@abs_builddir@&$ac_abs_builddir&;t t
16758s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16759s&@INSTALL@&$ac_INSTALL&;t t
16760s&@MKDIR_P@&$ac_MKDIR_P&;t t
16761$ac_datarootdir_hack
16762"
16763eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16764  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16765
16766test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16767  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16768  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
16769      "$ac_tmp/out"`; test -z "$ac_out"; } &&
16770  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16771which seems to be undefined.  Please make sure it is defined" >&5
16772$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16773which seems to be undefined.  Please make sure it is defined" >&2;}
16774
16775  rm -f "$ac_tmp/stdin"
16776  case $ac_file in
16777  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16778  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16779  esac \
16780  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16781 ;;
16782  :H)
16783  #
16784  # CONFIG_HEADER
16785  #
16786  if test x"$ac_file" != x-; then
16787    {
16788      $as_echo "/* $configure_input  */" \
16789      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16790    } >"$ac_tmp/config.h" \
16791      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16792    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16793      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16794$as_echo "$as_me: $ac_file is unchanged" >&6;}
16795    else
16796      rm -f "$ac_file"
16797      mv "$ac_tmp/config.h" "$ac_file" \
16798	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16799    fi
16800  else
16801    $as_echo "/* $configure_input  */" \
16802      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16803      || as_fn_error $? "could not create -" "$LINENO" 5
16804  fi
16805# Compute "$ac_file"'s index in $config_headers.
16806_am_arg="$ac_file"
16807_am_stamp_count=1
16808for _am_header in $config_headers :; do
16809  case $_am_header in
16810    $_am_arg | $_am_arg:* )
16811      break ;;
16812    * )
16813      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16814  esac
16815done
16816echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16817$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16818	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16819	 X"$_am_arg" : 'X\(//\)$' \| \
16820	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16821$as_echo X"$_am_arg" |
16822    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16823	    s//\1/
16824	    q
16825	  }
16826	  /^X\(\/\/\)[^/].*/{
16827	    s//\1/
16828	    q
16829	  }
16830	  /^X\(\/\/\)$/{
16831	    s//\1/
16832	    q
16833	  }
16834	  /^X\(\/\).*/{
16835	    s//\1/
16836	    q
16837	  }
16838	  s/.*/./; q'`/stamp-h$_am_stamp_count
16839 ;;
16840
16841  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16842$as_echo "$as_me: executing $ac_file commands" >&6;}
16843 ;;
16844  esac
16845
16846
16847  case $ac_file$ac_mode in
16848    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16849  # Older Autoconf quotes --file arguments for eval, but not when files
16850  # are listed without --file.  Let's play safe and only enable the eval
16851  # if we detect the quoting.
16852  case $CONFIG_FILES in
16853  *\'*) eval set x "$CONFIG_FILES" ;;
16854  *)   set x $CONFIG_FILES ;;
16855  esac
16856  shift
16857  for mf
16858  do
16859    # Strip MF so we end up with the name of the file.
16860    mf=`echo "$mf" | sed -e 's/:.*$//'`
16861    # Check whether this is an Automake generated Makefile or not.
16862    # We used to match only the files named 'Makefile.in', but
16863    # some people rename them; so instead we look at the file content.
16864    # Grep'ing the first line is not enough: some people post-process
16865    # each Makefile.in and add a new line on top of each file to say so.
16866    # Grep'ing the whole file is not good either: AIX grep has a line
16867    # limit of 2048, but all sed's we know have understand at least 4000.
16868    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16869      dirpart=`$as_dirname -- "$mf" ||
16870$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16871	 X"$mf" : 'X\(//\)[^/]' \| \
16872	 X"$mf" : 'X\(//\)$' \| \
16873	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16874$as_echo X"$mf" |
16875    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16876	    s//\1/
16877	    q
16878	  }
16879	  /^X\(\/\/\)[^/].*/{
16880	    s//\1/
16881	    q
16882	  }
16883	  /^X\(\/\/\)$/{
16884	    s//\1/
16885	    q
16886	  }
16887	  /^X\(\/\).*/{
16888	    s//\1/
16889	    q
16890	  }
16891	  s/.*/./; q'`
16892    else
16893      continue
16894    fi
16895    # Extract the definition of DEPDIR, am__include, and am__quote
16896    # from the Makefile without running 'make'.
16897    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16898    test -z "$DEPDIR" && continue
16899    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16900    test -z "$am__include" && continue
16901    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16902    # Find all dependency output files, they are included files with
16903    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16904    # simplest approach to changing $(DEPDIR) to its actual value in the
16905    # expansion.
16906    for file in `sed -n "
16907      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16908	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16909      # Make sure the directory exists.
16910      test -f "$dirpart/$file" && continue
16911      fdir=`$as_dirname -- "$file" ||
16912$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16913	 X"$file" : 'X\(//\)[^/]' \| \
16914	 X"$file" : 'X\(//\)$' \| \
16915	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16916$as_echo X"$file" |
16917    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16918	    s//\1/
16919	    q
16920	  }
16921	  /^X\(\/\/\)[^/].*/{
16922	    s//\1/
16923	    q
16924	  }
16925	  /^X\(\/\/\)$/{
16926	    s//\1/
16927	    q
16928	  }
16929	  /^X\(\/\).*/{
16930	    s//\1/
16931	    q
16932	  }
16933	  s/.*/./; q'`
16934      as_dir=$dirpart/$fdir; as_fn_mkdir_p
16935      # echo "creating $dirpart/$file"
16936      echo '# dummy' > "$dirpart/$file"
16937    done
16938  done
16939}
16940 ;;
16941
16942  esac
16943done # for ac_tag
16944
16945
16946as_fn_exit 0
16947_ACEOF
16948ac_clean_files=$ac_clean_files_save
16949
16950test $ac_write_fail = 0 ||
16951  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16952
16953
16954# configure is writing to config.log, and then calls config.status.
16955# config.status does its own redirection, appending to config.log.
16956# Unfortunately, on DOS this fails, as config.log is still kept open
16957# by configure, so config.status won't be able to write to it; its
16958# output is simply discarded.  So we exec the FD to /dev/null,
16959# effectively closing config.log, so it can be properly (re)opened and
16960# appended to by config.status.  When coming back to configure, we
16961# need to make the FD available again.
16962if test "$no_create" != yes; then
16963  ac_cs_success=:
16964  ac_config_status_args=
16965  test "$silent" = yes &&
16966    ac_config_status_args="$ac_config_status_args --quiet"
16967  exec 5>/dev/null
16968  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16969  exec 5>>config.log
16970  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16971  # would make configure fail if this is the last instruction.
16972  $ac_cs_success || as_fn_exit 1
16973fi
16974if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16975  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16976$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16977fi
16978
16979
16980echo
16981echo "ARAnyM configuration summary:"
16982echo
16983echo "SDL version ................... ........ : $sdl_version"
16984echo "Use exclusive spcflags handling ........ : $WANT_SPCFLAGS_EXCL"
16985echo "Use JIT compiler ....................... : $WANT_JIT"
16986echo "Use JIT compiler for FPU instructions .. : $WANT_JIT_FPU"
16987echo "JIT debug mode ......................... : $WANT_JIT_DEBUG"
16988echo "Floating-Point emulation core .......... : $FPE_CORE"
16989echo "Assembly optimizations ................. : $ASM_OPTIMIZATIONS"
16990echo "Addressing mode ........................ : $ADDRESSING_MODE"
16991ATC_TYPE_MSG=
16992if [ "x$WANT_MMU" = "xyes" ]; then
16993    case "$ATC_TYPE" in
16994		full)	ATC_TYPE_MSG=" (with ATC)";;
16995		small)	ATC_TYPE_MSG=" (with small ATC)";;
16996		no)	ATC_TYPE_MSG=" (without ATC)";;
16997    esac
16998fi
16999echo "Full MMU support ....................... : $WANT_MMU$ATC_TYPE_MSG"
17000echo "Linux /dev/rtc source timer ............ : $WANT_RTCTIMER"
17001echo "Real STOP implementation ............... : $WANT_REALSTOP"
17002echo "DSP 56001 support ...................... : $WANT_DSP"
17003echo "DSP 56001 disassembly support .......... : $WANT_DSP_DISASM"
17004echo "Debugger ............................... : $USE_DEBUGGER"
17005echo "Check memory ........................... : $MEMORY_CHECK"
17006echo "First 2kB of RAM Supervisor protected... : $WANT_PROTECT2K"
17007echo "FastRAM fixed size ..................... : $WANT_FIXEDFASTRAM"
17008echo "Fixed position of VideoRAM ............. : $WANT_FIXEDVIDEORAM"
17009echo "Blitter memmove acceleration ........... : $WANT_BLITMEMMOVE"
17010echo "Blitter SDL blit acceleration .......... : $WANT_BLITSDLBLIT"
17011echo "Support for hostfs ..................... : $WANT_HOSTFS"
17012echo "Support for ethernet ................... : $HAVE_ETHERNET"
17013echo "GUI .................................... : $WANT_SDLGUI"
17014echo "OpenGL ................................. : $WANT_OPENGL"
17015echo "Linux-m68k loader ...................... : $WANT_LILO"
17016echo "Zlib ................................... : $have_zlib"
17017echo "libusb-1.0.............................. : $WITH_USBHOST"
17018echo "NatFeat CD-ROM driver .................. : $NFCDROM_DRIVER"
17019echo "NatFeat PCI driver ..................... : $WANT_NFPCI"
17020echo "NatFeat USB driver ..................... : $WANT_USBHOST"
17021echo "NatFeat OSMesa driver .................. : $WANT_NFOSMESA"
17022echo "NatFeat JPEG decoder ................... : $WANT_NFJPEG"
17023echo "NatFeat Clipboard ...................... : $WANT_NFCLIPBRD"
17024echo "NatFeat VDI driver ..................... : $WANT_NFVDI"
17025echo "NatFeat SCSI driver .................... : $WANT_NFSCSI"
17026echo "NatFeat host exec driver ............... : $WANT_NFEXEC"
17027echo "Exception per second limiter ........... : $WANT_EPSLIMITER"
17028echo "Linux/X86 h/w access for parallel port.. : $WANT_PARALLELX86"
17029echo "Linux /dev/parport for parallel port.... : $WANT_PARALLELPARPORT"
17030echo "Unix /dev/ttySn for serial port......... : $WANT_UNIXSERIALPORT"
17031echo "Use C++ exceptions for m68k exceptions.. : $WANT_CXX_EXCEPTIONS"
17032echo
17033echo "Configuration done. Now type \"make\" (or \"gmake\")."
17034