1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65 for gngeo 0.8.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8# 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.
92case $0 in #((
93  *[\\/]* ) as_myself=$0 ;;
94  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97  IFS=$as_save_IFS
98  test -z "$as_dir" && as_dir=.
99    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100  done
101IFS=$as_save_IFS
102
103     ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108  as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112  exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there.  '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138  emulate sh
139  NULLCMD=:
140  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141  # is contrary to our usage.  Disable this feature.
142  alias -g '\${1+\"\$@\"}'='\"\$@\"'
143  setopt NO_GLOB_SUBST
144else
145  case \`(set -o) 2>/dev/null\` in #(
146  *posix*) :
147    set -o posix ;; #(
148  *) :
149     ;;
150esac
151fi
152"
153  as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167  exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175  if (eval "$as_required") 2>/dev/null; then :
176  as_have_required=yes
177else
178  as_have_required=no
179fi
180  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187  IFS=$as_save_IFS
188  test -z "$as_dir" && as_dir=.
189  as_found=:
190  case $as_dir in #(
191	 /*)
192	   for as_base in sh bash ksh sh5; do
193	     # Try only shells that exist, to save several forks.
194	     as_shell=$as_dir/$as_base
195	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197  CONFIG_SHELL=$as_shell as_have_required=yes
198		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  break 2
200fi
201fi
202	   done;;
203       esac
204  as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208  CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213      if test "x$CONFIG_SHELL" != x; then :
214  # We cannot yet assume a decent shell, so we have to provide a
215	# neutralization value for shells without unset; and this also
216	# works around shells that cannot unset nonexistent variables.
217	BASH_ENV=/dev/null
218	ENV=/dev/null
219	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220	export CONFIG_SHELL
221	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224    if test x$as_have_required = xno; then :
225  $as_echo "$0: This script requires a shell more modern than all"
226  $as_echo "$0: the shells that I found on your system."
227  if test x${ZSH_VERSION+set} = xset ; then
228    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230  else
231    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235  fi
236  exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254  { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263  return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271  set +e
272  as_fn_set_status $1
273  exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282  case $as_dir in #(
283  -*) as_dir=./$as_dir;;
284  esac
285  test -d "$as_dir" || eval $as_mkdir_p || {
286    as_dirs=
287    while :; do
288      case $as_dir in #(
289      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290      *) as_qdir=$as_dir;;
291      esac
292      as_dirs="'$as_qdir' $as_dirs"
293      as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295	 X"$as_dir" : 'X\(//\)[^/]' \| \
296	 X"$as_dir" : 'X\(//\)$' \| \
297	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300	    s//\1/
301	    q
302	  }
303	  /^X\(\/\/\)[^/].*/{
304	    s//\1/
305	    q
306	  }
307	  /^X\(\/\/\)$/{
308	    s//\1/
309	    q
310	  }
311	  /^X\(\/\).*/{
312	    s//\1/
313	    q
314	  }
315	  s/.*/./; q'`
316      test -d "$as_dir" && break
317    done
318    test -z "$as_dirs" || eval "mkdir $as_dirs"
319  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330  eval 'as_fn_append ()
331  {
332    eval $1+=\$2
333  }'
334else
335  as_fn_append ()
336  {
337    eval $1=\$$1\$2
338  }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347  eval 'as_fn_arith ()
348  {
349    as_val=$(( $* ))
350  }'
351else
352  as_fn_arith ()
353  {
354    as_val=`expr "$@" || test $? -eq 1`
355  }
356fi # as_fn_arith
357
358
359# as_fn_error ERROR [LINENO LOG_FD]
360# ---------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with status $?, using 1 if that was 0.
364as_fn_error ()
365{
366  as_status=$?; test $as_status -eq 0 && as_status=1
367  if test "$3"; then
368    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370  fi
371  $as_echo "$as_me: error: $1" >&2
372  as_fn_exit $as_status
373} # as_fn_error
374
375if expr a : '\(a\)' >/dev/null 2>&1 &&
376   test "X`expr 00001 : '.*\(...\)'`" = X001; then
377  as_expr=expr
378else
379  as_expr=false
380fi
381
382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383  as_basename=basename
384else
385  as_basename=false
386fi
387
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389  as_dirname=dirname
390else
391  as_dirname=false
392fi
393
394as_me=`$as_basename -- "$0" ||
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396	 X"$0" : 'X\(//\)$' \| \
397	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398$as_echo X/"$0" |
399    sed '/^.*\/\([^/][^/]*\)\/*$/{
400	    s//\1/
401	    q
402	  }
403	  /^X\/\(\/\/\)$/{
404	    s//\1/
405	    q
406	  }
407	  /^X\/\(\/\).*/{
408	    s//\1/
409	    q
410	  }
411	  s/.*/./; q'`
412
413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421  as_lineno_1=$LINENO as_lineno_1a=$LINENO
422  as_lineno_2=$LINENO as_lineno_2a=$LINENO
423  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426  sed -n '
427    p
428    /[$]LINENO/=
429  ' <$as_myself |
430    sed '
431      s/[$]LINENO.*/&-/
432      t lineno
433      b
434      :lineno
435      N
436      :loop
437      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438      t loop
439      s/-\n.*//
440    ' >$as_me.lineno &&
441  chmod +x "$as_me.lineno" ||
442    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444  # Don't try to exec as it changes $[0], causing all sort of problems
445  # (the dirname of $[0] is not the place where we might find the
446  # original and so on.  Autoconf is especially sensitive to this).
447  . "./$as_me.lineno"
448  # Exit status is that of the last command.
449  exit
450}
451
452ECHO_C= ECHO_N= ECHO_T=
453case `echo -n x` in #(((((
454-n*)
455  case `echo 'xy\c'` in
456  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
457  xy)  ECHO_C='\c';;
458  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459       ECHO_T='	';;
460  esac;;
461*)
462  ECHO_N='-n';;
463esac
464
465rm -f conf$$ conf$$.exe conf$$.file
466if test -d conf$$.dir; then
467  rm -f conf$$.dir/conf$$.file
468else
469  rm -f conf$$.dir
470  mkdir conf$$.dir 2>/dev/null
471fi
472if (echo >conf$$.file) 2>/dev/null; then
473  if ln -s conf$$.file conf$$ 2>/dev/null; then
474    as_ln_s='ln -s'
475    # ... but there are two gotchas:
476    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478    # In both cases, we have to default to `cp -p'.
479    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480      as_ln_s='cp -p'
481  elif ln conf$$.file conf$$ 2>/dev/null; then
482    as_ln_s=ln
483  else
484    as_ln_s='cp -p'
485  fi
486else
487  as_ln_s='cp -p'
488fi
489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
491
492if mkdir -p . 2>/dev/null; then
493  as_mkdir_p='mkdir -p "$as_dir"'
494else
495  test -d ./-p && rmdir ./-p
496  as_mkdir_p=false
497fi
498
499if test -x / >/dev/null 2>&1; then
500  as_test_x='test -x'
501else
502  if ls -dL / >/dev/null 2>&1; then
503    as_ls_L_option=L
504  else
505    as_ls_L_option=
506  fi
507  as_test_x='
508    eval sh -c '\''
509      if test -d "$1"; then
510	test -d "$1/.";
511      else
512	case $1 in #(
513	-*)set "./$1";;
514	esac;
515	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516	???[sx]*):;;*)false;;esac;fi
517    '\'' sh
518  '
519fi
520as_executable_p=$as_test_x
521
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529test -n "$DJDIR" || exec 7<&0 </dev/null
530exec 6>&1
531
532# Name of the host.
533# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534# so uname gets run too.
535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537#
538# Initializations.
539#
540ac_default_prefix=/usr/local
541ac_clean_files=
542ac_config_libobj_dir=.
543LIBOBJS=
544cross_compiling=no
545subdirs=
546MFLAGS=
547MAKEFLAGS=
548
549# Identity of this package.
550PACKAGE_NAME='gngeo'
551PACKAGE_TARNAME='gngeo'
552PACKAGE_VERSION='0.8'
553PACKAGE_STRING='gngeo 0.8'
554PACKAGE_BUGREPORT=''
555PACKAGE_URL=''
556
557ac_unique_file="src/emu.c"
558# Factoring default headers for most tests.
559ac_includes_default="\
560#include <stdio.h>
561#ifdef HAVE_SYS_TYPES_H
562# include <sys/types.h>
563#endif
564#ifdef HAVE_SYS_STAT_H
565# include <sys/stat.h>
566#endif
567#ifdef STDC_HEADERS
568# include <stdlib.h>
569# include <stddef.h>
570#else
571# ifdef HAVE_STDLIB_H
572#  include <stdlib.h>
573# endif
574#endif
575#ifdef HAVE_STRING_H
576# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577#  include <memory.h>
578# endif
579# include <string.h>
580#endif
581#ifdef HAVE_STRINGS_H
582# include <strings.h>
583#endif
584#ifdef HAVE_INTTYPES_H
585# include <inttypes.h>
586#endif
587#ifdef HAVE_STDINT_H
588# include <stdint.h>
589#endif
590#ifdef HAVE_UNISTD_H
591# include <unistd.h>
592#endif"
593
594ac_subst_vars='am__EXEEXT_FALSE
595am__EXEEXT_TRUE
596LTLIBOBJS
597PROCESSOR_ARM_FALSE
598PROCESSOR_ARM_TRUE
599USE_WIZ_FALSE
600USE_WIZ_TRUE
601USE_GP2X_FALSE
602USE_GP2X_TRUE
603USE_GUI_FALSE
604USE_GUI_TRUE
605USE_DRZ80_FALSE
606USE_DRZ80_TRUE
607USE_MAMEZ80_FALSE
608USE_MAMEZ80_TRUE
609USE_CYCLONE_FALSE
610USE_CYCLONE_TRUE
611USE_GENERATOR68K_FALSE
612USE_GENERATOR68K_TRUE
613USE_RAZE_FALSE
614USE_RAZE_TRUE
615USE_STARSCREAM_FALSE
616USE_STARSCREAM_TRUE
617HAVE_NASM_FALSE
618HAVE_NASM_TRUE
619EGREP
620GREP
621CPP
622have_nasm
623LIBOBJS
624SDL_LIBS
625SDL_CFLAGS
626SDL_CONFIG
627am__fastdepCCAS_FALSE
628am__fastdepCCAS_TRUE
629CCASDEPMODE
630CCASFLAGS
631CCAS
632RANLIB
633am__fastdepCC_FALSE
634am__fastdepCC_TRUE
635CCDEPMODE
636AMDEPBACKSLASH
637AMDEP_FALSE
638AMDEP_TRUE
639am__quote
640am__include
641DEPDIR
642OBJEXT
643EXEEXT
644ac_ct_CC
645CPPFLAGS
646LDFLAGS
647CFLAGS
648CC
649CC_FOR_BUILD
650AM_BACKSLASH
651AM_DEFAULT_VERBOSITY
652am__untar
653am__tar
654AMTAR
655am__leading_dot
656SET_MAKE
657AWK
658mkdir_p
659MKDIR_P
660INSTALL_STRIP_PROGRAM
661STRIP
662install_sh
663MAKEINFO
664AUTOHEADER
665AUTOMAKE
666AUTOCONF
667ACLOCAL
668VERSION
669PACKAGE
670CYGPATH_W
671am__isrc
672INSTALL_DATA
673INSTALL_SCRIPT
674INSTALL_PROGRAM
675target_os
676target_vendor
677target_cpu
678target
679host_os
680host_vendor
681host_cpu
682host
683build_os
684build_vendor
685build_cpu
686build
687target_alias
688host_alias
689build_alias
690LIBS
691ECHO_T
692ECHO_N
693ECHO_C
694DEFS
695mandir
696localedir
697libdir
698psdir
699pdfdir
700dvidir
701htmldir
702infodir
703docdir
704oldincludedir
705includedir
706localstatedir
707sharedstatedir
708sysconfdir
709datadir
710datarootdir
711libexecdir
712sbindir
713bindir
714program_transform_name
715prefix
716exec_prefix
717PACKAGE_URL
718PACKAGE_BUGREPORT
719PACKAGE_STRING
720PACKAGE_VERSION
721PACKAGE_TARNAME
722PACKAGE_NAME
723PATH_SEPARATOR
724SHELL'
725ac_subst_files=''
726ac_user_opts='
727enable_option_checking
728enable_silent_rules
729enable_dependency_tracking
730enable_gp2x
731enable_wiz
732enable_wii
733enable_pandora
734enable_win32
735enable_dingux
736enable_embedded
737with_sdl_prefix
738with_sdl_exec_prefix
739enable_sdltest
740enable_i386asm
741with_m68kcore
742with_z80core
743'
744      ac_precious_vars='build_alias
745host_alias
746target_alias
747CC
748CFLAGS
749LDFLAGS
750LIBS
751CPPFLAGS
752CCAS
753CCASFLAGS
754CPP'
755
756
757# Initialize some variables set by options.
758ac_init_help=
759ac_init_version=false
760ac_unrecognized_opts=
761ac_unrecognized_sep=
762# The variables have the same names as the options, with
763# dashes changed to underlines.
764cache_file=/dev/null
765exec_prefix=NONE
766no_create=
767no_recursion=
768prefix=NONE
769program_prefix=NONE
770program_suffix=NONE
771program_transform_name=s,x,x,
772silent=
773site=
774srcdir=
775verbose=
776x_includes=NONE
777x_libraries=NONE
778
779# Installation directory options.
780# These are left unexpanded so users can "make install exec_prefix=/foo"
781# and all the variables that are supposed to be based on exec_prefix
782# by default will actually change.
783# Use braces instead of parens because sh, perl, etc. also accept them.
784# (The list follows the same order as the GNU Coding Standards.)
785bindir='${exec_prefix}/bin'
786sbindir='${exec_prefix}/sbin'
787libexecdir='${exec_prefix}/libexec'
788datarootdir='${prefix}/share'
789datadir='${datarootdir}'
790sysconfdir='${prefix}/etc'
791sharedstatedir='${prefix}/com'
792localstatedir='${prefix}/var'
793includedir='${prefix}/include'
794oldincludedir='/usr/include'
795docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
796infodir='${datarootdir}/info'
797htmldir='${docdir}'
798dvidir='${docdir}'
799pdfdir='${docdir}'
800psdir='${docdir}'
801libdir='${exec_prefix}/lib'
802localedir='${datarootdir}/locale'
803mandir='${datarootdir}/man'
804
805ac_prev=
806ac_dashdash=
807for ac_option
808do
809  # If the previous option needs an argument, assign it.
810  if test -n "$ac_prev"; then
811    eval $ac_prev=\$ac_option
812    ac_prev=
813    continue
814  fi
815
816  case $ac_option in
817  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
818  *)	ac_optarg=yes ;;
819  esac
820
821  # Accept the important Cygnus configure options, so we can diagnose typos.
822
823  case $ac_dashdash$ac_option in
824  --)
825    ac_dashdash=yes ;;
826
827  -bindir | --bindir | --bindi | --bind | --bin | --bi)
828    ac_prev=bindir ;;
829  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
830    bindir=$ac_optarg ;;
831
832  -build | --build | --buil | --bui | --bu)
833    ac_prev=build_alias ;;
834  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
835    build_alias=$ac_optarg ;;
836
837  -cache-file | --cache-file | --cache-fil | --cache-fi \
838  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
839    ac_prev=cache_file ;;
840  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
841  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
842    cache_file=$ac_optarg ;;
843
844  --config-cache | -C)
845    cache_file=config.cache ;;
846
847  -datadir | --datadir | --datadi | --datad)
848    ac_prev=datadir ;;
849  -datadir=* | --datadir=* | --datadi=* | --datad=*)
850    datadir=$ac_optarg ;;
851
852  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
853  | --dataroo | --dataro | --datar)
854    ac_prev=datarootdir ;;
855  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
856  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
857    datarootdir=$ac_optarg ;;
858
859  -disable-* | --disable-*)
860    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
861    # Reject names that are not valid shell variable names.
862    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
863      as_fn_error "invalid feature name: $ac_useropt"
864    ac_useropt_orig=$ac_useropt
865    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
866    case $ac_user_opts in
867      *"
868"enable_$ac_useropt"
869"*) ;;
870      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
871	 ac_unrecognized_sep=', ';;
872    esac
873    eval enable_$ac_useropt=no ;;
874
875  -docdir | --docdir | --docdi | --doc | --do)
876    ac_prev=docdir ;;
877  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
878    docdir=$ac_optarg ;;
879
880  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
881    ac_prev=dvidir ;;
882  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
883    dvidir=$ac_optarg ;;
884
885  -enable-* | --enable-*)
886    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
887    # Reject names that are not valid shell variable names.
888    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889      as_fn_error "invalid feature name: $ac_useropt"
890    ac_useropt_orig=$ac_useropt
891    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892    case $ac_user_opts in
893      *"
894"enable_$ac_useropt"
895"*) ;;
896      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
897	 ac_unrecognized_sep=', ';;
898    esac
899    eval enable_$ac_useropt=\$ac_optarg ;;
900
901  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
902  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
903  | --exec | --exe | --ex)
904    ac_prev=exec_prefix ;;
905  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
906  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
907  | --exec=* | --exe=* | --ex=*)
908    exec_prefix=$ac_optarg ;;
909
910  -gas | --gas | --ga | --g)
911    # Obsolete; use --with-gas.
912    with_gas=yes ;;
913
914  -help | --help | --hel | --he | -h)
915    ac_init_help=long ;;
916  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
917    ac_init_help=recursive ;;
918  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
919    ac_init_help=short ;;
920
921  -host | --host | --hos | --ho)
922    ac_prev=host_alias ;;
923  -host=* | --host=* | --hos=* | --ho=*)
924    host_alias=$ac_optarg ;;
925
926  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
927    ac_prev=htmldir ;;
928  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
929  | --ht=*)
930    htmldir=$ac_optarg ;;
931
932  -includedir | --includedir | --includedi | --included | --include \
933  | --includ | --inclu | --incl | --inc)
934    ac_prev=includedir ;;
935  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
936  | --includ=* | --inclu=* | --incl=* | --inc=*)
937    includedir=$ac_optarg ;;
938
939  -infodir | --infodir | --infodi | --infod | --info | --inf)
940    ac_prev=infodir ;;
941  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
942    infodir=$ac_optarg ;;
943
944  -libdir | --libdir | --libdi | --libd)
945    ac_prev=libdir ;;
946  -libdir=* | --libdir=* | --libdi=* | --libd=*)
947    libdir=$ac_optarg ;;
948
949  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
950  | --libexe | --libex | --libe)
951    ac_prev=libexecdir ;;
952  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
953  | --libexe=* | --libex=* | --libe=*)
954    libexecdir=$ac_optarg ;;
955
956  -localedir | --localedir | --localedi | --localed | --locale)
957    ac_prev=localedir ;;
958  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
959    localedir=$ac_optarg ;;
960
961  -localstatedir | --localstatedir | --localstatedi | --localstated \
962  | --localstate | --localstat | --localsta | --localst | --locals)
963    ac_prev=localstatedir ;;
964  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
965  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
966    localstatedir=$ac_optarg ;;
967
968  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
969    ac_prev=mandir ;;
970  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
971    mandir=$ac_optarg ;;
972
973  -nfp | --nfp | --nf)
974    # Obsolete; use --without-fp.
975    with_fp=no ;;
976
977  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
978  | --no-cr | --no-c | -n)
979    no_create=yes ;;
980
981  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
982  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
983    no_recursion=yes ;;
984
985  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
986  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
987  | --oldin | --oldi | --old | --ol | --o)
988    ac_prev=oldincludedir ;;
989  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
990  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
991  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
992    oldincludedir=$ac_optarg ;;
993
994  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
995    ac_prev=prefix ;;
996  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
997    prefix=$ac_optarg ;;
998
999  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1000  | --program-pre | --program-pr | --program-p)
1001    ac_prev=program_prefix ;;
1002  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1003  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1004    program_prefix=$ac_optarg ;;
1005
1006  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1007  | --program-suf | --program-su | --program-s)
1008    ac_prev=program_suffix ;;
1009  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1010  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1011    program_suffix=$ac_optarg ;;
1012
1013  -program-transform-name | --program-transform-name \
1014  | --program-transform-nam | --program-transform-na \
1015  | --program-transform-n | --program-transform- \
1016  | --program-transform | --program-transfor \
1017  | --program-transfo | --program-transf \
1018  | --program-trans | --program-tran \
1019  | --progr-tra | --program-tr | --program-t)
1020    ac_prev=program_transform_name ;;
1021  -program-transform-name=* | --program-transform-name=* \
1022  | --program-transform-nam=* | --program-transform-na=* \
1023  | --program-transform-n=* | --program-transform-=* \
1024  | --program-transform=* | --program-transfor=* \
1025  | --program-transfo=* | --program-transf=* \
1026  | --program-trans=* | --program-tran=* \
1027  | --progr-tra=* | --program-tr=* | --program-t=*)
1028    program_transform_name=$ac_optarg ;;
1029
1030  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1031    ac_prev=pdfdir ;;
1032  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1033    pdfdir=$ac_optarg ;;
1034
1035  -psdir | --psdir | --psdi | --psd | --ps)
1036    ac_prev=psdir ;;
1037  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1038    psdir=$ac_optarg ;;
1039
1040  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1041  | -silent | --silent | --silen | --sile | --sil)
1042    silent=yes ;;
1043
1044  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1045    ac_prev=sbindir ;;
1046  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1047  | --sbi=* | --sb=*)
1048    sbindir=$ac_optarg ;;
1049
1050  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1051  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1052  | --sharedst | --shareds | --shared | --share | --shar \
1053  | --sha | --sh)
1054    ac_prev=sharedstatedir ;;
1055  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1056  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1057  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1058  | --sha=* | --sh=*)
1059    sharedstatedir=$ac_optarg ;;
1060
1061  -site | --site | --sit)
1062    ac_prev=site ;;
1063  -site=* | --site=* | --sit=*)
1064    site=$ac_optarg ;;
1065
1066  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1067    ac_prev=srcdir ;;
1068  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1069    srcdir=$ac_optarg ;;
1070
1071  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1072  | --syscon | --sysco | --sysc | --sys | --sy)
1073    ac_prev=sysconfdir ;;
1074  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1075  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1076    sysconfdir=$ac_optarg ;;
1077
1078  -target | --target | --targe | --targ | --tar | --ta | --t)
1079    ac_prev=target_alias ;;
1080  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1081    target_alias=$ac_optarg ;;
1082
1083  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1084    verbose=yes ;;
1085
1086  -version | --version | --versio | --versi | --vers | -V)
1087    ac_init_version=: ;;
1088
1089  -with-* | --with-*)
1090    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1091    # Reject names that are not valid shell variable names.
1092    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1093      as_fn_error "invalid package name: $ac_useropt"
1094    ac_useropt_orig=$ac_useropt
1095    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096    case $ac_user_opts in
1097      *"
1098"with_$ac_useropt"
1099"*) ;;
1100      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1101	 ac_unrecognized_sep=', ';;
1102    esac
1103    eval with_$ac_useropt=\$ac_optarg ;;
1104
1105  -without-* | --without-*)
1106    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1107    # Reject names that are not valid shell variable names.
1108    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109      as_fn_error "invalid package name: $ac_useropt"
1110    ac_useropt_orig=$ac_useropt
1111    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112    case $ac_user_opts in
1113      *"
1114"with_$ac_useropt"
1115"*) ;;
1116      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1117	 ac_unrecognized_sep=', ';;
1118    esac
1119    eval with_$ac_useropt=no ;;
1120
1121  --x)
1122    # Obsolete; use --with-x.
1123    with_x=yes ;;
1124
1125  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1126  | --x-incl | --x-inc | --x-in | --x-i)
1127    ac_prev=x_includes ;;
1128  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1129  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1130    x_includes=$ac_optarg ;;
1131
1132  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1133  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1134    ac_prev=x_libraries ;;
1135  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1136  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1137    x_libraries=$ac_optarg ;;
1138
1139  -*) as_fn_error "unrecognized option: \`$ac_option'
1140Try \`$0 --help' for more information."
1141    ;;
1142
1143  *=*)
1144    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1145    # Reject names that are not valid shell variable names.
1146    case $ac_envvar in #(
1147      '' | [0-9]* | *[!_$as_cr_alnum]* )
1148      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1149    esac
1150    eval $ac_envvar=\$ac_optarg
1151    export $ac_envvar ;;
1152
1153  *)
1154    # FIXME: should be removed in autoconf 3.0.
1155    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1156    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1157      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1158    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1159    ;;
1160
1161  esac
1162done
1163
1164if test -n "$ac_prev"; then
1165  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1166  as_fn_error "missing argument to $ac_option"
1167fi
1168
1169if test -n "$ac_unrecognized_opts"; then
1170  case $enable_option_checking in
1171    no) ;;
1172    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1173    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1174  esac
1175fi
1176
1177# Check all directory arguments for consistency.
1178for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1179		datadir sysconfdir sharedstatedir localstatedir includedir \
1180		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1181		libdir localedir mandir
1182do
1183  eval ac_val=\$$ac_var
1184  # Remove trailing slashes.
1185  case $ac_val in
1186    */ )
1187      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1188      eval $ac_var=\$ac_val;;
1189  esac
1190  # Be sure to have absolute directory names.
1191  case $ac_val in
1192    [\\/$]* | ?:[\\/]* )  continue;;
1193    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1194  esac
1195  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1196done
1197
1198# There might be people who depend on the old broken behavior: `$host'
1199# used to hold the argument of --host etc.
1200# FIXME: To remove some day.
1201build=$build_alias
1202host=$host_alias
1203target=$target_alias
1204
1205# FIXME: To remove some day.
1206if test "x$host_alias" != x; then
1207  if test "x$build_alias" = x; then
1208    cross_compiling=maybe
1209    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1210    If a cross compiler is detected then cross compile mode will be used." >&2
1211  elif test "x$build_alias" != "x$host_alias"; then
1212    cross_compiling=yes
1213  fi
1214fi
1215
1216ac_tool_prefix=
1217test -n "$host_alias" && ac_tool_prefix=$host_alias-
1218
1219test "$silent" = yes && exec 6>/dev/null
1220
1221
1222ac_pwd=`pwd` && test -n "$ac_pwd" &&
1223ac_ls_di=`ls -di .` &&
1224ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1225  as_fn_error "working directory cannot be determined"
1226test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1227  as_fn_error "pwd does not report name of working directory"
1228
1229
1230# Find the source files, if location was not specified.
1231if test -z "$srcdir"; then
1232  ac_srcdir_defaulted=yes
1233  # Try the directory containing this script, then the parent directory.
1234  ac_confdir=`$as_dirname -- "$as_myself" ||
1235$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1236	 X"$as_myself" : 'X\(//\)[^/]' \| \
1237	 X"$as_myself" : 'X\(//\)$' \| \
1238	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1239$as_echo X"$as_myself" |
1240    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1241	    s//\1/
1242	    q
1243	  }
1244	  /^X\(\/\/\)[^/].*/{
1245	    s//\1/
1246	    q
1247	  }
1248	  /^X\(\/\/\)$/{
1249	    s//\1/
1250	    q
1251	  }
1252	  /^X\(\/\).*/{
1253	    s//\1/
1254	    q
1255	  }
1256	  s/.*/./; q'`
1257  srcdir=$ac_confdir
1258  if test ! -r "$srcdir/$ac_unique_file"; then
1259    srcdir=..
1260  fi
1261else
1262  ac_srcdir_defaulted=no
1263fi
1264if test ! -r "$srcdir/$ac_unique_file"; then
1265  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1266  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1267fi
1268ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1269ac_abs_confdir=`(
1270	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1271	pwd)`
1272# When building in place, set srcdir=.
1273if test "$ac_abs_confdir" = "$ac_pwd"; then
1274  srcdir=.
1275fi
1276# Remove unnecessary trailing slashes from srcdir.
1277# Double slashes in file names in object file debugging info
1278# mess up M-x gdb in Emacs.
1279case $srcdir in
1280*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1281esac
1282for ac_var in $ac_precious_vars; do
1283  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1284  eval ac_env_${ac_var}_value=\$${ac_var}
1285  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1286  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1287done
1288
1289#
1290# Report the --help message.
1291#
1292if test "$ac_init_help" = "long"; then
1293  # Omit some internal or obsolete options to make the list less imposing.
1294  # This message is too long to be a string in the A/UX 3.1 sh.
1295  cat <<_ACEOF
1296\`configure' configures gngeo 0.8 to adapt to many kinds of systems.
1297
1298Usage: $0 [OPTION]... [VAR=VALUE]...
1299
1300To assign environment variables (e.g., CC, CFLAGS...), specify them as
1301VAR=VALUE.  See below for descriptions of some of the useful variables.
1302
1303Defaults for the options are specified in brackets.
1304
1305Configuration:
1306  -h, --help              display this help and exit
1307      --help=short        display options specific to this package
1308      --help=recursive    display the short help of all the included packages
1309  -V, --version           display version information and exit
1310  -q, --quiet, --silent   do not print \`checking...' messages
1311      --cache-file=FILE   cache test results in FILE [disabled]
1312  -C, --config-cache      alias for \`--cache-file=config.cache'
1313  -n, --no-create         do not create output files
1314      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1315
1316Installation directories:
1317  --prefix=PREFIX         install architecture-independent files in PREFIX
1318                          [$ac_default_prefix]
1319  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1320                          [PREFIX]
1321
1322By default, \`make install' will install all the files in
1323\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1324an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1325for instance \`--prefix=\$HOME'.
1326
1327For better control, use the options below.
1328
1329Fine tuning of the installation directories:
1330  --bindir=DIR            user executables [EPREFIX/bin]
1331  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1332  --libexecdir=DIR        program executables [EPREFIX/libexec]
1333  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1334  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1335  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1336  --libdir=DIR            object code libraries [EPREFIX/lib]
1337  --includedir=DIR        C header files [PREFIX/include]
1338  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1339  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1340  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1341  --infodir=DIR           info documentation [DATAROOTDIR/info]
1342  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1343  --mandir=DIR            man documentation [DATAROOTDIR/man]
1344  --docdir=DIR            documentation root [DATAROOTDIR/doc/gngeo]
1345  --htmldir=DIR           html documentation [DOCDIR]
1346  --dvidir=DIR            dvi documentation [DOCDIR]
1347  --pdfdir=DIR            pdf documentation [DOCDIR]
1348  --psdir=DIR             ps documentation [DOCDIR]
1349_ACEOF
1350
1351  cat <<\_ACEOF
1352
1353Program names:
1354  --program-prefix=PREFIX            prepend PREFIX to installed program names
1355  --program-suffix=SUFFIX            append SUFFIX to installed program names
1356  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1357
1358System types:
1359  --build=BUILD     configure for building on BUILD [guessed]
1360  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1361  --target=TARGET   configure for building compilers for TARGET [HOST]
1362_ACEOF
1363fi
1364
1365if test -n "$ac_init_help"; then
1366  case $ac_init_help in
1367     short | recursive ) echo "Configuration of gngeo 0.8:";;
1368   esac
1369  cat <<\_ACEOF
1370
1371Optional Features:
1372  --disable-option-checking  ignore unrecognized --enable/--with options
1373  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1374  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1375  --enable-silent-rules          less verbose build output (undo: `make V=1')
1376  --disable-silent-rules         verbose build output (undo: `make V=0')
1377  --disable-dependency-tracking  speeds up one-time build
1378  --enable-dependency-tracking   do not reject slow dependency extractors
1379  --enable-gp2x           Enable GP2X build
1380  --enable-wiz            Enable WIZ build
1381  --enable-wii            Enable WII build
1382  --enable-pandora        Enable PANDORA build
1383  --enable-win32          Enable WIN32 build
1384  --enable-dingux         Enable DINGUX build
1385  --enable-embedded       Enable Embedded directory structure
1386  --disable-sdltest       Do not try to compile and run a test SDL program
1387  --disable-i386asm       disable the use of i386 optimisation
1388
1389Optional Packages:
1390  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1391  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1392  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1393  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1394  --with-m68kcore=68kcore     Specify which 68k core to use (cyclone|starscream|gen68k)
1395  --with-z80core=z80core      Specify which z80 core to use (drz80|raze|mamez80)
1396
1397Some influential environment variables:
1398  CC          C compiler command
1399  CFLAGS      C compiler flags
1400  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1401              nonstandard directory <lib dir>
1402  LIBS        libraries to pass to the linker, e.g. -l<library>
1403  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1404              you have headers in a nonstandard directory <include dir>
1405  CCAS        assembler compiler command (defaults to CC)
1406  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1407  CPP         C preprocessor
1408
1409Use these variables to override the choices made by `configure' or to help
1410it to find libraries and programs with nonstandard names/locations.
1411
1412Report bugs to the package provider.
1413_ACEOF
1414ac_status=$?
1415fi
1416
1417if test "$ac_init_help" = "recursive"; then
1418  # If there are subdirs, report their specific --help.
1419  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1420    test -d "$ac_dir" ||
1421      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1422      continue
1423    ac_builddir=.
1424
1425case "$ac_dir" in
1426.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427*)
1428  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1429  # A ".." for each directory in $ac_dir_suffix.
1430  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1431  case $ac_top_builddir_sub in
1432  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1434  esac ;;
1435esac
1436ac_abs_top_builddir=$ac_pwd
1437ac_abs_builddir=$ac_pwd$ac_dir_suffix
1438# for backward compatibility:
1439ac_top_builddir=$ac_top_build_prefix
1440
1441case $srcdir in
1442  .)  # We are building in place.
1443    ac_srcdir=.
1444    ac_top_srcdir=$ac_top_builddir_sub
1445    ac_abs_top_srcdir=$ac_pwd ;;
1446  [\\/]* | ?:[\\/]* )  # Absolute name.
1447    ac_srcdir=$srcdir$ac_dir_suffix;
1448    ac_top_srcdir=$srcdir
1449    ac_abs_top_srcdir=$srcdir ;;
1450  *) # Relative name.
1451    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1452    ac_top_srcdir=$ac_top_build_prefix$srcdir
1453    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1454esac
1455ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1456
1457    cd "$ac_dir" || { ac_status=$?; continue; }
1458    # Check for guested configure.
1459    if test -f "$ac_srcdir/configure.gnu"; then
1460      echo &&
1461      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1462    elif test -f "$ac_srcdir/configure"; then
1463      echo &&
1464      $SHELL "$ac_srcdir/configure" --help=recursive
1465    else
1466      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1467    fi || ac_status=$?
1468    cd "$ac_pwd" || { ac_status=$?; break; }
1469  done
1470fi
1471
1472test -n "$ac_init_help" && exit $ac_status
1473if $ac_init_version; then
1474  cat <<\_ACEOF
1475gngeo configure 0.8
1476generated by GNU Autoconf 2.65
1477
1478Copyright (C) 2009 Free Software Foundation, Inc.
1479This configure script is free software; the Free Software Foundation
1480gives unlimited permission to copy, distribute and modify it.
1481_ACEOF
1482  exit
1483fi
1484
1485## ------------------------ ##
1486## Autoconf initialization. ##
1487## ------------------------ ##
1488
1489# ac_fn_c_try_compile LINENO
1490# --------------------------
1491# Try to compile conftest.$ac_ext, and return whether this succeeded.
1492ac_fn_c_try_compile ()
1493{
1494  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1495  rm -f conftest.$ac_objext
1496  if { { ac_try="$ac_compile"
1497case "(($ac_try" in
1498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1499  *) ac_try_echo=$ac_try;;
1500esac
1501eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1502$as_echo "$ac_try_echo"; } >&5
1503  (eval "$ac_compile") 2>conftest.err
1504  ac_status=$?
1505  if test -s conftest.err; then
1506    grep -v '^ *+' conftest.err >conftest.er1
1507    cat conftest.er1 >&5
1508    mv -f conftest.er1 conftest.err
1509  fi
1510  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1511  test $ac_status = 0; } && {
1512	 test -z "$ac_c_werror_flag" ||
1513	 test ! -s conftest.err
1514       } && test -s conftest.$ac_objext; then :
1515  ac_retval=0
1516else
1517  $as_echo "$as_me: failed program was:" >&5
1518sed 's/^/| /' conftest.$ac_ext >&5
1519
1520	ac_retval=1
1521fi
1522  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1523  as_fn_set_status $ac_retval
1524
1525} # ac_fn_c_try_compile
1526
1527# ac_fn_c_try_run LINENO
1528# ----------------------
1529# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1530# that executables *can* be run.
1531ac_fn_c_try_run ()
1532{
1533  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534  if { { ac_try="$ac_link"
1535case "(($ac_try" in
1536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1537  *) ac_try_echo=$ac_try;;
1538esac
1539eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540$as_echo "$ac_try_echo"; } >&5
1541  (eval "$ac_link") 2>&5
1542  ac_status=$?
1543  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1545  { { case "(($ac_try" in
1546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547  *) ac_try_echo=$ac_try;;
1548esac
1549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550$as_echo "$ac_try_echo"; } >&5
1551  (eval "$ac_try") 2>&5
1552  ac_status=$?
1553  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554  test $ac_status = 0; }; }; then :
1555  ac_retval=0
1556else
1557  $as_echo "$as_me: program exited with status $ac_status" >&5
1558       $as_echo "$as_me: failed program was:" >&5
1559sed 's/^/| /' conftest.$ac_ext >&5
1560
1561       ac_retval=$ac_status
1562fi
1563  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1564  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1565  as_fn_set_status $ac_retval
1566
1567} # ac_fn_c_try_run
1568
1569# ac_fn_c_try_link LINENO
1570# -----------------------
1571# Try to link conftest.$ac_ext, and return whether this succeeded.
1572ac_fn_c_try_link ()
1573{
1574  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575  rm -f conftest.$ac_objext conftest$ac_exeext
1576  if { { ac_try="$ac_link"
1577case "(($ac_try" in
1578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579  *) ac_try_echo=$ac_try;;
1580esac
1581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582$as_echo "$ac_try_echo"; } >&5
1583  (eval "$ac_link") 2>conftest.err
1584  ac_status=$?
1585  if test -s conftest.err; then
1586    grep -v '^ *+' conftest.err >conftest.er1
1587    cat conftest.er1 >&5
1588    mv -f conftest.er1 conftest.err
1589  fi
1590  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591  test $ac_status = 0; } && {
1592	 test -z "$ac_c_werror_flag" ||
1593	 test ! -s conftest.err
1594       } && test -s conftest$ac_exeext && {
1595	 test "$cross_compiling" = yes ||
1596	 $as_test_x conftest$ac_exeext
1597       }; then :
1598  ac_retval=0
1599else
1600  $as_echo "$as_me: failed program was:" >&5
1601sed 's/^/| /' conftest.$ac_ext >&5
1602
1603	ac_retval=1
1604fi
1605  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1606  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1607  # interfere with the next link command; also delete a directory that is
1608  # left behind by Apple's compiler.  We do this before executing the actions.
1609  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1610  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1611  as_fn_set_status $ac_retval
1612
1613} # ac_fn_c_try_link
1614
1615# ac_fn_c_check_func LINENO FUNC VAR
1616# ----------------------------------
1617# Tests whether FUNC exists, setting the cache variable VAR accordingly
1618ac_fn_c_check_func ()
1619{
1620  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1622$as_echo_n "checking for $2... " >&6; }
1623if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1624  $as_echo_n "(cached) " >&6
1625else
1626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1627/* end confdefs.h.  */
1628/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1629   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1630#define $2 innocuous_$2
1631
1632/* System header to define __stub macros and hopefully few prototypes,
1633    which can conflict with char $2 (); below.
1634    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1635    <limits.h> exists even on freestanding compilers.  */
1636
1637#ifdef __STDC__
1638# include <limits.h>
1639#else
1640# include <assert.h>
1641#endif
1642
1643#undef $2
1644
1645/* Override any GCC internal prototype to avoid an error.
1646   Use char because int might match the return type of a GCC
1647   builtin and then its argument prototype would still apply.  */
1648#ifdef __cplusplus
1649extern "C"
1650#endif
1651char $2 ();
1652/* The GNU C library defines this for functions which it implements
1653    to always fail with ENOSYS.  Some functions are actually named
1654    something starting with __ and the normal name is an alias.  */
1655#if defined __stub_$2 || defined __stub___$2
1656choke me
1657#endif
1658
1659int
1660main ()
1661{
1662return $2 ();
1663  ;
1664  return 0;
1665}
1666_ACEOF
1667if ac_fn_c_try_link "$LINENO"; then :
1668  eval "$3=yes"
1669else
1670  eval "$3=no"
1671fi
1672rm -f core conftest.err conftest.$ac_objext \
1673    conftest$ac_exeext conftest.$ac_ext
1674fi
1675eval ac_res=\$$3
1676	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1677$as_echo "$ac_res" >&6; }
1678  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1679
1680} # ac_fn_c_check_func
1681
1682# ac_fn_c_try_cpp LINENO
1683# ----------------------
1684# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1685ac_fn_c_try_cpp ()
1686{
1687  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688  if { { ac_try="$ac_cpp conftest.$ac_ext"
1689case "(($ac_try" in
1690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691  *) ac_try_echo=$ac_try;;
1692esac
1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694$as_echo "$ac_try_echo"; } >&5
1695  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1696  ac_status=$?
1697  if test -s conftest.err; then
1698    grep -v '^ *+' conftest.err >conftest.er1
1699    cat conftest.er1 >&5
1700    mv -f conftest.er1 conftest.err
1701  fi
1702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703  test $ac_status = 0; } >/dev/null && {
1704	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1705	 test ! -s conftest.err
1706       }; then :
1707  ac_retval=0
1708else
1709  $as_echo "$as_me: failed program was:" >&5
1710sed 's/^/| /' conftest.$ac_ext >&5
1711
1712    ac_retval=1
1713fi
1714  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1715  as_fn_set_status $ac_retval
1716
1717} # ac_fn_c_try_cpp
1718
1719# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1720# -------------------------------------------------------
1721# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1722# the include files in INCLUDES and setting the cache variable VAR
1723# accordingly.
1724ac_fn_c_check_header_mongrel ()
1725{
1726  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1728  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729$as_echo_n "checking for $2... " >&6; }
1730if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1731  $as_echo_n "(cached) " >&6
1732fi
1733eval ac_res=\$$3
1734	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735$as_echo "$ac_res" >&6; }
1736else
1737  # Is the header compilable?
1738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1739$as_echo_n "checking $2 usability... " >&6; }
1740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741/* end confdefs.h.  */
1742$4
1743#include <$2>
1744_ACEOF
1745if ac_fn_c_try_compile "$LINENO"; then :
1746  ac_header_compiler=yes
1747else
1748  ac_header_compiler=no
1749fi
1750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1752$as_echo "$ac_header_compiler" >&6; }
1753
1754# Is the header present?
1755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1756$as_echo_n "checking $2 presence... " >&6; }
1757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758/* end confdefs.h.  */
1759#include <$2>
1760_ACEOF
1761if ac_fn_c_try_cpp "$LINENO"; then :
1762  ac_header_preproc=yes
1763else
1764  ac_header_preproc=no
1765fi
1766rm -f conftest.err conftest.$ac_ext
1767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1768$as_echo "$ac_header_preproc" >&6; }
1769
1770# So?  What about this header?
1771case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1772  yes:no: )
1773    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1774$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1775    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1776$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1777    ;;
1778  no:yes:* )
1779    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1780$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1781    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1782$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1783    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1784$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1785    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1786$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1787    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1788$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1789    ;;
1790esac
1791  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792$as_echo_n "checking for $2... " >&6; }
1793if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1794  $as_echo_n "(cached) " >&6
1795else
1796  eval "$3=\$ac_header_compiler"
1797fi
1798eval ac_res=\$$3
1799	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800$as_echo "$ac_res" >&6; }
1801fi
1802  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1803
1804} # ac_fn_c_check_header_mongrel
1805
1806# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1807# -------------------------------------------------------
1808# Tests whether HEADER exists and can be compiled using the include files in
1809# INCLUDES, setting the cache variable VAR accordingly.
1810ac_fn_c_check_header_compile ()
1811{
1812  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814$as_echo_n "checking for $2... " >&6; }
1815if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1816  $as_echo_n "(cached) " >&6
1817else
1818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819/* end confdefs.h.  */
1820$4
1821#include <$2>
1822_ACEOF
1823if ac_fn_c_try_compile "$LINENO"; then :
1824  eval "$3=yes"
1825else
1826  eval "$3=no"
1827fi
1828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829fi
1830eval ac_res=\$$3
1831	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832$as_echo "$ac_res" >&6; }
1833  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834
1835} # ac_fn_c_check_header_compile
1836cat >config.log <<_ACEOF
1837This file contains any messages produced by compilers while
1838running configure, to aid debugging if configure makes a mistake.
1839
1840It was created by gngeo $as_me 0.8, which was
1841generated by GNU Autoconf 2.65.  Invocation command line was
1842
1843  $ $0 $@
1844
1845_ACEOF
1846exec 5>>config.log
1847{
1848cat <<_ASUNAME
1849## --------- ##
1850## Platform. ##
1851## --------- ##
1852
1853hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1854uname -m = `(uname -m) 2>/dev/null || echo unknown`
1855uname -r = `(uname -r) 2>/dev/null || echo unknown`
1856uname -s = `(uname -s) 2>/dev/null || echo unknown`
1857uname -v = `(uname -v) 2>/dev/null || echo unknown`
1858
1859/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1860/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1861
1862/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1863/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1864/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1865/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1866/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1867/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1868/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1869
1870_ASUNAME
1871
1872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873for as_dir in $PATH
1874do
1875  IFS=$as_save_IFS
1876  test -z "$as_dir" && as_dir=.
1877    $as_echo "PATH: $as_dir"
1878  done
1879IFS=$as_save_IFS
1880
1881} >&5
1882
1883cat >&5 <<_ACEOF
1884
1885
1886## ----------- ##
1887## Core tests. ##
1888## ----------- ##
1889
1890_ACEOF
1891
1892
1893# Keep a trace of the command line.
1894# Strip out --no-create and --no-recursion so they do not pile up.
1895# Strip out --silent because we don't want to record it for future runs.
1896# Also quote any args containing shell meta-characters.
1897# Make two passes to allow for proper duplicate-argument suppression.
1898ac_configure_args=
1899ac_configure_args0=
1900ac_configure_args1=
1901ac_must_keep_next=false
1902for ac_pass in 1 2
1903do
1904  for ac_arg
1905  do
1906    case $ac_arg in
1907    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1908    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1909    | -silent | --silent | --silen | --sile | --sil)
1910      continue ;;
1911    *\'*)
1912      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1913    esac
1914    case $ac_pass in
1915    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1916    2)
1917      as_fn_append ac_configure_args1 " '$ac_arg'"
1918      if test $ac_must_keep_next = true; then
1919	ac_must_keep_next=false # Got value, back to normal.
1920      else
1921	case $ac_arg in
1922	  *=* | --config-cache | -C | -disable-* | --disable-* \
1923	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1924	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1925	  | -with-* | --with-* | -without-* | --without-* | --x)
1926	    case "$ac_configure_args0 " in
1927	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1928	    esac
1929	    ;;
1930	  -* ) ac_must_keep_next=true ;;
1931	esac
1932      fi
1933      as_fn_append ac_configure_args " '$ac_arg'"
1934      ;;
1935    esac
1936  done
1937done
1938{ ac_configure_args0=; unset ac_configure_args0;}
1939{ ac_configure_args1=; unset ac_configure_args1;}
1940
1941# When interrupted or exit'd, cleanup temporary files, and complete
1942# config.log.  We remove comments because anyway the quotes in there
1943# would cause problems or look ugly.
1944# WARNING: Use '\'' to represent an apostrophe within the trap.
1945# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1946trap 'exit_status=$?
1947  # Save into config.log some information that might help in debugging.
1948  {
1949    echo
1950
1951    cat <<\_ASBOX
1952## ---------------- ##
1953## Cache variables. ##
1954## ---------------- ##
1955_ASBOX
1956    echo
1957    # The following way of writing the cache mishandles newlines in values,
1958(
1959  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1960    eval ac_val=\$$ac_var
1961    case $ac_val in #(
1962    *${as_nl}*)
1963      case $ac_var in #(
1964      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1965$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1966      esac
1967      case $ac_var in #(
1968      _ | IFS | as_nl) ;; #(
1969      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1970      *) { eval $ac_var=; unset $ac_var;} ;;
1971      esac ;;
1972    esac
1973  done
1974  (set) 2>&1 |
1975    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1976    *${as_nl}ac_space=\ *)
1977      sed -n \
1978	"s/'\''/'\''\\\\'\'''\''/g;
1979	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1980      ;; #(
1981    *)
1982      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1983      ;;
1984    esac |
1985    sort
1986)
1987    echo
1988
1989    cat <<\_ASBOX
1990## ----------------- ##
1991## Output variables. ##
1992## ----------------- ##
1993_ASBOX
1994    echo
1995    for ac_var in $ac_subst_vars
1996    do
1997      eval ac_val=\$$ac_var
1998      case $ac_val in
1999      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2000      esac
2001      $as_echo "$ac_var='\''$ac_val'\''"
2002    done | sort
2003    echo
2004
2005    if test -n "$ac_subst_files"; then
2006      cat <<\_ASBOX
2007## ------------------- ##
2008## File substitutions. ##
2009## ------------------- ##
2010_ASBOX
2011      echo
2012      for ac_var in $ac_subst_files
2013      do
2014	eval ac_val=\$$ac_var
2015	case $ac_val in
2016	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2017	esac
2018	$as_echo "$ac_var='\''$ac_val'\''"
2019      done | sort
2020      echo
2021    fi
2022
2023    if test -s confdefs.h; then
2024      cat <<\_ASBOX
2025## ----------- ##
2026## confdefs.h. ##
2027## ----------- ##
2028_ASBOX
2029      echo
2030      cat confdefs.h
2031      echo
2032    fi
2033    test "$ac_signal" != 0 &&
2034      $as_echo "$as_me: caught signal $ac_signal"
2035    $as_echo "$as_me: exit $exit_status"
2036  } >&5
2037  rm -f core *.core core.conftest.* &&
2038    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2039    exit $exit_status
2040' 0
2041for ac_signal in 1 2 13 15; do
2042  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2043done
2044ac_signal=0
2045
2046# confdefs.h avoids OS command line length limits that DEFS can exceed.
2047rm -f -r conftest* confdefs.h
2048
2049$as_echo "/* confdefs.h */" > confdefs.h
2050
2051# Predefined preprocessor variables.
2052
2053cat >>confdefs.h <<_ACEOF
2054#define PACKAGE_NAME "$PACKAGE_NAME"
2055_ACEOF
2056
2057cat >>confdefs.h <<_ACEOF
2058#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2059_ACEOF
2060
2061cat >>confdefs.h <<_ACEOF
2062#define PACKAGE_VERSION "$PACKAGE_VERSION"
2063_ACEOF
2064
2065cat >>confdefs.h <<_ACEOF
2066#define PACKAGE_STRING "$PACKAGE_STRING"
2067_ACEOF
2068
2069cat >>confdefs.h <<_ACEOF
2070#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2071_ACEOF
2072
2073cat >>confdefs.h <<_ACEOF
2074#define PACKAGE_URL "$PACKAGE_URL"
2075_ACEOF
2076
2077
2078# Let the site file select an alternate cache file if it wants to.
2079# Prefer an explicitly selected file to automatically selected ones.
2080ac_site_file1=NONE
2081ac_site_file2=NONE
2082if test -n "$CONFIG_SITE"; then
2083  ac_site_file1=$CONFIG_SITE
2084elif test "x$prefix" != xNONE; then
2085  ac_site_file1=$prefix/share/config.site
2086  ac_site_file2=$prefix/etc/config.site
2087else
2088  ac_site_file1=$ac_default_prefix/share/config.site
2089  ac_site_file2=$ac_default_prefix/etc/config.site
2090fi
2091for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2092do
2093  test "x$ac_site_file" = xNONE && continue
2094  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2095    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2096$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2097    sed 's/^/| /' "$ac_site_file" >&5
2098    . "$ac_site_file"
2099  fi
2100done
2101
2102if test -r "$cache_file"; then
2103  # Some versions of bash will fail to source /dev/null (special files
2104  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2105  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2106    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2107$as_echo "$as_me: loading cache $cache_file" >&6;}
2108    case $cache_file in
2109      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2110      *)                      . "./$cache_file";;
2111    esac
2112  fi
2113else
2114  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2115$as_echo "$as_me: creating cache $cache_file" >&6;}
2116  >$cache_file
2117fi
2118
2119# Check that the precious variables saved in the cache have kept the same
2120# value.
2121ac_cache_corrupted=false
2122for ac_var in $ac_precious_vars; do
2123  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2124  eval ac_new_set=\$ac_env_${ac_var}_set
2125  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2126  eval ac_new_val=\$ac_env_${ac_var}_value
2127  case $ac_old_set,$ac_new_set in
2128    set,)
2129      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2130$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2131      ac_cache_corrupted=: ;;
2132    ,set)
2133      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2134$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2135      ac_cache_corrupted=: ;;
2136    ,);;
2137    *)
2138      if test "x$ac_old_val" != "x$ac_new_val"; then
2139	# differences in whitespace do not lead to failure.
2140	ac_old_val_w=`echo x $ac_old_val`
2141	ac_new_val_w=`echo x $ac_new_val`
2142	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2143	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2144$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2145	  ac_cache_corrupted=:
2146	else
2147	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2148$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2149	  eval $ac_var=\$ac_old_val
2150	fi
2151	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2152$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2153	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2154$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2155      fi;;
2156  esac
2157  # Pass precious variables to config.status.
2158  if test "$ac_new_set" = set; then
2159    case $ac_new_val in
2160    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2161    *) ac_arg=$ac_var=$ac_new_val ;;
2162    esac
2163    case " $ac_configure_args " in
2164      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2165      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2166    esac
2167  fi
2168done
2169if $ac_cache_corrupted; then
2170  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2171$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2172  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2173$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2174  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2175fi
2176## -------------------- ##
2177## Main body of script. ##
2178## -------------------- ##
2179
2180ac_ext=c
2181ac_cpp='$CPP $CPPFLAGS'
2182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2184ac_compiler_gnu=$ac_cv_c_compiler_gnu
2185
2186
2187
2188ac_aux_dir=
2189for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2190  for ac_t in install-sh install.sh shtool; do
2191    if test -f "$ac_dir/$ac_t"; then
2192      ac_aux_dir=$ac_dir
2193      ac_install_sh="$ac_aux_dir/$ac_t -c"
2194      break 2
2195    fi
2196  done
2197done
2198if test -z "$ac_aux_dir"; then
2199  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2200fi
2201
2202# These three variables are undocumented and unsupported,
2203# and are intended to be withdrawn in a future Autoconf release.
2204# They can cause serious problems if a builder's source tree is in a directory
2205# whose full name contains unusual characters.
2206ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2207ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2208ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2209
2210
2211# Make sure we can run config.sub.
2212$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2213  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2214
2215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2216$as_echo_n "checking build system type... " >&6; }
2217if test "${ac_cv_build+set}" = set; then :
2218  $as_echo_n "(cached) " >&6
2219else
2220  ac_build_alias=$build_alias
2221test "x$ac_build_alias" = x &&
2222  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2223test "x$ac_build_alias" = x &&
2224  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2225ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2226  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2227
2228fi
2229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2230$as_echo "$ac_cv_build" >&6; }
2231case $ac_cv_build in
2232*-*-*) ;;
2233*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2234esac
2235build=$ac_cv_build
2236ac_save_IFS=$IFS; IFS='-'
2237set x $ac_cv_build
2238shift
2239build_cpu=$1
2240build_vendor=$2
2241shift; shift
2242# Remember, the first character of IFS is used to create $*,
2243# except with old shells:
2244build_os=$*
2245IFS=$ac_save_IFS
2246case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2247
2248
2249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2250$as_echo_n "checking host system type... " >&6; }
2251if test "${ac_cv_host+set}" = set; then :
2252  $as_echo_n "(cached) " >&6
2253else
2254  if test "x$host_alias" = x; then
2255  ac_cv_host=$ac_cv_build
2256else
2257  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2258    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2259fi
2260
2261fi
2262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2263$as_echo "$ac_cv_host" >&6; }
2264case $ac_cv_host in
2265*-*-*) ;;
2266*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2267esac
2268host=$ac_cv_host
2269ac_save_IFS=$IFS; IFS='-'
2270set x $ac_cv_host
2271shift
2272host_cpu=$1
2273host_vendor=$2
2274shift; shift
2275# Remember, the first character of IFS is used to create $*,
2276# except with old shells:
2277host_os=$*
2278IFS=$ac_save_IFS
2279case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2280
2281
2282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2283$as_echo_n "checking target system type... " >&6; }
2284if test "${ac_cv_target+set}" = set; then :
2285  $as_echo_n "(cached) " >&6
2286else
2287  if test "x$target_alias" = x; then
2288  ac_cv_target=$ac_cv_host
2289else
2290  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2291    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2292fi
2293
2294fi
2295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2296$as_echo "$ac_cv_target" >&6; }
2297case $ac_cv_target in
2298*-*-*) ;;
2299*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2300esac
2301target=$ac_cv_target
2302ac_save_IFS=$IFS; IFS='-'
2303set x $ac_cv_target
2304shift
2305target_cpu=$1
2306target_vendor=$2
2307shift; shift
2308# Remember, the first character of IFS is used to create $*,
2309# except with old shells:
2310target_os=$*
2311IFS=$ac_save_IFS
2312case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2313
2314
2315# The aliases save the names the user supplied, while $host etc.
2316# will get canonicalized.
2317test -n "$target_alias" &&
2318  test "$program_prefix$program_suffix$program_transform_name" = \
2319    NONENONEs,x,x, &&
2320  program_prefix=${target_alias}-
2321ac_config_headers="$ac_config_headers config.h"
2322
2323
2324
2325am__api_version='1.11'
2326
2327# Find a good install program.  We prefer a C program (faster),
2328# so one script is as good as another.  But avoid the broken or
2329# incompatible versions:
2330# SysV /etc/install, /usr/sbin/install
2331# SunOS /usr/etc/install
2332# IRIX /sbin/install
2333# AIX /bin/install
2334# AmigaOS /C/install, which installs bootblocks on floppy discs
2335# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2336# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2337# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2338# OS/2's system install, which has a completely different semantic
2339# ./install, which can be erroneously created by make from ./install.sh.
2340# Reject install programs that cannot install multiple files.
2341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2342$as_echo_n "checking for a BSD-compatible install... " >&6; }
2343if test -z "$INSTALL"; then
2344if test "${ac_cv_path_install+set}" = set; then :
2345  $as_echo_n "(cached) " >&6
2346else
2347  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348for as_dir in $PATH
2349do
2350  IFS=$as_save_IFS
2351  test -z "$as_dir" && as_dir=.
2352    # Account for people who put trailing slashes in PATH elements.
2353case $as_dir/ in #((
2354  ./ | .// | /[cC]/* | \
2355  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2356  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2357  /usr/ucb/* ) ;;
2358  *)
2359    # OSF1 and SCO ODT 3.0 have their own names for install.
2360    # Don't use installbsd from OSF since it installs stuff as root
2361    # by default.
2362    for ac_prog in ginstall scoinst install; do
2363      for ac_exec_ext in '' $ac_executable_extensions; do
2364	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2365	  if test $ac_prog = install &&
2366	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2367	    # AIX install.  It has an incompatible calling convention.
2368	    :
2369	  elif test $ac_prog = install &&
2370	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2371	    # program-specific install script used by HP pwplus--don't use.
2372	    :
2373	  else
2374	    rm -rf conftest.one conftest.two conftest.dir
2375	    echo one > conftest.one
2376	    echo two > conftest.two
2377	    mkdir conftest.dir
2378	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2379	      test -s conftest.one && test -s conftest.two &&
2380	      test -s conftest.dir/conftest.one &&
2381	      test -s conftest.dir/conftest.two
2382	    then
2383	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2384	      break 3
2385	    fi
2386	  fi
2387	fi
2388      done
2389    done
2390    ;;
2391esac
2392
2393  done
2394IFS=$as_save_IFS
2395
2396rm -rf conftest.one conftest.two conftest.dir
2397
2398fi
2399  if test "${ac_cv_path_install+set}" = set; then
2400    INSTALL=$ac_cv_path_install
2401  else
2402    # As a last resort, use the slow shell script.  Don't cache a
2403    # value for INSTALL within a source directory, because that will
2404    # break other packages using the cache if that directory is
2405    # removed, or if the value is a relative name.
2406    INSTALL=$ac_install_sh
2407  fi
2408fi
2409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2410$as_echo "$INSTALL" >&6; }
2411
2412# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2413# It thinks the first close brace ends the variable substitution.
2414test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2415
2416test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2417
2418test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2419
2420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2421$as_echo_n "checking whether build environment is sane... " >&6; }
2422# Just in case
2423sleep 1
2424echo timestamp > conftest.file
2425# Reject unsafe characters in $srcdir or the absolute working directory
2426# name.  Accept space and tab only in the latter.
2427am_lf='
2428'
2429case `pwd` in
2430  *[\\\"\#\$\&\'\`$am_lf]*)
2431    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2432esac
2433case $srcdir in
2434  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2435    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2436esac
2437
2438# Do `set' in a subshell so we don't clobber the current shell's
2439# arguments.  Must try -L first in case configure is actually a
2440# symlink; some systems play weird games with the mod time of symlinks
2441# (eg FreeBSD returns the mod time of the symlink's containing
2442# directory).
2443if (
2444   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2445   if test "$*" = "X"; then
2446      # -L didn't work.
2447      set X `ls -t "$srcdir/configure" conftest.file`
2448   fi
2449   rm -f conftest.file
2450   if test "$*" != "X $srcdir/configure conftest.file" \
2451      && test "$*" != "X conftest.file $srcdir/configure"; then
2452
2453      # If neither matched, then we have a broken ls.  This can happen
2454      # if, for instance, CONFIG_SHELL is bash and it inherits a
2455      # broken ls alias from the environment.  This has actually
2456      # happened.  Such a system could not be considered "sane".
2457      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2458alias in your environment" "$LINENO" 5
2459   fi
2460
2461   test "$2" = conftest.file
2462   )
2463then
2464   # Ok.
2465   :
2466else
2467   as_fn_error "newly created file is older than distributed files!
2468Check your system clock" "$LINENO" 5
2469fi
2470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2471$as_echo "yes" >&6; }
2472test "$program_prefix" != NONE &&
2473  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2474# Use a double $ so make ignores it.
2475test "$program_suffix" != NONE &&
2476  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2477# Double any \ or $.
2478# By default was `s,x,x', remove it if useless.
2479ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2480program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2481
2482# expand $ac_aux_dir to an absolute path
2483am_aux_dir=`cd $ac_aux_dir && pwd`
2484
2485if test x"${MISSING+set}" != xset; then
2486  case $am_aux_dir in
2487  *\ * | *\	*)
2488    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2489  *)
2490    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2491  esac
2492fi
2493# Use eval to expand $SHELL
2494if eval "$MISSING --run true"; then
2495  am_missing_run="$MISSING --run "
2496else
2497  am_missing_run=
2498  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2499$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2500fi
2501
2502if test x"${install_sh}" != xset; then
2503  case $am_aux_dir in
2504  *\ * | *\	*)
2505    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2506  *)
2507    install_sh="\${SHELL} $am_aux_dir/install-sh"
2508  esac
2509fi
2510
2511# Installed binaries are usually stripped using `strip' when the user
2512# run `make install-strip'.  However `strip' might not be the right
2513# tool to use in cross-compilation environments, therefore Automake
2514# will honor the `STRIP' environment variable to overrule this program.
2515if test "$cross_compiling" != no; then
2516  if test -n "$ac_tool_prefix"; then
2517  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2518set dummy ${ac_tool_prefix}strip; ac_word=$2
2519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2520$as_echo_n "checking for $ac_word... " >&6; }
2521if test "${ac_cv_prog_STRIP+set}" = set; then :
2522  $as_echo_n "(cached) " >&6
2523else
2524  if test -n "$STRIP"; then
2525  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2526else
2527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528for as_dir in $PATH
2529do
2530  IFS=$as_save_IFS
2531  test -z "$as_dir" && as_dir=.
2532    for ac_exec_ext in '' $ac_executable_extensions; do
2533  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2534    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2535    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2536    break 2
2537  fi
2538done
2539  done
2540IFS=$as_save_IFS
2541
2542fi
2543fi
2544STRIP=$ac_cv_prog_STRIP
2545if test -n "$STRIP"; then
2546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2547$as_echo "$STRIP" >&6; }
2548else
2549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2550$as_echo "no" >&6; }
2551fi
2552
2553
2554fi
2555if test -z "$ac_cv_prog_STRIP"; then
2556  ac_ct_STRIP=$STRIP
2557  # Extract the first word of "strip", so it can be a program name with args.
2558set dummy strip; ac_word=$2
2559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2560$as_echo_n "checking for $ac_word... " >&6; }
2561if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2562  $as_echo_n "(cached) " >&6
2563else
2564  if test -n "$ac_ct_STRIP"; then
2565  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2566else
2567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568for as_dir in $PATH
2569do
2570  IFS=$as_save_IFS
2571  test -z "$as_dir" && as_dir=.
2572    for ac_exec_ext in '' $ac_executable_extensions; do
2573  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2574    ac_cv_prog_ac_ct_STRIP="strip"
2575    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2576    break 2
2577  fi
2578done
2579  done
2580IFS=$as_save_IFS
2581
2582fi
2583fi
2584ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2585if test -n "$ac_ct_STRIP"; then
2586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2587$as_echo "$ac_ct_STRIP" >&6; }
2588else
2589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2590$as_echo "no" >&6; }
2591fi
2592
2593  if test "x$ac_ct_STRIP" = x; then
2594    STRIP=":"
2595  else
2596    case $cross_compiling:$ac_tool_warned in
2597yes:)
2598{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2599$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2600ac_tool_warned=yes ;;
2601esac
2602    STRIP=$ac_ct_STRIP
2603  fi
2604else
2605  STRIP="$ac_cv_prog_STRIP"
2606fi
2607
2608fi
2609INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2610
2611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2612$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2613if test -z "$MKDIR_P"; then
2614  if test "${ac_cv_path_mkdir+set}" = set; then :
2615  $as_echo_n "(cached) " >&6
2616else
2617  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2619do
2620  IFS=$as_save_IFS
2621  test -z "$as_dir" && as_dir=.
2622    for ac_prog in mkdir gmkdir; do
2623	 for ac_exec_ext in '' $ac_executable_extensions; do
2624	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2625	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2626	     'mkdir (GNU coreutils) '* | \
2627	     'mkdir (coreutils) '* | \
2628	     'mkdir (fileutils) '4.1*)
2629	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2630	       break 3;;
2631	   esac
2632	 done
2633       done
2634  done
2635IFS=$as_save_IFS
2636
2637fi
2638
2639  test -d ./--version && rmdir ./--version
2640  if test "${ac_cv_path_mkdir+set}" = set; then
2641    MKDIR_P="$ac_cv_path_mkdir -p"
2642  else
2643    # As a last resort, use the slow shell script.  Don't cache a
2644    # value for MKDIR_P within a source directory, because that will
2645    # break other packages using the cache if that directory is
2646    # removed, or if the value is a relative name.
2647    MKDIR_P="$ac_install_sh -d"
2648  fi
2649fi
2650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2651$as_echo "$MKDIR_P" >&6; }
2652
2653mkdir_p="$MKDIR_P"
2654case $mkdir_p in
2655  [\\/$]* | ?:[\\/]*) ;;
2656  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2657esac
2658
2659for ac_prog in gawk mawk nawk awk
2660do
2661  # Extract the first word of "$ac_prog", so it can be a program name with args.
2662set dummy $ac_prog; ac_word=$2
2663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2664$as_echo_n "checking for $ac_word... " >&6; }
2665if test "${ac_cv_prog_AWK+set}" = set; then :
2666  $as_echo_n "(cached) " >&6
2667else
2668  if test -n "$AWK"; then
2669  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2670else
2671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672for as_dir in $PATH
2673do
2674  IFS=$as_save_IFS
2675  test -z "$as_dir" && as_dir=.
2676    for ac_exec_ext in '' $ac_executable_extensions; do
2677  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2678    ac_cv_prog_AWK="$ac_prog"
2679    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2680    break 2
2681  fi
2682done
2683  done
2684IFS=$as_save_IFS
2685
2686fi
2687fi
2688AWK=$ac_cv_prog_AWK
2689if test -n "$AWK"; then
2690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2691$as_echo "$AWK" >&6; }
2692else
2693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2694$as_echo "no" >&6; }
2695fi
2696
2697
2698  test -n "$AWK" && break
2699done
2700
2701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2702$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2703set x ${MAKE-make}
2704ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2705if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2706  $as_echo_n "(cached) " >&6
2707else
2708  cat >conftest.make <<\_ACEOF
2709SHELL = /bin/sh
2710all:
2711	@echo '@@@%%%=$(MAKE)=@@@%%%'
2712_ACEOF
2713# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2714case `${MAKE-make} -f conftest.make 2>/dev/null` in
2715  *@@@%%%=?*=@@@%%%*)
2716    eval ac_cv_prog_make_${ac_make}_set=yes;;
2717  *)
2718    eval ac_cv_prog_make_${ac_make}_set=no;;
2719esac
2720rm -f conftest.make
2721fi
2722if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2724$as_echo "yes" >&6; }
2725  SET_MAKE=
2726else
2727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2728$as_echo "no" >&6; }
2729  SET_MAKE="MAKE=${MAKE-make}"
2730fi
2731
2732rm -rf .tst 2>/dev/null
2733mkdir .tst 2>/dev/null
2734if test -d .tst; then
2735  am__leading_dot=.
2736else
2737  am__leading_dot=_
2738fi
2739rmdir .tst 2>/dev/null
2740
2741# Check whether --enable-silent-rules was given.
2742if test "${enable_silent_rules+set}" = set; then :
2743  enableval=$enable_silent_rules;
2744fi
2745
2746case $enable_silent_rules in
2747yes) AM_DEFAULT_VERBOSITY=0;;
2748no)  AM_DEFAULT_VERBOSITY=1;;
2749*)   AM_DEFAULT_VERBOSITY=1;;
2750esac
2751AM_BACKSLASH='\'
2752
2753if test "`cd $srcdir && pwd`" != "`pwd`"; then
2754  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2755  # is not polluted with repeated "-I."
2756  am__isrc=' -I$(srcdir)'
2757  # test to see if srcdir already configured
2758  if test -f $srcdir/config.status; then
2759    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2760  fi
2761fi
2762
2763# test whether we have cygpath
2764if test -z "$CYGPATH_W"; then
2765  if (cygpath --version) >/dev/null 2>/dev/null; then
2766    CYGPATH_W='cygpath -w'
2767  else
2768    CYGPATH_W=echo
2769  fi
2770fi
2771
2772
2773# Define the identity of the package.
2774 PACKAGE='gngeo'
2775 VERSION='0.8'
2776
2777
2778cat >>confdefs.h <<_ACEOF
2779#define PACKAGE "$PACKAGE"
2780_ACEOF
2781
2782
2783cat >>confdefs.h <<_ACEOF
2784#define VERSION "$VERSION"
2785_ACEOF
2786
2787# Some tools Automake needs.
2788
2789ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2790
2791
2792AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2793
2794
2795AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2796
2797
2798AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2799
2800
2801MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2802
2803# We need awk for the "check" target.  The system "awk" is bad on
2804# some platforms.
2805# Always define AMTAR for backward compatibility.
2806
2807AMTAR=${AMTAR-"${am_missing_run}tar"}
2808
2809am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2810
2811
2812
2813
2814
2815# Check whether --enable-silent-rules was given.
2816if test "${enable_silent_rules+set}" = set; then :
2817  enableval=$enable_silent_rules;
2818fi
2819
2820case $enable_silent_rules in
2821yes) AM_DEFAULT_VERBOSITY=0;;
2822no)  AM_DEFAULT_VERBOSITY=1;;
2823*)   AM_DEFAULT_VERBOSITY=1;;
2824esac
2825AM_BACKSLASH='\'
2826
2827
2828# it's not optimal, but at least, it work
2829if test -z "$CC_FOR_BUILD"; then
2830  CC_FOR_BUILD=gcc
2831fi
2832
2833
2834
2835# Checks for programs.
2836ac_ext=c
2837ac_cpp='$CPP $CPPFLAGS'
2838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2840ac_compiler_gnu=$ac_cv_c_compiler_gnu
2841if test -n "$ac_tool_prefix"; then
2842  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2843set dummy ${ac_tool_prefix}gcc; ac_word=$2
2844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845$as_echo_n "checking for $ac_word... " >&6; }
2846if test "${ac_cv_prog_CC+set}" = set; then :
2847  $as_echo_n "(cached) " >&6
2848else
2849  if test -n "$CC"; then
2850  ac_cv_prog_CC="$CC" # Let the user override the test.
2851else
2852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853for as_dir in $PATH
2854do
2855  IFS=$as_save_IFS
2856  test -z "$as_dir" && as_dir=.
2857    for ac_exec_ext in '' $ac_executable_extensions; do
2858  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2859    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2860    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2861    break 2
2862  fi
2863done
2864  done
2865IFS=$as_save_IFS
2866
2867fi
2868fi
2869CC=$ac_cv_prog_CC
2870if test -n "$CC"; then
2871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2872$as_echo "$CC" >&6; }
2873else
2874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875$as_echo "no" >&6; }
2876fi
2877
2878
2879fi
2880if test -z "$ac_cv_prog_CC"; then
2881  ac_ct_CC=$CC
2882  # Extract the first word of "gcc", so it can be a program name with args.
2883set dummy gcc; ac_word=$2
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885$as_echo_n "checking for $ac_word... " >&6; }
2886if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2887  $as_echo_n "(cached) " >&6
2888else
2889  if test -n "$ac_ct_CC"; then
2890  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2891else
2892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893for as_dir in $PATH
2894do
2895  IFS=$as_save_IFS
2896  test -z "$as_dir" && as_dir=.
2897    for ac_exec_ext in '' $ac_executable_extensions; do
2898  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899    ac_cv_prog_ac_ct_CC="gcc"
2900    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901    break 2
2902  fi
2903done
2904  done
2905IFS=$as_save_IFS
2906
2907fi
2908fi
2909ac_ct_CC=$ac_cv_prog_ac_ct_CC
2910if test -n "$ac_ct_CC"; then
2911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2912$as_echo "$ac_ct_CC" >&6; }
2913else
2914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915$as_echo "no" >&6; }
2916fi
2917
2918  if test "x$ac_ct_CC" = x; then
2919    CC=""
2920  else
2921    case $cross_compiling:$ac_tool_warned in
2922yes:)
2923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2925ac_tool_warned=yes ;;
2926esac
2927    CC=$ac_ct_CC
2928  fi
2929else
2930  CC="$ac_cv_prog_CC"
2931fi
2932
2933if test -z "$CC"; then
2934          if test -n "$ac_tool_prefix"; then
2935    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2936set dummy ${ac_tool_prefix}cc; ac_word=$2
2937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938$as_echo_n "checking for $ac_word... " >&6; }
2939if test "${ac_cv_prog_CC+set}" = set; then :
2940  $as_echo_n "(cached) " >&6
2941else
2942  if test -n "$CC"; then
2943  ac_cv_prog_CC="$CC" # Let the user override the test.
2944else
2945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946for as_dir in $PATH
2947do
2948  IFS=$as_save_IFS
2949  test -z "$as_dir" && as_dir=.
2950    for ac_exec_ext in '' $ac_executable_extensions; do
2951  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952    ac_cv_prog_CC="${ac_tool_prefix}cc"
2953    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2954    break 2
2955  fi
2956done
2957  done
2958IFS=$as_save_IFS
2959
2960fi
2961fi
2962CC=$ac_cv_prog_CC
2963if test -n "$CC"; then
2964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2965$as_echo "$CC" >&6; }
2966else
2967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968$as_echo "no" >&6; }
2969fi
2970
2971
2972  fi
2973fi
2974if test -z "$CC"; then
2975  # Extract the first word of "cc", so it can be a program name with args.
2976set dummy cc; ac_word=$2
2977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978$as_echo_n "checking for $ac_word... " >&6; }
2979if test "${ac_cv_prog_CC+set}" = set; then :
2980  $as_echo_n "(cached) " >&6
2981else
2982  if test -n "$CC"; then
2983  ac_cv_prog_CC="$CC" # Let the user override the test.
2984else
2985  ac_prog_rejected=no
2986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987for as_dir in $PATH
2988do
2989  IFS=$as_save_IFS
2990  test -z "$as_dir" && as_dir=.
2991    for ac_exec_ext in '' $ac_executable_extensions; do
2992  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2993    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2994       ac_prog_rejected=yes
2995       continue
2996     fi
2997    ac_cv_prog_CC="cc"
2998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999    break 2
3000  fi
3001done
3002  done
3003IFS=$as_save_IFS
3004
3005if test $ac_prog_rejected = yes; then
3006  # We found a bogon in the path, so make sure we never use it.
3007  set dummy $ac_cv_prog_CC
3008  shift
3009  if test $# != 0; then
3010    # We chose a different compiler from the bogus one.
3011    # However, it has the same basename, so the bogon will be chosen
3012    # first if we set CC to just the basename; use the full file name.
3013    shift
3014    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3015  fi
3016fi
3017fi
3018fi
3019CC=$ac_cv_prog_CC
3020if test -n "$CC"; then
3021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3022$as_echo "$CC" >&6; }
3023else
3024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3025$as_echo "no" >&6; }
3026fi
3027
3028
3029fi
3030if test -z "$CC"; then
3031  if test -n "$ac_tool_prefix"; then
3032  for ac_prog in cl.exe
3033  do
3034    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3035set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037$as_echo_n "checking for $ac_word... " >&6; }
3038if test "${ac_cv_prog_CC+set}" = set; then :
3039  $as_echo_n "(cached) " >&6
3040else
3041  if test -n "$CC"; then
3042  ac_cv_prog_CC="$CC" # Let the user override the test.
3043else
3044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045for as_dir in $PATH
3046do
3047  IFS=$as_save_IFS
3048  test -z "$as_dir" && as_dir=.
3049    for ac_exec_ext in '' $ac_executable_extensions; do
3050  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3051    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3052    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3053    break 2
3054  fi
3055done
3056  done
3057IFS=$as_save_IFS
3058
3059fi
3060fi
3061CC=$ac_cv_prog_CC
3062if test -n "$CC"; then
3063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3064$as_echo "$CC" >&6; }
3065else
3066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067$as_echo "no" >&6; }
3068fi
3069
3070
3071    test -n "$CC" && break
3072  done
3073fi
3074if test -z "$CC"; then
3075  ac_ct_CC=$CC
3076  for ac_prog in cl.exe
3077do
3078  # Extract the first word of "$ac_prog", so it can be a program name with args.
3079set dummy $ac_prog; ac_word=$2
3080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081$as_echo_n "checking for $ac_word... " >&6; }
3082if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3083  $as_echo_n "(cached) " >&6
3084else
3085  if test -n "$ac_ct_CC"; then
3086  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3087else
3088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089for as_dir in $PATH
3090do
3091  IFS=$as_save_IFS
3092  test -z "$as_dir" && as_dir=.
3093    for ac_exec_ext in '' $ac_executable_extensions; do
3094  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3095    ac_cv_prog_ac_ct_CC="$ac_prog"
3096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097    break 2
3098  fi
3099done
3100  done
3101IFS=$as_save_IFS
3102
3103fi
3104fi
3105ac_ct_CC=$ac_cv_prog_ac_ct_CC
3106if test -n "$ac_ct_CC"; then
3107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3108$as_echo "$ac_ct_CC" >&6; }
3109else
3110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111$as_echo "no" >&6; }
3112fi
3113
3114
3115  test -n "$ac_ct_CC" && break
3116done
3117
3118  if test "x$ac_ct_CC" = x; then
3119    CC=""
3120  else
3121    case $cross_compiling:$ac_tool_warned in
3122yes:)
3123{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3124$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3125ac_tool_warned=yes ;;
3126esac
3127    CC=$ac_ct_CC
3128  fi
3129fi
3130
3131fi
3132
3133
3134test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3135$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3136as_fn_error "no acceptable C compiler found in \$PATH
3137See \`config.log' for more details." "$LINENO" 5; }
3138
3139# Provide some information about the compiler.
3140$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3141set X $ac_compile
3142ac_compiler=$2
3143for ac_option in --version -v -V -qversion; do
3144  { { ac_try="$ac_compiler $ac_option >&5"
3145case "(($ac_try" in
3146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147  *) ac_try_echo=$ac_try;;
3148esac
3149eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3150$as_echo "$ac_try_echo"; } >&5
3151  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3152  ac_status=$?
3153  if test -s conftest.err; then
3154    sed '10a\
3155... rest of stderr output deleted ...
3156         10q' conftest.err >conftest.er1
3157    cat conftest.er1 >&5
3158  fi
3159  rm -f conftest.er1 conftest.err
3160  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3161  test $ac_status = 0; }
3162done
3163
3164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3165/* end confdefs.h.  */
3166
3167int
3168main ()
3169{
3170
3171  ;
3172  return 0;
3173}
3174_ACEOF
3175ac_clean_files_save=$ac_clean_files
3176ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3177# Try to create an executable without -o first, disregard a.out.
3178# It will help us diagnose broken compilers, and finding out an intuition
3179# of exeext.
3180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3181$as_echo_n "checking whether the C compiler works... " >&6; }
3182ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3183
3184# The possible output files:
3185ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3186
3187ac_rmfiles=
3188for ac_file in $ac_files
3189do
3190  case $ac_file in
3191    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3192    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3193  esac
3194done
3195rm -f $ac_rmfiles
3196
3197if { { ac_try="$ac_link_default"
3198case "(($ac_try" in
3199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200  *) ac_try_echo=$ac_try;;
3201esac
3202eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3203$as_echo "$ac_try_echo"; } >&5
3204  (eval "$ac_link_default") 2>&5
3205  ac_status=$?
3206  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3207  test $ac_status = 0; }; then :
3208  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3209# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3210# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3211# so that the user can short-circuit this test for compilers unknown to
3212# Autoconf.
3213for ac_file in $ac_files ''
3214do
3215  test -f "$ac_file" || continue
3216  case $ac_file in
3217    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3218	;;
3219    [ab].out )
3220	# We found the default executable, but exeext='' is most
3221	# certainly right.
3222	break;;
3223    *.* )
3224	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3225	then :; else
3226	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3227	fi
3228	# We set ac_cv_exeext here because the later test for it is not
3229	# safe: cross compilers may not add the suffix if given an `-o'
3230	# argument, so we may need to know it at that point already.
3231	# Even if this section looks crufty: it has the advantage of
3232	# actually working.
3233	break;;
3234    * )
3235	break;;
3236  esac
3237done
3238test "$ac_cv_exeext" = no && ac_cv_exeext=
3239
3240else
3241  ac_file=''
3242fi
3243if test -z "$ac_file"; then :
3244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245$as_echo "no" >&6; }
3246$as_echo "$as_me: failed program was:" >&5
3247sed 's/^/| /' conftest.$ac_ext >&5
3248
3249{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3250$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3251{ as_fn_set_status 77
3252as_fn_error "C compiler cannot create executables
3253See \`config.log' for more details." "$LINENO" 5; }; }
3254else
3255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3256$as_echo "yes" >&6; }
3257fi
3258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3259$as_echo_n "checking for C compiler default output file name... " >&6; }
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3261$as_echo "$ac_file" >&6; }
3262ac_exeext=$ac_cv_exeext
3263
3264rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3265ac_clean_files=$ac_clean_files_save
3266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3267$as_echo_n "checking for suffix of executables... " >&6; }
3268if { { ac_try="$ac_link"
3269case "(($ac_try" in
3270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271  *) ac_try_echo=$ac_try;;
3272esac
3273eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3274$as_echo "$ac_try_echo"; } >&5
3275  (eval "$ac_link") 2>&5
3276  ac_status=$?
3277  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3278  test $ac_status = 0; }; then :
3279  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3280# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3281# work properly (i.e., refer to `conftest.exe'), while it won't with
3282# `rm'.
3283for ac_file in conftest.exe conftest conftest.*; do
3284  test -f "$ac_file" || continue
3285  case $ac_file in
3286    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3287    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3288	  break;;
3289    * ) break;;
3290  esac
3291done
3292else
3293  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295as_fn_error "cannot compute suffix of executables: cannot compile and link
3296See \`config.log' for more details." "$LINENO" 5; }
3297fi
3298rm -f conftest conftest$ac_cv_exeext
3299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3300$as_echo "$ac_cv_exeext" >&6; }
3301
3302rm -f conftest.$ac_ext
3303EXEEXT=$ac_cv_exeext
3304ac_exeext=$EXEEXT
3305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306/* end confdefs.h.  */
3307#include <stdio.h>
3308int
3309main ()
3310{
3311FILE *f = fopen ("conftest.out", "w");
3312 return ferror (f) || fclose (f) != 0;
3313
3314  ;
3315  return 0;
3316}
3317_ACEOF
3318ac_clean_files="$ac_clean_files conftest.out"
3319# Check that the compiler produces executables we can run.  If not, either
3320# the compiler is broken, or we cross compile.
3321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3322$as_echo_n "checking whether we are cross compiling... " >&6; }
3323if test "$cross_compiling" != yes; then
3324  { { ac_try="$ac_link"
3325case "(($ac_try" in
3326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327  *) ac_try_echo=$ac_try;;
3328esac
3329eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3330$as_echo "$ac_try_echo"; } >&5
3331  (eval "$ac_link") 2>&5
3332  ac_status=$?
3333  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3334  test $ac_status = 0; }
3335  if { ac_try='./conftest$ac_cv_exeext'
3336  { { case "(($ac_try" in
3337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338  *) ac_try_echo=$ac_try;;
3339esac
3340eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3341$as_echo "$ac_try_echo"; } >&5
3342  (eval "$ac_try") 2>&5
3343  ac_status=$?
3344  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3345  test $ac_status = 0; }; }; then
3346    cross_compiling=no
3347  else
3348    if test "$cross_compiling" = maybe; then
3349	cross_compiling=yes
3350    else
3351	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3352$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3353as_fn_error "cannot run C compiled programs.
3354If you meant to cross compile, use \`--host'.
3355See \`config.log' for more details." "$LINENO" 5; }
3356    fi
3357  fi
3358fi
3359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3360$as_echo "$cross_compiling" >&6; }
3361
3362rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3363ac_clean_files=$ac_clean_files_save
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3365$as_echo_n "checking for suffix of object files... " >&6; }
3366if test "${ac_cv_objext+set}" = set; then :
3367  $as_echo_n "(cached) " >&6
3368else
3369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370/* end confdefs.h.  */
3371
3372int
3373main ()
3374{
3375
3376  ;
3377  return 0;
3378}
3379_ACEOF
3380rm -f conftest.o conftest.obj
3381if { { ac_try="$ac_compile"
3382case "(($ac_try" in
3383  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384  *) ac_try_echo=$ac_try;;
3385esac
3386eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387$as_echo "$ac_try_echo"; } >&5
3388  (eval "$ac_compile") 2>&5
3389  ac_status=$?
3390  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3391  test $ac_status = 0; }; then :
3392  for ac_file in conftest.o conftest.obj conftest.*; do
3393  test -f "$ac_file" || continue;
3394  case $ac_file in
3395    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3396    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3397       break;;
3398  esac
3399done
3400else
3401  $as_echo "$as_me: failed program was:" >&5
3402sed 's/^/| /' conftest.$ac_ext >&5
3403
3404{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3405$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3406as_fn_error "cannot compute suffix of object files: cannot compile
3407See \`config.log' for more details." "$LINENO" 5; }
3408fi
3409rm -f conftest.$ac_cv_objext conftest.$ac_ext
3410fi
3411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3412$as_echo "$ac_cv_objext" >&6; }
3413OBJEXT=$ac_cv_objext
3414ac_objext=$OBJEXT
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3416$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3417if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3418  $as_echo_n "(cached) " >&6
3419else
3420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3421/* end confdefs.h.  */
3422
3423int
3424main ()
3425{
3426#ifndef __GNUC__
3427       choke me
3428#endif
3429
3430  ;
3431  return 0;
3432}
3433_ACEOF
3434if ac_fn_c_try_compile "$LINENO"; then :
3435  ac_compiler_gnu=yes
3436else
3437  ac_compiler_gnu=no
3438fi
3439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3440ac_cv_c_compiler_gnu=$ac_compiler_gnu
3441
3442fi
3443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3444$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3445if test $ac_compiler_gnu = yes; then
3446  GCC=yes
3447else
3448  GCC=
3449fi
3450ac_test_CFLAGS=${CFLAGS+set}
3451ac_save_CFLAGS=$CFLAGS
3452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3453$as_echo_n "checking whether $CC accepts -g... " >&6; }
3454if test "${ac_cv_prog_cc_g+set}" = set; then :
3455  $as_echo_n "(cached) " >&6
3456else
3457  ac_save_c_werror_flag=$ac_c_werror_flag
3458   ac_c_werror_flag=yes
3459   ac_cv_prog_cc_g=no
3460   CFLAGS="-g"
3461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462/* end confdefs.h.  */
3463
3464int
3465main ()
3466{
3467
3468  ;
3469  return 0;
3470}
3471_ACEOF
3472if ac_fn_c_try_compile "$LINENO"; then :
3473  ac_cv_prog_cc_g=yes
3474else
3475  CFLAGS=""
3476      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477/* end confdefs.h.  */
3478
3479int
3480main ()
3481{
3482
3483  ;
3484  return 0;
3485}
3486_ACEOF
3487if ac_fn_c_try_compile "$LINENO"; then :
3488
3489else
3490  ac_c_werror_flag=$ac_save_c_werror_flag
3491	 CFLAGS="-g"
3492	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493/* end confdefs.h.  */
3494
3495int
3496main ()
3497{
3498
3499  ;
3500  return 0;
3501}
3502_ACEOF
3503if ac_fn_c_try_compile "$LINENO"; then :
3504  ac_cv_prog_cc_g=yes
3505fi
3506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3507fi
3508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509fi
3510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3511   ac_c_werror_flag=$ac_save_c_werror_flag
3512fi
3513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3514$as_echo "$ac_cv_prog_cc_g" >&6; }
3515if test "$ac_test_CFLAGS" = set; then
3516  CFLAGS=$ac_save_CFLAGS
3517elif test $ac_cv_prog_cc_g = yes; then
3518  if test "$GCC" = yes; then
3519    CFLAGS="-g -O2"
3520  else
3521    CFLAGS="-g"
3522  fi
3523else
3524  if test "$GCC" = yes; then
3525    CFLAGS="-O2"
3526  else
3527    CFLAGS=
3528  fi
3529fi
3530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3531$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3532if test "${ac_cv_prog_cc_c89+set}" = set; then :
3533  $as_echo_n "(cached) " >&6
3534else
3535  ac_cv_prog_cc_c89=no
3536ac_save_CC=$CC
3537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538/* end confdefs.h.  */
3539#include <stdarg.h>
3540#include <stdio.h>
3541#include <sys/types.h>
3542#include <sys/stat.h>
3543/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3544struct buf { int x; };
3545FILE * (*rcsopen) (struct buf *, struct stat *, int);
3546static char *e (p, i)
3547     char **p;
3548     int i;
3549{
3550  return p[i];
3551}
3552static char *f (char * (*g) (char **, int), char **p, ...)
3553{
3554  char *s;
3555  va_list v;
3556  va_start (v,p);
3557  s = g (p, va_arg (v,int));
3558  va_end (v);
3559  return s;
3560}
3561
3562/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3563   function prototypes and stuff, but not '\xHH' hex character constants.
3564   These don't provoke an error unfortunately, instead are silently treated
3565   as 'x'.  The following induces an error, until -std is added to get
3566   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3567   array size at least.  It's necessary to write '\x00'==0 to get something
3568   that's true only with -std.  */
3569int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3570
3571/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3572   inside strings and character constants.  */
3573#define FOO(x) 'x'
3574int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3575
3576int test (int i, double x);
3577struct s1 {int (*f) (int a);};
3578struct s2 {int (*f) (double a);};
3579int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3580int argc;
3581char **argv;
3582int
3583main ()
3584{
3585return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3586  ;
3587  return 0;
3588}
3589_ACEOF
3590for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3591	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3592do
3593  CC="$ac_save_CC $ac_arg"
3594  if ac_fn_c_try_compile "$LINENO"; then :
3595  ac_cv_prog_cc_c89=$ac_arg
3596fi
3597rm -f core conftest.err conftest.$ac_objext
3598  test "x$ac_cv_prog_cc_c89" != "xno" && break
3599done
3600rm -f conftest.$ac_ext
3601CC=$ac_save_CC
3602
3603fi
3604# AC_CACHE_VAL
3605case "x$ac_cv_prog_cc_c89" in
3606  x)
3607    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3608$as_echo "none needed" >&6; } ;;
3609  xno)
3610    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3611$as_echo "unsupported" >&6; } ;;
3612  *)
3613    CC="$CC $ac_cv_prog_cc_c89"
3614    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3615$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3616esac
3617if test "x$ac_cv_prog_cc_c89" != xno; then :
3618
3619fi
3620
3621ac_ext=c
3622ac_cpp='$CPP $CPPFLAGS'
3623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3625ac_compiler_gnu=$ac_cv_c_compiler_gnu
3626DEPDIR="${am__leading_dot}deps"
3627
3628ac_config_commands="$ac_config_commands depfiles"
3629
3630
3631am_make=${MAKE-make}
3632cat > confinc << 'END'
3633am__doit:
3634	@echo this is the am__doit target
3635.PHONY: am__doit
3636END
3637# If we don't find an include directive, just comment out the code.
3638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3639$as_echo_n "checking for style of include used by $am_make... " >&6; }
3640am__include="#"
3641am__quote=
3642_am_result=none
3643# First try GNU make style include.
3644echo "include confinc" > confmf
3645# Ignore all kinds of additional output from `make'.
3646case `$am_make -s -f confmf 2> /dev/null` in #(
3647*the\ am__doit\ target*)
3648  am__include=include
3649  am__quote=
3650  _am_result=GNU
3651  ;;
3652esac
3653# Now try BSD make style include.
3654if test "$am__include" = "#"; then
3655   echo '.include "confinc"' > confmf
3656   case `$am_make -s -f confmf 2> /dev/null` in #(
3657   *the\ am__doit\ target*)
3658     am__include=.include
3659     am__quote="\""
3660     _am_result=BSD
3661     ;;
3662   esac
3663fi
3664
3665
3666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3667$as_echo "$_am_result" >&6; }
3668rm -f confinc confmf
3669
3670# Check whether --enable-dependency-tracking was given.
3671if test "${enable_dependency_tracking+set}" = set; then :
3672  enableval=$enable_dependency_tracking;
3673fi
3674
3675if test "x$enable_dependency_tracking" != xno; then
3676  am_depcomp="$ac_aux_dir/depcomp"
3677  AMDEPBACKSLASH='\'
3678fi
3679 if test "x$enable_dependency_tracking" != xno; then
3680  AMDEP_TRUE=
3681  AMDEP_FALSE='#'
3682else
3683  AMDEP_TRUE='#'
3684  AMDEP_FALSE=
3685fi
3686
3687
3688
3689depcc="$CC"   am_compiler_list=
3690
3691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3692$as_echo_n "checking dependency style of $depcc... " >&6; }
3693if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3694  $as_echo_n "(cached) " >&6
3695else
3696  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3697  # We make a subdir and do the tests there.  Otherwise we can end up
3698  # making bogus files that we don't know about and never remove.  For
3699  # instance it was reported that on HP-UX the gcc test will end up
3700  # making a dummy file named `D' -- because `-MD' means `put the output
3701  # in D'.
3702  mkdir conftest.dir
3703  # Copy depcomp to subdir because otherwise we won't find it if we're
3704  # using a relative directory.
3705  cp "$am_depcomp" conftest.dir
3706  cd conftest.dir
3707  # We will build objects and dependencies in a subdirectory because
3708  # it helps to detect inapplicable dependency modes.  For instance
3709  # both Tru64's cc and ICC support -MD to output dependencies as a
3710  # side effect of compilation, but ICC will put the dependencies in
3711  # the current directory while Tru64 will put them in the object
3712  # directory.
3713  mkdir sub
3714
3715  am_cv_CC_dependencies_compiler_type=none
3716  if test "$am_compiler_list" = ""; then
3717     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3718  fi
3719  am__universal=false
3720  case " $depcc " in #(
3721     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3722     esac
3723
3724  for depmode in $am_compiler_list; do
3725    # Setup a source with many dependencies, because some compilers
3726    # like to wrap large dependency lists on column 80 (with \), and
3727    # we should not choose a depcomp mode which is confused by this.
3728    #
3729    # We need to recreate these files for each test, as the compiler may
3730    # overwrite some of them when testing with obscure command lines.
3731    # This happens at least with the AIX C compiler.
3732    : > sub/conftest.c
3733    for i in 1 2 3 4 5 6; do
3734      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3735      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3736      # Solaris 8's {/usr,}/bin/sh.
3737      touch sub/conftst$i.h
3738    done
3739    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3740
3741    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3742    # mode.  It turns out that the SunPro C++ compiler does not properly
3743    # handle `-M -o', and we need to detect this.  Also, some Intel
3744    # versions had trouble with output in subdirs
3745    am__obj=sub/conftest.${OBJEXT-o}
3746    am__minus_obj="-o $am__obj"
3747    case $depmode in
3748    gcc)
3749      # This depmode causes a compiler race in universal mode.
3750      test "$am__universal" = false || continue
3751      ;;
3752    nosideeffect)
3753      # after this tag, mechanisms are not by side-effect, so they'll
3754      # only be used when explicitly requested
3755      if test "x$enable_dependency_tracking" = xyes; then
3756	continue
3757      else
3758	break
3759      fi
3760      ;;
3761    msvisualcpp | msvcmsys)
3762      # This compiler won't grok `-c -o', but also, the minuso test has
3763      # not run yet.  These depmodes are late enough in the game, and
3764      # so weak that their functioning should not be impacted.
3765      am__obj=conftest.${OBJEXT-o}
3766      am__minus_obj=
3767      ;;
3768    none) break ;;
3769    esac
3770    if depmode=$depmode \
3771       source=sub/conftest.c object=$am__obj \
3772       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3773       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3774         >/dev/null 2>conftest.err &&
3775       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3776       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3777       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3778       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3779      # icc doesn't choke on unknown options, it will just issue warnings
3780      # or remarks (even with -Werror).  So we grep stderr for any message
3781      # that says an option was ignored or not supported.
3782      # When given -MP, icc 7.0 and 7.1 complain thusly:
3783      #   icc: Command line warning: ignoring option '-M'; no argument required
3784      # The diagnosis changed in icc 8.0:
3785      #   icc: Command line remark: option '-MP' not supported
3786      if (grep 'ignoring option' conftest.err ||
3787          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3788        am_cv_CC_dependencies_compiler_type=$depmode
3789        break
3790      fi
3791    fi
3792  done
3793
3794  cd ..
3795  rm -rf conftest.dir
3796else
3797  am_cv_CC_dependencies_compiler_type=none
3798fi
3799
3800fi
3801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3802$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3803CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3804
3805 if
3806  test "x$enable_dependency_tracking" != xno \
3807  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3808  am__fastdepCC_TRUE=
3809  am__fastdepCC_FALSE='#'
3810else
3811  am__fastdepCC_TRUE='#'
3812  am__fastdepCC_FALSE=
3813fi
3814
3815
3816if test -n "$ac_tool_prefix"; then
3817  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3818set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3820$as_echo_n "checking for $ac_word... " >&6; }
3821if test "${ac_cv_prog_RANLIB+set}" = set; then :
3822  $as_echo_n "(cached) " >&6
3823else
3824  if test -n "$RANLIB"; then
3825  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3826else
3827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3828for as_dir in $PATH
3829do
3830  IFS=$as_save_IFS
3831  test -z "$as_dir" && as_dir=.
3832    for ac_exec_ext in '' $ac_executable_extensions; do
3833  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3834    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3835    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3836    break 2
3837  fi
3838done
3839  done
3840IFS=$as_save_IFS
3841
3842fi
3843fi
3844RANLIB=$ac_cv_prog_RANLIB
3845if test -n "$RANLIB"; then
3846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3847$as_echo "$RANLIB" >&6; }
3848else
3849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3850$as_echo "no" >&6; }
3851fi
3852
3853
3854fi
3855if test -z "$ac_cv_prog_RANLIB"; then
3856  ac_ct_RANLIB=$RANLIB
3857  # Extract the first word of "ranlib", so it can be a program name with args.
3858set dummy ranlib; ac_word=$2
3859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3860$as_echo_n "checking for $ac_word... " >&6; }
3861if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3862  $as_echo_n "(cached) " >&6
3863else
3864  if test -n "$ac_ct_RANLIB"; then
3865  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3866else
3867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868for as_dir in $PATH
3869do
3870  IFS=$as_save_IFS
3871  test -z "$as_dir" && as_dir=.
3872    for ac_exec_ext in '' $ac_executable_extensions; do
3873  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3874    ac_cv_prog_ac_ct_RANLIB="ranlib"
3875    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3876    break 2
3877  fi
3878done
3879  done
3880IFS=$as_save_IFS
3881
3882fi
3883fi
3884ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3885if test -n "$ac_ct_RANLIB"; then
3886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3887$as_echo "$ac_ct_RANLIB" >&6; }
3888else
3889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3890$as_echo "no" >&6; }
3891fi
3892
3893  if test "x$ac_ct_RANLIB" = x; then
3894    RANLIB=":"
3895  else
3896    case $cross_compiling:$ac_tool_warned in
3897yes:)
3898{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3899$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3900ac_tool_warned=yes ;;
3901esac
3902    RANLIB=$ac_ct_RANLIB
3903  fi
3904else
3905  RANLIB="$ac_cv_prog_RANLIB"
3906fi
3907
3908# By default we simply use the C compiler to build assembly code.
3909
3910test "${CCAS+set}" = set || CCAS=$CC
3911test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3912
3913
3914
3915depcc="$CCAS"   am_compiler_list=
3916
3917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3918$as_echo_n "checking dependency style of $depcc... " >&6; }
3919if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
3920  $as_echo_n "(cached) " >&6
3921else
3922  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3923  # We make a subdir and do the tests there.  Otherwise we can end up
3924  # making bogus files that we don't know about and never remove.  For
3925  # instance it was reported that on HP-UX the gcc test will end up
3926  # making a dummy file named `D' -- because `-MD' means `put the output
3927  # in D'.
3928  mkdir conftest.dir
3929  # Copy depcomp to subdir because otherwise we won't find it if we're
3930  # using a relative directory.
3931  cp "$am_depcomp" conftest.dir
3932  cd conftest.dir
3933  # We will build objects and dependencies in a subdirectory because
3934  # it helps to detect inapplicable dependency modes.  For instance
3935  # both Tru64's cc and ICC support -MD to output dependencies as a
3936  # side effect of compilation, but ICC will put the dependencies in
3937  # the current directory while Tru64 will put them in the object
3938  # directory.
3939  mkdir sub
3940
3941  am_cv_CCAS_dependencies_compiler_type=none
3942  if test "$am_compiler_list" = ""; then
3943     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3944  fi
3945  am__universal=false
3946
3947
3948  for depmode in $am_compiler_list; do
3949    # Setup a source with many dependencies, because some compilers
3950    # like to wrap large dependency lists on column 80 (with \), and
3951    # we should not choose a depcomp mode which is confused by this.
3952    #
3953    # We need to recreate these files for each test, as the compiler may
3954    # overwrite some of them when testing with obscure command lines.
3955    # This happens at least with the AIX C compiler.
3956    : > sub/conftest.c
3957    for i in 1 2 3 4 5 6; do
3958      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3959      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3960      # Solaris 8's {/usr,}/bin/sh.
3961      touch sub/conftst$i.h
3962    done
3963    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3964
3965    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3966    # mode.  It turns out that the SunPro C++ compiler does not properly
3967    # handle `-M -o', and we need to detect this.  Also, some Intel
3968    # versions had trouble with output in subdirs
3969    am__obj=sub/conftest.${OBJEXT-o}
3970    am__minus_obj="-o $am__obj"
3971    case $depmode in
3972    gcc)
3973      # This depmode causes a compiler race in universal mode.
3974      test "$am__universal" = false || continue
3975      ;;
3976    nosideeffect)
3977      # after this tag, mechanisms are not by side-effect, so they'll
3978      # only be used when explicitly requested
3979      if test "x$enable_dependency_tracking" = xyes; then
3980	continue
3981      else
3982	break
3983      fi
3984      ;;
3985    msvisualcpp | msvcmsys)
3986      # This compiler won't grok `-c -o', but also, the minuso test has
3987      # not run yet.  These depmodes are late enough in the game, and
3988      # so weak that their functioning should not be impacted.
3989      am__obj=conftest.${OBJEXT-o}
3990      am__minus_obj=
3991      ;;
3992    none) break ;;
3993    esac
3994    if depmode=$depmode \
3995       source=sub/conftest.c object=$am__obj \
3996       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3997       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3998         >/dev/null 2>conftest.err &&
3999       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4000       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4001       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4002       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4003      # icc doesn't choke on unknown options, it will just issue warnings
4004      # or remarks (even with -Werror).  So we grep stderr for any message
4005      # that says an option was ignored or not supported.
4006      # When given -MP, icc 7.0 and 7.1 complain thusly:
4007      #   icc: Command line warning: ignoring option '-M'; no argument required
4008      # The diagnosis changed in icc 8.0:
4009      #   icc: Command line remark: option '-MP' not supported
4010      if (grep 'ignoring option' conftest.err ||
4011          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4012        am_cv_CCAS_dependencies_compiler_type=$depmode
4013        break
4014      fi
4015    fi
4016  done
4017
4018  cd ..
4019  rm -rf conftest.dir
4020else
4021  am_cv_CCAS_dependencies_compiler_type=none
4022fi
4023
4024fi
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4026$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4027CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4028
4029 if
4030  test "x$enable_dependency_tracking" != xno \
4031  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4032  am__fastdepCCAS_TRUE=
4033  am__fastdepCCAS_FALSE='#'
4034else
4035  am__fastdepCCAS_TRUE='#'
4036  am__fastdepCCAS_FALSE=
4037fi
4038
4039
4040
4041
4042
4043
4044	# Check whether --enable-gp2x was given.
4045if test "${enable_gp2x+set}" = set; then :
4046  enableval=$enable_gp2x; case "${enableval}" in
4047       	 yes) enable_gp2x=true ;;
4048       	 no)  enable_gp2x=false ;;
4049       	 *) as_fn_error "bad value ${enableval} for --enable-gp2x" "$LINENO" 5 ;;
4050     	 esac;
4051else
4052  enable_gp2x=false;
4053fi
4054
4055
4056
4057
4058	# Check whether --enable-wiz was given.
4059if test "${enable_wiz+set}" = set; then :
4060  enableval=$enable_wiz; case "${enableval}" in
4061       	 yes) enable_wiz=true ;;
4062       	 no)  enable_wiz=false ;;
4063       	 *) as_fn_error "bad value ${enableval} for --enable-wiz" "$LINENO" 5 ;;
4064     	 esac;
4065else
4066  enable_wiz=false;
4067fi
4068
4069
4070
4071
4072	# Check whether --enable-wii was given.
4073if test "${enable_wii+set}" = set; then :
4074  enableval=$enable_wii; case "${enableval}" in
4075       	 yes) enable_wii=true ;;
4076       	 no)  enable_wii=false ;;
4077       	 *) as_fn_error "bad value ${enableval} for --enable-wii" "$LINENO" 5 ;;
4078     	 esac;
4079else
4080  enable_wii=false;
4081fi
4082
4083
4084
4085
4086	# Check whether --enable-pandora was given.
4087if test "${enable_pandora+set}" = set; then :
4088  enableval=$enable_pandora; case "${enableval}" in
4089       	 yes) enable_pandora=true ;;
4090       	 no)  enable_pandora=false ;;
4091       	 *) as_fn_error "bad value ${enableval} for --enable-pandora" "$LINENO" 5 ;;
4092     	 esac;
4093else
4094  enable_pandora=false;
4095fi
4096
4097
4098
4099
4100	# Check whether --enable-win32 was given.
4101if test "${enable_win32+set}" = set; then :
4102  enableval=$enable_win32; case "${enableval}" in
4103       	 yes) enable_win32=true ;;
4104       	 no)  enable_win32=false ;;
4105       	 *) as_fn_error "bad value ${enableval} for --enable-win32" "$LINENO" 5 ;;
4106     	 esac;
4107else
4108  enable_win32=false;
4109fi
4110
4111
4112
4113
4114	# Check whether --enable-dingux was given.
4115if test "${enable_dingux+set}" = set; then :
4116  enableval=$enable_dingux; case "${enableval}" in
4117       	 yes) enable_dingux=true ;;
4118       	 no)  enable_dingux=false ;;
4119       	 *) as_fn_error "bad value ${enableval} for --enable-dingux" "$LINENO" 5 ;;
4120     	 esac;
4121else
4122  enable_dingux=false;
4123fi
4124
4125
4126
4127
4128	# Check whether --enable-embedded was given.
4129if test "${enable_embedded+set}" = set; then :
4130  enableval=$enable_embedded; case "${enableval}" in
4131       	 yes) enable_embedded=true ;;
4132       	 no)  enable_embedded=false ;;
4133       	 *) as_fn_error "bad value ${enableval} for --enable-embedded" "$LINENO" 5 ;;
4134     	 esac;
4135else
4136  enable_embedded=false;
4137fi
4138
4139
4140
4141
4142
4143# Check for SDL
4144SDL_VERSION=1.2.0
4145
4146
4147# Check whether --with-sdl-prefix was given.
4148if test "${with_sdl_prefix+set}" = set; then :
4149  withval=$with_sdl_prefix; sdl_prefix="$withval"
4150else
4151  sdl_prefix=""
4152fi
4153
4154
4155# Check whether --with-sdl-exec-prefix was given.
4156if test "${with_sdl_exec_prefix+set}" = set; then :
4157  withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
4158else
4159  sdl_exec_prefix=""
4160fi
4161
4162# Check whether --enable-sdltest was given.
4163if test "${enable_sdltest+set}" = set; then :
4164  enableval=$enable_sdltest;
4165else
4166  enable_sdltest=yes
4167fi
4168
4169
4170  if test x$sdl_exec_prefix != x ; then
4171    sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
4172    if test x${SDL_CONFIG+set} != xset ; then
4173      SDL_CONFIG=$sdl_exec_prefix/bin//usr/local/bin/sdl-config
4174    fi
4175  fi
4176  if test x$sdl_prefix != x ; then
4177    sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
4178    if test x${SDL_CONFIG+set} != xset ; then
4179      SDL_CONFIG=$sdl_prefix/bin//usr/local/bin/sdl-config
4180    fi
4181  fi
4182
4183  as_save_PATH="$PATH"
4184  if test "x$prefix" != xNONE; then
4185    PATH="$prefix/bin:$prefix/usr/bin:$PATH"
4186  fi
4187  # Extract the first word of "/usr/local/bin/sdl-config", so it can be a program name with args.
4188set dummy /usr/local/bin/sdl-config; ac_word=$2
4189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4190$as_echo_n "checking for $ac_word... " >&6; }
4191if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
4192  $as_echo_n "(cached) " >&6
4193else
4194  case $SDL_CONFIG in
4195  [\\/]* | ?:[\\/]*)
4196  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
4197  ;;
4198  *)
4199  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200for as_dir in $PATH
4201do
4202  IFS=$as_save_IFS
4203  test -z "$as_dir" && as_dir=.
4204    for ac_exec_ext in '' $ac_executable_extensions; do
4205  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4206    ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4207    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4208    break 2
4209  fi
4210done
4211  done
4212IFS=$as_save_IFS
4213
4214  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
4215  ;;
4216esac
4217fi
4218SDL_CONFIG=$ac_cv_path_SDL_CONFIG
4219if test -n "$SDL_CONFIG"; then
4220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
4221$as_echo "$SDL_CONFIG" >&6; }
4222else
4223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4224$as_echo "no" >&6; }
4225fi
4226
4227
4228  PATH="$as_save_PATH"
4229  min_sdl_version=$SDL_VERSION
4230  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
4231$as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
4232  no_sdl=""
4233  if test "$SDL_CONFIG" = "no" ; then
4234    no_sdl=yes
4235  else
4236    SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
4237    SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
4238
4239    sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
4240           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
4241    sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
4242           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4243    sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
4244           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
4245    if test "x$enable_sdltest" = "xyes" ; then
4246      ac_save_CFLAGS="$CFLAGS"
4247      ac_save_CXXFLAGS="$CXXFLAGS"
4248      ac_save_LIBS="$LIBS"
4249      CFLAGS="$CFLAGS $SDL_CFLAGS"
4250      CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
4251      LIBS="$LIBS $SDL_LIBS"
4252      rm -f conf.sdltest
4253      if test "$cross_compiling" = yes; then :
4254  echo $ac_n "cross compiling; assumed OK... $ac_c"
4255else
4256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257/* end confdefs.h.  */
4258
4259#include <stdio.h>
4260#include <stdlib.h>
4261#include <string.h>
4262#include "SDL.h"
4263
4264char*
4265my_strdup (char *str)
4266{
4267  char *new_str;
4268
4269  if (str)
4270    {
4271      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
4272      strcpy (new_str, str);
4273    }
4274  else
4275    new_str = NULL;
4276
4277  return new_str;
4278}
4279
4280int main (int argc, char *argv[])
4281{
4282  int major, minor, micro;
4283  char *tmp_version;
4284
4285  /* This hangs on some systems (?)
4286  system ("touch conf.sdltest");
4287  */
4288  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
4289
4290  /* HP/UX 9 (%@#!) writes to sscanf strings */
4291  tmp_version = my_strdup("$min_sdl_version");
4292  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
4293     printf("%s, bad version string\n", "$min_sdl_version");
4294     exit(1);
4295   }
4296
4297   if (($sdl_major_version > major) ||
4298      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
4299      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
4300    {
4301      return 0;
4302    }
4303  else
4304    {
4305      printf("\n*** '/usr/local/bin/sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
4306      printf("*** of SDL required is %d.%d.%d. If /usr/local/bin/sdl-config is correct, then it is\n", major, minor, micro);
4307      printf("*** best to upgrade to the required version.\n");
4308      printf("*** If /usr/local/bin/sdl-config was wrong, set the environment variable SDL_CONFIG\n");
4309      printf("*** to point to the correct copy of /usr/local/bin/sdl-config, and remove the file\n");
4310      printf("*** config.cache before re-running configure\n");
4311      return 1;
4312    }
4313}
4314
4315
4316_ACEOF
4317if ac_fn_c_try_run "$LINENO"; then :
4318
4319else
4320  no_sdl=yes
4321fi
4322rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4323  conftest.$ac_objext conftest.beam conftest.$ac_ext
4324fi
4325
4326       CFLAGS="$ac_save_CFLAGS"
4327       CXXFLAGS="$ac_save_CXXFLAGS"
4328       LIBS="$ac_save_LIBS"
4329     fi
4330  fi
4331  if test "x$no_sdl" = x ; then
4332     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4333$as_echo "yes" >&6; }
4334     :
4335  else
4336     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337$as_echo "no" >&6; }
4338     if test "$SDL_CONFIG" = "no" ; then
4339       echo "*** The /usr/local/bin/sdl-config script installed by SDL could not be found"
4340       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
4341       echo "*** your path, or set the SDL_CONFIG environment variable to the"
4342       echo "*** full path to /usr/local/bin/sdl-config."
4343     else
4344       if test -f conf.sdltest ; then
4345        :
4346       else
4347          echo "*** Could not run SDL test program, checking why..."
4348          CFLAGS="$CFLAGS $SDL_CFLAGS"
4349          CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
4350          LIBS="$LIBS $SDL_LIBS"
4351          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352/* end confdefs.h.  */
4353
4354#include <stdio.h>
4355#include "SDL.h"
4356
4357int main(int argc, char *argv[])
4358{ return 0; }
4359#undef  main
4360#define main K_and_R_C_main
4361
4362int
4363main ()
4364{
4365 return 0;
4366  ;
4367  return 0;
4368}
4369_ACEOF
4370if ac_fn_c_try_link "$LINENO"; then :
4371   echo "*** The test program compiled, but did not run. This usually means"
4372          echo "*** that the run-time linker is not finding SDL or finding the wrong"
4373          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
4374          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
4375          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
4376          echo "*** is required on your system"
4377	  echo "***"
4378          echo "*** If you have an old version installed, it is best to remove it, although"
4379          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
4380else
4381   echo "*** The test program failed to compile or link. See the file config.log for the"
4382          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
4383          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
4384          echo "*** may want to edit the /usr/local/bin/sdl-config script: $SDL_CONFIG"
4385fi
4386rm -f core conftest.err conftest.$ac_objext \
4387    conftest$ac_exeext conftest.$ac_ext
4388          CFLAGS="$ac_save_CFLAGS"
4389          CXXFLAGS="$ac_save_CXXFLAGS"
4390          LIBS="$ac_save_LIBS"
4391       fi
4392     fi
4393     SDL_CFLAGS=""
4394     SDL_LIBS=""
4395     as_fn_error "*** SDL version $SDL_VERSION not found!" "$LINENO" 5
4396  fi
4397
4398
4399  rm -f conf.sdltest
4400
4401CFLAGS="$CFLAGS $SDL_CFLAGS"
4402LIBS="$LIBS $SDL_LIBS"
4403
4404# Setup platform specific optimisation/source/cflags/libs/etc.
4405if test "x$enable_gp2x" = xtrue ; then
4406
4407$as_echo "#define GP2X 1" >>confdefs.h
4408
4409
4410$as_echo "#define ENABLE_940T 1" >>confdefs.h
4411
4412	CFLAGS="$CFLAGS -mtune=arm920t"
4413	LIBS="$LIBS -lpthread -static";
4414	enable_embedded=true
4415    #PDEP_SOURCE=$PDEP_SOURCE 'gp2x.$(OBJEXT)'
4416fi
4417if test "x$enable_wiz" = xtrue ; then
4418
4419$as_echo "#define WIZ 1" >>confdefs.h
4420
4421	enable_embedded=true
4422#	CFLAGS="$CFLAGS -mtune=arm920t"
4423#	LIBS="$LIBS -lpthread -static";
4424fi
4425if test "x$enable_dingux" = xtrue ; then
4426
4427$as_echo "#define DINGUX 1" >>confdefs.h
4428
4429	enable_embedded=true
4430	CFLAGS="$CFLAGS -mips32 -mtune=r4600 -mno-mips16 -msoft-float -fexpensive-optimizations -fomit-frame-pointer -frename-registers"
4431#	LIBS="$LIBS -lpthread -static";
4432fi
4433if test "x$enable_pandora" = xtrue ; then
4434
4435$as_echo "#define PANDORA 1" >>confdefs.h
4436
4437	enable_embedded=true
4438#	CFLAGS="$CFLAGS -mtune=arm920t"
4439#	LIBS="$LIBS -lpthread -static";
4440fi
4441if test "x$enable_wii" = xtrue ; then
4442
4443$as_echo "#define WII 1" >>confdefs.h
4444
4445	enable_embedded=true
4446	CFLAGS="$CFLAGS -DGEKKO -mrvl -mcpu=750 -meabi -mhard-float -MMD -MP"
4447	LIBS="$LIBS -lSDL -lfat -lwiiuse -lbte -logc -lm -lwiikeyboard";
4448fi
4449if test "x$enable_win32" = xtrue ; then
4450   enable_embedded=true
4451
4452$as_echo "#define WIN32 1" >>confdefs.h
4453
4454   NASMENV="--prefix_"
4455fi
4456if test "x$enable_embedded" = xtrue ; then
4457
4458$as_echo "#define EMBEDDED_FS 1" >>confdefs.h
4459
4460fi
4461
4462
4463# Checks for libraries.
4464#AC_SUBST(LIBOBJS)
4465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos in -lm" >&5
4466$as_echo_n "checking for acos in -lm... " >&6; }
4467if test "${ac_cv_lib_m_acos+set}" = set; then :
4468  $as_echo_n "(cached) " >&6
4469else
4470  ac_check_lib_save_LIBS=$LIBS
4471LIBS="-lm  $LIBS"
4472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473/* end confdefs.h.  */
4474
4475/* Override any GCC internal prototype to avoid an error.
4476   Use char because int might match the return type of a GCC
4477   builtin and then its argument prototype would still apply.  */
4478#ifdef __cplusplus
4479extern "C"
4480#endif
4481char acos ();
4482int
4483main ()
4484{
4485return acos ();
4486  ;
4487  return 0;
4488}
4489_ACEOF
4490if ac_fn_c_try_link "$LINENO"; then :
4491  ac_cv_lib_m_acos=yes
4492else
4493  ac_cv_lib_m_acos=no
4494fi
4495rm -f core conftest.err conftest.$ac_objext \
4496    conftest$ac_exeext conftest.$ac_ext
4497LIBS=$ac_check_lib_save_LIBS
4498fi
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acos" >&5
4500$as_echo "$ac_cv_lib_m_acos" >&6; }
4501if test "x$ac_cv_lib_m_acos" = x""yes; then :
4502  cat >>confdefs.h <<_ACEOF
4503#define HAVE_LIBM 1
4504_ACEOF
4505
4506  LIBS="-lm $LIBS"
4507
4508fi
4509
4510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
4511$as_echo_n "checking for inflate in -lz... " >&6; }
4512if test "${ac_cv_lib_z_inflate+set}" = set; then :
4513  $as_echo_n "(cached) " >&6
4514else
4515  ac_check_lib_save_LIBS=$LIBS
4516LIBS="-lz  $LIBS"
4517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518/* end confdefs.h.  */
4519
4520/* Override any GCC internal prototype to avoid an error.
4521   Use char because int might match the return type of a GCC
4522   builtin and then its argument prototype would still apply.  */
4523#ifdef __cplusplus
4524extern "C"
4525#endif
4526char inflate ();
4527int
4528main ()
4529{
4530return inflate ();
4531  ;
4532  return 0;
4533}
4534_ACEOF
4535if ac_fn_c_try_link "$LINENO"; then :
4536  ac_cv_lib_z_inflate=yes
4537else
4538  ac_cv_lib_z_inflate=no
4539fi
4540rm -f core conftest.err conftest.$ac_objext \
4541    conftest$ac_exeext conftest.$ac_ext
4542LIBS=$ac_check_lib_save_LIBS
4543fi
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
4545$as_echo "$ac_cv_lib_z_inflate" >&6; }
4546if test "x$ac_cv_lib_z_inflate" = x""yes; then :
4547  cat >>confdefs.h <<_ACEOF
4548#define HAVE_LIBZ 1
4549_ACEOF
4550
4551  LIBS="-lz $LIBS"
4552
4553fi
4554
4555
4556for ac_func in getopt_long
4557do :
4558  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4559ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4560eval as_val=\$$as_ac_var
4561   if test "x$as_val" = x""yes; then :
4562  cat >>confdefs.h <<_ACEOF
4563#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4564_ACEOF
4565
4566else
4567   case " $LIBOBJS " in
4568  *" getopt.$ac_objext "* ) ;;
4569  *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
4570 ;;
4571esac
4572 case " $LIBOBJS " in
4573  *" getopt1.$ac_objext "* ) ;;
4574  *) LIBOBJS="$LIBOBJS getopt1.$ac_objext"
4575 ;;
4576esac
4577
4578fi
4579done
4580
4581for ac_func in scandir
4582do :
4583  ac_fn_c_check_func "$LINENO" "scandir" "ac_cv_func_scandir"
4584if test "x$ac_cv_func_scandir" = x""yes; then :
4585  cat >>confdefs.h <<_ACEOF
4586#define HAVE_SCANDIR 1
4587_ACEOF
4588
4589fi
4590done
4591
4592for ac_func in basename
4593do :
4594  ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
4595if test "x$ac_cv_func_basename" = x""yes; then :
4596  cat >>confdefs.h <<_ACEOF
4597#define HAVE_BASENAME 1
4598_ACEOF
4599
4600fi
4601done
4602
4603for ac_func in mmap
4604do :
4605  ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
4606if test "x$ac_cv_func_mmap" = x""yes; then :
4607  cat >>confdefs.h <<_ACEOF
4608#define HAVE_MMAP 1
4609_ACEOF
4610
4611fi
4612done
4613
4614#have_nasm=false
4615use_starscream=false
4616use_raze=false
4617use_generator68k=false
4618use_cyclone=false
4619use_mamez80=false
4620#choice_68k=ko
4621#choice_z80=ko
4622
4623# TODO: check mmx support
4624# Check whether --enable-i386asm was given.
4625if test "${enable_i386asm+set}" = set; then :
4626  enableval=$enable_i386asm; case "${enableval}" in
4627       						yes) enablei386asm=true  ;;
4628       						no)  enablei386asm=false ;;
4629       						*) as_fn_error "bad value ${enableval} for --disable-i386asm" "$LINENO" 5 ;;
4630     						esac
4631else
4632  enablei386asm=true
4633fi
4634
4635
4636
4637
4638# Check whether --with-m68kcore was given.
4639if test "${with_m68kcore+set}" = set; then :
4640  withval=$with_m68kcore; m68kcore="$withval"
4641else
4642  m68kcore="default"
4643fi
4644
4645
4646# Check whether --with-z80core was given.
4647if test "${with_z80core+set}" = set; then :
4648  withval=$with_z80core; z80core="$withval"
4649else
4650  z80core="default"
4651fi
4652
4653#echo $m68kcore
4654#echo $z80core
4655case $target_cpu in
4656    	i?86)
4657if  test "$enablei386asm" = true ; then
4658	# Extract the first word of "nasm", so it can be a program name with args.
4659set dummy nasm; ac_word=$2
4660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4661$as_echo_n "checking for $ac_word... " >&6; }
4662if test "${ac_cv_prog_have_nasm+set}" = set; then :
4663  $as_echo_n "(cached) " >&6
4664else
4665  if test -n "$have_nasm"; then
4666  ac_cv_prog_have_nasm="$have_nasm" # Let the user override the test.
4667else
4668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669for as_dir in $PATH
4670do
4671  IFS=$as_save_IFS
4672  test -z "$as_dir" && as_dir=.
4673    for ac_exec_ext in '' $ac_executable_extensions; do
4674  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675    ac_cv_prog_have_nasm="true"
4676    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4677    break 2
4678  fi
4679done
4680  done
4681IFS=$as_save_IFS
4682
4683  test -z "$ac_cv_prog_have_nasm" && ac_cv_prog_have_nasm="false"
4684fi
4685fi
4686have_nasm=$ac_cv_prog_have_nasm
4687if test -n "$have_nasm"; then
4688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nasm" >&5
4689$as_echo "$have_nasm" >&6; }
4690else
4691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692$as_echo "no" >&6; }
4693fi
4694
4695
4696	CFLAGS="$CFLAGS -m32 -DI386_ASM"
4697#    PDEP_SOURCE=$PDEP_SOURCE 'gp2x.$(OBJEXT)'
4698else
4699	have_nasm=false
4700fi
4701;;
4702esac
4703
4704#setup default 68k core
4705if test $m68kcore = default ; then
4706	case $target_cpu in
4707    	i?86)
4708			if test x$have_name=xtrue ; then
4709				m68kcore=starscream
4710			else
4711				m68kcore=gen68k
4712			fi
4713    		;;
4714    	arm) m68kcore=cyclone
4715    		;;
4716    	*)	 m68kcore=gen68k
4717    		;;
4718    esac
4719fi
4720#setup default z80 core
4721if test $z80core = default ; then
4722	case $target_cpu in
4723    	i?86)
4724			if test x$have_name=xtrue ; then
4725				z80core=raze
4726			else
4727				z80core=mamez80
4728			fi
4729    		;;
4730    	arm) z80core=drz80
4731    		;;
4732    	*)	 z80core=mamez80
4733    		;;
4734    esac
4735fi
4736
4737case "${m68kcore}" in
4738     	cyclone)	use_cyclone=true
4739
4740$as_echo "#define USE_CYCLONE 1" >>confdefs.h
4741
4742		   	;;
4743	starscream)	use_starscream=true
4744
4745$as_echo "#define USE_STARSCREAM 1" >>confdefs.h
4746
4747    			;;
4748	gen68k)      	use_generator68k=true
4749
4750$as_echo "#define USE_GENERATOR68K 1" >>confdefs.h
4751
4752    			;;
4753	*) as_fn_error "The specified m68k core is invalid" "$LINENO" 5 ;;
4754esac
4755
4756case "${z80core}" in
4757	drz80)       use_drz80=true
4758
4759$as_echo "#define USE_DRZ80 1" >>confdefs.h
4760
4761				 ;;
4762	raze)        use_raze=true
4763
4764$as_echo "#define USE_RAZE 1" >>confdefs.h
4765
4766    			 ;;
4767	mamez80)     use_mamez80=true
4768
4769$as_echo "#define USE_MAMEZ80 1" >>confdefs.h
4770
4771    			 ;;
4772	*) as_fn_error "The specified z80 core is invalid" "$LINENO" 5 ;;
4773esac
4774
4775
4776
4777ac_ext=c
4778ac_cpp='$CPP $CPPFLAGS'
4779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4781ac_compiler_gnu=$ac_cv_c_compiler_gnu
4782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4783$as_echo_n "checking how to run the C preprocessor... " >&6; }
4784# On Suns, sometimes $CPP names a directory.
4785if test -n "$CPP" && test -d "$CPP"; then
4786  CPP=
4787fi
4788if test -z "$CPP"; then
4789  if test "${ac_cv_prog_CPP+set}" = set; then :
4790  $as_echo_n "(cached) " >&6
4791else
4792      # Double quotes because CPP needs to be expanded
4793    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4794    do
4795      ac_preproc_ok=false
4796for ac_c_preproc_warn_flag in '' yes
4797do
4798  # Use a header file that comes with gcc, so configuring glibc
4799  # with a fresh cross-compiler works.
4800  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4801  # <limits.h> exists even on freestanding compilers.
4802  # On the NeXT, cc -E runs the code through the compiler's parser,
4803  # not just through cpp. "Syntax error" is here to catch this case.
4804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4805/* end confdefs.h.  */
4806#ifdef __STDC__
4807# include <limits.h>
4808#else
4809# include <assert.h>
4810#endif
4811		     Syntax error
4812_ACEOF
4813if ac_fn_c_try_cpp "$LINENO"; then :
4814
4815else
4816  # Broken: fails on valid input.
4817continue
4818fi
4819rm -f conftest.err conftest.$ac_ext
4820
4821  # OK, works on sane cases.  Now check whether nonexistent headers
4822  # can be detected and how.
4823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4824/* end confdefs.h.  */
4825#include <ac_nonexistent.h>
4826_ACEOF
4827if ac_fn_c_try_cpp "$LINENO"; then :
4828  # Broken: success on invalid input.
4829continue
4830else
4831  # Passes both tests.
4832ac_preproc_ok=:
4833break
4834fi
4835rm -f conftest.err conftest.$ac_ext
4836
4837done
4838# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4839rm -f conftest.err conftest.$ac_ext
4840if $ac_preproc_ok; then :
4841  break
4842fi
4843
4844    done
4845    ac_cv_prog_CPP=$CPP
4846
4847fi
4848  CPP=$ac_cv_prog_CPP
4849else
4850  ac_cv_prog_CPP=$CPP
4851fi
4852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4853$as_echo "$CPP" >&6; }
4854ac_preproc_ok=false
4855for ac_c_preproc_warn_flag in '' yes
4856do
4857  # Use a header file that comes with gcc, so configuring glibc
4858  # with a fresh cross-compiler works.
4859  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4860  # <limits.h> exists even on freestanding compilers.
4861  # On the NeXT, cc -E runs the code through the compiler's parser,
4862  # not just through cpp. "Syntax error" is here to catch this case.
4863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864/* end confdefs.h.  */
4865#ifdef __STDC__
4866# include <limits.h>
4867#else
4868# include <assert.h>
4869#endif
4870		     Syntax error
4871_ACEOF
4872if ac_fn_c_try_cpp "$LINENO"; then :
4873
4874else
4875  # Broken: fails on valid input.
4876continue
4877fi
4878rm -f conftest.err conftest.$ac_ext
4879
4880  # OK, works on sane cases.  Now check whether nonexistent headers
4881  # can be detected and how.
4882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883/* end confdefs.h.  */
4884#include <ac_nonexistent.h>
4885_ACEOF
4886if ac_fn_c_try_cpp "$LINENO"; then :
4887  # Broken: success on invalid input.
4888continue
4889else
4890  # Passes both tests.
4891ac_preproc_ok=:
4892break
4893fi
4894rm -f conftest.err conftest.$ac_ext
4895
4896done
4897# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4898rm -f conftest.err conftest.$ac_ext
4899if $ac_preproc_ok; then :
4900
4901else
4902  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4903$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4904as_fn_error "C preprocessor \"$CPP\" fails sanity check
4905See \`config.log' for more details." "$LINENO" 5; }
4906fi
4907
4908ac_ext=c
4909ac_cpp='$CPP $CPPFLAGS'
4910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4912ac_compiler_gnu=$ac_cv_c_compiler_gnu
4913
4914
4915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4916$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4917if test "${ac_cv_path_GREP+set}" = set; then :
4918  $as_echo_n "(cached) " >&6
4919else
4920  if test -z "$GREP"; then
4921  ac_path_GREP_found=false
4922  # Loop through the user's path and test for each of PROGNAME-LIST
4923  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4925do
4926  IFS=$as_save_IFS
4927  test -z "$as_dir" && as_dir=.
4928    for ac_prog in grep ggrep; do
4929    for ac_exec_ext in '' $ac_executable_extensions; do
4930      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4931      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4932# Check for GNU ac_path_GREP and select it if it is found.
4933  # Check for GNU $ac_path_GREP
4934case `"$ac_path_GREP" --version 2>&1` in
4935*GNU*)
4936  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4937*)
4938  ac_count=0
4939  $as_echo_n 0123456789 >"conftest.in"
4940  while :
4941  do
4942    cat "conftest.in" "conftest.in" >"conftest.tmp"
4943    mv "conftest.tmp" "conftest.in"
4944    cp "conftest.in" "conftest.nl"
4945    $as_echo 'GREP' >> "conftest.nl"
4946    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4947    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4948    as_fn_arith $ac_count + 1 && ac_count=$as_val
4949    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4950      # Best one so far, save it but keep looking for a better one
4951      ac_cv_path_GREP="$ac_path_GREP"
4952      ac_path_GREP_max=$ac_count
4953    fi
4954    # 10*(2^10) chars as input seems more than enough
4955    test $ac_count -gt 10 && break
4956  done
4957  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4958esac
4959
4960      $ac_path_GREP_found && break 3
4961    done
4962  done
4963  done
4964IFS=$as_save_IFS
4965  if test -z "$ac_cv_path_GREP"; then
4966    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4967  fi
4968else
4969  ac_cv_path_GREP=$GREP
4970fi
4971
4972fi
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4974$as_echo "$ac_cv_path_GREP" >&6; }
4975 GREP="$ac_cv_path_GREP"
4976
4977
4978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4979$as_echo_n "checking for egrep... " >&6; }
4980if test "${ac_cv_path_EGREP+set}" = set; then :
4981  $as_echo_n "(cached) " >&6
4982else
4983  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4984   then ac_cv_path_EGREP="$GREP -E"
4985   else
4986     if test -z "$EGREP"; then
4987  ac_path_EGREP_found=false
4988  # Loop through the user's path and test for each of PROGNAME-LIST
4989  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4991do
4992  IFS=$as_save_IFS
4993  test -z "$as_dir" && as_dir=.
4994    for ac_prog in egrep; do
4995    for ac_exec_ext in '' $ac_executable_extensions; do
4996      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4997      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4998# Check for GNU ac_path_EGREP and select it if it is found.
4999  # Check for GNU $ac_path_EGREP
5000case `"$ac_path_EGREP" --version 2>&1` in
5001*GNU*)
5002  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5003*)
5004  ac_count=0
5005  $as_echo_n 0123456789 >"conftest.in"
5006  while :
5007  do
5008    cat "conftest.in" "conftest.in" >"conftest.tmp"
5009    mv "conftest.tmp" "conftest.in"
5010    cp "conftest.in" "conftest.nl"
5011    $as_echo 'EGREP' >> "conftest.nl"
5012    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5013    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5014    as_fn_arith $ac_count + 1 && ac_count=$as_val
5015    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5016      # Best one so far, save it but keep looking for a better one
5017      ac_cv_path_EGREP="$ac_path_EGREP"
5018      ac_path_EGREP_max=$ac_count
5019    fi
5020    # 10*(2^10) chars as input seems more than enough
5021    test $ac_count -gt 10 && break
5022  done
5023  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5024esac
5025
5026      $ac_path_EGREP_found && break 3
5027    done
5028  done
5029  done
5030IFS=$as_save_IFS
5031  if test -z "$ac_cv_path_EGREP"; then
5032    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5033  fi
5034else
5035  ac_cv_path_EGREP=$EGREP
5036fi
5037
5038   fi
5039fi
5040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5041$as_echo "$ac_cv_path_EGREP" >&6; }
5042 EGREP="$ac_cv_path_EGREP"
5043
5044
5045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5046$as_echo_n "checking for ANSI C header files... " >&6; }
5047if test "${ac_cv_header_stdc+set}" = set; then :
5048  $as_echo_n "(cached) " >&6
5049else
5050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051/* end confdefs.h.  */
5052#include <stdlib.h>
5053#include <stdarg.h>
5054#include <string.h>
5055#include <float.h>
5056
5057int
5058main ()
5059{
5060
5061  ;
5062  return 0;
5063}
5064_ACEOF
5065if ac_fn_c_try_compile "$LINENO"; then :
5066  ac_cv_header_stdc=yes
5067else
5068  ac_cv_header_stdc=no
5069fi
5070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5071
5072if test $ac_cv_header_stdc = yes; then
5073  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075/* end confdefs.h.  */
5076#include <string.h>
5077
5078_ACEOF
5079if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5080  $EGREP "memchr" >/dev/null 2>&1; then :
5081
5082else
5083  ac_cv_header_stdc=no
5084fi
5085rm -f conftest*
5086
5087fi
5088
5089if test $ac_cv_header_stdc = yes; then
5090  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092/* end confdefs.h.  */
5093#include <stdlib.h>
5094
5095_ACEOF
5096if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5097  $EGREP "free" >/dev/null 2>&1; then :
5098
5099else
5100  ac_cv_header_stdc=no
5101fi
5102rm -f conftest*
5103
5104fi
5105
5106if test $ac_cv_header_stdc = yes; then
5107  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5108  if test "$cross_compiling" = yes; then :
5109  :
5110else
5111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112/* end confdefs.h.  */
5113#include <ctype.h>
5114#include <stdlib.h>
5115#if ((' ' & 0x0FF) == 0x020)
5116# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5117# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5118#else
5119# define ISLOWER(c) \
5120		   (('a' <= (c) && (c) <= 'i') \
5121		     || ('j' <= (c) && (c) <= 'r') \
5122		     || ('s' <= (c) && (c) <= 'z'))
5123# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5124#endif
5125
5126#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5127int
5128main ()
5129{
5130  int i;
5131  for (i = 0; i < 256; i++)
5132    if (XOR (islower (i), ISLOWER (i))
5133	|| toupper (i) != TOUPPER (i))
5134      return 2;
5135  return 0;
5136}
5137_ACEOF
5138if ac_fn_c_try_run "$LINENO"; then :
5139
5140else
5141  ac_cv_header_stdc=no
5142fi
5143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5144  conftest.$ac_objext conftest.beam conftest.$ac_ext
5145fi
5146
5147fi
5148fi
5149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5150$as_echo "$ac_cv_header_stdc" >&6; }
5151if test $ac_cv_header_stdc = yes; then
5152
5153$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5154
5155fi
5156
5157# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5158for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5159		  inttypes.h stdint.h unistd.h
5160do :
5161  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5162ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5163"
5164eval as_val=\$$as_ac_Header
5165   if test "x$as_val" = x""yes; then :
5166  cat >>confdefs.h <<_ACEOF
5167#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5168_ACEOF
5169
5170fi
5171
5172done
5173
5174
5175for ac_header in GL/gl.h
5176do :
5177  ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
5178if test "x$ac_cv_header_GL_gl_h" = x""yes; then :
5179  cat >>confdefs.h <<_ACEOF
5180#define HAVE_GL_GL_H 1
5181_ACEOF
5182
5183fi
5184
5185done
5186
5187
5188$as_echo "#define USE_GL2 1" >>confdefs.h
5189
5190
5191 if test x$have_nasm = xtrue; then
5192  HAVE_NASM_TRUE=
5193  HAVE_NASM_FALSE='#'
5194else
5195  HAVE_NASM_TRUE='#'
5196  HAVE_NASM_FALSE=
5197fi
5198
5199 if test x$use_starscream = xtrue; then
5200  USE_STARSCREAM_TRUE=
5201  USE_STARSCREAM_FALSE='#'
5202else
5203  USE_STARSCREAM_TRUE='#'
5204  USE_STARSCREAM_FALSE=
5205fi
5206
5207 if test x$use_raze = xtrue; then
5208  USE_RAZE_TRUE=
5209  USE_RAZE_FALSE='#'
5210else
5211  USE_RAZE_TRUE='#'
5212  USE_RAZE_FALSE=
5213fi
5214
5215 if test x$use_generator68k = xtrue; then
5216  USE_GENERATOR68K_TRUE=
5217  USE_GENERATOR68K_FALSE='#'
5218else
5219  USE_GENERATOR68K_TRUE='#'
5220  USE_GENERATOR68K_FALSE=
5221fi
5222
5223 if test x$use_cyclone = xtrue; then
5224  USE_CYCLONE_TRUE=
5225  USE_CYCLONE_FALSE='#'
5226else
5227  USE_CYCLONE_TRUE='#'
5228  USE_CYCLONE_FALSE=
5229fi
5230
5231 if test x$use_mamez80 = xtrue; then
5232  USE_MAMEZ80_TRUE=
5233  USE_MAMEZ80_FALSE='#'
5234else
5235  USE_MAMEZ80_TRUE='#'
5236  USE_MAMEZ80_FALSE=
5237fi
5238
5239 if test x$use_drz80 = xtrue; then
5240  USE_DRZ80_TRUE=
5241  USE_DRZ80_FALSE='#'
5242else
5243  USE_DRZ80_TRUE='#'
5244  USE_DRZ80_FALSE=
5245fi
5246
5247 if test x$enable_gui = xtrue; then
5248  USE_GUI_TRUE=
5249  USE_GUI_FALSE='#'
5250else
5251  USE_GUI_TRUE='#'
5252  USE_GUI_FALSE=
5253fi
5254
5255 if test x$enable_gp2x = xtrue; then
5256  USE_GP2X_TRUE=
5257  USE_GP2X_FALSE='#'
5258else
5259  USE_GP2X_TRUE='#'
5260  USE_GP2X_FALSE=
5261fi
5262
5263 if test x$enable_wiz = xtrue; then
5264  USE_WIZ_TRUE=
5265  USE_WIZ_FALSE='#'
5266else
5267  USE_WIZ_TRUE='#'
5268  USE_WIZ_FALSE=
5269fi
5270
5271
5272# Checks for header files.
5273ac_header_dirent=no
5274for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5275  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5277$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5278if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
5279  $as_echo_n "(cached) " >&6
5280else
5281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5282/* end confdefs.h.  */
5283#include <sys/types.h>
5284#include <$ac_hdr>
5285
5286int
5287main ()
5288{
5289if ((DIR *) 0)
5290return 0;
5291  ;
5292  return 0;
5293}
5294_ACEOF
5295if ac_fn_c_try_compile "$LINENO"; then :
5296  eval "$as_ac_Header=yes"
5297else
5298  eval "$as_ac_Header=no"
5299fi
5300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5301fi
5302eval ac_res=\$$as_ac_Header
5303	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5304$as_echo "$ac_res" >&6; }
5305eval as_val=\$$as_ac_Header
5306   if test "x$as_val" = x""yes; then :
5307  cat >>confdefs.h <<_ACEOF
5308#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5309_ACEOF
5310
5311ac_header_dirent=$ac_hdr; break
5312fi
5313
5314done
5315# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5316if test $ac_header_dirent = dirent.h; then
5317  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5318$as_echo_n "checking for library containing opendir... " >&6; }
5319if test "${ac_cv_search_opendir+set}" = set; then :
5320  $as_echo_n "(cached) " >&6
5321else
5322  ac_func_search_save_LIBS=$LIBS
5323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324/* end confdefs.h.  */
5325
5326/* Override any GCC internal prototype to avoid an error.
5327   Use char because int might match the return type of a GCC
5328   builtin and then its argument prototype would still apply.  */
5329#ifdef __cplusplus
5330extern "C"
5331#endif
5332char opendir ();
5333int
5334main ()
5335{
5336return opendir ();
5337  ;
5338  return 0;
5339}
5340_ACEOF
5341for ac_lib in '' dir; do
5342  if test -z "$ac_lib"; then
5343    ac_res="none required"
5344  else
5345    ac_res=-l$ac_lib
5346    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5347  fi
5348  if ac_fn_c_try_link "$LINENO"; then :
5349  ac_cv_search_opendir=$ac_res
5350fi
5351rm -f core conftest.err conftest.$ac_objext \
5352    conftest$ac_exeext
5353  if test "${ac_cv_search_opendir+set}" = set; then :
5354  break
5355fi
5356done
5357if test "${ac_cv_search_opendir+set}" = set; then :
5358
5359else
5360  ac_cv_search_opendir=no
5361fi
5362rm conftest.$ac_ext
5363LIBS=$ac_func_search_save_LIBS
5364fi
5365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5366$as_echo "$ac_cv_search_opendir" >&6; }
5367ac_res=$ac_cv_search_opendir
5368if test "$ac_res" != no; then :
5369  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5370
5371fi
5372
5373else
5374  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5375$as_echo_n "checking for library containing opendir... " >&6; }
5376if test "${ac_cv_search_opendir+set}" = set; then :
5377  $as_echo_n "(cached) " >&6
5378else
5379  ac_func_search_save_LIBS=$LIBS
5380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5381/* end confdefs.h.  */
5382
5383/* Override any GCC internal prototype to avoid an error.
5384   Use char because int might match the return type of a GCC
5385   builtin and then its argument prototype would still apply.  */
5386#ifdef __cplusplus
5387extern "C"
5388#endif
5389char opendir ();
5390int
5391main ()
5392{
5393return opendir ();
5394  ;
5395  return 0;
5396}
5397_ACEOF
5398for ac_lib in '' x; do
5399  if test -z "$ac_lib"; then
5400    ac_res="none required"
5401  else
5402    ac_res=-l$ac_lib
5403    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5404  fi
5405  if ac_fn_c_try_link "$LINENO"; then :
5406  ac_cv_search_opendir=$ac_res
5407fi
5408rm -f core conftest.err conftest.$ac_objext \
5409    conftest$ac_exeext
5410  if test "${ac_cv_search_opendir+set}" = set; then :
5411  break
5412fi
5413done
5414if test "${ac_cv_search_opendir+set}" = set; then :
5415
5416else
5417  ac_cv_search_opendir=no
5418fi
5419rm conftest.$ac_ext
5420LIBS=$ac_func_search_save_LIBS
5421fi
5422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5423$as_echo "$ac_cv_search_opendir" >&6; }
5424ac_res=$ac_cv_search_opendir
5425if test "$ac_res" != no; then :
5426  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5427
5428fi
5429
5430fi
5431
5432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5433$as_echo_n "checking for ANSI C header files... " >&6; }
5434if test "${ac_cv_header_stdc+set}" = set; then :
5435  $as_echo_n "(cached) " >&6
5436else
5437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438/* end confdefs.h.  */
5439#include <stdlib.h>
5440#include <stdarg.h>
5441#include <string.h>
5442#include <float.h>
5443
5444int
5445main ()
5446{
5447
5448  ;
5449  return 0;
5450}
5451_ACEOF
5452if ac_fn_c_try_compile "$LINENO"; then :
5453  ac_cv_header_stdc=yes
5454else
5455  ac_cv_header_stdc=no
5456fi
5457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5458
5459if test $ac_cv_header_stdc = yes; then
5460  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462/* end confdefs.h.  */
5463#include <string.h>
5464
5465_ACEOF
5466if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5467  $EGREP "memchr" >/dev/null 2>&1; then :
5468
5469else
5470  ac_cv_header_stdc=no
5471fi
5472rm -f conftest*
5473
5474fi
5475
5476if test $ac_cv_header_stdc = yes; then
5477  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479/* end confdefs.h.  */
5480#include <stdlib.h>
5481
5482_ACEOF
5483if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5484  $EGREP "free" >/dev/null 2>&1; then :
5485
5486else
5487  ac_cv_header_stdc=no
5488fi
5489rm -f conftest*
5490
5491fi
5492
5493if test $ac_cv_header_stdc = yes; then
5494  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5495  if test "$cross_compiling" = yes; then :
5496  :
5497else
5498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499/* end confdefs.h.  */
5500#include <ctype.h>
5501#include <stdlib.h>
5502#if ((' ' & 0x0FF) == 0x020)
5503# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5504# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5505#else
5506# define ISLOWER(c) \
5507		   (('a' <= (c) && (c) <= 'i') \
5508		     || ('j' <= (c) && (c) <= 'r') \
5509		     || ('s' <= (c) && (c) <= 'z'))
5510# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5511#endif
5512
5513#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5514int
5515main ()
5516{
5517  int i;
5518  for (i = 0; i < 256; i++)
5519    if (XOR (islower (i), ISLOWER (i))
5520	|| toupper (i) != TOUPPER (i))
5521      return 2;
5522  return 0;
5523}
5524_ACEOF
5525if ac_fn_c_try_run "$LINENO"; then :
5526
5527else
5528  ac_cv_header_stdc=no
5529fi
5530rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5531  conftest.$ac_objext conftest.beam conftest.$ac_ext
5532fi
5533
5534fi
5535fi
5536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5537$as_echo "$ac_cv_header_stdc" >&6; }
5538if test $ac_cv_header_stdc = yes; then
5539
5540$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5541
5542fi
5543
5544for ac_header in errno.h limits.h malloc.h stddef.h stdlib.h string.h sys/time.h unistd.h
5545do :
5546  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5547ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5548eval as_val=\$$as_ac_Header
5549   if test "x$as_val" = x""yes; then :
5550  cat >>confdefs.h <<_ACEOF
5551#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5552_ACEOF
5553
5554fi
5555
5556done
5557
5558
5559# Checks for typedefs, structures, and compiler characteristics.
5560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5561$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5562if test "${ac_cv_c_const+set}" = set; then :
5563  $as_echo_n "(cached) " >&6
5564else
5565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566/* end confdefs.h.  */
5567
5568int
5569main ()
5570{
5571/* FIXME: Include the comments suggested by Paul. */
5572#ifndef __cplusplus
5573  /* Ultrix mips cc rejects this.  */
5574  typedef int charset[2];
5575  const charset cs;
5576  /* SunOS 4.1.1 cc rejects this.  */
5577  char const *const *pcpcc;
5578  char **ppc;
5579  /* NEC SVR4.0.2 mips cc rejects this.  */
5580  struct point {int x, y;};
5581  static struct point const zero = {0,0};
5582  /* AIX XL C 1.02.0.0 rejects this.
5583     It does not let you subtract one const X* pointer from another in
5584     an arm of an if-expression whose if-part is not a constant
5585     expression */
5586  const char *g = "string";
5587  pcpcc = &g + (g ? g-g : 0);
5588  /* HPUX 7.0 cc rejects these. */
5589  ++pcpcc;
5590  ppc = (char**) pcpcc;
5591  pcpcc = (char const *const *) ppc;
5592  { /* SCO 3.2v4 cc rejects this.  */
5593    char *t;
5594    char const *s = 0 ? (char *) 0 : (char const *) 0;
5595
5596    *t++ = 0;
5597    if (s) return 0;
5598  }
5599  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5600    int x[] = {25, 17};
5601    const int *foo = &x[0];
5602    ++foo;
5603  }
5604  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5605    typedef const int *iptr;
5606    iptr p = 0;
5607    ++p;
5608  }
5609  { /* AIX XL C 1.02.0.0 rejects this saying
5610       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5611    struct s { int j; const int *ap[3]; };
5612    struct s *b; b->j = 5;
5613  }
5614  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5615    const int foo = 10;
5616    if (!foo) return 0;
5617  }
5618  return !cs[0] && !zero.x;
5619#endif
5620
5621  ;
5622  return 0;
5623}
5624_ACEOF
5625if ac_fn_c_try_compile "$LINENO"; then :
5626  ac_cv_c_const=yes
5627else
5628  ac_cv_c_const=no
5629fi
5630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5631fi
5632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5633$as_echo "$ac_cv_c_const" >&6; }
5634if test $ac_cv_c_const = no; then
5635
5636$as_echo "#define const /**/" >>confdefs.h
5637
5638fi
5639
5640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5641$as_echo_n "checking for inline... " >&6; }
5642if test "${ac_cv_c_inline+set}" = set; then :
5643  $as_echo_n "(cached) " >&6
5644else
5645  ac_cv_c_inline=no
5646for ac_kw in inline __inline__ __inline; do
5647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5648/* end confdefs.h.  */
5649#ifndef __cplusplus
5650typedef int foo_t;
5651static $ac_kw foo_t static_foo () {return 0; }
5652$ac_kw foo_t foo () {return 0; }
5653#endif
5654
5655_ACEOF
5656if ac_fn_c_try_compile "$LINENO"; then :
5657  ac_cv_c_inline=$ac_kw
5658fi
5659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5660  test "$ac_cv_c_inline" != no && break
5661done
5662
5663fi
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5665$as_echo "$ac_cv_c_inline" >&6; }
5666
5667case $ac_cv_c_inline in
5668  inline | yes) ;;
5669  *)
5670    case $ac_cv_c_inline in
5671      no) ac_val=;;
5672      *) ac_val=$ac_cv_c_inline;;
5673    esac
5674    cat >>confdefs.h <<_ACEOF
5675#ifndef __cplusplus
5676#define inline $ac_val
5677#endif
5678_ACEOF
5679    ;;
5680esac
5681
5682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5683$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5684if test "${ac_cv_header_time+set}" = set; then :
5685  $as_echo_n "(cached) " >&6
5686else
5687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688/* end confdefs.h.  */
5689#include <sys/types.h>
5690#include <sys/time.h>
5691#include <time.h>
5692
5693int
5694main ()
5695{
5696if ((struct tm *) 0)
5697return 0;
5698  ;
5699  return 0;
5700}
5701_ACEOF
5702if ac_fn_c_try_compile "$LINENO"; then :
5703  ac_cv_header_time=yes
5704else
5705  ac_cv_header_time=no
5706fi
5707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5708fi
5709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5710$as_echo "$ac_cv_header_time" >&6; }
5711if test $ac_cv_header_time = yes; then
5712
5713$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5714
5715fi
5716
5717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5718$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5719if test "${ac_cv_struct_tm+set}" = set; then :
5720  $as_echo_n "(cached) " >&6
5721else
5722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723/* end confdefs.h.  */
5724#include <sys/types.h>
5725#include <time.h>
5726
5727int
5728main ()
5729{
5730struct tm tm;
5731				     int *p = &tm.tm_sec;
5732				     return !p;
5733  ;
5734  return 0;
5735}
5736_ACEOF
5737if ac_fn_c_try_compile "$LINENO"; then :
5738  ac_cv_struct_tm=time.h
5739else
5740  ac_cv_struct_tm=sys/time.h
5741fi
5742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743fi
5744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5745$as_echo "$ac_cv_struct_tm" >&6; }
5746if test $ac_cv_struct_tm = sys/time.h; then
5747
5748$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5749
5750fi
5751
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5753$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5754if test "${ac_cv_c_bigendian+set}" = set; then :
5755  $as_echo_n "(cached) " >&6
5756else
5757  ac_cv_c_bigendian=unknown
5758    # See if we're dealing with a universal compiler.
5759    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760/* end confdefs.h.  */
5761#ifndef __APPLE_CC__
5762	       not a universal capable compiler
5763	     #endif
5764	     typedef int dummy;
5765
5766_ACEOF
5767if ac_fn_c_try_compile "$LINENO"; then :
5768
5769	# Check for potential -arch flags.  It is not universal unless
5770	# there are at least two -arch flags with different values.
5771	ac_arch=
5772	ac_prev=
5773	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5774	 if test -n "$ac_prev"; then
5775	   case $ac_word in
5776	     i?86 | amd64 | ppc | ppc64)
5777	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5778		 ac_arch=$ac_word
5779	       else
5780		 ac_cv_c_bigendian=universal
5781		 break
5782	       fi
5783	       ;;
5784	   esac
5785	   ac_prev=
5786	 elif test "x$ac_word" = "x-arch"; then
5787	   ac_prev=arch
5788	 fi
5789       done
5790fi
5791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5792    if test $ac_cv_c_bigendian = unknown; then
5793      # See if sys/param.h defines the BYTE_ORDER macro.
5794      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795/* end confdefs.h.  */
5796#include <sys/types.h>
5797	     #include <sys/param.h>
5798
5799int
5800main ()
5801{
5802#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5803		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5804		     && LITTLE_ENDIAN)
5805	      bogus endian macros
5806	     #endif
5807
5808  ;
5809  return 0;
5810}
5811_ACEOF
5812if ac_fn_c_try_compile "$LINENO"; then :
5813  # It does; now see whether it defined to BIG_ENDIAN or not.
5814	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5815/* end confdefs.h.  */
5816#include <sys/types.h>
5817		#include <sys/param.h>
5818
5819int
5820main ()
5821{
5822#if BYTE_ORDER != BIG_ENDIAN
5823		 not big endian
5824		#endif
5825
5826  ;
5827  return 0;
5828}
5829_ACEOF
5830if ac_fn_c_try_compile "$LINENO"; then :
5831  ac_cv_c_bigendian=yes
5832else
5833  ac_cv_c_bigendian=no
5834fi
5835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5836fi
5837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5838    fi
5839    if test $ac_cv_c_bigendian = unknown; then
5840      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5841      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842/* end confdefs.h.  */
5843#include <limits.h>
5844
5845int
5846main ()
5847{
5848#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5849	      bogus endian macros
5850	     #endif
5851
5852  ;
5853  return 0;
5854}
5855_ACEOF
5856if ac_fn_c_try_compile "$LINENO"; then :
5857  # It does; now see whether it defined to _BIG_ENDIAN or not.
5858	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859/* end confdefs.h.  */
5860#include <limits.h>
5861
5862int
5863main ()
5864{
5865#ifndef _BIG_ENDIAN
5866		 not big endian
5867		#endif
5868
5869  ;
5870  return 0;
5871}
5872_ACEOF
5873if ac_fn_c_try_compile "$LINENO"; then :
5874  ac_cv_c_bigendian=yes
5875else
5876  ac_cv_c_bigendian=no
5877fi
5878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5879fi
5880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5881    fi
5882    if test $ac_cv_c_bigendian = unknown; then
5883      # Compile a test program.
5884      if test "$cross_compiling" = yes; then :
5885  # Try to guess by grepping values from an object file.
5886	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5887/* end confdefs.h.  */
5888short int ascii_mm[] =
5889		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5890		short int ascii_ii[] =
5891		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5892		int use_ascii (int i) {
5893		  return ascii_mm[i] + ascii_ii[i];
5894		}
5895		short int ebcdic_ii[] =
5896		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5897		short int ebcdic_mm[] =
5898		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5899		int use_ebcdic (int i) {
5900		  return ebcdic_mm[i] + ebcdic_ii[i];
5901		}
5902		extern int foo;
5903
5904int
5905main ()
5906{
5907return use_ascii (foo) == use_ebcdic (foo);
5908  ;
5909  return 0;
5910}
5911_ACEOF
5912if ac_fn_c_try_compile "$LINENO"; then :
5913  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5914	      ac_cv_c_bigendian=yes
5915	    fi
5916	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5917	      if test "$ac_cv_c_bigendian" = unknown; then
5918		ac_cv_c_bigendian=no
5919	      else
5920		# finding both strings is unlikely to happen, but who knows?
5921		ac_cv_c_bigendian=unknown
5922	      fi
5923	    fi
5924fi
5925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5926else
5927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5928/* end confdefs.h.  */
5929$ac_includes_default
5930int
5931main ()
5932{
5933
5934	     /* Are we little or big endian?  From Harbison&Steele.  */
5935	     union
5936	     {
5937	       long int l;
5938	       char c[sizeof (long int)];
5939	     } u;
5940	     u.l = 1;
5941	     return u.c[sizeof (long int) - 1] == 1;
5942
5943  ;
5944  return 0;
5945}
5946_ACEOF
5947if ac_fn_c_try_run "$LINENO"; then :
5948  ac_cv_c_bigendian=no
5949else
5950  ac_cv_c_bigendian=yes
5951fi
5952rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5953  conftest.$ac_objext conftest.beam conftest.$ac_ext
5954fi
5955
5956    fi
5957fi
5958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5959$as_echo "$ac_cv_c_bigendian" >&6; }
5960 case $ac_cv_c_bigendian in #(
5961   yes)
5962     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5963;; #(
5964   no)
5965      ;; #(
5966   universal)
5967
5968$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5969
5970     ;; #(
5971   *)
5972     as_fn_error "unknown endianness
5973 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5974 esac
5975
5976
5977# Checks for library functions.
5978for ac_func in vprintf
5979do :
5980  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
5981if test "x$ac_cv_func_vprintf" = x""yes; then :
5982  cat >>confdefs.h <<_ACEOF
5983#define HAVE_VPRINTF 1
5984_ACEOF
5985
5986ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
5987if test "x$ac_cv_func__doprnt" = x""yes; then :
5988
5989$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
5990
5991fi
5992
5993fi
5994done
5995
5996
5997for ac_func in atexit floor gettimeofday memset mkdir pow strchr strstr strtoul
5998do :
5999  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6000ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6001eval as_val=\$$as_ac_var
6002   if test "x$as_val" = x""yes; then :
6003  cat >>confdefs.h <<_ACEOF
6004#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6005_ACEOF
6006
6007fi
6008done
6009
6010
6011
6012# Check for processor.
6013  case $target_cpu in
6014    i?86)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Turning on x86 processor optimisations" >&5
6015$as_echo "Turning on x86 processor optimisations" >&6; }
6016
6017$as_echo "#define PROCESSOR_INTEL 1" >>confdefs.h
6018
6019           ALIGNLONGS=0
6020	   proc_i386=true
6021		CFLAGS="$CFLAGS -O3 -fstrength-reduce -frerun-loop-opt -Wall -Wno-unused -funroll-loops \
6022                    -ffast-math -falign-functions=2 -falign-jumps=2 -fexpensive-optimizations \
6023                    -falign-loops=2 -fschedule-insns2 -malign-double -fomit-frame-pointer -g \
6024		    -fno-strict-aliasing -pipe -mtune=$target_cpu -DCPU=$target_cpu"
6025           ;;
6026     amd64)
6027	   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Turning on amd64 processor optimisations" >&5
6028$as_echo "Turning on amd64 processor optimisations" >&6; }
6029
6030$as_echo "#define PROCESSOR_ADM64 1" >>confdefs.h
6031
6032           ALIGNLONGS=0
6033	   proc_x64=true
6034		CFLAGS="$CFLAGS -O3 -fstrength-reduce -frerun-loop-opt -Wall -Wno-unused -funroll-loops \
6035                    -ffast-math  -fexpensive-optimizations \
6036                     -malign-double -fomit-frame-pointer -g \
6037		    -fno-strict-aliasing -pipe -DCPU=$target_cpu"
6038           ;;
6039    sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Turning on sparc processor optimisations" >&5
6040$as_echo "Turning on sparc processor optimisations" >&6; }
6041
6042$as_echo "#define PROCESSOR_SPARC 1" >>confdefs.h
6043
6044	   ALIGNLONGS=1
6045	   proc_sparc=true
6046	   if test $target_cpu = sparc64 && test $CC_MAJOR -ge 3 ; then
6047		CFLAGS="$CFLAGS -mcpu=v9"
6048	   fi
6049	   CFLAGS="$CFLAGS -O3 -Wall -Wno-unused -funroll-loops \
6050                    -ffast-math -fomit-frame-pointer -g"
6051           ;;
6052    arm)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Turning on arm processor optimisations" >&5
6053$as_echo "Turning on arm processor optimisations" >&6; }
6054
6055$as_echo "#define PROCESSOR_ARM 1" >>confdefs.h
6056
6057           ALIGNLONGS=1
6058	   proc_arm=true
6059	   CFLAGS="$CFLAGS -O3 -Wall -ftracer -fstrength-reduce -Wno-unused -funroll-loops \
6060                    -fomit-frame-pointer -fstrict-aliasing -ffast-math \
6061	   	    "
6062
6063	   	    ;;
6064    *)     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Processor type unknown - Use generic optimisations" >&5
6065$as_echo "Processor type unknown - Use generic optimisations" >&6; }
6066           ALIGNLONGS=1
6067           optimum=no
6068	   CFLAGS="$CFLAGS -O3 -Wall -Wno-unused -funroll-loops \
6069                    -ffast-math -g"
6070           ;;
6071  esac
6072
6073 if test x$proc_arm = xtrue; then
6074  PROCESSOR_ARM_TRUE=
6075  PROCESSOR_ARM_FALSE='#'
6076else
6077  PROCESSOR_ARM_TRUE='#'
6078  PROCESSOR_ARM_FALSE=
6079fi
6080
6081
6082
6083$as_echo "#define ALIGNLONGS ALIGNLONGS" >>confdefs.h
6084
6085
6086
6087ac_config_files="$ac_config_files Makefile src/Makefile src/raze/Makefile src/star/Makefile src/mamez80/Makefile src/generator68k/Makefile src/cyclone/Makefile src/drz80/Makefile src/effect/Makefile src/blitter/Makefile src/ym2610/Makefile"
6088
6089cat >confcache <<\_ACEOF
6090# This file is a shell script that caches the results of configure
6091# tests run on this system so they can be shared between configure
6092# scripts and configure runs, see configure's option --config-cache.
6093# It is not useful on other systems.  If it contains results you don't
6094# want to keep, you may remove or edit it.
6095#
6096# config.status only pays attention to the cache file if you give it
6097# the --recheck option to rerun configure.
6098#
6099# `ac_cv_env_foo' variables (set or unset) will be overridden when
6100# loading this file, other *unset* `ac_cv_foo' will be assigned the
6101# following values.
6102
6103_ACEOF
6104
6105# The following way of writing the cache mishandles newlines in values,
6106# but we know of no workaround that is simple, portable, and efficient.
6107# So, we kill variables containing newlines.
6108# Ultrix sh set writes to stderr and can't be redirected directly,
6109# and sets the high bit in the cache file unless we assign to the vars.
6110(
6111  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6112    eval ac_val=\$$ac_var
6113    case $ac_val in #(
6114    *${as_nl}*)
6115      case $ac_var in #(
6116      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6117$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6118      esac
6119      case $ac_var in #(
6120      _ | IFS | as_nl) ;; #(
6121      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6122      *) { eval $ac_var=; unset $ac_var;} ;;
6123      esac ;;
6124    esac
6125  done
6126
6127  (set) 2>&1 |
6128    case $as_nl`(ac_space=' '; set) 2>&1` in #(
6129    *${as_nl}ac_space=\ *)
6130      # `set' does not quote correctly, so add quotes: double-quote
6131      # substitution turns \\\\ into \\, and sed turns \\ into \.
6132      sed -n \
6133	"s/'/'\\\\''/g;
6134	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6135      ;; #(
6136    *)
6137      # `set' quotes correctly as required by POSIX, so do not add quotes.
6138      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6139      ;;
6140    esac |
6141    sort
6142) |
6143  sed '
6144     /^ac_cv_env_/b end
6145     t clear
6146     :clear
6147     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6148     t end
6149     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6150     :end' >>confcache
6151if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6152  if test -w "$cache_file"; then
6153    test "x$cache_file" != "x/dev/null" &&
6154      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6155$as_echo "$as_me: updating cache $cache_file" >&6;}
6156    cat confcache >$cache_file
6157  else
6158    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6159$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6160  fi
6161fi
6162rm -f confcache
6163
6164test "x$prefix" = xNONE && prefix=$ac_default_prefix
6165# Let make expand exec_prefix.
6166test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6167
6168DEFS=-DHAVE_CONFIG_H
6169
6170ac_libobjs=
6171ac_ltlibobjs=
6172for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6173  # 1. Remove the extension, and $U if already installed.
6174  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6175  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6176  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6177  #    will be set to the directory where LIBOBJS objects are built.
6178  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6179  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6180done
6181LIBOBJS=$ac_libobjs
6182
6183LTLIBOBJS=$ac_ltlibobjs
6184
6185
6186 if test -n "$EXEEXT"; then
6187  am__EXEEXT_TRUE=
6188  am__EXEEXT_FALSE='#'
6189else
6190  am__EXEEXT_TRUE='#'
6191  am__EXEEXT_FALSE=
6192fi
6193
6194if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6195  as_fn_error "conditional \"AMDEP\" was never defined.
6196Usually this means the macro was only invoked conditionally." "$LINENO" 5
6197fi
6198if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6199  as_fn_error "conditional \"am__fastdepCC\" was never defined.
6200Usually this means the macro was only invoked conditionally." "$LINENO" 5
6201fi
6202if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
6203  as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
6204Usually this means the macro was only invoked conditionally." "$LINENO" 5
6205fi
6206if test -z "${HAVE_NASM_TRUE}" && test -z "${HAVE_NASM_FALSE}"; then
6207  as_fn_error "conditional \"HAVE_NASM\" was never defined.
6208Usually this means the macro was only invoked conditionally." "$LINENO" 5
6209fi
6210if test -z "${USE_STARSCREAM_TRUE}" && test -z "${USE_STARSCREAM_FALSE}"; then
6211  as_fn_error "conditional \"USE_STARSCREAM\" was never defined.
6212Usually this means the macro was only invoked conditionally." "$LINENO" 5
6213fi
6214if test -z "${USE_RAZE_TRUE}" && test -z "${USE_RAZE_FALSE}"; then
6215  as_fn_error "conditional \"USE_RAZE\" was never defined.
6216Usually this means the macro was only invoked conditionally." "$LINENO" 5
6217fi
6218if test -z "${USE_GENERATOR68K_TRUE}" && test -z "${USE_GENERATOR68K_FALSE}"; then
6219  as_fn_error "conditional \"USE_GENERATOR68K\" was never defined.
6220Usually this means the macro was only invoked conditionally." "$LINENO" 5
6221fi
6222if test -z "${USE_CYCLONE_TRUE}" && test -z "${USE_CYCLONE_FALSE}"; then
6223  as_fn_error "conditional \"USE_CYCLONE\" was never defined.
6224Usually this means the macro was only invoked conditionally." "$LINENO" 5
6225fi
6226if test -z "${USE_MAMEZ80_TRUE}" && test -z "${USE_MAMEZ80_FALSE}"; then
6227  as_fn_error "conditional \"USE_MAMEZ80\" was never defined.
6228Usually this means the macro was only invoked conditionally." "$LINENO" 5
6229fi
6230if test -z "${USE_DRZ80_TRUE}" && test -z "${USE_DRZ80_FALSE}"; then
6231  as_fn_error "conditional \"USE_DRZ80\" was never defined.
6232Usually this means the macro was only invoked conditionally." "$LINENO" 5
6233fi
6234if test -z "${USE_GUI_TRUE}" && test -z "${USE_GUI_FALSE}"; then
6235  as_fn_error "conditional \"USE_GUI\" was never defined.
6236Usually this means the macro was only invoked conditionally." "$LINENO" 5
6237fi
6238if test -z "${USE_GP2X_TRUE}" && test -z "${USE_GP2X_FALSE}"; then
6239  as_fn_error "conditional \"USE_GP2X\" was never defined.
6240Usually this means the macro was only invoked conditionally." "$LINENO" 5
6241fi
6242if test -z "${USE_WIZ_TRUE}" && test -z "${USE_WIZ_FALSE}"; then
6243  as_fn_error "conditional \"USE_WIZ\" was never defined.
6244Usually this means the macro was only invoked conditionally." "$LINENO" 5
6245fi
6246
6247if test -z "${PROCESSOR_ARM_TRUE}" && test -z "${PROCESSOR_ARM_FALSE}"; then
6248  as_fn_error "conditional \"PROCESSOR_ARM\" was never defined.
6249Usually this means the macro was only invoked conditionally." "$LINENO" 5
6250fi
6251
6252: ${CONFIG_STATUS=./config.status}
6253ac_write_fail=0
6254ac_clean_files_save=$ac_clean_files
6255ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6256{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6257$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6258as_write_fail=0
6259cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6260#! $SHELL
6261# Generated by $as_me.
6262# Run this file to recreate the current configuration.
6263# Compiler output produced by configure, useful for debugging
6264# configure, is in config.log if it exists.
6265
6266debug=false
6267ac_cs_recheck=false
6268ac_cs_silent=false
6269
6270SHELL=\${CONFIG_SHELL-$SHELL}
6271export SHELL
6272_ASEOF
6273cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6274## -------------------- ##
6275## M4sh Initialization. ##
6276## -------------------- ##
6277
6278# Be more Bourne compatible
6279DUALCASE=1; export DUALCASE # for MKS sh
6280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6281  emulate sh
6282  NULLCMD=:
6283  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6284  # is contrary to our usage.  Disable this feature.
6285  alias -g '${1+"$@"}'='"$@"'
6286  setopt NO_GLOB_SUBST
6287else
6288  case `(set -o) 2>/dev/null` in #(
6289  *posix*) :
6290    set -o posix ;; #(
6291  *) :
6292     ;;
6293esac
6294fi
6295
6296
6297as_nl='
6298'
6299export as_nl
6300# Printing a long string crashes Solaris 7 /usr/bin/printf.
6301as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6302as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6303as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6304# Prefer a ksh shell builtin over an external printf program on Solaris,
6305# but without wasting forks for bash or zsh.
6306if test -z "$BASH_VERSION$ZSH_VERSION" \
6307    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6308  as_echo='print -r --'
6309  as_echo_n='print -rn --'
6310elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6311  as_echo='printf %s\n'
6312  as_echo_n='printf %s'
6313else
6314  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6315    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6316    as_echo_n='/usr/ucb/echo -n'
6317  else
6318    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6319    as_echo_n_body='eval
6320      arg=$1;
6321      case $arg in #(
6322      *"$as_nl"*)
6323	expr "X$arg" : "X\\(.*\\)$as_nl";
6324	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6325      esac;
6326      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6327    '
6328    export as_echo_n_body
6329    as_echo_n='sh -c $as_echo_n_body as_echo'
6330  fi
6331  export as_echo_body
6332  as_echo='sh -c $as_echo_body as_echo'
6333fi
6334
6335# The user is always right.
6336if test "${PATH_SEPARATOR+set}" != set; then
6337  PATH_SEPARATOR=:
6338  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6339    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6340      PATH_SEPARATOR=';'
6341  }
6342fi
6343
6344
6345# IFS
6346# We need space, tab and new line, in precisely that order.  Quoting is
6347# there to prevent editors from complaining about space-tab.
6348# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6349# splitting by setting IFS to empty value.)
6350IFS=" ""	$as_nl"
6351
6352# Find who we are.  Look in the path if we contain no directory separator.
6353case $0 in #((
6354  *[\\/]* ) as_myself=$0 ;;
6355  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356for as_dir in $PATH
6357do
6358  IFS=$as_save_IFS
6359  test -z "$as_dir" && as_dir=.
6360    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6361  done
6362IFS=$as_save_IFS
6363
6364     ;;
6365esac
6366# We did not find ourselves, most probably we were run as `sh COMMAND'
6367# in which case we are not to be found in the path.
6368if test "x$as_myself" = x; then
6369  as_myself=$0
6370fi
6371if test ! -f "$as_myself"; then
6372  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6373  exit 1
6374fi
6375
6376# Unset variables that we do not need and which cause bugs (e.g. in
6377# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
6378# suppresses any "Segmentation fault" message there.  '((' could
6379# trigger a bug in pdksh 5.2.14.
6380for as_var in BASH_ENV ENV MAIL MAILPATH
6381do eval test x\${$as_var+set} = xset \
6382  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6383done
6384PS1='$ '
6385PS2='> '
6386PS4='+ '
6387
6388# NLS nuisances.
6389LC_ALL=C
6390export LC_ALL
6391LANGUAGE=C
6392export LANGUAGE
6393
6394# CDPATH.
6395(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6396
6397
6398# as_fn_error ERROR [LINENO LOG_FD]
6399# ---------------------------------
6400# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6401# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6402# script with status $?, using 1 if that was 0.
6403as_fn_error ()
6404{
6405  as_status=$?; test $as_status -eq 0 && as_status=1
6406  if test "$3"; then
6407    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6408    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6409  fi
6410  $as_echo "$as_me: error: $1" >&2
6411  as_fn_exit $as_status
6412} # as_fn_error
6413
6414
6415# as_fn_set_status STATUS
6416# -----------------------
6417# Set $? to STATUS, without forking.
6418as_fn_set_status ()
6419{
6420  return $1
6421} # as_fn_set_status
6422
6423# as_fn_exit STATUS
6424# -----------------
6425# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6426as_fn_exit ()
6427{
6428  set +e
6429  as_fn_set_status $1
6430  exit $1
6431} # as_fn_exit
6432
6433# as_fn_unset VAR
6434# ---------------
6435# Portably unset VAR.
6436as_fn_unset ()
6437{
6438  { eval $1=; unset $1;}
6439}
6440as_unset=as_fn_unset
6441# as_fn_append VAR VALUE
6442# ----------------------
6443# Append the text in VALUE to the end of the definition contained in VAR. Take
6444# advantage of any shell optimizations that allow amortized linear growth over
6445# repeated appends, instead of the typical quadratic growth present in naive
6446# implementations.
6447if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6448  eval 'as_fn_append ()
6449  {
6450    eval $1+=\$2
6451  }'
6452else
6453  as_fn_append ()
6454  {
6455    eval $1=\$$1\$2
6456  }
6457fi # as_fn_append
6458
6459# as_fn_arith ARG...
6460# ------------------
6461# Perform arithmetic evaluation on the ARGs, and store the result in the
6462# global $as_val. Take advantage of shells that can avoid forks. The arguments
6463# must be portable across $(()) and expr.
6464if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6465  eval 'as_fn_arith ()
6466  {
6467    as_val=$(( $* ))
6468  }'
6469else
6470  as_fn_arith ()
6471  {
6472    as_val=`expr "$@" || test $? -eq 1`
6473  }
6474fi # as_fn_arith
6475
6476
6477if expr a : '\(a\)' >/dev/null 2>&1 &&
6478   test "X`expr 00001 : '.*\(...\)'`" = X001; then
6479  as_expr=expr
6480else
6481  as_expr=false
6482fi
6483
6484if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6485  as_basename=basename
6486else
6487  as_basename=false
6488fi
6489
6490if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6491  as_dirname=dirname
6492else
6493  as_dirname=false
6494fi
6495
6496as_me=`$as_basename -- "$0" ||
6497$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6498	 X"$0" : 'X\(//\)$' \| \
6499	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6500$as_echo X/"$0" |
6501    sed '/^.*\/\([^/][^/]*\)\/*$/{
6502	    s//\1/
6503	    q
6504	  }
6505	  /^X\/\(\/\/\)$/{
6506	    s//\1/
6507	    q
6508	  }
6509	  /^X\/\(\/\).*/{
6510	    s//\1/
6511	    q
6512	  }
6513	  s/.*/./; q'`
6514
6515# Avoid depending upon Character Ranges.
6516as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6517as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6518as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6519as_cr_digits='0123456789'
6520as_cr_alnum=$as_cr_Letters$as_cr_digits
6521
6522ECHO_C= ECHO_N= ECHO_T=
6523case `echo -n x` in #(((((
6524-n*)
6525  case `echo 'xy\c'` in
6526  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
6527  xy)  ECHO_C='\c';;
6528  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
6529       ECHO_T='	';;
6530  esac;;
6531*)
6532  ECHO_N='-n';;
6533esac
6534
6535rm -f conf$$ conf$$.exe conf$$.file
6536if test -d conf$$.dir; then
6537  rm -f conf$$.dir/conf$$.file
6538else
6539  rm -f conf$$.dir
6540  mkdir conf$$.dir 2>/dev/null
6541fi
6542if (echo >conf$$.file) 2>/dev/null; then
6543  if ln -s conf$$.file conf$$ 2>/dev/null; then
6544    as_ln_s='ln -s'
6545    # ... but there are two gotchas:
6546    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6547    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6548    # In both cases, we have to default to `cp -p'.
6549    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6550      as_ln_s='cp -p'
6551  elif ln conf$$.file conf$$ 2>/dev/null; then
6552    as_ln_s=ln
6553  else
6554    as_ln_s='cp -p'
6555  fi
6556else
6557  as_ln_s='cp -p'
6558fi
6559rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6560rmdir conf$$.dir 2>/dev/null
6561
6562
6563# as_fn_mkdir_p
6564# -------------
6565# Create "$as_dir" as a directory, including parents if necessary.
6566as_fn_mkdir_p ()
6567{
6568
6569  case $as_dir in #(
6570  -*) as_dir=./$as_dir;;
6571  esac
6572  test -d "$as_dir" || eval $as_mkdir_p || {
6573    as_dirs=
6574    while :; do
6575      case $as_dir in #(
6576      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6577      *) as_qdir=$as_dir;;
6578      esac
6579      as_dirs="'$as_qdir' $as_dirs"
6580      as_dir=`$as_dirname -- "$as_dir" ||
6581$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6582	 X"$as_dir" : 'X\(//\)[^/]' \| \
6583	 X"$as_dir" : 'X\(//\)$' \| \
6584	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6585$as_echo X"$as_dir" |
6586    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6587	    s//\1/
6588	    q
6589	  }
6590	  /^X\(\/\/\)[^/].*/{
6591	    s//\1/
6592	    q
6593	  }
6594	  /^X\(\/\/\)$/{
6595	    s//\1/
6596	    q
6597	  }
6598	  /^X\(\/\).*/{
6599	    s//\1/
6600	    q
6601	  }
6602	  s/.*/./; q'`
6603      test -d "$as_dir" && break
6604    done
6605    test -z "$as_dirs" || eval "mkdir $as_dirs"
6606  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6607
6608
6609} # as_fn_mkdir_p
6610if mkdir -p . 2>/dev/null; then
6611  as_mkdir_p='mkdir -p "$as_dir"'
6612else
6613  test -d ./-p && rmdir ./-p
6614  as_mkdir_p=false
6615fi
6616
6617if test -x / >/dev/null 2>&1; then
6618  as_test_x='test -x'
6619else
6620  if ls -dL / >/dev/null 2>&1; then
6621    as_ls_L_option=L
6622  else
6623    as_ls_L_option=
6624  fi
6625  as_test_x='
6626    eval sh -c '\''
6627      if test -d "$1"; then
6628	test -d "$1/.";
6629      else
6630	case $1 in #(
6631	-*)set "./$1";;
6632	esac;
6633	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6634	???[sx]*):;;*)false;;esac;fi
6635    '\'' sh
6636  '
6637fi
6638as_executable_p=$as_test_x
6639
6640# Sed expression to map a string onto a valid CPP name.
6641as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6642
6643# Sed expression to map a string onto a valid variable name.
6644as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6645
6646
6647exec 6>&1
6648## ----------------------------------- ##
6649## Main body of $CONFIG_STATUS script. ##
6650## ----------------------------------- ##
6651_ASEOF
6652test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6653
6654cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6655# Save the log message, to keep $0 and so on meaningful, and to
6656# report actual input values of CONFIG_FILES etc. instead of their
6657# values after options handling.
6658ac_log="
6659This file was extended by gngeo $as_me 0.8, which was
6660generated by GNU Autoconf 2.65.  Invocation command line was
6661
6662  CONFIG_FILES    = $CONFIG_FILES
6663  CONFIG_HEADERS  = $CONFIG_HEADERS
6664  CONFIG_LINKS    = $CONFIG_LINKS
6665  CONFIG_COMMANDS = $CONFIG_COMMANDS
6666  $ $0 $@
6667
6668on `(hostname || uname -n) 2>/dev/null | sed 1q`
6669"
6670
6671_ACEOF
6672
6673case $ac_config_files in *"
6674"*) set x $ac_config_files; shift; ac_config_files=$*;;
6675esac
6676
6677case $ac_config_headers in *"
6678"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6679esac
6680
6681
6682cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6683# Files that config.status was made for.
6684config_files="$ac_config_files"
6685config_headers="$ac_config_headers"
6686config_commands="$ac_config_commands"
6687
6688_ACEOF
6689
6690cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6691ac_cs_usage="\
6692\`$as_me' instantiates files and other configuration actions
6693from templates according to the current configuration.  Unless the files
6694and actions are specified as TAGs, all are instantiated by default.
6695
6696Usage: $0 [OPTION]... [TAG]...
6697
6698  -h, --help       print this help, then exit
6699  -V, --version    print version number and configuration settings, then exit
6700      --config     print configuration, then exit
6701  -q, --quiet, --silent
6702                   do not print progress messages
6703  -d, --debug      don't remove temporary files
6704      --recheck    update $as_me by reconfiguring in the same conditions
6705      --file=FILE[:TEMPLATE]
6706                   instantiate the configuration file FILE
6707      --header=FILE[:TEMPLATE]
6708                   instantiate the configuration header FILE
6709
6710Configuration files:
6711$config_files
6712
6713Configuration headers:
6714$config_headers
6715
6716Configuration commands:
6717$config_commands
6718
6719Report bugs to the package provider."
6720
6721_ACEOF
6722cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6723ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6724ac_cs_version="\\
6725gngeo config.status 0.8
6726configured by $0, generated by GNU Autoconf 2.65,
6727  with options \\"\$ac_cs_config\\"
6728
6729Copyright (C) 2009 Free Software Foundation, Inc.
6730This config.status script is free software; the Free Software Foundation
6731gives unlimited permission to copy, distribute and modify it."
6732
6733ac_pwd='$ac_pwd'
6734srcdir='$srcdir'
6735INSTALL='$INSTALL'
6736MKDIR_P='$MKDIR_P'
6737AWK='$AWK'
6738test -n "\$AWK" || AWK=awk
6739_ACEOF
6740
6741cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6742# The default lists apply if the user does not specify any file.
6743ac_need_defaults=:
6744while test $# != 0
6745do
6746  case $1 in
6747  --*=*)
6748    ac_option=`expr "X$1" : 'X\([^=]*\)='`
6749    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6750    ac_shift=:
6751    ;;
6752  *)
6753    ac_option=$1
6754    ac_optarg=$2
6755    ac_shift=shift
6756    ;;
6757  esac
6758
6759  case $ac_option in
6760  # Handling of the options.
6761  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6762    ac_cs_recheck=: ;;
6763  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6764    $as_echo "$ac_cs_version"; exit ;;
6765  --config | --confi | --conf | --con | --co | --c )
6766    $as_echo "$ac_cs_config"; exit ;;
6767  --debug | --debu | --deb | --de | --d | -d )
6768    debug=: ;;
6769  --file | --fil | --fi | --f )
6770    $ac_shift
6771    case $ac_optarg in
6772    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6773    esac
6774    as_fn_append CONFIG_FILES " '$ac_optarg'"
6775    ac_need_defaults=false;;
6776  --header | --heade | --head | --hea )
6777    $ac_shift
6778    case $ac_optarg in
6779    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6780    esac
6781    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6782    ac_need_defaults=false;;
6783  --he | --h)
6784    # Conflict between --help and --header
6785    as_fn_error "ambiguous option: \`$1'
6786Try \`$0 --help' for more information.";;
6787  --help | --hel | -h )
6788    $as_echo "$ac_cs_usage"; exit ;;
6789  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6790  | -silent | --silent | --silen | --sile | --sil | --si | --s)
6791    ac_cs_silent=: ;;
6792
6793  # This is an error.
6794  -*) as_fn_error "unrecognized option: \`$1'
6795Try \`$0 --help' for more information." ;;
6796
6797  *) as_fn_append ac_config_targets " $1"
6798     ac_need_defaults=false ;;
6799
6800  esac
6801  shift
6802done
6803
6804ac_configure_extra_args=
6805
6806if $ac_cs_silent; then
6807  exec 6>/dev/null
6808  ac_configure_extra_args="$ac_configure_extra_args --silent"
6809fi
6810
6811_ACEOF
6812cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6813if \$ac_cs_recheck; then
6814  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6815  shift
6816  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6817  CONFIG_SHELL='$SHELL'
6818  export CONFIG_SHELL
6819  exec "\$@"
6820fi
6821
6822_ACEOF
6823cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6824exec 5>>config.log
6825{
6826  echo
6827  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6828## Running $as_me. ##
6829_ASBOX
6830  $as_echo "$ac_log"
6831} >&5
6832
6833_ACEOF
6834cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6835#
6836# INIT-COMMANDS
6837#
6838AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6839
6840_ACEOF
6841
6842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6843
6844# Handling of arguments.
6845for ac_config_target in $ac_config_targets
6846do
6847  case $ac_config_target in
6848    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6849    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6850    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6851    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6852    "src/raze/Makefile") CONFIG_FILES="$CONFIG_FILES src/raze/Makefile" ;;
6853    "src/star/Makefile") CONFIG_FILES="$CONFIG_FILES src/star/Makefile" ;;
6854    "src/mamez80/Makefile") CONFIG_FILES="$CONFIG_FILES src/mamez80/Makefile" ;;
6855    "src/generator68k/Makefile") CONFIG_FILES="$CONFIG_FILES src/generator68k/Makefile" ;;
6856    "src/cyclone/Makefile") CONFIG_FILES="$CONFIG_FILES src/cyclone/Makefile" ;;
6857    "src/drz80/Makefile") CONFIG_FILES="$CONFIG_FILES src/drz80/Makefile" ;;
6858    "src/effect/Makefile") CONFIG_FILES="$CONFIG_FILES src/effect/Makefile" ;;
6859    "src/blitter/Makefile") CONFIG_FILES="$CONFIG_FILES src/blitter/Makefile" ;;
6860    "src/ym2610/Makefile") CONFIG_FILES="$CONFIG_FILES src/ym2610/Makefile" ;;
6861
6862  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6863  esac
6864done
6865
6866
6867# If the user did not use the arguments to specify the items to instantiate,
6868# then the envvar interface is used.  Set only those that are not.
6869# We use the long form for the default assignment because of an extremely
6870# bizarre bug on SunOS 4.1.3.
6871if $ac_need_defaults; then
6872  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6873  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6874  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6875fi
6876
6877# Have a temporary directory for convenience.  Make it in the build tree
6878# simply because there is no reason against having it here, and in addition,
6879# creating and moving files from /tmp can sometimes cause problems.
6880# Hook for its removal unless debugging.
6881# Note that there is a small window in which the directory will not be cleaned:
6882# after its creation but before its name has been assigned to `$tmp'.
6883$debug ||
6884{
6885  tmp=
6886  trap 'exit_status=$?
6887  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6888' 0
6889  trap 'as_fn_exit 1' 1 2 13 15
6890}
6891# Create a (secure) tmp directory for tmp files.
6892
6893{
6894  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6895  test -n "$tmp" && test -d "$tmp"
6896}  ||
6897{
6898  tmp=./conf$$-$RANDOM
6899  (umask 077 && mkdir "$tmp")
6900} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6901
6902# Set up the scripts for CONFIG_FILES section.
6903# No need to generate them if there are no CONFIG_FILES.
6904# This happens for instance with `./config.status config.h'.
6905if test -n "$CONFIG_FILES"; then
6906
6907
6908ac_cr=`echo X | tr X '\015'`
6909# On cygwin, bash can eat \r inside `` if the user requested igncr.
6910# But we know of no other shell where ac_cr would be empty at this
6911# point, so we can use a bashism as a fallback.
6912if test "x$ac_cr" = x; then
6913  eval ac_cr=\$\'\\r\'
6914fi
6915ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6916if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6917  ac_cs_awk_cr='\r'
6918else
6919  ac_cs_awk_cr=$ac_cr
6920fi
6921
6922echo 'BEGIN {' >"$tmp/subs1.awk" &&
6923_ACEOF
6924
6925
6926{
6927  echo "cat >conf$$subs.awk <<_ACEOF" &&
6928  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6929  echo "_ACEOF"
6930} >conf$$subs.sh ||
6931  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6932ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6933ac_delim='%!_!# '
6934for ac_last_try in false false false false false :; do
6935  . ./conf$$subs.sh ||
6936    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6937
6938  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6939  if test $ac_delim_n = $ac_delim_num; then
6940    break
6941  elif $ac_last_try; then
6942    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6943  else
6944    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6945  fi
6946done
6947rm -f conf$$subs.sh
6948
6949cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6950cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6951_ACEOF
6952sed -n '
6953h
6954s/^/S["/; s/!.*/"]=/
6955p
6956g
6957s/^[^!]*!//
6958:repl
6959t repl
6960s/'"$ac_delim"'$//
6961t delim
6962:nl
6963h
6964s/\(.\{148\}\)..*/\1/
6965t more1
6966s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6967p
6968n
6969b repl
6970:more1
6971s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6972p
6973g
6974s/.\{148\}//
6975t nl
6976:delim
6977h
6978s/\(.\{148\}\)..*/\1/
6979t more2
6980s/["\\]/\\&/g; s/^/"/; s/$/"/
6981p
6982b
6983:more2
6984s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6985p
6986g
6987s/.\{148\}//
6988t delim
6989' <conf$$subs.awk | sed '
6990/^[^""]/{
6991  N
6992  s/\n//
6993}
6994' >>$CONFIG_STATUS || ac_write_fail=1
6995rm -f conf$$subs.awk
6996cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6997_ACAWK
6998cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6999  for (key in S) S_is_set[key] = 1
7000  FS = ""
7001
7002}
7003{
7004  line = $ 0
7005  nfields = split(line, field, "@")
7006  substed = 0
7007  len = length(field[1])
7008  for (i = 2; i < nfields; i++) {
7009    key = field[i]
7010    keylen = length(key)
7011    if (S_is_set[key]) {
7012      value = S[key]
7013      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7014      len += length(value) + length(field[++i])
7015      substed = 1
7016    } else
7017      len += 1 + keylen
7018  }
7019
7020  print line
7021}
7022
7023_ACAWK
7024_ACEOF
7025cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7026if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7027  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7028else
7029  cat
7030fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7031  || as_fn_error "could not setup config files machinery" "$LINENO" 5
7032_ACEOF
7033
7034# VPATH may cause trouble with some makes, so we remove $(srcdir),
7035# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7036# trailing colons and then remove the whole line if VPATH becomes empty
7037# (actually we leave an empty line to preserve line numbers).
7038if test "x$srcdir" = x.; then
7039  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
7040s/:*\$(srcdir):*/:/
7041s/:*\${srcdir}:*/:/
7042s/:*@srcdir@:*/:/
7043s/^\([^=]*=[	 ]*\):*/\1/
7044s/:*$//
7045s/^[^=]*=[	 ]*$//
7046}'
7047fi
7048
7049cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7050fi # test -n "$CONFIG_FILES"
7051
7052# Set up the scripts for CONFIG_HEADERS section.
7053# No need to generate them if there are no CONFIG_HEADERS.
7054# This happens for instance with `./config.status Makefile'.
7055if test -n "$CONFIG_HEADERS"; then
7056cat >"$tmp/defines.awk" <<\_ACAWK ||
7057BEGIN {
7058_ACEOF
7059
7060# Transform confdefs.h into an awk script `defines.awk', embedded as
7061# here-document in config.status, that substitutes the proper values into
7062# config.h.in to produce config.h.
7063
7064# Create a delimiter string that does not exist in confdefs.h, to ease
7065# handling of long lines.
7066ac_delim='%!_!# '
7067for ac_last_try in false false :; do
7068  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7069  if test -z "$ac_t"; then
7070    break
7071  elif $ac_last_try; then
7072    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
7073  else
7074    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7075  fi
7076done
7077
7078# For the awk script, D is an array of macro values keyed by name,
7079# likewise P contains macro parameters if any.  Preserve backslash
7080# newline sequences.
7081
7082ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7083sed -n '
7084s/.\{148\}/&'"$ac_delim"'/g
7085t rset
7086:rset
7087s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
7088t def
7089d
7090:def
7091s/\\$//
7092t bsnl
7093s/["\\]/\\&/g
7094s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
7095D["\1"]=" \3"/p
7096s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
7097d
7098:bsnl
7099s/["\\]/\\&/g
7100s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
7101D["\1"]=" \3\\\\\\n"\\/p
7102t cont
7103s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7104t cont
7105d
7106:cont
7107n
7108s/.\{148\}/&'"$ac_delim"'/g
7109t clear
7110:clear
7111s/\\$//
7112t bsnlc
7113s/["\\]/\\&/g; s/^/"/; s/$/"/p
7114d
7115:bsnlc
7116s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7117b cont
7118' <confdefs.h | sed '
7119s/'"$ac_delim"'/"\\\
7120"/g' >>$CONFIG_STATUS || ac_write_fail=1
7121
7122cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7123  for (key in D) D_is_set[key] = 1
7124  FS = ""
7125}
7126/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7127  line = \$ 0
7128  split(line, arg, " ")
7129  if (arg[1] == "#") {
7130    defundef = arg[2]
7131    mac1 = arg[3]
7132  } else {
7133    defundef = substr(arg[1], 2)
7134    mac1 = arg[2]
7135  }
7136  split(mac1, mac2, "(") #)
7137  macro = mac2[1]
7138  prefix = substr(line, 1, index(line, defundef) - 1)
7139  if (D_is_set[macro]) {
7140    # Preserve the white space surrounding the "#".
7141    print prefix "define", macro P[macro] D[macro]
7142    next
7143  } else {
7144    # Replace #undef with comments.  This is necessary, for example,
7145    # in the case of _POSIX_SOURCE, which is predefined and required
7146    # on some systems where configure will not decide to define it.
7147    if (defundef == "undef") {
7148      print "/*", prefix defundef, macro, "*/"
7149      next
7150    }
7151  }
7152}
7153{ print }
7154_ACAWK
7155_ACEOF
7156cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7157  as_fn_error "could not setup config headers machinery" "$LINENO" 5
7158fi # test -n "$CONFIG_HEADERS"
7159
7160
7161eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
7162shift
7163for ac_tag
7164do
7165  case $ac_tag in
7166  :[FHLC]) ac_mode=$ac_tag; continue;;
7167  esac
7168  case $ac_mode$ac_tag in
7169  :[FHL]*:*);;
7170  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
7171  :[FH]-) ac_tag=-:-;;
7172  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7173  esac
7174  ac_save_IFS=$IFS
7175  IFS=:
7176  set x $ac_tag
7177  IFS=$ac_save_IFS
7178  shift
7179  ac_file=$1
7180  shift
7181
7182  case $ac_mode in
7183  :L) ac_source=$1;;
7184  :[FH])
7185    ac_file_inputs=
7186    for ac_f
7187    do
7188      case $ac_f in
7189      -) ac_f="$tmp/stdin";;
7190      *) # Look for the file first in the build tree, then in the source tree
7191	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
7192	 # because $ac_f cannot contain `:'.
7193	 test -f "$ac_f" ||
7194	   case $ac_f in
7195	   [\\/$]*) false;;
7196	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7197	   esac ||
7198	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7199      esac
7200      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7201      as_fn_append ac_file_inputs " '$ac_f'"
7202    done
7203
7204    # Let's still pretend it is `configure' which instantiates (i.e., don't
7205    # use $as_me), people would be surprised to read:
7206    #    /* config.h.  Generated by config.status.  */
7207    configure_input='Generated from '`
7208	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7209	`' by configure.'
7210    if test x"$ac_file" != x-; then
7211      configure_input="$ac_file.  $configure_input"
7212      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7213$as_echo "$as_me: creating $ac_file" >&6;}
7214    fi
7215    # Neutralize special characters interpreted by sed in replacement strings.
7216    case $configure_input in #(
7217    *\&* | *\|* | *\\* )
7218       ac_sed_conf_input=`$as_echo "$configure_input" |
7219       sed 's/[\\\\&|]/\\\\&/g'`;; #(
7220    *) ac_sed_conf_input=$configure_input;;
7221    esac
7222
7223    case $ac_tag in
7224    *:-:* | *:-) cat >"$tmp/stdin" \
7225      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
7226    esac
7227    ;;
7228  esac
7229
7230  ac_dir=`$as_dirname -- "$ac_file" ||
7231$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7232	 X"$ac_file" : 'X\(//\)[^/]' \| \
7233	 X"$ac_file" : 'X\(//\)$' \| \
7234	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7235$as_echo X"$ac_file" |
7236    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7237	    s//\1/
7238	    q
7239	  }
7240	  /^X\(\/\/\)[^/].*/{
7241	    s//\1/
7242	    q
7243	  }
7244	  /^X\(\/\/\)$/{
7245	    s//\1/
7246	    q
7247	  }
7248	  /^X\(\/\).*/{
7249	    s//\1/
7250	    q
7251	  }
7252	  s/.*/./; q'`
7253  as_dir="$ac_dir"; as_fn_mkdir_p
7254  ac_builddir=.
7255
7256case "$ac_dir" in
7257.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7258*)
7259  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7260  # A ".." for each directory in $ac_dir_suffix.
7261  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7262  case $ac_top_builddir_sub in
7263  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7264  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7265  esac ;;
7266esac
7267ac_abs_top_builddir=$ac_pwd
7268ac_abs_builddir=$ac_pwd$ac_dir_suffix
7269# for backward compatibility:
7270ac_top_builddir=$ac_top_build_prefix
7271
7272case $srcdir in
7273  .)  # We are building in place.
7274    ac_srcdir=.
7275    ac_top_srcdir=$ac_top_builddir_sub
7276    ac_abs_top_srcdir=$ac_pwd ;;
7277  [\\/]* | ?:[\\/]* )  # Absolute name.
7278    ac_srcdir=$srcdir$ac_dir_suffix;
7279    ac_top_srcdir=$srcdir
7280    ac_abs_top_srcdir=$srcdir ;;
7281  *) # Relative name.
7282    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7283    ac_top_srcdir=$ac_top_build_prefix$srcdir
7284    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7285esac
7286ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7287
7288
7289  case $ac_mode in
7290  :F)
7291  #
7292  # CONFIG_FILE
7293  #
7294
7295  case $INSTALL in
7296  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7297  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7298  esac
7299  ac_MKDIR_P=$MKDIR_P
7300  case $MKDIR_P in
7301  [\\/$]* | ?:[\\/]* ) ;;
7302  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7303  esac
7304_ACEOF
7305
7306cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7307# If the template does not know about datarootdir, expand it.
7308# FIXME: This hack should be removed a few years after 2.60.
7309ac_datarootdir_hack=; ac_datarootdir_seen=
7310ac_sed_dataroot='
7311/datarootdir/ {
7312  p
7313  q
7314}
7315/@datadir@/p
7316/@docdir@/p
7317/@infodir@/p
7318/@localedir@/p
7319/@mandir@/p'
7320case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7321*datarootdir*) ac_datarootdir_seen=yes;;
7322*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7323  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7324$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7325_ACEOF
7326cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7327  ac_datarootdir_hack='
7328  s&@datadir@&$datadir&g
7329  s&@docdir@&$docdir&g
7330  s&@infodir@&$infodir&g
7331  s&@localedir@&$localedir&g
7332  s&@mandir@&$mandir&g
7333  s&\\\${datarootdir}&$datarootdir&g' ;;
7334esac
7335_ACEOF
7336
7337# Neutralize VPATH when `$srcdir' = `.'.
7338# Shell code in configure.ac might set extrasub.
7339# FIXME: do we really want to maintain this feature?
7340cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7341ac_sed_extra="$ac_vpsub
7342$extrasub
7343_ACEOF
7344cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7345:t
7346/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7347s|@configure_input@|$ac_sed_conf_input|;t t
7348s&@top_builddir@&$ac_top_builddir_sub&;t t
7349s&@top_build_prefix@&$ac_top_build_prefix&;t t
7350s&@srcdir@&$ac_srcdir&;t t
7351s&@abs_srcdir@&$ac_abs_srcdir&;t t
7352s&@top_srcdir@&$ac_top_srcdir&;t t
7353s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7354s&@builddir@&$ac_builddir&;t t
7355s&@abs_builddir@&$ac_abs_builddir&;t t
7356s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7357s&@INSTALL@&$ac_INSTALL&;t t
7358s&@MKDIR_P@&$ac_MKDIR_P&;t t
7359$ac_datarootdir_hack
7360"
7361eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7362  || as_fn_error "could not create $ac_file" "$LINENO" 5
7363
7364test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7365  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7366  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7367  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7368which seems to be undefined.  Please make sure it is defined." >&5
7369$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7370which seems to be undefined.  Please make sure it is defined." >&2;}
7371
7372  rm -f "$tmp/stdin"
7373  case $ac_file in
7374  -) cat "$tmp/out" && rm -f "$tmp/out";;
7375  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7376  esac \
7377  || as_fn_error "could not create $ac_file" "$LINENO" 5
7378 ;;
7379  :H)
7380  #
7381  # CONFIG_HEADER
7382  #
7383  if test x"$ac_file" != x-; then
7384    {
7385      $as_echo "/* $configure_input  */" \
7386      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7387    } >"$tmp/config.h" \
7388      || as_fn_error "could not create $ac_file" "$LINENO" 5
7389    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7390      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7391$as_echo "$as_me: $ac_file is unchanged" >&6;}
7392    else
7393      rm -f "$ac_file"
7394      mv "$tmp/config.h" "$ac_file" \
7395	|| as_fn_error "could not create $ac_file" "$LINENO" 5
7396    fi
7397  else
7398    $as_echo "/* $configure_input  */" \
7399      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7400      || as_fn_error "could not create -" "$LINENO" 5
7401  fi
7402# Compute "$ac_file"'s index in $config_headers.
7403_am_arg="$ac_file"
7404_am_stamp_count=1
7405for _am_header in $config_headers :; do
7406  case $_am_header in
7407    $_am_arg | $_am_arg:* )
7408      break ;;
7409    * )
7410      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7411  esac
7412done
7413echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7414$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7415	 X"$_am_arg" : 'X\(//\)[^/]' \| \
7416	 X"$_am_arg" : 'X\(//\)$' \| \
7417	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7418$as_echo X"$_am_arg" |
7419    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7420	    s//\1/
7421	    q
7422	  }
7423	  /^X\(\/\/\)[^/].*/{
7424	    s//\1/
7425	    q
7426	  }
7427	  /^X\(\/\/\)$/{
7428	    s//\1/
7429	    q
7430	  }
7431	  /^X\(\/\).*/{
7432	    s//\1/
7433	    q
7434	  }
7435	  s/.*/./; q'`/stamp-h$_am_stamp_count
7436 ;;
7437
7438  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7439$as_echo "$as_me: executing $ac_file commands" >&6;}
7440 ;;
7441  esac
7442
7443
7444  case $ac_file$ac_mode in
7445    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7446  # Autoconf 2.62 quotes --file arguments for eval, but not when files
7447  # are listed without --file.  Let's play safe and only enable the eval
7448  # if we detect the quoting.
7449  case $CONFIG_FILES in
7450  *\'*) eval set x "$CONFIG_FILES" ;;
7451  *)   set x $CONFIG_FILES ;;
7452  esac
7453  shift
7454  for mf
7455  do
7456    # Strip MF so we end up with the name of the file.
7457    mf=`echo "$mf" | sed -e 's/:.*$//'`
7458    # Check whether this is an Automake generated Makefile or not.
7459    # We used to match only the files named `Makefile.in', but
7460    # some people rename them; so instead we look at the file content.
7461    # Grep'ing the first line is not enough: some people post-process
7462    # each Makefile.in and add a new line on top of each file to say so.
7463    # Grep'ing the whole file is not good either: AIX grep has a line
7464    # limit of 2048, but all sed's we know have understand at least 4000.
7465    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7466      dirpart=`$as_dirname -- "$mf" ||
7467$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7468	 X"$mf" : 'X\(//\)[^/]' \| \
7469	 X"$mf" : 'X\(//\)$' \| \
7470	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7471$as_echo X"$mf" |
7472    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7473	    s//\1/
7474	    q
7475	  }
7476	  /^X\(\/\/\)[^/].*/{
7477	    s//\1/
7478	    q
7479	  }
7480	  /^X\(\/\/\)$/{
7481	    s//\1/
7482	    q
7483	  }
7484	  /^X\(\/\).*/{
7485	    s//\1/
7486	    q
7487	  }
7488	  s/.*/./; q'`
7489    else
7490      continue
7491    fi
7492    # Extract the definition of DEPDIR, am__include, and am__quote
7493    # from the Makefile without running `make'.
7494    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7495    test -z "$DEPDIR" && continue
7496    am__include=`sed -n 's/^am__include = //p' < "$mf"`
7497    test -z "am__include" && continue
7498    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7499    # When using ansi2knr, U may be empty or an underscore; expand it
7500    U=`sed -n 's/^U = //p' < "$mf"`
7501    # Find all dependency output files, they are included files with
7502    # $(DEPDIR) in their names.  We invoke sed twice because it is the
7503    # simplest approach to changing $(DEPDIR) to its actual value in the
7504    # expansion.
7505    for file in `sed -n "
7506      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7507	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7508      # Make sure the directory exists.
7509      test -f "$dirpart/$file" && continue
7510      fdir=`$as_dirname -- "$file" ||
7511$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7512	 X"$file" : 'X\(//\)[^/]' \| \
7513	 X"$file" : 'X\(//\)$' \| \
7514	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7515$as_echo X"$file" |
7516    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7517	    s//\1/
7518	    q
7519	  }
7520	  /^X\(\/\/\)[^/].*/{
7521	    s//\1/
7522	    q
7523	  }
7524	  /^X\(\/\/\)$/{
7525	    s//\1/
7526	    q
7527	  }
7528	  /^X\(\/\).*/{
7529	    s//\1/
7530	    q
7531	  }
7532	  s/.*/./; q'`
7533      as_dir=$dirpart/$fdir; as_fn_mkdir_p
7534      # echo "creating $dirpart/$file"
7535      echo '# dummy' > "$dirpart/$file"
7536    done
7537  done
7538}
7539 ;;
7540
7541  esac
7542done # for ac_tag
7543
7544
7545as_fn_exit 0
7546_ACEOF
7547ac_clean_files=$ac_clean_files_save
7548
7549test $ac_write_fail = 0 ||
7550  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7551
7552
7553# configure is writing to config.log, and then calls config.status.
7554# config.status does its own redirection, appending to config.log.
7555# Unfortunately, on DOS this fails, as config.log is still kept open
7556# by configure, so config.status won't be able to write to it; its
7557# output is simply discarded.  So we exec the FD to /dev/null,
7558# effectively closing config.log, so it can be properly (re)opened and
7559# appended to by config.status.  When coming back to configure, we
7560# need to make the FD available again.
7561if test "$no_create" != yes; then
7562  ac_cs_success=:
7563  ac_config_status_args=
7564  test "$silent" = yes &&
7565    ac_config_status_args="$ac_config_status_args --quiet"
7566  exec 5>/dev/null
7567  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7568  exec 5>>config.log
7569  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7570  # would make configure fail if this is the last instruction.
7571  $ac_cs_success || as_fn_exit $?
7572fi
7573if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7574  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7575$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7576fi
7577
7578
7579
7580
7581
7582
7583
7584