1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for ocp 0.2.90.
4#
5# Report bugs to <stian.skjelstad@gmail.com>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: stian.skjelstad@gmail.com about your system, including
271$0: any error possibly output before this message. Then
272$0: install a modern shell, or manually run the script
273$0: under such a shell if you do have one."
274  fi
275  exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293  { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302  return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310  set +e
311  as_fn_set_status $1
312  exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321  case $as_dir in #(
322  -*) as_dir=./$as_dir;;
323  esac
324  test -d "$as_dir" || eval $as_mkdir_p || {
325    as_dirs=
326    while :; do
327      case $as_dir in #(
328      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329      *) as_qdir=$as_dir;;
330      esac
331      as_dirs="'$as_qdir' $as_dirs"
332      as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334	 X"$as_dir" : 'X\(//\)[^/]' \| \
335	 X"$as_dir" : 'X\(//\)$' \| \
336	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339	    s//\1/
340	    q
341	  }
342	  /^X\(\/\/\)[^/].*/{
343	    s//\1/
344	    q
345	  }
346	  /^X\(\/\/\)$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\).*/{
351	    s//\1/
352	    q
353	  }
354	  s/.*/./; q'`
355      test -d "$as_dir" && break
356    done
357    test -z "$as_dirs" || eval "mkdir $as_dirs"
358  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368  test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377  eval 'as_fn_append ()
378  {
379    eval $1+=\$2
380  }'
381else
382  as_fn_append ()
383  {
384    eval $1=\$$1\$2
385  }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394  eval 'as_fn_arith ()
395  {
396    as_val=$(( $* ))
397  }'
398else
399  as_fn_arith ()
400  {
401    as_val=`expr "$@" || test $? -eq 1`
402  }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413  as_status=$1; test $as_status -eq 0 && as_status=1
414  if test "$4"; then
415    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417  fi
418  $as_echo "$as_me: error: $2" >&2
419  as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423   test "X`expr 00001 : '.*\(...\)'`" = X001; then
424  as_expr=expr
425else
426  as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430  as_basename=basename
431else
432  as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436  as_dirname=dirname
437else
438  as_dirname=false
439fi
440
441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443	 X"$0" : 'X\(//\)$' \| \
444	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446    sed '/^.*\/\([^/][^/]*\)\/*$/{
447	    s//\1/
448	    q
449	  }
450	  /^X\/\(\/\/\)$/{
451	    s//\1/
452	    q
453	  }
454	  /^X\/\(\/\).*/{
455	    s//\1/
456	    q
457	  }
458	  s/.*/./; q'`
459
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468  as_lineno_1=$LINENO as_lineno_1a=$LINENO
469  as_lineno_2=$LINENO as_lineno_2a=$LINENO
470  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473  sed -n '
474    p
475    /[$]LINENO/=
476  ' <$as_myself |
477    sed '
478      s/[$]LINENO.*/&-/
479      t lineno
480      b
481      :lineno
482      N
483      :loop
484      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485      t loop
486      s/-\n.*//
487    ' >$as_me.lineno &&
488  chmod +x "$as_me.lineno" ||
489    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492  # already done that, so ensure we don't try to do so again and fall
493  # in an infinite loop.  This has already happened in practice.
494  _as_can_reexec=no; export _as_can_reexec
495  # Don't try to exec as it changes $[0], causing all sort of problems
496  # (the dirname of $[0] is not the place where we might find the
497  # original and so on.  Autoconf is especially sensitive to this).
498  . "./$as_me.lineno"
499  # Exit status is that of the last command.
500  exit
501}
502
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506  case `echo 'xy\c'` in
507  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
508  xy)  ECHO_C='\c';;
509  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510       ECHO_T='	';;
511  esac;;
512*)
513  ECHO_N='-n';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518  rm -f conf$$.dir/conf$$.file
519else
520  rm -f conf$$.dir
521  mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524  if ln -s conf$$.file conf$$ 2>/dev/null; then
525    as_ln_s='ln -s'
526    # ... but there are two gotchas:
527    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529    # In both cases, we have to default to `cp -pR'.
530    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531      as_ln_s='cp -pR'
532  elif ln conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s=ln
534  else
535    as_ln_s='cp -pR'
536  fi
537else
538  as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544  as_mkdir_p='mkdir -p "$as_dir"'
545else
546  test -d ./-p && rmdir ./-p
547  as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
562
563# Name of the host.
564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='ocp'
582PACKAGE_TARNAME='ocp'
583PACKAGE_VERSION='0.2.90'
584PACKAGE_STRING='ocp 0.2.90'
585PACKAGE_BUGREPORT='stian.skjelstad@gmail.com'
586PACKAGE_URL=''
587
588# Factoring default headers for most tests.
589ac_includes_default="\
590#include <stdio.h>
591#ifdef HAVE_SYS_TYPES_H
592# include <sys/types.h>
593#endif
594#ifdef HAVE_SYS_STAT_H
595# include <sys/stat.h>
596#endif
597#ifdef STDC_HEADERS
598# include <stdlib.h>
599# include <stddef.h>
600#else
601# ifdef HAVE_STDLIB_H
602#  include <stdlib.h>
603# endif
604#endif
605#ifdef HAVE_STRING_H
606# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607#  include <memory.h>
608# endif
609# include <string.h>
610#endif
611#ifdef HAVE_STRINGS_H
612# include <strings.h>
613#endif
614#ifdef HAVE_INTTYPES_H
615# include <inttypes.h>
616#endif
617#ifdef HAVE_STDINT_H
618# include <stdint.h>
619#endif
620#ifdef HAVE_UNISTD_H
621# include <unistd.h>
622#endif"
623
624ac_subst_vars='LTLIBOBJS
625LIBOBJS
626BUILD_DUMPTOOLS
627ICONV_LIBS
628CP
629HAVE_LZH
630HAVE_LZW
631HAVE_MAKEINFO
632DUMA_LIBS
633EFENCE_LIBS
634DATAROOTDIR
635DATADIR
636SYSCONFDIR
637INFODIR
638DOCDIR
639PREFIX
640BINDIR
641LIBDIR
642COREAUDIO_LIBS
643COREAUDIO_CFLAGS
644HAVE_COREAUDIO
645OSS_CFLAGS
646OSS_LIBS
647HAVE_OSS
648HAVE_FRAMEBUFFER
649CDROM_INI
650X11_LIBS
651CDROM_SUPPORT
652LINUX
653ADPLUG_INI
654HAVE_ADPLUG
655HAVE_ALSA
656ALSA_LIBS
657ALSA_CFLAGS
658HAVE_SIDPLAYFP_BUILDERS_RESID_H
659HAVE_SIDPLAYFP_BUILDERS_RESIDFP_H
660NEW_8580_FILTER
661RESID_BRANCH_HINTS
662RESID_INLINE
663RESID_INLINING
664HAVE_BUILTIN_EXPECT
665HAVE_LOG1P
666HAVE_BOOL
667LIBSIDPLAYCXXFLAGS
668LIBSIDPLAYCXX
669PERL
670HEXDUMP
671XA
672HAVE_CXX11
673ADPLUG_LIBS
674ADPLUG_CXXFLAGS
675UNIFONTDIR
676FREETYPE2_CFLAGS
677FREETYPE2_LIBS
678HAVE_SDL
679HAVE_SDL2
680SDL2_CONFIG
681SDL_LIBS
682SDL_CFLAGS
683SDL2_FRAMEWORK
684SDL2_LIBS
685SDL2_CFLAGS
686HAVE_X11
687FLAC_INI
688HAVE_FLAC
689FLAC_LIBS
690FLAC_CFLAGS
691VORBISFILE_LIBS
692VORBISFILE_CFLAGS
693VORBIS_LIBS
694VORBIS_CFLAGS
695OGG_LIBS
696OGG_CFLAGS
697HAVE_MAD
698LIBPNG_LIBS
699LIBPNG_CFLAGS
700LIBJPEG_LIBS
701LIBJPEG_CFLAGS
702MAD_LIBS
703MAD_CFLAGS
704DL_LIBS
705PKG_CONFIG_LIBDIR
706PKG_CONFIG_PATH
707PKG_CONFIG
708CURSES_CPPFLAGS
709CURSES_LIB
710MATH_LIBS
711DIR_SUFFIX
712HAIKU
713PTHREAD_LIBS
714LIB_SUFFIX
715SHARED_FLAGS
716EGREP
717GREP
718DESKTOP_FILE_INSTALL
719SET_MAKE
720CXXCPP
721ac_ct_CXX
722CXXFLAGS
723CXX
724LDFLAGS_FOR_BUILD
725CPPFLAGS_FOR_BUILD
726CFLAGS_FOR_BUILD
727BUILD_OBJEXT
728BUILD_EXEEXT
729CPP_FOR_BUILD
730ac_ct_CC_FOR_BUILD
731CC_FOR_BUILD
732CPP
733OBJEXT
734EXEEXT
735ac_ct_CC
736CPPFLAGS
737LDFLAGS
738CFLAGS
739CC
740host_os
741host_vendor
742host_cpu
743host
744build_os
745build_vendor
746build_cpu
747build
748target_alias
749host_alias
750build_alias
751LIBS
752ECHO_T
753ECHO_N
754ECHO_C
755DEFS
756mandir
757localedir
758libdir
759psdir
760pdfdir
761dvidir
762htmldir
763infodir
764docdir
765oldincludedir
766includedir
767runstatedir
768localstatedir
769sharedstatedir
770sysconfdir
771datadir
772datarootdir
773libexecdir
774sbindir
775bindir
776program_transform_name
777prefix
778exec_prefix
779PACKAGE_URL
780PACKAGE_BUGREPORT
781PACKAGE_STRING
782PACKAGE_VERSION
783PACKAGE_TARNAME
784PACKAGE_NAME
785PATH_SEPARATOR
786SHELL'
787ac_subst_files=''
788ac_user_opts='
789enable_option_checking
790with_debug
791with_dir_suffix
792with_x11
793with_adplug
794with_mad
795with_alsa
796with_oss
797with_lzw
798with_lzh
799with_coreaudio
800with_flac
801with_sdl
802with_sdl2
803with_desktop_file_install
804with_dumptools
805with_unifontdir
806with_timidity_default_path
807with_ncurses
808with_ncursesw
809with_sdl_prefix
810with_sdl_exec_prefix
811enable_sdltest
812enable_sdlframework
813enable_branch_hints
814with_efence
815with_duma
816with_libiconv
817'
818      ac_precious_vars='build_alias
819host_alias
820target_alias
821CC
822CFLAGS
823LDFLAGS
824LIBS
825CPPFLAGS
826CPP
827CXX
828CXXFLAGS
829CCC
830CXXCPP
831CURSES_LIB
832CURSES_CPPFLAGS
833PKG_CONFIG
834PKG_CONFIG_PATH
835PKG_CONFIG_LIBDIR
836SDL2_FRAMEWORK
837SDL_CFLAGS
838SDL_LIBS
839XA'
840
841
842# Initialize some variables set by options.
843ac_init_help=
844ac_init_version=false
845ac_unrecognized_opts=
846ac_unrecognized_sep=
847# The variables have the same names as the options, with
848# dashes changed to underlines.
849cache_file=/dev/null
850exec_prefix=NONE
851no_create=
852no_recursion=
853prefix=NONE
854program_prefix=NONE
855program_suffix=NONE
856program_transform_name=s,x,x,
857silent=
858site=
859srcdir=
860verbose=
861x_includes=NONE
862x_libraries=NONE
863
864# Installation directory options.
865# These are left unexpanded so users can "make install exec_prefix=/foo"
866# and all the variables that are supposed to be based on exec_prefix
867# by default will actually change.
868# Use braces instead of parens because sh, perl, etc. also accept them.
869# (The list follows the same order as the GNU Coding Standards.)
870bindir='${exec_prefix}/bin'
871sbindir='${exec_prefix}/sbin'
872libexecdir='${exec_prefix}/libexec'
873datarootdir='${prefix}/share'
874datadir='${datarootdir}'
875sysconfdir='${prefix}/etc'
876sharedstatedir='${prefix}/com'
877localstatedir='${prefix}/var'
878runstatedir='${localstatedir}/run'
879includedir='${prefix}/include'
880oldincludedir='/usr/include'
881docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
882infodir='${datarootdir}/info'
883htmldir='${docdir}'
884dvidir='${docdir}'
885pdfdir='${docdir}'
886psdir='${docdir}'
887libdir='${exec_prefix}/lib'
888localedir='${datarootdir}/locale'
889mandir='${datarootdir}/man'
890
891ac_prev=
892ac_dashdash=
893for ac_option
894do
895  # If the previous option needs an argument, assign it.
896  if test -n "$ac_prev"; then
897    eval $ac_prev=\$ac_option
898    ac_prev=
899    continue
900  fi
901
902  case $ac_option in
903  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904  *=)   ac_optarg= ;;
905  *)    ac_optarg=yes ;;
906  esac
907
908  # Accept the important Cygnus configure options, so we can diagnose typos.
909
910  case $ac_dashdash$ac_option in
911  --)
912    ac_dashdash=yes ;;
913
914  -bindir | --bindir | --bindi | --bind | --bin | --bi)
915    ac_prev=bindir ;;
916  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917    bindir=$ac_optarg ;;
918
919  -build | --build | --buil | --bui | --bu)
920    ac_prev=build_alias ;;
921  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922    build_alias=$ac_optarg ;;
923
924  -cache-file | --cache-file | --cache-fil | --cache-fi \
925  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926    ac_prev=cache_file ;;
927  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929    cache_file=$ac_optarg ;;
930
931  --config-cache | -C)
932    cache_file=config.cache ;;
933
934  -datadir | --datadir | --datadi | --datad)
935    ac_prev=datadir ;;
936  -datadir=* | --datadir=* | --datadi=* | --datad=*)
937    datadir=$ac_optarg ;;
938
939  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940  | --dataroo | --dataro | --datar)
941    ac_prev=datarootdir ;;
942  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944    datarootdir=$ac_optarg ;;
945
946  -disable-* | --disable-*)
947    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948    # Reject names that are not valid shell variable names.
949    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950      as_fn_error $? "invalid feature name: $ac_useropt"
951    ac_useropt_orig=$ac_useropt
952    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953    case $ac_user_opts in
954      *"
955"enable_$ac_useropt"
956"*) ;;
957      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958	 ac_unrecognized_sep=', ';;
959    esac
960    eval enable_$ac_useropt=no ;;
961
962  -docdir | --docdir | --docdi | --doc | --do)
963    ac_prev=docdir ;;
964  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965    docdir=$ac_optarg ;;
966
967  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968    ac_prev=dvidir ;;
969  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970    dvidir=$ac_optarg ;;
971
972  -enable-* | --enable-*)
973    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974    # Reject names that are not valid shell variable names.
975    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976      as_fn_error $? "invalid feature name: $ac_useropt"
977    ac_useropt_orig=$ac_useropt
978    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979    case $ac_user_opts in
980      *"
981"enable_$ac_useropt"
982"*) ;;
983      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984	 ac_unrecognized_sep=', ';;
985    esac
986    eval enable_$ac_useropt=\$ac_optarg ;;
987
988  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990  | --exec | --exe | --ex)
991    ac_prev=exec_prefix ;;
992  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994  | --exec=* | --exe=* | --ex=*)
995    exec_prefix=$ac_optarg ;;
996
997  -gas | --gas | --ga | --g)
998    # Obsolete; use --with-gas.
999    with_gas=yes ;;
1000
1001  -help | --help | --hel | --he | -h)
1002    ac_init_help=long ;;
1003  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004    ac_init_help=recursive ;;
1005  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006    ac_init_help=short ;;
1007
1008  -host | --host | --hos | --ho)
1009    ac_prev=host_alias ;;
1010  -host=* | --host=* | --hos=* | --ho=*)
1011    host_alias=$ac_optarg ;;
1012
1013  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014    ac_prev=htmldir ;;
1015  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016  | --ht=*)
1017    htmldir=$ac_optarg ;;
1018
1019  -includedir | --includedir | --includedi | --included | --include \
1020  | --includ | --inclu | --incl | --inc)
1021    ac_prev=includedir ;;
1022  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023  | --includ=* | --inclu=* | --incl=* | --inc=*)
1024    includedir=$ac_optarg ;;
1025
1026  -infodir | --infodir | --infodi | --infod | --info | --inf)
1027    ac_prev=infodir ;;
1028  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029    infodir=$ac_optarg ;;
1030
1031  -libdir | --libdir | --libdi | --libd)
1032    ac_prev=libdir ;;
1033  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034    libdir=$ac_optarg ;;
1035
1036  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037  | --libexe | --libex | --libe)
1038    ac_prev=libexecdir ;;
1039  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040  | --libexe=* | --libex=* | --libe=*)
1041    libexecdir=$ac_optarg ;;
1042
1043  -localedir | --localedir | --localedi | --localed | --locale)
1044    ac_prev=localedir ;;
1045  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046    localedir=$ac_optarg ;;
1047
1048  -localstatedir | --localstatedir | --localstatedi | --localstated \
1049  | --localstate | --localstat | --localsta | --localst | --locals)
1050    ac_prev=localstatedir ;;
1051  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1052  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1053    localstatedir=$ac_optarg ;;
1054
1055  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056    ac_prev=mandir ;;
1057  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058    mandir=$ac_optarg ;;
1059
1060  -nfp | --nfp | --nf)
1061    # Obsolete; use --without-fp.
1062    with_fp=no ;;
1063
1064  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065  | --no-cr | --no-c | -n)
1066    no_create=yes ;;
1067
1068  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070    no_recursion=yes ;;
1071
1072  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074  | --oldin | --oldi | --old | --ol | --o)
1075    ac_prev=oldincludedir ;;
1076  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079    oldincludedir=$ac_optarg ;;
1080
1081  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082    ac_prev=prefix ;;
1083  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084    prefix=$ac_optarg ;;
1085
1086  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087  | --program-pre | --program-pr | --program-p)
1088    ac_prev=program_prefix ;;
1089  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091    program_prefix=$ac_optarg ;;
1092
1093  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094  | --program-suf | --program-su | --program-s)
1095    ac_prev=program_suffix ;;
1096  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098    program_suffix=$ac_optarg ;;
1099
1100  -program-transform-name | --program-transform-name \
1101  | --program-transform-nam | --program-transform-na \
1102  | --program-transform-n | --program-transform- \
1103  | --program-transform | --program-transfor \
1104  | --program-transfo | --program-transf \
1105  | --program-trans | --program-tran \
1106  | --progr-tra | --program-tr | --program-t)
1107    ac_prev=program_transform_name ;;
1108  -program-transform-name=* | --program-transform-name=* \
1109  | --program-transform-nam=* | --program-transform-na=* \
1110  | --program-transform-n=* | --program-transform-=* \
1111  | --program-transform=* | --program-transfor=* \
1112  | --program-transfo=* | --program-transf=* \
1113  | --program-trans=* | --program-tran=* \
1114  | --progr-tra=* | --program-tr=* | --program-t=*)
1115    program_transform_name=$ac_optarg ;;
1116
1117  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118    ac_prev=pdfdir ;;
1119  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120    pdfdir=$ac_optarg ;;
1121
1122  -psdir | --psdir | --psdi | --psd | --ps)
1123    ac_prev=psdir ;;
1124  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125    psdir=$ac_optarg ;;
1126
1127  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128  | -silent | --silent | --silen | --sile | --sil)
1129    silent=yes ;;
1130
1131  -runstatedir | --runstatedir | --runstatedi | --runstated \
1132  | --runstate | --runstat | --runsta | --runst | --runs \
1133  | --run | --ru | --r)
1134    ac_prev=runstatedir ;;
1135  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1136  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1137  | --run=* | --ru=* | --r=*)
1138    runstatedir=$ac_optarg ;;
1139
1140  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1141    ac_prev=sbindir ;;
1142  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1143  | --sbi=* | --sb=*)
1144    sbindir=$ac_optarg ;;
1145
1146  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1147  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1148  | --sharedst | --shareds | --shared | --share | --shar \
1149  | --sha | --sh)
1150    ac_prev=sharedstatedir ;;
1151  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1152  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1153  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1154  | --sha=* | --sh=*)
1155    sharedstatedir=$ac_optarg ;;
1156
1157  -site | --site | --sit)
1158    ac_prev=site ;;
1159  -site=* | --site=* | --sit=*)
1160    site=$ac_optarg ;;
1161
1162  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1163    ac_prev=srcdir ;;
1164  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1165    srcdir=$ac_optarg ;;
1166
1167  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1168  | --syscon | --sysco | --sysc | --sys | --sy)
1169    ac_prev=sysconfdir ;;
1170  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1171  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1172    sysconfdir=$ac_optarg ;;
1173
1174  -target | --target | --targe | --targ | --tar | --ta | --t)
1175    ac_prev=target_alias ;;
1176  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1177    target_alias=$ac_optarg ;;
1178
1179  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1180    verbose=yes ;;
1181
1182  -version | --version | --versio | --versi | --vers | -V)
1183    ac_init_version=: ;;
1184
1185  -with-* | --with-*)
1186    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1187    # Reject names that are not valid shell variable names.
1188    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189      as_fn_error $? "invalid package name: $ac_useropt"
1190    ac_useropt_orig=$ac_useropt
1191    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192    case $ac_user_opts in
1193      *"
1194"with_$ac_useropt"
1195"*) ;;
1196      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1197	 ac_unrecognized_sep=', ';;
1198    esac
1199    eval with_$ac_useropt=\$ac_optarg ;;
1200
1201  -without-* | --without-*)
1202    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1203    # Reject names that are not valid shell variable names.
1204    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1205      as_fn_error $? "invalid package name: $ac_useropt"
1206    ac_useropt_orig=$ac_useropt
1207    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208    case $ac_user_opts in
1209      *"
1210"with_$ac_useropt"
1211"*) ;;
1212      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1213	 ac_unrecognized_sep=', ';;
1214    esac
1215    eval with_$ac_useropt=no ;;
1216
1217  --x)
1218    # Obsolete; use --with-x.
1219    with_x=yes ;;
1220
1221  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222  | --x-incl | --x-inc | --x-in | --x-i)
1223    ac_prev=x_includes ;;
1224  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226    x_includes=$ac_optarg ;;
1227
1228  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1229  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230    ac_prev=x_libraries ;;
1231  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233    x_libraries=$ac_optarg ;;
1234
1235  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1236Try \`$0 --help' for more information"
1237    ;;
1238
1239  *=*)
1240    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1241    # Reject names that are not valid shell variable names.
1242    case $ac_envvar in #(
1243      '' | [0-9]* | *[!_$as_cr_alnum]* )
1244      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1245    esac
1246    eval $ac_envvar=\$ac_optarg
1247    export $ac_envvar ;;
1248
1249  *)
1250    # FIXME: should be removed in autoconf 3.0.
1251    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1252    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1254    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1255    ;;
1256
1257  esac
1258done
1259
1260if test -n "$ac_prev"; then
1261  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1262  as_fn_error $? "missing argument to $ac_option"
1263fi
1264
1265if test -n "$ac_unrecognized_opts"; then
1266  case $enable_option_checking in
1267    no) ;;
1268    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1269    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1270  esac
1271fi
1272
1273# Check all directory arguments for consistency.
1274for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1275		datadir sysconfdir sharedstatedir localstatedir includedir \
1276		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1277		libdir localedir mandir runstatedir
1278do
1279  eval ac_val=\$$ac_var
1280  # Remove trailing slashes.
1281  case $ac_val in
1282    */ )
1283      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1284      eval $ac_var=\$ac_val;;
1285  esac
1286  # Be sure to have absolute directory names.
1287  case $ac_val in
1288    [\\/$]* | ?:[\\/]* )  continue;;
1289    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1290  esac
1291  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1292done
1293
1294# There might be people who depend on the old broken behavior: `$host'
1295# used to hold the argument of --host etc.
1296# FIXME: To remove some day.
1297build=$build_alias
1298host=$host_alias
1299target=$target_alias
1300
1301# FIXME: To remove some day.
1302if test "x$host_alias" != x; then
1303  if test "x$build_alias" = x; then
1304    cross_compiling=maybe
1305  elif test "x$build_alias" != "x$host_alias"; then
1306    cross_compiling=yes
1307  fi
1308fi
1309
1310ac_tool_prefix=
1311test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312
1313test "$silent" = yes && exec 6>/dev/null
1314
1315
1316ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317ac_ls_di=`ls -di .` &&
1318ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1319  as_fn_error $? "working directory cannot be determined"
1320test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1321  as_fn_error $? "pwd does not report name of working directory"
1322
1323
1324# Find the source files, if location was not specified.
1325if test -z "$srcdir"; then
1326  ac_srcdir_defaulted=yes
1327  # Try the directory containing this script, then the parent directory.
1328  ac_confdir=`$as_dirname -- "$as_myself" ||
1329$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330	 X"$as_myself" : 'X\(//\)[^/]' \| \
1331	 X"$as_myself" : 'X\(//\)$' \| \
1332	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1333$as_echo X"$as_myself" |
1334    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335	    s//\1/
1336	    q
1337	  }
1338	  /^X\(\/\/\)[^/].*/{
1339	    s//\1/
1340	    q
1341	  }
1342	  /^X\(\/\/\)$/{
1343	    s//\1/
1344	    q
1345	  }
1346	  /^X\(\/\).*/{
1347	    s//\1/
1348	    q
1349	  }
1350	  s/.*/./; q'`
1351  srcdir=$ac_confdir
1352  if test ! -r "$srcdir/$ac_unique_file"; then
1353    srcdir=..
1354  fi
1355else
1356  ac_srcdir_defaulted=no
1357fi
1358if test ! -r "$srcdir/$ac_unique_file"; then
1359  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1360  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1361fi
1362ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1363ac_abs_confdir=`(
1364	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1365	pwd)`
1366# When building in place, set srcdir=.
1367if test "$ac_abs_confdir" = "$ac_pwd"; then
1368  srcdir=.
1369fi
1370# Remove unnecessary trailing slashes from srcdir.
1371# Double slashes in file names in object file debugging info
1372# mess up M-x gdb in Emacs.
1373case $srcdir in
1374*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375esac
1376for ac_var in $ac_precious_vars; do
1377  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1378  eval ac_env_${ac_var}_value=\$${ac_var}
1379  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1380  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381done
1382
1383#
1384# Report the --help message.
1385#
1386if test "$ac_init_help" = "long"; then
1387  # Omit some internal or obsolete options to make the list less imposing.
1388  # This message is too long to be a string in the A/UX 3.1 sh.
1389  cat <<_ACEOF
1390\`configure' configures ocp 0.2.90 to adapt to many kinds of systems.
1391
1392Usage: $0 [OPTION]... [VAR=VALUE]...
1393
1394To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395VAR=VALUE.  See below for descriptions of some of the useful variables.
1396
1397Defaults for the options are specified in brackets.
1398
1399Configuration:
1400  -h, --help              display this help and exit
1401      --help=short        display options specific to this package
1402      --help=recursive    display the short help of all the included packages
1403  -V, --version           display version information and exit
1404  -q, --quiet, --silent   do not print \`checking ...' messages
1405      --cache-file=FILE   cache test results in FILE [disabled]
1406  -C, --config-cache      alias for \`--cache-file=config.cache'
1407  -n, --no-create         do not create output files
1408      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1409
1410Installation directories:
1411  --prefix=PREFIX         install architecture-independent files in PREFIX
1412                          [$ac_default_prefix]
1413  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1414                          [PREFIX]
1415
1416By default, \`make install' will install all the files in
1417\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1418an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1419for instance \`--prefix=\$HOME'.
1420
1421For better control, use the options below.
1422
1423Fine tuning of the installation directories:
1424  --bindir=DIR            user executables [EPREFIX/bin]
1425  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1426  --libexecdir=DIR        program executables [EPREFIX/libexec]
1427  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1428  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1429  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1430  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1431  --libdir=DIR            object code libraries [EPREFIX/lib]
1432  --includedir=DIR        C header files [PREFIX/include]
1433  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1434  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1435  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1436  --infodir=DIR           info documentation [DATAROOTDIR/info]
1437  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1438  --mandir=DIR            man documentation [DATAROOTDIR/man]
1439  --docdir=DIR            documentation root [DATAROOTDIR/doc/ocp]
1440  --htmldir=DIR           html documentation [DOCDIR]
1441  --dvidir=DIR            dvi documentation [DOCDIR]
1442  --pdfdir=DIR            pdf documentation [DOCDIR]
1443  --psdir=DIR             ps documentation [DOCDIR]
1444_ACEOF
1445
1446  cat <<\_ACEOF
1447
1448System types:
1449  --build=BUILD     configure for building on BUILD [guessed]
1450  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1451_ACEOF
1452fi
1453
1454if test -n "$ac_init_help"; then
1455  case $ac_init_help in
1456     short | recursive ) echo "Configuration of ocp 0.2.90:";;
1457   esac
1458  cat <<\_ACEOF
1459
1460Optional Features:
1461  --disable-option-checking  ignore unrecognized --enable/--with options
1462  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1463  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1464  --disable-sdltest       Do not try to compile and run a test SDL program
1465  --disable-sdlframework Do not search for SDL2.framework
1466  --enable-branch-hints   enable static branch prediction hints [default=yes]
1467
1468Optional Packages:
1469  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1470  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1471  --with-debug            compile with debug-flags and without SIGALRM
1472  --with-dir-suffix=      append this on all paths. Defaults to -$PACKAGE_VERSION
1473  --with-x11              force/disable x11 support
1474  --with-adplug           force/disable adplug support
1475  --with-mad              force/disable mad mpeg audio support
1476  --with-alsa             force/disable alsa support
1477  --with-oss              force/disable oss support
1478  --with-lzw              force/disable lzw support (enabled by default)
1479  --with-lzh              force/disable lzh support in .ym files(enabled by default)
1480  --with-coreaudio        force/disable osx coreaudio support (autodetect by default)
1481  --with-flac             force/disable FLAC support (autodetect by default)
1482  --with-sdl              force/disable SDL video support (autodetect by default)
1483  --with-sdl2             force/disable SDL2 video support (autodetect by default)
1484  --without-desktop_file_install Do not install .desktop file (SDL and X11 normally does this)
1485  --with-dumptools        enable building the different fileformat dump utilities
1486  --with-unifontdir=/path the path to where ttf-unifont in located (used by X11, SDL1.x and SDL2)
1487  --with-timidity-default-path=DIR
1488                          Where timidity.cfg is (PREFIX/share/timidity)
1489  --with-ncurses          force the use of Ncurses or NcursesW
1490  --without-ncursesw      do not use NcursesW (wide character support)
1491  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1492  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1493  --with-efence           Enable usage of efence
1494  --with-duma             Enable usage of duma
1495  --with-libiconv=        [auto/no/gnu/native] what kind of libiconv library
1496                          to use
1497
1498Some influential environment variables:
1499  CC          C compiler command
1500  CFLAGS      C compiler flags
1501  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1502              nonstandard directory <lib dir>
1503  LIBS        libraries to pass to the linker, e.g. -l<library>
1504  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1505              you have headers in a nonstandard directory <include dir>
1506  CPP         C preprocessor
1507  CXX         C++ compiler command
1508  CXXFLAGS    C++ compiler flags
1509  CXXCPP      C++ preprocessor
1510  CURSES_LIB  linker library for Curses, e.g. -lcurses
1511  CURSES_CPPFLAGS
1512              preprocessor flags for Curses, e.g. -I/usr/include/ncursesw
1513  PKG_CONFIG  path to pkg-config utility
1514  PKG_CONFIG_PATH
1515              directories to add to pkg-config's search path
1516  PKG_CONFIG_LIBDIR
1517              path overriding pkg-config's built-in search path
1518  SDL2_FRAMEWORK
1519              Path to SDL2.framework
1520  SDL_CFLAGS  C compiler flags for SDL, overriding pkg-config
1521  SDL_LIBS    linker flags for SDL, overriding pkg-config
1522  XA          6502 assembler - must be full path
1523
1524Use these variables to override the choices made by `configure' or to help
1525it to find libraries and programs with nonstandard names/locations.
1526
1527Report bugs to <stian.skjelstad@gmail.com>.
1528_ACEOF
1529ac_status=$?
1530fi
1531
1532if test "$ac_init_help" = "recursive"; then
1533  # If there are subdirs, report their specific --help.
1534  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1535    test -d "$ac_dir" ||
1536      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1537      continue
1538    ac_builddir=.
1539
1540case "$ac_dir" in
1541.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542*)
1543  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1544  # A ".." for each directory in $ac_dir_suffix.
1545  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1546  case $ac_top_builddir_sub in
1547  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1549  esac ;;
1550esac
1551ac_abs_top_builddir=$ac_pwd
1552ac_abs_builddir=$ac_pwd$ac_dir_suffix
1553# for backward compatibility:
1554ac_top_builddir=$ac_top_build_prefix
1555
1556case $srcdir in
1557  .)  # We are building in place.
1558    ac_srcdir=.
1559    ac_top_srcdir=$ac_top_builddir_sub
1560    ac_abs_top_srcdir=$ac_pwd ;;
1561  [\\/]* | ?:[\\/]* )  # Absolute name.
1562    ac_srcdir=$srcdir$ac_dir_suffix;
1563    ac_top_srcdir=$srcdir
1564    ac_abs_top_srcdir=$srcdir ;;
1565  *) # Relative name.
1566    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1567    ac_top_srcdir=$ac_top_build_prefix$srcdir
1568    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1569esac
1570ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1571
1572    cd "$ac_dir" || { ac_status=$?; continue; }
1573    # Check for guested configure.
1574    if test -f "$ac_srcdir/configure.gnu"; then
1575      echo &&
1576      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1577    elif test -f "$ac_srcdir/configure"; then
1578      echo &&
1579      $SHELL "$ac_srcdir/configure" --help=recursive
1580    else
1581      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1582    fi || ac_status=$?
1583    cd "$ac_pwd" || { ac_status=$?; break; }
1584  done
1585fi
1586
1587test -n "$ac_init_help" && exit $ac_status
1588if $ac_init_version; then
1589  cat <<\_ACEOF
1590ocp configure 0.2.90
1591generated by GNU Autoconf 2.69
1592
1593Copyright (C) 2012 Free Software Foundation, Inc.
1594This configure script is free software; the Free Software Foundation
1595gives unlimited permission to copy, distribute and modify it.
1596_ACEOF
1597  exit
1598fi
1599
1600## ------------------------ ##
1601## Autoconf initialization. ##
1602## ------------------------ ##
1603
1604# ac_fn_c_try_compile LINENO
1605# --------------------------
1606# Try to compile conftest.$ac_ext, and return whether this succeeded.
1607ac_fn_c_try_compile ()
1608{
1609  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610  rm -f conftest.$ac_objext
1611  if { { ac_try="$ac_compile"
1612case "(($ac_try" in
1613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614  *) ac_try_echo=$ac_try;;
1615esac
1616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617$as_echo "$ac_try_echo"; } >&5
1618  (eval "$ac_compile") 2>conftest.err
1619  ac_status=$?
1620  if test -s conftest.err; then
1621    grep -v '^ *+' conftest.err >conftest.er1
1622    cat conftest.er1 >&5
1623    mv -f conftest.er1 conftest.err
1624  fi
1625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626  test $ac_status = 0; } && {
1627	 test -z "$ac_c_werror_flag" ||
1628	 test ! -s conftest.err
1629       } && test -s conftest.$ac_objext; then :
1630  ac_retval=0
1631else
1632  $as_echo "$as_me: failed program was:" >&5
1633sed 's/^/| /' conftest.$ac_ext >&5
1634
1635	ac_retval=1
1636fi
1637  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638  as_fn_set_status $ac_retval
1639
1640} # ac_fn_c_try_compile
1641
1642# ac_fn_c_try_cpp LINENO
1643# ----------------------
1644# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1645ac_fn_c_try_cpp ()
1646{
1647  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648  if { { ac_try="$ac_cpp conftest.$ac_ext"
1649case "(($ac_try" in
1650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651  *) ac_try_echo=$ac_try;;
1652esac
1653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654$as_echo "$ac_try_echo"; } >&5
1655  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1656  ac_status=$?
1657  if test -s conftest.err; then
1658    grep -v '^ *+' conftest.err >conftest.er1
1659    cat conftest.er1 >&5
1660    mv -f conftest.er1 conftest.err
1661  fi
1662  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663  test $ac_status = 0; } > conftest.i && {
1664	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1665	 test ! -s conftest.err
1666       }; then :
1667  ac_retval=0
1668else
1669  $as_echo "$as_me: failed program was:" >&5
1670sed 's/^/| /' conftest.$ac_ext >&5
1671
1672    ac_retval=1
1673fi
1674  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675  as_fn_set_status $ac_retval
1676
1677} # ac_fn_c_try_cpp
1678
1679# ac_fn_cxx_try_compile LINENO
1680# ----------------------------
1681# Try to compile conftest.$ac_ext, and return whether this succeeded.
1682ac_fn_cxx_try_compile ()
1683{
1684  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685  rm -f conftest.$ac_objext
1686  if { { ac_try="$ac_compile"
1687case "(($ac_try" in
1688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689  *) ac_try_echo=$ac_try;;
1690esac
1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692$as_echo "$ac_try_echo"; } >&5
1693  (eval "$ac_compile") 2>conftest.err
1694  ac_status=$?
1695  if test -s conftest.err; then
1696    grep -v '^ *+' conftest.err >conftest.er1
1697    cat conftest.er1 >&5
1698    mv -f conftest.er1 conftest.err
1699  fi
1700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701  test $ac_status = 0; } && {
1702	 test -z "$ac_cxx_werror_flag" ||
1703	 test ! -s conftest.err
1704       } && test -s conftest.$ac_objext; then :
1705  ac_retval=0
1706else
1707  $as_echo "$as_me: failed program was:" >&5
1708sed 's/^/| /' conftest.$ac_ext >&5
1709
1710	ac_retval=1
1711fi
1712  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713  as_fn_set_status $ac_retval
1714
1715} # ac_fn_cxx_try_compile
1716
1717# ac_fn_cxx_try_cpp LINENO
1718# ------------------------
1719# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1720ac_fn_cxx_try_cpp ()
1721{
1722  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723  if { { ac_try="$ac_cpp conftest.$ac_ext"
1724case "(($ac_try" in
1725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726  *) ac_try_echo=$ac_try;;
1727esac
1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729$as_echo "$ac_try_echo"; } >&5
1730  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1731  ac_status=$?
1732  if test -s conftest.err; then
1733    grep -v '^ *+' conftest.err >conftest.er1
1734    cat conftest.er1 >&5
1735    mv -f conftest.er1 conftest.err
1736  fi
1737  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738  test $ac_status = 0; } > conftest.i && {
1739	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1740	 test ! -s conftest.err
1741       }; then :
1742  ac_retval=0
1743else
1744  $as_echo "$as_me: failed program was:" >&5
1745sed 's/^/| /' conftest.$ac_ext >&5
1746
1747    ac_retval=1
1748fi
1749  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750  as_fn_set_status $ac_retval
1751
1752} # ac_fn_cxx_try_cpp
1753
1754# ac_fn_c_try_run LINENO
1755# ----------------------
1756# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1757# that executables *can* be run.
1758ac_fn_c_try_run ()
1759{
1760  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761  if { { ac_try="$ac_link"
1762case "(($ac_try" in
1763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764  *) ac_try_echo=$ac_try;;
1765esac
1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767$as_echo "$ac_try_echo"; } >&5
1768  (eval "$ac_link") 2>&5
1769  ac_status=$?
1770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1772  { { case "(($ac_try" in
1773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774  *) ac_try_echo=$ac_try;;
1775esac
1776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777$as_echo "$ac_try_echo"; } >&5
1778  (eval "$ac_try") 2>&5
1779  ac_status=$?
1780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781  test $ac_status = 0; }; }; then :
1782  ac_retval=0
1783else
1784  $as_echo "$as_me: program exited with status $ac_status" >&5
1785       $as_echo "$as_me: failed program was:" >&5
1786sed 's/^/| /' conftest.$ac_ext >&5
1787
1788       ac_retval=$ac_status
1789fi
1790  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1791  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792  as_fn_set_status $ac_retval
1793
1794} # ac_fn_c_try_run
1795
1796# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1797# -------------------------------------------------------
1798# Tests whether HEADER exists and can be compiled using the include files in
1799# INCLUDES, setting the cache variable VAR accordingly.
1800ac_fn_c_check_header_compile ()
1801{
1802  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804$as_echo_n "checking for $2... " >&6; }
1805if eval \${$3+:} false; then :
1806  $as_echo_n "(cached) " >&6
1807else
1808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809/* end confdefs.h.  */
1810$4
1811#include <$2>
1812_ACEOF
1813if ac_fn_c_try_compile "$LINENO"; then :
1814  eval "$3=yes"
1815else
1816  eval "$3=no"
1817fi
1818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819fi
1820eval ac_res=\$$3
1821	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822$as_echo "$ac_res" >&6; }
1823  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824
1825} # ac_fn_c_check_header_compile
1826
1827# ac_fn_c_try_link LINENO
1828# -----------------------
1829# Try to link conftest.$ac_ext, and return whether this succeeded.
1830ac_fn_c_try_link ()
1831{
1832  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833  rm -f conftest.$ac_objext conftest$ac_exeext
1834  if { { ac_try="$ac_link"
1835case "(($ac_try" in
1836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837  *) ac_try_echo=$ac_try;;
1838esac
1839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840$as_echo "$ac_try_echo"; } >&5
1841  (eval "$ac_link") 2>conftest.err
1842  ac_status=$?
1843  if test -s conftest.err; then
1844    grep -v '^ *+' conftest.err >conftest.er1
1845    cat conftest.er1 >&5
1846    mv -f conftest.er1 conftest.err
1847  fi
1848  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849  test $ac_status = 0; } && {
1850	 test -z "$ac_c_werror_flag" ||
1851	 test ! -s conftest.err
1852       } && test -s conftest$ac_exeext && {
1853	 test "$cross_compiling" = yes ||
1854	 test -x conftest$ac_exeext
1855       }; then :
1856  ac_retval=0
1857else
1858  $as_echo "$as_me: failed program was:" >&5
1859sed 's/^/| /' conftest.$ac_ext >&5
1860
1861	ac_retval=1
1862fi
1863  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1864  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1865  # interfere with the next link command; also delete a directory that is
1866  # left behind by Apple's compiler.  We do this before executing the actions.
1867  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1868  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869  as_fn_set_status $ac_retval
1870
1871} # ac_fn_c_try_link
1872
1873# ac_fn_c_check_func LINENO FUNC VAR
1874# ----------------------------------
1875# Tests whether FUNC exists, setting the cache variable VAR accordingly
1876ac_fn_c_check_func ()
1877{
1878  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880$as_echo_n "checking for $2... " >&6; }
1881if eval \${$3+:} false; then :
1882  $as_echo_n "(cached) " >&6
1883else
1884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885/* end confdefs.h.  */
1886/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1887   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1888#define $2 innocuous_$2
1889
1890/* System header to define __stub macros and hopefully few prototypes,
1891    which can conflict with char $2 (); below.
1892    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1893    <limits.h> exists even on freestanding compilers.  */
1894
1895#ifdef __STDC__
1896# include <limits.h>
1897#else
1898# include <assert.h>
1899#endif
1900
1901#undef $2
1902
1903/* Override any GCC internal prototype to avoid an error.
1904   Use char because int might match the return type of a GCC
1905   builtin and then its argument prototype would still apply.  */
1906#ifdef __cplusplus
1907extern "C"
1908#endif
1909char $2 ();
1910/* The GNU C library defines this for functions which it implements
1911    to always fail with ENOSYS.  Some functions are actually named
1912    something starting with __ and the normal name is an alias.  */
1913#if defined __stub_$2 || defined __stub___$2
1914choke me
1915#endif
1916
1917int
1918main ()
1919{
1920return $2 ();
1921  ;
1922  return 0;
1923}
1924_ACEOF
1925if ac_fn_c_try_link "$LINENO"; then :
1926  eval "$3=yes"
1927else
1928  eval "$3=no"
1929fi
1930rm -f core conftest.err conftest.$ac_objext \
1931    conftest$ac_exeext conftest.$ac_ext
1932fi
1933eval ac_res=\$$3
1934	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935$as_echo "$ac_res" >&6; }
1936  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1937
1938} # ac_fn_c_check_func
1939
1940# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1941# ----------------------------------------------------
1942# Tries to find if the field MEMBER exists in type AGGR, after including
1943# INCLUDES, setting cache variable VAR accordingly.
1944ac_fn_c_check_member ()
1945{
1946  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1948$as_echo_n "checking for $2.$3... " >&6; }
1949if eval \${$4+:} false; then :
1950  $as_echo_n "(cached) " >&6
1951else
1952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953/* end confdefs.h.  */
1954$5
1955int
1956main ()
1957{
1958static $2 ac_aggr;
1959if (ac_aggr.$3)
1960return 0;
1961  ;
1962  return 0;
1963}
1964_ACEOF
1965if ac_fn_c_try_compile "$LINENO"; then :
1966  eval "$4=yes"
1967else
1968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969/* end confdefs.h.  */
1970$5
1971int
1972main ()
1973{
1974static $2 ac_aggr;
1975if (sizeof ac_aggr.$3)
1976return 0;
1977  ;
1978  return 0;
1979}
1980_ACEOF
1981if ac_fn_c_try_compile "$LINENO"; then :
1982  eval "$4=yes"
1983else
1984  eval "$4=no"
1985fi
1986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987fi
1988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1989fi
1990eval ac_res=\$$4
1991	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992$as_echo "$ac_res" >&6; }
1993  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1994
1995} # ac_fn_c_check_member
1996
1997# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1998# -------------------------------------------------------
1999# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2000# the include files in INCLUDES and setting the cache variable VAR
2001# accordingly.
2002ac_fn_c_check_header_mongrel ()
2003{
2004  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005  if eval \${$3+:} false; then :
2006  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2007$as_echo_n "checking for $2... " >&6; }
2008if eval \${$3+:} false; then :
2009  $as_echo_n "(cached) " >&6
2010fi
2011eval ac_res=\$$3
2012	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013$as_echo "$ac_res" >&6; }
2014else
2015  # Is the header compilable?
2016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2017$as_echo_n "checking $2 usability... " >&6; }
2018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019/* end confdefs.h.  */
2020$4
2021#include <$2>
2022_ACEOF
2023if ac_fn_c_try_compile "$LINENO"; then :
2024  ac_header_compiler=yes
2025else
2026  ac_header_compiler=no
2027fi
2028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2030$as_echo "$ac_header_compiler" >&6; }
2031
2032# Is the header present?
2033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2034$as_echo_n "checking $2 presence... " >&6; }
2035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036/* end confdefs.h.  */
2037#include <$2>
2038_ACEOF
2039if ac_fn_c_try_cpp "$LINENO"; then :
2040  ac_header_preproc=yes
2041else
2042  ac_header_preproc=no
2043fi
2044rm -f conftest.err conftest.i conftest.$ac_ext
2045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2046$as_echo "$ac_header_preproc" >&6; }
2047
2048# So?  What about this header?
2049case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2050  yes:no: )
2051    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2052$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2053    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2054$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2055    ;;
2056  no:yes:* )
2057    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2058$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2059    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2060$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2061    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2062$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2063    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2064$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2065    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2066$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2067( $as_echo "## ---------------------------------------- ##
2068## Report this to stian.skjelstad@gmail.com ##
2069## ---------------------------------------- ##"
2070     ) | sed "s/^/$as_me: WARNING:     /" >&2
2071    ;;
2072esac
2073  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2074$as_echo_n "checking for $2... " >&6; }
2075if eval \${$3+:} false; then :
2076  $as_echo_n "(cached) " >&6
2077else
2078  eval "$3=\$ac_header_compiler"
2079fi
2080eval ac_res=\$$3
2081	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2082$as_echo "$ac_res" >&6; }
2083fi
2084  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2085
2086} # ac_fn_c_check_header_mongrel
2087
2088# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2089# ---------------------------------------------------------
2090# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2091# the include files in INCLUDES and setting the cache variable VAR
2092# accordingly.
2093ac_fn_cxx_check_header_mongrel ()
2094{
2095  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096  if eval \${$3+:} false; then :
2097  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2098$as_echo_n "checking for $2... " >&6; }
2099if eval \${$3+:} false; then :
2100  $as_echo_n "(cached) " >&6
2101fi
2102eval ac_res=\$$3
2103	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104$as_echo "$ac_res" >&6; }
2105else
2106  # Is the header compilable?
2107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2108$as_echo_n "checking $2 usability... " >&6; }
2109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110/* end confdefs.h.  */
2111$4
2112#include <$2>
2113_ACEOF
2114if ac_fn_cxx_try_compile "$LINENO"; then :
2115  ac_header_compiler=yes
2116else
2117  ac_header_compiler=no
2118fi
2119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2121$as_echo "$ac_header_compiler" >&6; }
2122
2123# Is the header present?
2124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2125$as_echo_n "checking $2 presence... " >&6; }
2126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127/* end confdefs.h.  */
2128#include <$2>
2129_ACEOF
2130if ac_fn_cxx_try_cpp "$LINENO"; then :
2131  ac_header_preproc=yes
2132else
2133  ac_header_preproc=no
2134fi
2135rm -f conftest.err conftest.i conftest.$ac_ext
2136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2137$as_echo "$ac_header_preproc" >&6; }
2138
2139# So?  What about this header?
2140case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2141  yes:no: )
2142    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2143$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2144    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2145$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2146    ;;
2147  no:yes:* )
2148    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2149$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2150    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2151$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2152    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2153$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2154    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2155$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2156    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2157$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2158( $as_echo "## ---------------------------------------- ##
2159## Report this to stian.skjelstad@gmail.com ##
2160## ---------------------------------------- ##"
2161     ) | sed "s/^/$as_me: WARNING:     /" >&2
2162    ;;
2163esac
2164  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2165$as_echo_n "checking for $2... " >&6; }
2166if eval \${$3+:} false; then :
2167  $as_echo_n "(cached) " >&6
2168else
2169  eval "$3=\$ac_header_compiler"
2170fi
2171eval ac_res=\$$3
2172	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2173$as_echo "$ac_res" >&6; }
2174fi
2175  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2176
2177} # ac_fn_cxx_check_header_mongrel
2178
2179# ac_fn_cxx_try_link LINENO
2180# -------------------------
2181# Try to link conftest.$ac_ext, and return whether this succeeded.
2182ac_fn_cxx_try_link ()
2183{
2184  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185  rm -f conftest.$ac_objext conftest$ac_exeext
2186  if { { ac_try="$ac_link"
2187case "(($ac_try" in
2188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189  *) ac_try_echo=$ac_try;;
2190esac
2191eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2192$as_echo "$ac_try_echo"; } >&5
2193  (eval "$ac_link") 2>conftest.err
2194  ac_status=$?
2195  if test -s conftest.err; then
2196    grep -v '^ *+' conftest.err >conftest.er1
2197    cat conftest.er1 >&5
2198    mv -f conftest.er1 conftest.err
2199  fi
2200  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2201  test $ac_status = 0; } && {
2202	 test -z "$ac_cxx_werror_flag" ||
2203	 test ! -s conftest.err
2204       } && test -s conftest$ac_exeext && {
2205	 test "$cross_compiling" = yes ||
2206	 test -x conftest$ac_exeext
2207       }; then :
2208  ac_retval=0
2209else
2210  $as_echo "$as_me: failed program was:" >&5
2211sed 's/^/| /' conftest.$ac_ext >&5
2212
2213	ac_retval=1
2214fi
2215  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2216  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2217  # interfere with the next link command; also delete a directory that is
2218  # left behind by Apple's compiler.  We do this before executing the actions.
2219  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2220  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2221  as_fn_set_status $ac_retval
2222
2223} # ac_fn_cxx_try_link
2224
2225# ac_fn_cxx_try_run LINENO
2226# ------------------------
2227# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2228# that executables *can* be run.
2229ac_fn_cxx_try_run ()
2230{
2231  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232  if { { ac_try="$ac_link"
2233case "(($ac_try" in
2234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2235  *) ac_try_echo=$ac_try;;
2236esac
2237eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2238$as_echo "$ac_try_echo"; } >&5
2239  (eval "$ac_link") 2>&5
2240  ac_status=$?
2241  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2242  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2243  { { case "(($ac_try" in
2244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2245  *) ac_try_echo=$ac_try;;
2246esac
2247eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2248$as_echo "$ac_try_echo"; } >&5
2249  (eval "$ac_try") 2>&5
2250  ac_status=$?
2251  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2252  test $ac_status = 0; }; }; then :
2253  ac_retval=0
2254else
2255  $as_echo "$as_me: program exited with status $ac_status" >&5
2256       $as_echo "$as_me: failed program was:" >&5
2257sed 's/^/| /' conftest.$ac_ext >&5
2258
2259       ac_retval=$ac_status
2260fi
2261  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2262  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2263  as_fn_set_status $ac_retval
2264
2265} # ac_fn_cxx_try_run
2266
2267# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2268# ----------------------------------------------
2269# Tries to find the compile-time value of EXPR in a program that includes
2270# INCLUDES, setting VAR accordingly. Returns whether the value could be
2271# computed
2272ac_fn_cxx_compute_int ()
2273{
2274  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2275  if test "$cross_compiling" = yes; then
2276    # Depending upon the size, compute the lo and hi bounds.
2277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278/* end confdefs.h.  */
2279$4
2280int
2281main ()
2282{
2283static int test_array [1 - 2 * !(($2) >= 0)];
2284test_array [0] = 0;
2285return test_array [0];
2286
2287  ;
2288  return 0;
2289}
2290_ACEOF
2291if ac_fn_cxx_try_compile "$LINENO"; then :
2292  ac_lo=0 ac_mid=0
2293  while :; do
2294    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295/* end confdefs.h.  */
2296$4
2297int
2298main ()
2299{
2300static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2301test_array [0] = 0;
2302return test_array [0];
2303
2304  ;
2305  return 0;
2306}
2307_ACEOF
2308if ac_fn_cxx_try_compile "$LINENO"; then :
2309  ac_hi=$ac_mid; break
2310else
2311  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2312			if test $ac_lo -le $ac_mid; then
2313			  ac_lo= ac_hi=
2314			  break
2315			fi
2316			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2317fi
2318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2319  done
2320else
2321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322/* end confdefs.h.  */
2323$4
2324int
2325main ()
2326{
2327static int test_array [1 - 2 * !(($2) < 0)];
2328test_array [0] = 0;
2329return test_array [0];
2330
2331  ;
2332  return 0;
2333}
2334_ACEOF
2335if ac_fn_cxx_try_compile "$LINENO"; then :
2336  ac_hi=-1 ac_mid=-1
2337  while :; do
2338    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339/* end confdefs.h.  */
2340$4
2341int
2342main ()
2343{
2344static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2345test_array [0] = 0;
2346return test_array [0];
2347
2348  ;
2349  return 0;
2350}
2351_ACEOF
2352if ac_fn_cxx_try_compile "$LINENO"; then :
2353  ac_lo=$ac_mid; break
2354else
2355  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2356			if test $ac_mid -le $ac_hi; then
2357			  ac_lo= ac_hi=
2358			  break
2359			fi
2360			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2361fi
2362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2363  done
2364else
2365  ac_lo= ac_hi=
2366fi
2367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2368fi
2369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2370# Binary search between lo and hi bounds.
2371while test "x$ac_lo" != "x$ac_hi"; do
2372  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374/* end confdefs.h.  */
2375$4
2376int
2377main ()
2378{
2379static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2380test_array [0] = 0;
2381return test_array [0];
2382
2383  ;
2384  return 0;
2385}
2386_ACEOF
2387if ac_fn_cxx_try_compile "$LINENO"; then :
2388  ac_hi=$ac_mid
2389else
2390  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2391fi
2392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2393done
2394case $ac_lo in #((
2395?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2396'') ac_retval=1 ;;
2397esac
2398  else
2399    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2400/* end confdefs.h.  */
2401$4
2402static long int longval () { return $2; }
2403static unsigned long int ulongval () { return $2; }
2404#include <stdio.h>
2405#include <stdlib.h>
2406int
2407main ()
2408{
2409
2410  FILE *f = fopen ("conftest.val", "w");
2411  if (! f)
2412    return 1;
2413  if (($2) < 0)
2414    {
2415      long int i = longval ();
2416      if (i != ($2))
2417	return 1;
2418      fprintf (f, "%ld", i);
2419    }
2420  else
2421    {
2422      unsigned long int i = ulongval ();
2423      if (i != ($2))
2424	return 1;
2425      fprintf (f, "%lu", i);
2426    }
2427  /* Do not output a trailing newline, as this causes \r\n confusion
2428     on some platforms.  */
2429  return ferror (f) || fclose (f) != 0;
2430
2431  ;
2432  return 0;
2433}
2434_ACEOF
2435if ac_fn_cxx_try_run "$LINENO"; then :
2436  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2437else
2438  ac_retval=1
2439fi
2440rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2441  conftest.$ac_objext conftest.beam conftest.$ac_ext
2442rm -f conftest.val
2443
2444  fi
2445  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2446  as_fn_set_status $ac_retval
2447
2448} # ac_fn_cxx_compute_int
2449
2450# ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2451# -----------------------------------------------
2452# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2453# accordingly.
2454ac_fn_cxx_check_decl ()
2455{
2456  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2457  as_decl_name=`echo $2|sed 's/ *(.*//'`
2458  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2459  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2460$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2461if eval \${$3+:} false; then :
2462  $as_echo_n "(cached) " >&6
2463else
2464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2465/* end confdefs.h.  */
2466$4
2467int
2468main ()
2469{
2470#ifndef $as_decl_name
2471#ifdef __cplusplus
2472  (void) $as_decl_use;
2473#else
2474  (void) $as_decl_name;
2475#endif
2476#endif
2477
2478  ;
2479  return 0;
2480}
2481_ACEOF
2482if ac_fn_cxx_try_compile "$LINENO"; then :
2483  eval "$3=yes"
2484else
2485  eval "$3=no"
2486fi
2487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2488fi
2489eval ac_res=\$$3
2490	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2491$as_echo "$ac_res" >&6; }
2492  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2493
2494} # ac_fn_cxx_check_decl
2495
2496# ac_fn_cxx_check_func LINENO FUNC VAR
2497# ------------------------------------
2498# Tests whether FUNC exists, setting the cache variable VAR accordingly
2499ac_fn_cxx_check_func ()
2500{
2501  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2502  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2503$as_echo_n "checking for $2... " >&6; }
2504if eval \${$3+:} false; then :
2505  $as_echo_n "(cached) " >&6
2506else
2507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2508/* end confdefs.h.  */
2509/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2510   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2511#define $2 innocuous_$2
2512
2513/* System header to define __stub macros and hopefully few prototypes,
2514    which can conflict with char $2 (); below.
2515    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2516    <limits.h> exists even on freestanding compilers.  */
2517
2518#ifdef __STDC__
2519# include <limits.h>
2520#else
2521# include <assert.h>
2522#endif
2523
2524#undef $2
2525
2526/* Override any GCC internal prototype to avoid an error.
2527   Use char because int might match the return type of a GCC
2528   builtin and then its argument prototype would still apply.  */
2529#ifdef __cplusplus
2530extern "C"
2531#endif
2532char $2 ();
2533/* The GNU C library defines this for functions which it implements
2534    to always fail with ENOSYS.  Some functions are actually named
2535    something starting with __ and the normal name is an alias.  */
2536#if defined __stub_$2 || defined __stub___$2
2537choke me
2538#endif
2539
2540int
2541main ()
2542{
2543return $2 ();
2544  ;
2545  return 0;
2546}
2547_ACEOF
2548if ac_fn_cxx_try_link "$LINENO"; then :
2549  eval "$3=yes"
2550else
2551  eval "$3=no"
2552fi
2553rm -f core conftest.err conftest.$ac_objext \
2554    conftest$ac_exeext conftest.$ac_ext
2555fi
2556eval ac_res=\$$3
2557	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2558$as_echo "$ac_res" >&6; }
2559  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2560
2561} # ac_fn_cxx_check_func
2562cat >config.log <<_ACEOF
2563This file contains any messages produced by compilers while
2564running configure, to aid debugging if configure makes a mistake.
2565
2566It was created by ocp $as_me 0.2.90, which was
2567generated by GNU Autoconf 2.69.  Invocation command line was
2568
2569  $ $0 $@
2570
2571_ACEOF
2572exec 5>>config.log
2573{
2574cat <<_ASUNAME
2575## --------- ##
2576## Platform. ##
2577## --------- ##
2578
2579hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2580uname -m = `(uname -m) 2>/dev/null || echo unknown`
2581uname -r = `(uname -r) 2>/dev/null || echo unknown`
2582uname -s = `(uname -s) 2>/dev/null || echo unknown`
2583uname -v = `(uname -v) 2>/dev/null || echo unknown`
2584
2585/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2586/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2587
2588/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2589/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2590/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2591/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2592/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2593/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2594/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2595
2596_ASUNAME
2597
2598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599for as_dir in $PATH
2600do
2601  IFS=$as_save_IFS
2602  test -z "$as_dir" && as_dir=.
2603    $as_echo "PATH: $as_dir"
2604  done
2605IFS=$as_save_IFS
2606
2607} >&5
2608
2609cat >&5 <<_ACEOF
2610
2611
2612## ----------- ##
2613## Core tests. ##
2614## ----------- ##
2615
2616_ACEOF
2617
2618
2619# Keep a trace of the command line.
2620# Strip out --no-create and --no-recursion so they do not pile up.
2621# Strip out --silent because we don't want to record it for future runs.
2622# Also quote any args containing shell meta-characters.
2623# Make two passes to allow for proper duplicate-argument suppression.
2624ac_configure_args=
2625ac_configure_args0=
2626ac_configure_args1=
2627ac_must_keep_next=false
2628for ac_pass in 1 2
2629do
2630  for ac_arg
2631  do
2632    case $ac_arg in
2633    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2634    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2635    | -silent | --silent | --silen | --sile | --sil)
2636      continue ;;
2637    *\'*)
2638      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2639    esac
2640    case $ac_pass in
2641    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2642    2)
2643      as_fn_append ac_configure_args1 " '$ac_arg'"
2644      if test $ac_must_keep_next = true; then
2645	ac_must_keep_next=false # Got value, back to normal.
2646      else
2647	case $ac_arg in
2648	  *=* | --config-cache | -C | -disable-* | --disable-* \
2649	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2650	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2651	  | -with-* | --with-* | -without-* | --without-* | --x)
2652	    case "$ac_configure_args0 " in
2653	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2654	    esac
2655	    ;;
2656	  -* ) ac_must_keep_next=true ;;
2657	esac
2658      fi
2659      as_fn_append ac_configure_args " '$ac_arg'"
2660      ;;
2661    esac
2662  done
2663done
2664{ ac_configure_args0=; unset ac_configure_args0;}
2665{ ac_configure_args1=; unset ac_configure_args1;}
2666
2667# When interrupted or exit'd, cleanup temporary files, and complete
2668# config.log.  We remove comments because anyway the quotes in there
2669# would cause problems or look ugly.
2670# WARNING: Use '\'' to represent an apostrophe within the trap.
2671# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2672trap 'exit_status=$?
2673  # Save into config.log some information that might help in debugging.
2674  {
2675    echo
2676
2677    $as_echo "## ---------------- ##
2678## Cache variables. ##
2679## ---------------- ##"
2680    echo
2681    # The following way of writing the cache mishandles newlines in values,
2682(
2683  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2684    eval ac_val=\$$ac_var
2685    case $ac_val in #(
2686    *${as_nl}*)
2687      case $ac_var in #(
2688      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2689$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2690      esac
2691      case $ac_var in #(
2692      _ | IFS | as_nl) ;; #(
2693      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2694      *) { eval $ac_var=; unset $ac_var;} ;;
2695      esac ;;
2696    esac
2697  done
2698  (set) 2>&1 |
2699    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2700    *${as_nl}ac_space=\ *)
2701      sed -n \
2702	"s/'\''/'\''\\\\'\'''\''/g;
2703	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2704      ;; #(
2705    *)
2706      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2707      ;;
2708    esac |
2709    sort
2710)
2711    echo
2712
2713    $as_echo "## ----------------- ##
2714## Output variables. ##
2715## ----------------- ##"
2716    echo
2717    for ac_var in $ac_subst_vars
2718    do
2719      eval ac_val=\$$ac_var
2720      case $ac_val in
2721      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2722      esac
2723      $as_echo "$ac_var='\''$ac_val'\''"
2724    done | sort
2725    echo
2726
2727    if test -n "$ac_subst_files"; then
2728      $as_echo "## ------------------- ##
2729## File substitutions. ##
2730## ------------------- ##"
2731      echo
2732      for ac_var in $ac_subst_files
2733      do
2734	eval ac_val=\$$ac_var
2735	case $ac_val in
2736	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2737	esac
2738	$as_echo "$ac_var='\''$ac_val'\''"
2739      done | sort
2740      echo
2741    fi
2742
2743    if test -s confdefs.h; then
2744      $as_echo "## ----------- ##
2745## confdefs.h. ##
2746## ----------- ##"
2747      echo
2748      cat confdefs.h
2749      echo
2750    fi
2751    test "$ac_signal" != 0 &&
2752      $as_echo "$as_me: caught signal $ac_signal"
2753    $as_echo "$as_me: exit $exit_status"
2754  } >&5
2755  rm -f core *.core core.conftest.* &&
2756    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2757    exit $exit_status
2758' 0
2759for ac_signal in 1 2 13 15; do
2760  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2761done
2762ac_signal=0
2763
2764# confdefs.h avoids OS command line length limits that DEFS can exceed.
2765rm -f -r conftest* confdefs.h
2766
2767$as_echo "/* confdefs.h */" > confdefs.h
2768
2769# Predefined preprocessor variables.
2770
2771cat >>confdefs.h <<_ACEOF
2772#define PACKAGE_NAME "$PACKAGE_NAME"
2773_ACEOF
2774
2775cat >>confdefs.h <<_ACEOF
2776#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2777_ACEOF
2778
2779cat >>confdefs.h <<_ACEOF
2780#define PACKAGE_VERSION "$PACKAGE_VERSION"
2781_ACEOF
2782
2783cat >>confdefs.h <<_ACEOF
2784#define PACKAGE_STRING "$PACKAGE_STRING"
2785_ACEOF
2786
2787cat >>confdefs.h <<_ACEOF
2788#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2789_ACEOF
2790
2791cat >>confdefs.h <<_ACEOF
2792#define PACKAGE_URL "$PACKAGE_URL"
2793_ACEOF
2794
2795
2796# Let the site file select an alternate cache file if it wants to.
2797# Prefer an explicitly selected file to automatically selected ones.
2798ac_site_file1=NONE
2799ac_site_file2=NONE
2800if test -n "$CONFIG_SITE"; then
2801  # We do not want a PATH search for config.site.
2802  case $CONFIG_SITE in #((
2803    -*)  ac_site_file1=./$CONFIG_SITE;;
2804    */*) ac_site_file1=$CONFIG_SITE;;
2805    *)   ac_site_file1=./$CONFIG_SITE;;
2806  esac
2807elif test "x$prefix" != xNONE; then
2808  ac_site_file1=$prefix/share/config.site
2809  ac_site_file2=$prefix/etc/config.site
2810else
2811  ac_site_file1=$ac_default_prefix/share/config.site
2812  ac_site_file2=$ac_default_prefix/etc/config.site
2813fi
2814for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2815do
2816  test "x$ac_site_file" = xNONE && continue
2817  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2818    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2819$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2820    sed 's/^/| /' "$ac_site_file" >&5
2821    . "$ac_site_file" \
2822      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2823$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2824as_fn_error $? "failed to load site script $ac_site_file
2825See \`config.log' for more details" "$LINENO" 5; }
2826  fi
2827done
2828
2829if test -r "$cache_file"; then
2830  # Some versions of bash will fail to source /dev/null (special files
2831  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2832  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2833    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2834$as_echo "$as_me: loading cache $cache_file" >&6;}
2835    case $cache_file in
2836      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2837      *)                      . "./$cache_file";;
2838    esac
2839  fi
2840else
2841  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2842$as_echo "$as_me: creating cache $cache_file" >&6;}
2843  >$cache_file
2844fi
2845
2846# Check that the precious variables saved in the cache have kept the same
2847# value.
2848ac_cache_corrupted=false
2849for ac_var in $ac_precious_vars; do
2850  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2851  eval ac_new_set=\$ac_env_${ac_var}_set
2852  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2853  eval ac_new_val=\$ac_env_${ac_var}_value
2854  case $ac_old_set,$ac_new_set in
2855    set,)
2856      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2857$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2858      ac_cache_corrupted=: ;;
2859    ,set)
2860      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2861$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2862      ac_cache_corrupted=: ;;
2863    ,);;
2864    *)
2865      if test "x$ac_old_val" != "x$ac_new_val"; then
2866	# differences in whitespace do not lead to failure.
2867	ac_old_val_w=`echo x $ac_old_val`
2868	ac_new_val_w=`echo x $ac_new_val`
2869	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2870	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2871$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2872	  ac_cache_corrupted=:
2873	else
2874	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2875$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2876	  eval $ac_var=\$ac_old_val
2877	fi
2878	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2879$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2880	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2881$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2882      fi;;
2883  esac
2884  # Pass precious variables to config.status.
2885  if test "$ac_new_set" = set; then
2886    case $ac_new_val in
2887    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2888    *) ac_arg=$ac_var=$ac_new_val ;;
2889    esac
2890    case " $ac_configure_args " in
2891      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2892      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2893    esac
2894  fi
2895done
2896if $ac_cache_corrupted; then
2897  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2898$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2899  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2900$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2901  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2902fi
2903## -------------------- ##
2904## Main body of script. ##
2905## -------------------- ##
2906
2907ac_ext=c
2908ac_cpp='$CPP $CPPFLAGS'
2909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2911ac_compiler_gnu=$ac_cv_c_compiler_gnu
2912
2913
2914$as_echo "#define DLLVERSION 0x0000025a" >>confdefs.h
2915
2916
2917ac_aux_dir=
2918for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2919  if test -f "$ac_dir/install-sh"; then
2920    ac_aux_dir=$ac_dir
2921    ac_install_sh="$ac_aux_dir/install-sh -c"
2922    break
2923  elif test -f "$ac_dir/install.sh"; then
2924    ac_aux_dir=$ac_dir
2925    ac_install_sh="$ac_aux_dir/install.sh -c"
2926    break
2927  elif test -f "$ac_dir/shtool"; then
2928    ac_aux_dir=$ac_dir
2929    ac_install_sh="$ac_aux_dir/shtool install -c"
2930    break
2931  fi
2932done
2933if test -z "$ac_aux_dir"; then
2934  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2935fi
2936
2937# These three variables are undocumented and unsupported,
2938# and are intended to be withdrawn in a future Autoconf release.
2939# They can cause serious problems if a builder's source tree is in a directory
2940# whose full name contains unusual characters.
2941ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2942ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2943ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2944
2945
2946# Make sure we can run config.sub.
2947$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2948  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2949
2950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2951$as_echo_n "checking build system type... " >&6; }
2952if ${ac_cv_build+:} false; then :
2953  $as_echo_n "(cached) " >&6
2954else
2955  ac_build_alias=$build_alias
2956test "x$ac_build_alias" = x &&
2957  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2958test "x$ac_build_alias" = x &&
2959  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2960ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2961  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2962
2963fi
2964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2965$as_echo "$ac_cv_build" >&6; }
2966case $ac_cv_build in
2967*-*-*) ;;
2968*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2969esac
2970build=$ac_cv_build
2971ac_save_IFS=$IFS; IFS='-'
2972set x $ac_cv_build
2973shift
2974build_cpu=$1
2975build_vendor=$2
2976shift; shift
2977# Remember, the first character of IFS is used to create $*,
2978# except with old shells:
2979build_os=$*
2980IFS=$ac_save_IFS
2981case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2982
2983
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2985$as_echo_n "checking host system type... " >&6; }
2986if ${ac_cv_host+:} false; then :
2987  $as_echo_n "(cached) " >&6
2988else
2989  if test "x$host_alias" = x; then
2990  ac_cv_host=$ac_cv_build
2991else
2992  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2993    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2994fi
2995
2996fi
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2998$as_echo "$ac_cv_host" >&6; }
2999case $ac_cv_host in
3000*-*-*) ;;
3001*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3002esac
3003host=$ac_cv_host
3004ac_save_IFS=$IFS; IFS='-'
3005set x $ac_cv_host
3006shift
3007host_cpu=$1
3008host_vendor=$2
3009shift; shift
3010# Remember, the first character of IFS is used to create $*,
3011# except with old shells:
3012host_os=$*
3013IFS=$ac_save_IFS
3014case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3015
3016
3017
3018
3019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking GIT submodules are checked out" >&5
3020$as_echo_n "checking GIT submodules are checked out... " >&6; }
3021if ! test -f playgmi/timidity-git/Makefile.am; then
3022  as_fn_error $? "playgmi/timidity-git is missing - please execute 'git submodule update --init --recursive'" "$LINENO" 5
3023else
3024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
3025$as_echo "ok" >&6; }
3026fi
3027
3028
3029# Check whether --with-debug was given.
3030if test "${with_debug+set}" = set; then :
3031  withval=$with_debug; if test "x$with_debug" = "xyes"; then
3032for i in $CFLAGS; do
3033  new_CFLAGS="$new_CFLAGS `echo $i|grep -- -L`";
3034  new_CFLAGS="$new_CFLAGS `echo $i|grep -- -I`";
3035done;
3036CFLAGS="$new_CFLAGS -g"
3037for i in $CXXFLAGS; do
3038  new_CXXFLAGS="$new_CFLAGS `echo $i|grep -- -L`";
3039  new_CXXFLAGS="$new_CFLAGS `echo $i|grep -- -I`";
3040done;
3041CXXFLAGS="$new_CXXFLAGS -g"
3042$as_echo "#define KICKSTART_GDB 1" >>confdefs.h
3043 $as_echo "#define DISABLE_SIGALRM 1" >>confdefs.h
3044
3045fi
3046
3047fi
3048
3049
3050ac_ext=c
3051ac_cpp='$CPP $CPPFLAGS'
3052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3054ac_compiler_gnu=$ac_cv_c_compiler_gnu
3055if test -n "$ac_tool_prefix"; then
3056  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3057set dummy ${ac_tool_prefix}gcc; ac_word=$2
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059$as_echo_n "checking for $ac_word... " >&6; }
3060if ${ac_cv_prog_CC+:} false; then :
3061  $as_echo_n "(cached) " >&6
3062else
3063  if test -n "$CC"; then
3064  ac_cv_prog_CC="$CC" # Let the user override the test.
3065else
3066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067for as_dir in $PATH
3068do
3069  IFS=$as_save_IFS
3070  test -z "$as_dir" && as_dir=.
3071    for ac_exec_ext in '' $ac_executable_extensions; do
3072  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3073    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3074    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075    break 2
3076  fi
3077done
3078  done
3079IFS=$as_save_IFS
3080
3081fi
3082fi
3083CC=$ac_cv_prog_CC
3084if test -n "$CC"; then
3085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3086$as_echo "$CC" >&6; }
3087else
3088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089$as_echo "no" >&6; }
3090fi
3091
3092
3093fi
3094if test -z "$ac_cv_prog_CC"; then
3095  ac_ct_CC=$CC
3096  # Extract the first word of "gcc", so it can be a program name with args.
3097set dummy gcc; ac_word=$2
3098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3099$as_echo_n "checking for $ac_word... " >&6; }
3100if ${ac_cv_prog_ac_ct_CC+:} false; then :
3101  $as_echo_n "(cached) " >&6
3102else
3103  if test -n "$ac_ct_CC"; then
3104  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3105else
3106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107for as_dir in $PATH
3108do
3109  IFS=$as_save_IFS
3110  test -z "$as_dir" && as_dir=.
3111    for ac_exec_ext in '' $ac_executable_extensions; do
3112  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3113    ac_cv_prog_ac_ct_CC="gcc"
3114    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3115    break 2
3116  fi
3117done
3118  done
3119IFS=$as_save_IFS
3120
3121fi
3122fi
3123ac_ct_CC=$ac_cv_prog_ac_ct_CC
3124if test -n "$ac_ct_CC"; then
3125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3126$as_echo "$ac_ct_CC" >&6; }
3127else
3128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129$as_echo "no" >&6; }
3130fi
3131
3132  if test "x$ac_ct_CC" = x; then
3133    CC=""
3134  else
3135    case $cross_compiling:$ac_tool_warned in
3136yes:)
3137{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3138$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3139ac_tool_warned=yes ;;
3140esac
3141    CC=$ac_ct_CC
3142  fi
3143else
3144  CC="$ac_cv_prog_CC"
3145fi
3146
3147if test -z "$CC"; then
3148          if test -n "$ac_tool_prefix"; then
3149    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3150set dummy ${ac_tool_prefix}cc; ac_word=$2
3151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3152$as_echo_n "checking for $ac_word... " >&6; }
3153if ${ac_cv_prog_CC+:} false; then :
3154  $as_echo_n "(cached) " >&6
3155else
3156  if test -n "$CC"; then
3157  ac_cv_prog_CC="$CC" # Let the user override the test.
3158else
3159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160for as_dir in $PATH
3161do
3162  IFS=$as_save_IFS
3163  test -z "$as_dir" && as_dir=.
3164    for ac_exec_ext in '' $ac_executable_extensions; do
3165  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3166    ac_cv_prog_CC="${ac_tool_prefix}cc"
3167    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3168    break 2
3169  fi
3170done
3171  done
3172IFS=$as_save_IFS
3173
3174fi
3175fi
3176CC=$ac_cv_prog_CC
3177if test -n "$CC"; then
3178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3179$as_echo "$CC" >&6; }
3180else
3181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182$as_echo "no" >&6; }
3183fi
3184
3185
3186  fi
3187fi
3188if test -z "$CC"; then
3189  # Extract the first word of "cc", so it can be a program name with args.
3190set dummy cc; ac_word=$2
3191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3192$as_echo_n "checking for $ac_word... " >&6; }
3193if ${ac_cv_prog_CC+:} false; then :
3194  $as_echo_n "(cached) " >&6
3195else
3196  if test -n "$CC"; then
3197  ac_cv_prog_CC="$CC" # Let the user override the test.
3198else
3199  ac_prog_rejected=no
3200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201for as_dir in $PATH
3202do
3203  IFS=$as_save_IFS
3204  test -z "$as_dir" && as_dir=.
3205    for ac_exec_ext in '' $ac_executable_extensions; do
3206  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3207    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3208       ac_prog_rejected=yes
3209       continue
3210     fi
3211    ac_cv_prog_CC="cc"
3212    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3213    break 2
3214  fi
3215done
3216  done
3217IFS=$as_save_IFS
3218
3219if test $ac_prog_rejected = yes; then
3220  # We found a bogon in the path, so make sure we never use it.
3221  set dummy $ac_cv_prog_CC
3222  shift
3223  if test $# != 0; then
3224    # We chose a different compiler from the bogus one.
3225    # However, it has the same basename, so the bogon will be chosen
3226    # first if we set CC to just the basename; use the full file name.
3227    shift
3228    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3229  fi
3230fi
3231fi
3232fi
3233CC=$ac_cv_prog_CC
3234if test -n "$CC"; then
3235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3236$as_echo "$CC" >&6; }
3237else
3238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239$as_echo "no" >&6; }
3240fi
3241
3242
3243fi
3244if test -z "$CC"; then
3245  if test -n "$ac_tool_prefix"; then
3246  for ac_prog in cl.exe
3247  do
3248    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3249set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3251$as_echo_n "checking for $ac_word... " >&6; }
3252if ${ac_cv_prog_CC+:} false; then :
3253  $as_echo_n "(cached) " >&6
3254else
3255  if test -n "$CC"; then
3256  ac_cv_prog_CC="$CC" # Let the user override the test.
3257else
3258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259for as_dir in $PATH
3260do
3261  IFS=$as_save_IFS
3262  test -z "$as_dir" && as_dir=.
3263    for ac_exec_ext in '' $ac_executable_extensions; do
3264  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3265    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3266    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3267    break 2
3268  fi
3269done
3270  done
3271IFS=$as_save_IFS
3272
3273fi
3274fi
3275CC=$ac_cv_prog_CC
3276if test -n "$CC"; then
3277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3278$as_echo "$CC" >&6; }
3279else
3280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3281$as_echo "no" >&6; }
3282fi
3283
3284
3285    test -n "$CC" && break
3286  done
3287fi
3288if test -z "$CC"; then
3289  ac_ct_CC=$CC
3290  for ac_prog in cl.exe
3291do
3292  # Extract the first word of "$ac_prog", so it can be a program name with args.
3293set dummy $ac_prog; ac_word=$2
3294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3295$as_echo_n "checking for $ac_word... " >&6; }
3296if ${ac_cv_prog_ac_ct_CC+:} false; then :
3297  $as_echo_n "(cached) " >&6
3298else
3299  if test -n "$ac_ct_CC"; then
3300  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3301else
3302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303for as_dir in $PATH
3304do
3305  IFS=$as_save_IFS
3306  test -z "$as_dir" && as_dir=.
3307    for ac_exec_ext in '' $ac_executable_extensions; do
3308  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3309    ac_cv_prog_ac_ct_CC="$ac_prog"
3310    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3311    break 2
3312  fi
3313done
3314  done
3315IFS=$as_save_IFS
3316
3317fi
3318fi
3319ac_ct_CC=$ac_cv_prog_ac_ct_CC
3320if test -n "$ac_ct_CC"; then
3321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3322$as_echo "$ac_ct_CC" >&6; }
3323else
3324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325$as_echo "no" >&6; }
3326fi
3327
3328
3329  test -n "$ac_ct_CC" && break
3330done
3331
3332  if test "x$ac_ct_CC" = x; then
3333    CC=""
3334  else
3335    case $cross_compiling:$ac_tool_warned in
3336yes:)
3337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3339ac_tool_warned=yes ;;
3340esac
3341    CC=$ac_ct_CC
3342  fi
3343fi
3344
3345fi
3346
3347
3348test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3349$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3350as_fn_error $? "no acceptable C compiler found in \$PATH
3351See \`config.log' for more details" "$LINENO" 5; }
3352
3353# Provide some information about the compiler.
3354$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3355set X $ac_compile
3356ac_compiler=$2
3357for ac_option in --version -v -V -qversion; do
3358  { { ac_try="$ac_compiler $ac_option >&5"
3359case "(($ac_try" in
3360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361  *) ac_try_echo=$ac_try;;
3362esac
3363eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3364$as_echo "$ac_try_echo"; } >&5
3365  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3366  ac_status=$?
3367  if test -s conftest.err; then
3368    sed '10a\
3369... rest of stderr output deleted ...
3370         10q' conftest.err >conftest.er1
3371    cat conftest.er1 >&5
3372  fi
3373  rm -f conftest.er1 conftest.err
3374  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3375  test $ac_status = 0; }
3376done
3377
3378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3379/* end confdefs.h.  */
3380
3381int
3382main ()
3383{
3384
3385  ;
3386  return 0;
3387}
3388_ACEOF
3389ac_clean_files_save=$ac_clean_files
3390ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3391# Try to create an executable without -o first, disregard a.out.
3392# It will help us diagnose broken compilers, and finding out an intuition
3393# of exeext.
3394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3395$as_echo_n "checking whether the C compiler works... " >&6; }
3396ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3397
3398# The possible output files:
3399ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3400
3401ac_rmfiles=
3402for ac_file in $ac_files
3403do
3404  case $ac_file in
3405    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3406    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3407  esac
3408done
3409rm -f $ac_rmfiles
3410
3411if { { ac_try="$ac_link_default"
3412case "(($ac_try" in
3413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414  *) ac_try_echo=$ac_try;;
3415esac
3416eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3417$as_echo "$ac_try_echo"; } >&5
3418  (eval "$ac_link_default") 2>&5
3419  ac_status=$?
3420  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3421  test $ac_status = 0; }; then :
3422  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3423# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3424# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3425# so that the user can short-circuit this test for compilers unknown to
3426# Autoconf.
3427for ac_file in $ac_files ''
3428do
3429  test -f "$ac_file" || continue
3430  case $ac_file in
3431    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3432	;;
3433    [ab].out )
3434	# We found the default executable, but exeext='' is most
3435	# certainly right.
3436	break;;
3437    *.* )
3438	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3439	then :; else
3440	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3441	fi
3442	# We set ac_cv_exeext here because the later test for it is not
3443	# safe: cross compilers may not add the suffix if given an `-o'
3444	# argument, so we may need to know it at that point already.
3445	# Even if this section looks crufty: it has the advantage of
3446	# actually working.
3447	break;;
3448    * )
3449	break;;
3450  esac
3451done
3452test "$ac_cv_exeext" = no && ac_cv_exeext=
3453
3454else
3455  ac_file=''
3456fi
3457if test -z "$ac_file"; then :
3458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459$as_echo "no" >&6; }
3460$as_echo "$as_me: failed program was:" >&5
3461sed 's/^/| /' conftest.$ac_ext >&5
3462
3463{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3465as_fn_error 77 "C compiler cannot create executables
3466See \`config.log' for more details" "$LINENO" 5; }
3467else
3468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3469$as_echo "yes" >&6; }
3470fi
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3472$as_echo_n "checking for C compiler default output file name... " >&6; }
3473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3474$as_echo "$ac_file" >&6; }
3475ac_exeext=$ac_cv_exeext
3476
3477rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3478ac_clean_files=$ac_clean_files_save
3479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3480$as_echo_n "checking for suffix of executables... " >&6; }
3481if { { ac_try="$ac_link"
3482case "(($ac_try" in
3483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484  *) ac_try_echo=$ac_try;;
3485esac
3486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3487$as_echo "$ac_try_echo"; } >&5
3488  (eval "$ac_link") 2>&5
3489  ac_status=$?
3490  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3491  test $ac_status = 0; }; then :
3492  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3493# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3494# work properly (i.e., refer to `conftest.exe'), while it won't with
3495# `rm'.
3496for ac_file in conftest.exe conftest conftest.*; do
3497  test -f "$ac_file" || continue
3498  case $ac_file in
3499    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3500    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3501	  break;;
3502    * ) break;;
3503  esac
3504done
3505else
3506  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3508as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3509See \`config.log' for more details" "$LINENO" 5; }
3510fi
3511rm -f conftest conftest$ac_cv_exeext
3512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3513$as_echo "$ac_cv_exeext" >&6; }
3514
3515rm -f conftest.$ac_ext
3516EXEEXT=$ac_cv_exeext
3517ac_exeext=$EXEEXT
3518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519/* end confdefs.h.  */
3520#include <stdio.h>
3521int
3522main ()
3523{
3524FILE *f = fopen ("conftest.out", "w");
3525 return ferror (f) || fclose (f) != 0;
3526
3527  ;
3528  return 0;
3529}
3530_ACEOF
3531ac_clean_files="$ac_clean_files conftest.out"
3532# Check that the compiler produces executables we can run.  If not, either
3533# the compiler is broken, or we cross compile.
3534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3535$as_echo_n "checking whether we are cross compiling... " >&6; }
3536if test "$cross_compiling" != yes; then
3537  { { ac_try="$ac_link"
3538case "(($ac_try" in
3539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540  *) ac_try_echo=$ac_try;;
3541esac
3542eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3543$as_echo "$ac_try_echo"; } >&5
3544  (eval "$ac_link") 2>&5
3545  ac_status=$?
3546  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3547  test $ac_status = 0; }
3548  if { ac_try='./conftest$ac_cv_exeext'
3549  { { case "(($ac_try" in
3550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3551  *) ac_try_echo=$ac_try;;
3552esac
3553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3554$as_echo "$ac_try_echo"; } >&5
3555  (eval "$ac_try") 2>&5
3556  ac_status=$?
3557  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3558  test $ac_status = 0; }; }; then
3559    cross_compiling=no
3560  else
3561    if test "$cross_compiling" = maybe; then
3562	cross_compiling=yes
3563    else
3564	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3565$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3566as_fn_error $? "cannot run C compiled programs.
3567If you meant to cross compile, use \`--host'.
3568See \`config.log' for more details" "$LINENO" 5; }
3569    fi
3570  fi
3571fi
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3573$as_echo "$cross_compiling" >&6; }
3574
3575rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3576ac_clean_files=$ac_clean_files_save
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3578$as_echo_n "checking for suffix of object files... " >&6; }
3579if ${ac_cv_objext+:} false; then :
3580  $as_echo_n "(cached) " >&6
3581else
3582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583/* end confdefs.h.  */
3584
3585int
3586main ()
3587{
3588
3589  ;
3590  return 0;
3591}
3592_ACEOF
3593rm -f conftest.o conftest.obj
3594if { { ac_try="$ac_compile"
3595case "(($ac_try" in
3596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597  *) ac_try_echo=$ac_try;;
3598esac
3599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3600$as_echo "$ac_try_echo"; } >&5
3601  (eval "$ac_compile") 2>&5
3602  ac_status=$?
3603  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3604  test $ac_status = 0; }; then :
3605  for ac_file in conftest.o conftest.obj conftest.*; do
3606  test -f "$ac_file" || continue;
3607  case $ac_file in
3608    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3609    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3610       break;;
3611  esac
3612done
3613else
3614  $as_echo "$as_me: failed program was:" >&5
3615sed 's/^/| /' conftest.$ac_ext >&5
3616
3617{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3618$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3619as_fn_error $? "cannot compute suffix of object files: cannot compile
3620See \`config.log' for more details" "$LINENO" 5; }
3621fi
3622rm -f conftest.$ac_cv_objext conftest.$ac_ext
3623fi
3624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3625$as_echo "$ac_cv_objext" >&6; }
3626OBJEXT=$ac_cv_objext
3627ac_objext=$OBJEXT
3628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3629$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3630if ${ac_cv_c_compiler_gnu+:} false; then :
3631  $as_echo_n "(cached) " >&6
3632else
3633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634/* end confdefs.h.  */
3635
3636int
3637main ()
3638{
3639#ifndef __GNUC__
3640       choke me
3641#endif
3642
3643  ;
3644  return 0;
3645}
3646_ACEOF
3647if ac_fn_c_try_compile "$LINENO"; then :
3648  ac_compiler_gnu=yes
3649else
3650  ac_compiler_gnu=no
3651fi
3652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3653ac_cv_c_compiler_gnu=$ac_compiler_gnu
3654
3655fi
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3657$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3658if test $ac_compiler_gnu = yes; then
3659  GCC=yes
3660else
3661  GCC=
3662fi
3663ac_test_CFLAGS=${CFLAGS+set}
3664ac_save_CFLAGS=$CFLAGS
3665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3666$as_echo_n "checking whether $CC accepts -g... " >&6; }
3667if ${ac_cv_prog_cc_g+:} false; then :
3668  $as_echo_n "(cached) " >&6
3669else
3670  ac_save_c_werror_flag=$ac_c_werror_flag
3671   ac_c_werror_flag=yes
3672   ac_cv_prog_cc_g=no
3673   CFLAGS="-g"
3674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675/* end confdefs.h.  */
3676
3677int
3678main ()
3679{
3680
3681  ;
3682  return 0;
3683}
3684_ACEOF
3685if ac_fn_c_try_compile "$LINENO"; then :
3686  ac_cv_prog_cc_g=yes
3687else
3688  CFLAGS=""
3689      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690/* end confdefs.h.  */
3691
3692int
3693main ()
3694{
3695
3696  ;
3697  return 0;
3698}
3699_ACEOF
3700if ac_fn_c_try_compile "$LINENO"; then :
3701
3702else
3703  ac_c_werror_flag=$ac_save_c_werror_flag
3704	 CFLAGS="-g"
3705	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706/* end confdefs.h.  */
3707
3708int
3709main ()
3710{
3711
3712  ;
3713  return 0;
3714}
3715_ACEOF
3716if ac_fn_c_try_compile "$LINENO"; then :
3717  ac_cv_prog_cc_g=yes
3718fi
3719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720fi
3721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722fi
3723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3724   ac_c_werror_flag=$ac_save_c_werror_flag
3725fi
3726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3727$as_echo "$ac_cv_prog_cc_g" >&6; }
3728if test "$ac_test_CFLAGS" = set; then
3729  CFLAGS=$ac_save_CFLAGS
3730elif test $ac_cv_prog_cc_g = yes; then
3731  if test "$GCC" = yes; then
3732    CFLAGS="-g -O2"
3733  else
3734    CFLAGS="-g"
3735  fi
3736else
3737  if test "$GCC" = yes; then
3738    CFLAGS="-O2"
3739  else
3740    CFLAGS=
3741  fi
3742fi
3743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3744$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3745if ${ac_cv_prog_cc_c89+:} false; then :
3746  $as_echo_n "(cached) " >&6
3747else
3748  ac_cv_prog_cc_c89=no
3749ac_save_CC=$CC
3750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751/* end confdefs.h.  */
3752#include <stdarg.h>
3753#include <stdio.h>
3754struct stat;
3755/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3756struct buf { int x; };
3757FILE * (*rcsopen) (struct buf *, struct stat *, int);
3758static char *e (p, i)
3759     char **p;
3760     int i;
3761{
3762  return p[i];
3763}
3764static char *f (char * (*g) (char **, int), char **p, ...)
3765{
3766  char *s;
3767  va_list v;
3768  va_start (v,p);
3769  s = g (p, va_arg (v,int));
3770  va_end (v);
3771  return s;
3772}
3773
3774/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3775   function prototypes and stuff, but not '\xHH' hex character constants.
3776   These don't provoke an error unfortunately, instead are silently treated
3777   as 'x'.  The following induces an error, until -std is added to get
3778   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3779   array size at least.  It's necessary to write '\x00'==0 to get something
3780   that's true only with -std.  */
3781int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3782
3783/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3784   inside strings and character constants.  */
3785#define FOO(x) 'x'
3786int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3787
3788int test (int i, double x);
3789struct s1 {int (*f) (int a);};
3790struct s2 {int (*f) (double a);};
3791int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3792int argc;
3793char **argv;
3794int
3795main ()
3796{
3797return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3798  ;
3799  return 0;
3800}
3801_ACEOF
3802for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3803	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3804do
3805  CC="$ac_save_CC $ac_arg"
3806  if ac_fn_c_try_compile "$LINENO"; then :
3807  ac_cv_prog_cc_c89=$ac_arg
3808fi
3809rm -f core conftest.err conftest.$ac_objext
3810  test "x$ac_cv_prog_cc_c89" != "xno" && break
3811done
3812rm -f conftest.$ac_ext
3813CC=$ac_save_CC
3814
3815fi
3816# AC_CACHE_VAL
3817case "x$ac_cv_prog_cc_c89" in
3818  x)
3819    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3820$as_echo "none needed" >&6; } ;;
3821  xno)
3822    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3823$as_echo "unsupported" >&6; } ;;
3824  *)
3825    CC="$CC $ac_cv_prog_cc_c89"
3826    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3827$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3828esac
3829if test "x$ac_cv_prog_cc_c89" != xno; then :
3830
3831fi
3832
3833ac_ext=c
3834ac_cpp='$CPP $CPPFLAGS'
3835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3837ac_compiler_gnu=$ac_cv_c_compiler_gnu
3838
3839
3840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
3841$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
3842if ${ac_cv_header_time+:} false; then :
3843  $as_echo_n "(cached) " >&6
3844else
3845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846/* end confdefs.h.  */
3847#include <sys/types.h>
3848#include <sys/time.h>
3849#include <time.h>
3850
3851int
3852main ()
3853{
3854if ((struct tm *) 0)
3855return 0;
3856  ;
3857  return 0;
3858}
3859_ACEOF
3860if ac_fn_c_try_compile "$LINENO"; then :
3861  ac_cv_header_time=yes
3862else
3863  ac_cv_header_time=no
3864fi
3865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3866fi
3867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
3868$as_echo "$ac_cv_header_time" >&6; }
3869if test $ac_cv_header_time = yes; then
3870
3871$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
3872
3873fi
3874
3875
3876ac_ext=c
3877ac_cpp='$CPP $CPPFLAGS'
3878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3880ac_compiler_gnu=$ac_cv_c_compiler_gnu
3881if test -n "$ac_tool_prefix"; then
3882  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3883set dummy ${ac_tool_prefix}gcc; ac_word=$2
3884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3885$as_echo_n "checking for $ac_word... " >&6; }
3886if ${ac_cv_prog_CC+:} false; then :
3887  $as_echo_n "(cached) " >&6
3888else
3889  if test -n "$CC"; then
3890  ac_cv_prog_CC="$CC" # Let the user override the test.
3891else
3892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893for as_dir in $PATH
3894do
3895  IFS=$as_save_IFS
3896  test -z "$as_dir" && as_dir=.
3897    for ac_exec_ext in '' $ac_executable_extensions; do
3898  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3899    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3900    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3901    break 2
3902  fi
3903done
3904  done
3905IFS=$as_save_IFS
3906
3907fi
3908fi
3909CC=$ac_cv_prog_CC
3910if test -n "$CC"; then
3911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3912$as_echo "$CC" >&6; }
3913else
3914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915$as_echo "no" >&6; }
3916fi
3917
3918
3919fi
3920if test -z "$ac_cv_prog_CC"; then
3921  ac_ct_CC=$CC
3922  # Extract the first word of "gcc", so it can be a program name with args.
3923set dummy gcc; ac_word=$2
3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3925$as_echo_n "checking for $ac_word... " >&6; }
3926if ${ac_cv_prog_ac_ct_CC+:} false; then :
3927  $as_echo_n "(cached) " >&6
3928else
3929  if test -n "$ac_ct_CC"; then
3930  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3931else
3932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933for as_dir in $PATH
3934do
3935  IFS=$as_save_IFS
3936  test -z "$as_dir" && as_dir=.
3937    for ac_exec_ext in '' $ac_executable_extensions; do
3938  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3939    ac_cv_prog_ac_ct_CC="gcc"
3940    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3941    break 2
3942  fi
3943done
3944  done
3945IFS=$as_save_IFS
3946
3947fi
3948fi
3949ac_ct_CC=$ac_cv_prog_ac_ct_CC
3950if test -n "$ac_ct_CC"; then
3951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3952$as_echo "$ac_ct_CC" >&6; }
3953else
3954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3955$as_echo "no" >&6; }
3956fi
3957
3958  if test "x$ac_ct_CC" = x; then
3959    CC=""
3960  else
3961    case $cross_compiling:$ac_tool_warned in
3962yes:)
3963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3965ac_tool_warned=yes ;;
3966esac
3967    CC=$ac_ct_CC
3968  fi
3969else
3970  CC="$ac_cv_prog_CC"
3971fi
3972
3973if test -z "$CC"; then
3974          if test -n "$ac_tool_prefix"; then
3975    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3976set dummy ${ac_tool_prefix}cc; ac_word=$2
3977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3978$as_echo_n "checking for $ac_word... " >&6; }
3979if ${ac_cv_prog_CC+:} false; then :
3980  $as_echo_n "(cached) " >&6
3981else
3982  if test -n "$CC"; then
3983  ac_cv_prog_CC="$CC" # Let the user override the test.
3984else
3985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986for as_dir in $PATH
3987do
3988  IFS=$as_save_IFS
3989  test -z "$as_dir" && as_dir=.
3990    for ac_exec_ext in '' $ac_executable_extensions; do
3991  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3992    ac_cv_prog_CC="${ac_tool_prefix}cc"
3993    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3994    break 2
3995  fi
3996done
3997  done
3998IFS=$as_save_IFS
3999
4000fi
4001fi
4002CC=$ac_cv_prog_CC
4003if test -n "$CC"; then
4004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4005$as_echo "$CC" >&6; }
4006else
4007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4008$as_echo "no" >&6; }
4009fi
4010
4011
4012  fi
4013fi
4014if test -z "$CC"; then
4015  # Extract the first word of "cc", so it can be a program name with args.
4016set dummy cc; ac_word=$2
4017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4018$as_echo_n "checking for $ac_word... " >&6; }
4019if ${ac_cv_prog_CC+:} false; then :
4020  $as_echo_n "(cached) " >&6
4021else
4022  if test -n "$CC"; then
4023  ac_cv_prog_CC="$CC" # Let the user override the test.
4024else
4025  ac_prog_rejected=no
4026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027for as_dir in $PATH
4028do
4029  IFS=$as_save_IFS
4030  test -z "$as_dir" && as_dir=.
4031    for ac_exec_ext in '' $ac_executable_extensions; do
4032  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4033    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4034       ac_prog_rejected=yes
4035       continue
4036     fi
4037    ac_cv_prog_CC="cc"
4038    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4039    break 2
4040  fi
4041done
4042  done
4043IFS=$as_save_IFS
4044
4045if test $ac_prog_rejected = yes; then
4046  # We found a bogon in the path, so make sure we never use it.
4047  set dummy $ac_cv_prog_CC
4048  shift
4049  if test $# != 0; then
4050    # We chose a different compiler from the bogus one.
4051    # However, it has the same basename, so the bogon will be chosen
4052    # first if we set CC to just the basename; use the full file name.
4053    shift
4054    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4055  fi
4056fi
4057fi
4058fi
4059CC=$ac_cv_prog_CC
4060if test -n "$CC"; then
4061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4062$as_echo "$CC" >&6; }
4063else
4064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4065$as_echo "no" >&6; }
4066fi
4067
4068
4069fi
4070if test -z "$CC"; then
4071  if test -n "$ac_tool_prefix"; then
4072  for ac_prog in cl.exe
4073  do
4074    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4075set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4077$as_echo_n "checking for $ac_word... " >&6; }
4078if ${ac_cv_prog_CC+:} false; then :
4079  $as_echo_n "(cached) " >&6
4080else
4081  if test -n "$CC"; then
4082  ac_cv_prog_CC="$CC" # Let the user override the test.
4083else
4084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085for as_dir in $PATH
4086do
4087  IFS=$as_save_IFS
4088  test -z "$as_dir" && as_dir=.
4089    for ac_exec_ext in '' $ac_executable_extensions; do
4090  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4091    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4092    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4093    break 2
4094  fi
4095done
4096  done
4097IFS=$as_save_IFS
4098
4099fi
4100fi
4101CC=$ac_cv_prog_CC
4102if test -n "$CC"; then
4103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4104$as_echo "$CC" >&6; }
4105else
4106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4107$as_echo "no" >&6; }
4108fi
4109
4110
4111    test -n "$CC" && break
4112  done
4113fi
4114if test -z "$CC"; then
4115  ac_ct_CC=$CC
4116  for ac_prog in cl.exe
4117do
4118  # Extract the first word of "$ac_prog", so it can be a program name with args.
4119set dummy $ac_prog; ac_word=$2
4120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4121$as_echo_n "checking for $ac_word... " >&6; }
4122if ${ac_cv_prog_ac_ct_CC+:} false; then :
4123  $as_echo_n "(cached) " >&6
4124else
4125  if test -n "$ac_ct_CC"; then
4126  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4127else
4128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129for as_dir in $PATH
4130do
4131  IFS=$as_save_IFS
4132  test -z "$as_dir" && as_dir=.
4133    for ac_exec_ext in '' $ac_executable_extensions; do
4134  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4135    ac_cv_prog_ac_ct_CC="$ac_prog"
4136    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4137    break 2
4138  fi
4139done
4140  done
4141IFS=$as_save_IFS
4142
4143fi
4144fi
4145ac_ct_CC=$ac_cv_prog_ac_ct_CC
4146if test -n "$ac_ct_CC"; then
4147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4148$as_echo "$ac_ct_CC" >&6; }
4149else
4150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151$as_echo "no" >&6; }
4152fi
4153
4154
4155  test -n "$ac_ct_CC" && break
4156done
4157
4158  if test "x$ac_ct_CC" = x; then
4159    CC=""
4160  else
4161    case $cross_compiling:$ac_tool_warned in
4162yes:)
4163{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4164$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4165ac_tool_warned=yes ;;
4166esac
4167    CC=$ac_ct_CC
4168  fi
4169fi
4170
4171fi
4172
4173
4174test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4176as_fn_error $? "no acceptable C compiler found in \$PATH
4177See \`config.log' for more details" "$LINENO" 5; }
4178
4179# Provide some information about the compiler.
4180$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4181set X $ac_compile
4182ac_compiler=$2
4183for ac_option in --version -v -V -qversion; do
4184  { { ac_try="$ac_compiler $ac_option >&5"
4185case "(($ac_try" in
4186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187  *) ac_try_echo=$ac_try;;
4188esac
4189eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4190$as_echo "$ac_try_echo"; } >&5
4191  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4192  ac_status=$?
4193  if test -s conftest.err; then
4194    sed '10a\
4195... rest of stderr output deleted ...
4196         10q' conftest.err >conftest.er1
4197    cat conftest.er1 >&5
4198  fi
4199  rm -f conftest.er1 conftest.err
4200  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4201  test $ac_status = 0; }
4202done
4203
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4205$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4206if ${ac_cv_c_compiler_gnu+:} false; then :
4207  $as_echo_n "(cached) " >&6
4208else
4209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210/* end confdefs.h.  */
4211
4212int
4213main ()
4214{
4215#ifndef __GNUC__
4216       choke me
4217#endif
4218
4219  ;
4220  return 0;
4221}
4222_ACEOF
4223if ac_fn_c_try_compile "$LINENO"; then :
4224  ac_compiler_gnu=yes
4225else
4226  ac_compiler_gnu=no
4227fi
4228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4229ac_cv_c_compiler_gnu=$ac_compiler_gnu
4230
4231fi
4232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4233$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4234if test $ac_compiler_gnu = yes; then
4235  GCC=yes
4236else
4237  GCC=
4238fi
4239ac_test_CFLAGS=${CFLAGS+set}
4240ac_save_CFLAGS=$CFLAGS
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4242$as_echo_n "checking whether $CC accepts -g... " >&6; }
4243if ${ac_cv_prog_cc_g+:} false; then :
4244  $as_echo_n "(cached) " >&6
4245else
4246  ac_save_c_werror_flag=$ac_c_werror_flag
4247   ac_c_werror_flag=yes
4248   ac_cv_prog_cc_g=no
4249   CFLAGS="-g"
4250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251/* end confdefs.h.  */
4252
4253int
4254main ()
4255{
4256
4257  ;
4258  return 0;
4259}
4260_ACEOF
4261if ac_fn_c_try_compile "$LINENO"; then :
4262  ac_cv_prog_cc_g=yes
4263else
4264  CFLAGS=""
4265      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266/* end confdefs.h.  */
4267
4268int
4269main ()
4270{
4271
4272  ;
4273  return 0;
4274}
4275_ACEOF
4276if ac_fn_c_try_compile "$LINENO"; then :
4277
4278else
4279  ac_c_werror_flag=$ac_save_c_werror_flag
4280	 CFLAGS="-g"
4281	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282/* end confdefs.h.  */
4283
4284int
4285main ()
4286{
4287
4288  ;
4289  return 0;
4290}
4291_ACEOF
4292if ac_fn_c_try_compile "$LINENO"; then :
4293  ac_cv_prog_cc_g=yes
4294fi
4295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296fi
4297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4298fi
4299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4300   ac_c_werror_flag=$ac_save_c_werror_flag
4301fi
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4303$as_echo "$ac_cv_prog_cc_g" >&6; }
4304if test "$ac_test_CFLAGS" = set; then
4305  CFLAGS=$ac_save_CFLAGS
4306elif test $ac_cv_prog_cc_g = yes; then
4307  if test "$GCC" = yes; then
4308    CFLAGS="-g -O2"
4309  else
4310    CFLAGS="-g"
4311  fi
4312else
4313  if test "$GCC" = yes; then
4314    CFLAGS="-O2"
4315  else
4316    CFLAGS=
4317  fi
4318fi
4319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4320$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4321if ${ac_cv_prog_cc_c89+:} false; then :
4322  $as_echo_n "(cached) " >&6
4323else
4324  ac_cv_prog_cc_c89=no
4325ac_save_CC=$CC
4326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327/* end confdefs.h.  */
4328#include <stdarg.h>
4329#include <stdio.h>
4330struct stat;
4331/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4332struct buf { int x; };
4333FILE * (*rcsopen) (struct buf *, struct stat *, int);
4334static char *e (p, i)
4335     char **p;
4336     int i;
4337{
4338  return p[i];
4339}
4340static char *f (char * (*g) (char **, int), char **p, ...)
4341{
4342  char *s;
4343  va_list v;
4344  va_start (v,p);
4345  s = g (p, va_arg (v,int));
4346  va_end (v);
4347  return s;
4348}
4349
4350/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4351   function prototypes and stuff, but not '\xHH' hex character constants.
4352   These don't provoke an error unfortunately, instead are silently treated
4353   as 'x'.  The following induces an error, until -std is added to get
4354   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4355   array size at least.  It's necessary to write '\x00'==0 to get something
4356   that's true only with -std.  */
4357int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4358
4359/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4360   inside strings and character constants.  */
4361#define FOO(x) 'x'
4362int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4363
4364int test (int i, double x);
4365struct s1 {int (*f) (int a);};
4366struct s2 {int (*f) (double a);};
4367int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4368int argc;
4369char **argv;
4370int
4371main ()
4372{
4373return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4374  ;
4375  return 0;
4376}
4377_ACEOF
4378for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4379	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4380do
4381  CC="$ac_save_CC $ac_arg"
4382  if ac_fn_c_try_compile "$LINENO"; then :
4383  ac_cv_prog_cc_c89=$ac_arg
4384fi
4385rm -f core conftest.err conftest.$ac_objext
4386  test "x$ac_cv_prog_cc_c89" != "xno" && break
4387done
4388rm -f conftest.$ac_ext
4389CC=$ac_save_CC
4390
4391fi
4392# AC_CACHE_VAL
4393case "x$ac_cv_prog_cc_c89" in
4394  x)
4395    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4396$as_echo "none needed" >&6; } ;;
4397  xno)
4398    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4399$as_echo "unsupported" >&6; } ;;
4400  *)
4401    CC="$CC $ac_cv_prog_cc_c89"
4402    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4403$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4404esac
4405if test "x$ac_cv_prog_cc_c89" != xno; then :
4406
4407fi
4408
4409ac_ext=c
4410ac_cpp='$CPP $CPPFLAGS'
4411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4413ac_compiler_gnu=$ac_cv_c_compiler_gnu
4414
4415ac_ext=c
4416ac_cpp='$CPP $CPPFLAGS'
4417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4419ac_compiler_gnu=$ac_cv_c_compiler_gnu
4420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4421$as_echo_n "checking how to run the C preprocessor... " >&6; }
4422# On Suns, sometimes $CPP names a directory.
4423if test -n "$CPP" && test -d "$CPP"; then
4424  CPP=
4425fi
4426if test -z "$CPP"; then
4427  if ${ac_cv_prog_CPP+:} false; then :
4428  $as_echo_n "(cached) " >&6
4429else
4430      # Double quotes because CPP needs to be expanded
4431    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4432    do
4433      ac_preproc_ok=false
4434for ac_c_preproc_warn_flag in '' yes
4435do
4436  # Use a header file that comes with gcc, so configuring glibc
4437  # with a fresh cross-compiler works.
4438  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4439  # <limits.h> exists even on freestanding compilers.
4440  # On the NeXT, cc -E runs the code through the compiler's parser,
4441  # not just through cpp. "Syntax error" is here to catch this case.
4442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4443/* end confdefs.h.  */
4444#ifdef __STDC__
4445# include <limits.h>
4446#else
4447# include <assert.h>
4448#endif
4449		     Syntax error
4450_ACEOF
4451if ac_fn_c_try_cpp "$LINENO"; then :
4452
4453else
4454  # Broken: fails on valid input.
4455continue
4456fi
4457rm -f conftest.err conftest.i conftest.$ac_ext
4458
4459  # OK, works on sane cases.  Now check whether nonexistent headers
4460  # can be detected and how.
4461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462/* end confdefs.h.  */
4463#include <ac_nonexistent.h>
4464_ACEOF
4465if ac_fn_c_try_cpp "$LINENO"; then :
4466  # Broken: success on invalid input.
4467continue
4468else
4469  # Passes both tests.
4470ac_preproc_ok=:
4471break
4472fi
4473rm -f conftest.err conftest.i conftest.$ac_ext
4474
4475done
4476# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4477rm -f conftest.i conftest.err conftest.$ac_ext
4478if $ac_preproc_ok; then :
4479  break
4480fi
4481
4482    done
4483    ac_cv_prog_CPP=$CPP
4484
4485fi
4486  CPP=$ac_cv_prog_CPP
4487else
4488  ac_cv_prog_CPP=$CPP
4489fi
4490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4491$as_echo "$CPP" >&6; }
4492ac_preproc_ok=false
4493for ac_c_preproc_warn_flag in '' yes
4494do
4495  # Use a header file that comes with gcc, so configuring glibc
4496  # with a fresh cross-compiler works.
4497  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4498  # <limits.h> exists even on freestanding compilers.
4499  # On the NeXT, cc -E runs the code through the compiler's parser,
4500  # not just through cpp. "Syntax error" is here to catch this case.
4501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502/* end confdefs.h.  */
4503#ifdef __STDC__
4504# include <limits.h>
4505#else
4506# include <assert.h>
4507#endif
4508		     Syntax error
4509_ACEOF
4510if ac_fn_c_try_cpp "$LINENO"; then :
4511
4512else
4513  # Broken: fails on valid input.
4514continue
4515fi
4516rm -f conftest.err conftest.i conftest.$ac_ext
4517
4518  # OK, works on sane cases.  Now check whether nonexistent headers
4519  # can be detected and how.
4520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521/* end confdefs.h.  */
4522#include <ac_nonexistent.h>
4523_ACEOF
4524if ac_fn_c_try_cpp "$LINENO"; then :
4525  # Broken: success on invalid input.
4526continue
4527else
4528  # Passes both tests.
4529ac_preproc_ok=:
4530break
4531fi
4532rm -f conftest.err conftest.i conftest.$ac_ext
4533
4534done
4535# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4536rm -f conftest.i conftest.err conftest.$ac_ext
4537if $ac_preproc_ok; then :
4538
4539else
4540  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4542as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4543See \`config.log' for more details" "$LINENO" 5; }
4544fi
4545
4546ac_ext=c
4547ac_cpp='$CPP $CPPFLAGS'
4548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4550ac_compiler_gnu=$ac_cv_c_compiler_gnu
4551
4552
4553
4554
4555save_cross_compiling=$cross_compiling
4556save_ac_tool_prefix=$ac_tool_prefix
4557cross_compiling=no
4558ac_tool_prefix=
4559
4560ac_ext=c
4561ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
4562ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
4563ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
4564ac_compiler_gnu=$ac_cv_c_compiler_gnu
4565if test -n "$ac_tool_prefix"; then
4566  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4567set dummy ${ac_tool_prefix}gcc; ac_word=$2
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4569$as_echo_n "checking for $ac_word... " >&6; }
4570if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4571  $as_echo_n "(cached) " >&6
4572else
4573  if test -n "$CC_FOR_BUILD"; then
4574  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4575else
4576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577for as_dir in $PATH
4578do
4579  IFS=$as_save_IFS
4580  test -z "$as_dir" && as_dir=.
4581    for ac_exec_ext in '' $ac_executable_extensions; do
4582  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4583    ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}gcc"
4584    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4585    break 2
4586  fi
4587done
4588  done
4589IFS=$as_save_IFS
4590
4591fi
4592fi
4593CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4594if test -n "$CC_FOR_BUILD"; then
4595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4596$as_echo "$CC_FOR_BUILD" >&6; }
4597else
4598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4599$as_echo "no" >&6; }
4600fi
4601
4602
4603fi
4604if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
4605  ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
4606  # Extract the first word of "gcc", so it can be a program name with args.
4607set dummy gcc; ac_word=$2
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4609$as_echo_n "checking for $ac_word... " >&6; }
4610if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
4611  $as_echo_n "(cached) " >&6
4612else
4613  if test -n "$ac_ct_CC_FOR_BUILD"; then
4614  ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
4615else
4616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617for as_dir in $PATH
4618do
4619  IFS=$as_save_IFS
4620  test -z "$as_dir" && as_dir=.
4621    for ac_exec_ext in '' $ac_executable_extensions; do
4622  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4623    ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
4624    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4625    break 2
4626  fi
4627done
4628  done
4629IFS=$as_save_IFS
4630
4631fi
4632fi
4633ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
4634if test -n "$ac_ct_CC_FOR_BUILD"; then
4635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
4636$as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
4637else
4638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4639$as_echo "no" >&6; }
4640fi
4641
4642  if test "x$ac_ct_CC_FOR_BUILD" = x; then
4643    CC_FOR_BUILD=""
4644  else
4645    case $cross_compiling:$ac_tool_warned in
4646yes:)
4647{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
4648$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
4649ac_tool_warned=yes ;;
4650esac
4651    CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
4652  fi
4653else
4654  CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
4655fi
4656
4657if test -z "$CC_FOR_BUILD"; then
4658          if test -n "$ac_tool_prefix"; then
4659    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4660set dummy ${ac_tool_prefix}cc; ac_word=$2
4661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4662$as_echo_n "checking for $ac_word... " >&6; }
4663if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4664  $as_echo_n "(cached) " >&6
4665else
4666  if test -n "$CC_FOR_BUILD"; then
4667  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4668else
4669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670for as_dir in $PATH
4671do
4672  IFS=$as_save_IFS
4673  test -z "$as_dir" && as_dir=.
4674    for ac_exec_ext in '' $ac_executable_extensions; do
4675  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676    ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}cc"
4677    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678    break 2
4679  fi
4680done
4681  done
4682IFS=$as_save_IFS
4683
4684fi
4685fi
4686CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4687if test -n "$CC_FOR_BUILD"; then
4688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4689$as_echo "$CC_FOR_BUILD" >&6; }
4690else
4691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692$as_echo "no" >&6; }
4693fi
4694
4695
4696  fi
4697fi
4698if test -z "$CC_FOR_BUILD"; then
4699  # Extract the first word of "cc", so it can be a program name with args.
4700set dummy cc; ac_word=$2
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4702$as_echo_n "checking for $ac_word... " >&6; }
4703if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4704  $as_echo_n "(cached) " >&6
4705else
4706  if test -n "$CC_FOR_BUILD"; then
4707  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4708else
4709  ac_prog_rejected=no
4710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711for as_dir in $PATH
4712do
4713  IFS=$as_save_IFS
4714  test -z "$as_dir" && as_dir=.
4715    for ac_exec_ext in '' $ac_executable_extensions; do
4716  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4717    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4718       ac_prog_rejected=yes
4719       continue
4720     fi
4721    ac_cv_prog_CC_FOR_BUILD="cc"
4722    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4723    break 2
4724  fi
4725done
4726  done
4727IFS=$as_save_IFS
4728
4729if test $ac_prog_rejected = yes; then
4730  # We found a bogon in the path, so make sure we never use it.
4731  set dummy $ac_cv_prog_CC_FOR_BUILD
4732  shift
4733  if test $# != 0; then
4734    # We chose a different compiler from the bogus one.
4735    # However, it has the same basename, so the bogon will be chosen
4736    # first if we set CC_FOR_BUILD to just the basename; use the full file name.
4737    shift
4738    ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
4739  fi
4740fi
4741fi
4742fi
4743CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4744if test -n "$CC_FOR_BUILD"; then
4745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4746$as_echo "$CC_FOR_BUILD" >&6; }
4747else
4748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749$as_echo "no" >&6; }
4750fi
4751
4752
4753fi
4754if test -z "$CC_FOR_BUILD"; then
4755  if test -n "$ac_tool_prefix"; then
4756  for ac_prog in cl.exe
4757  do
4758    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4759set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4761$as_echo_n "checking for $ac_word... " >&6; }
4762if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
4763  $as_echo_n "(cached) " >&6
4764else
4765  if test -n "$CC_FOR_BUILD"; then
4766  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
4767else
4768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769for as_dir in $PATH
4770do
4771  IFS=$as_save_IFS
4772  test -z "$as_dir" && as_dir=.
4773    for ac_exec_ext in '' $ac_executable_extensions; do
4774  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4775    ac_cv_prog_CC_FOR_BUILD="$ac_tool_prefix$ac_prog"
4776    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4777    break 2
4778  fi
4779done
4780  done
4781IFS=$as_save_IFS
4782
4783fi
4784fi
4785CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
4786if test -n "$CC_FOR_BUILD"; then
4787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
4788$as_echo "$CC_FOR_BUILD" >&6; }
4789else
4790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4791$as_echo "no" >&6; }
4792fi
4793
4794
4795    test -n "$CC_FOR_BUILD" && break
4796  done
4797fi
4798if test -z "$CC_FOR_BUILD"; then
4799  ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
4800  for ac_prog in cl.exe
4801do
4802  # Extract the first word of "$ac_prog", so it can be a program name with args.
4803set dummy $ac_prog; ac_word=$2
4804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805$as_echo_n "checking for $ac_word... " >&6; }
4806if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
4807  $as_echo_n "(cached) " >&6
4808else
4809  if test -n "$ac_ct_CC_FOR_BUILD"; then
4810  ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
4811else
4812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813for as_dir in $PATH
4814do
4815  IFS=$as_save_IFS
4816  test -z "$as_dir" && as_dir=.
4817    for ac_exec_ext in '' $ac_executable_extensions; do
4818  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4819    ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
4820    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4821    break 2
4822  fi
4823done
4824  done
4825IFS=$as_save_IFS
4826
4827fi
4828fi
4829ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
4830if test -n "$ac_ct_CC_FOR_BUILD"; then
4831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
4832$as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
4833else
4834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4835$as_echo "no" >&6; }
4836fi
4837
4838
4839  test -n "$ac_ct_CC_FOR_BUILD" && break
4840done
4841
4842  if test "x$ac_ct_CC_FOR_BUILD" = x; then
4843    CC_FOR_BUILD=""
4844  else
4845    case $cross_compiling:$ac_tool_warned in
4846yes:)
4847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
4848$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
4849ac_tool_warned=yes ;;
4850esac
4851    CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
4852  fi
4853fi
4854
4855fi
4856
4857
4858test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4859$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4860as_fn_error $? "no acceptable C compiler found in \$PATH
4861See \`config.log' for more details" "$LINENO" 5; }
4862
4863# Provide some information about the compiler.
4864$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4865set X $ac_build_compile
4866ac_compiler=$2
4867for ac_option in --version -v -V -qversion; do
4868  { { ac_try="$ac_compiler $ac_option >&5"
4869case "(($ac_try" in
4870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4871  *) ac_try_echo=$ac_try;;
4872esac
4873eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4874$as_echo "$ac_try_echo"; } >&5
4875  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4876  ac_status=$?
4877  if test -s conftest.err; then
4878    sed '10a\
4879... rest of stderr output deleted ...
4880         10q' conftest.err >conftest.er1
4881    cat conftest.er1 >&5
4882  fi
4883  rm -f conftest.er1 conftest.err
4884  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4885  test $ac_status = 0; }
4886done
4887
4888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4889$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4890if ${ac_cv_c_compiler_gnu+:} false; then :
4891  $as_echo_n "(cached) " >&6
4892else
4893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4894/* end confdefs.h.  */
4895
4896int
4897main ()
4898{
4899#ifndef __GNUC__
4900       choke me
4901#endif
4902
4903  ;
4904  return 0;
4905}
4906_ACEOF
4907if ac_fn_c_try_compile "$LINENO"; then :
4908  ac_compiler_gnu=yes
4909else
4910  ac_compiler_gnu=no
4911fi
4912rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
4913ac_cv_c_compiler_gnu=$ac_compiler_gnu
4914
4915fi
4916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4917$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4918if test $ac_compiler_gnu = yes; then
4919  GCC=yes
4920else
4921  GCC=
4922fi
4923ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
4924ac_save_CFLAGS=$CFLAGS_FOR_BUILD
4925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
4926$as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
4927if ${ac_cv_build_prog_cc_g+:} false; then :
4928  $as_echo_n "(cached) " >&6
4929else
4930  ac_save_c_werror_flag=$ac_c_werror_flag
4931   ac_c_werror_flag=yes
4932   ac_cv_build_prog_cc_g=no
4933   CFLAGS_FOR_BUILD="-g"
4934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935/* end confdefs.h.  */
4936
4937int
4938main ()
4939{
4940
4941  ;
4942  return 0;
4943}
4944_ACEOF
4945if ac_fn_c_try_compile "$LINENO"; then :
4946  ac_cv_build_prog_cc_g=yes
4947else
4948  CFLAGS_FOR_BUILD=""
4949      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950/* end confdefs.h.  */
4951
4952int
4953main ()
4954{
4955
4956  ;
4957  return 0;
4958}
4959_ACEOF
4960if ac_fn_c_try_compile "$LINENO"; then :
4961
4962else
4963  ac_c_werror_flag=$ac_save_c_werror_flag
4964	 CFLAGS_FOR_BUILD="-g"
4965	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966/* end confdefs.h.  */
4967
4968int
4969main ()
4970{
4971
4972  ;
4973  return 0;
4974}
4975_ACEOF
4976if ac_fn_c_try_compile "$LINENO"; then :
4977  ac_cv_build_prog_cc_g=yes
4978fi
4979rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
4980fi
4981rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
4982fi
4983rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
4984   ac_c_werror_flag=$ac_save_c_werror_flag
4985fi
4986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
4987$as_echo "$ac_cv_build_prog_cc_g" >&6; }
4988if test "$ac_test_CFLAGS" = set; then
4989  CFLAGS_FOR_BUILD=$ac_save_CFLAGS
4990elif test $ac_cv_build_prog_cc_g = yes; then
4991  if test "$GCC" = yes; then
4992    CFLAGS_FOR_BUILD="-g -O2"
4993  else
4994    CFLAGS_FOR_BUILD="-g"
4995  fi
4996else
4997  if test "$GCC" = yes; then
4998    CFLAGS_FOR_BUILD="-O2"
4999  else
5000    CFLAGS_FOR_BUILD=
5001  fi
5002fi
5003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
5004$as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; }
5005if ${ac_cv_prog_cc_c89+:} false; then :
5006  $as_echo_n "(cached) " >&6
5007else
5008  ac_cv_prog_cc_c89=no
5009ac_save_CC=$CC_FOR_BUILD
5010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011/* end confdefs.h.  */
5012#include <stdarg.h>
5013#include <stdio.h>
5014struct stat;
5015/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5016struct buf { int x; };
5017FILE * (*rcsopen) (struct buf *, struct stat *, int);
5018static char *e (p, i)
5019     char **p;
5020     int i;
5021{
5022  return p[i];
5023}
5024static char *f (char * (*g) (char **, int), char **p, ...)
5025{
5026  char *s;
5027  va_list v;
5028  va_start (v,p);
5029  s = g (p, va_arg (v,int));
5030  va_end (v);
5031  return s;
5032}
5033
5034/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5035   function prototypes and stuff, but not '\xHH' hex character constants.
5036   These don't provoke an error unfortunately, instead are silently treated
5037   as 'x'.  The following induces an error, until -std is added to get
5038   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5039   array size at least.  It's necessary to write '\x00'==0 to get something
5040   that's true only with -std.  */
5041int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5042
5043/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5044   inside strings and character constants.  */
5045#define FOO(x) 'x'
5046int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5047
5048int test (int i, double x);
5049struct s1 {int (*f) (int a);};
5050struct s2 {int (*f) (double a);};
5051int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5052int argc;
5053char **argv;
5054int
5055main ()
5056{
5057return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5058  ;
5059  return 0;
5060}
5061_ACEOF
5062for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5063	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5064do
5065  CC_FOR_BUILD="$ac_save_CC $ac_arg"
5066  if ac_fn_c_try_compile "$LINENO"; then :
5067  ac_cv_prog_cc_c89=$ac_arg
5068fi
5069rm -f core conftest.err conftest.$ac_build_objext
5070  test "x$ac_cv_prog_cc_c89" != "xno" && break
5071done
5072rm -f conftest.$ac_ext
5073CC_FOR_BUILD=$ac_save_CC
5074
5075fi
5076# AC_CACHE_VAL
5077case "x$ac_cv_prog_cc_c89" in
5078  x)
5079    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5080$as_echo "none needed" >&6; } ;;
5081  xno)
5082    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5083$as_echo "unsupported" >&6; } ;;
5084  *)
5085    CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89"
5086    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5087$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5088esac
5089if test "x$ac_cv_prog_cc_c89" != xno; then :
5090
5091fi
5092
5093ac_ext=c
5094ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5095ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5096ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5097ac_compiler_gnu=$ac_cv_c_compiler_gnu
5098
5099ac_ext=c
5100ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5101ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5102ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5103ac_compiler_gnu=$ac_cv_c_compiler_gnu
5104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5105$as_echo_n "checking how to run the C preprocessor... " >&6; }
5106# On Suns, sometimes $CPP names a directory.
5107if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
5108  CPP_FOR_BUILD=
5109fi
5110if test -z "$CPP_FOR_BUILD"; then
5111  if ${ac_cv_build_prog_CPP+:} false; then :
5112  $as_echo_n "(cached) " >&6
5113else
5114      # Double quotes because CPP needs to be expanded
5115    for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
5116    do
5117      ac_preproc_ok=false
5118for ac_c_preproc_warn_flag in '' yes
5119do
5120  # Use a header file that comes with gcc, so configuring glibc
5121  # with a fresh cross-compiler works.
5122  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5123  # <limits.h> exists even on freestanding compilers.
5124  # On the NeXT, cc -E runs the code through the compiler's parser,
5125  # not just through cpp. "Syntax error" is here to catch this case.
5126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5127/* end confdefs.h.  */
5128#ifdef __STDC__
5129# include <limits.h>
5130#else
5131# include <assert.h>
5132#endif
5133		     Syntax error
5134_ACEOF
5135if ac_fn_c_try_cpp "$LINENO"; then :
5136
5137else
5138  # Broken: fails on valid input.
5139continue
5140fi
5141rm -f conftest.err conftest.i conftest.$ac_ext
5142
5143  # OK, works on sane cases.  Now check whether nonexistent headers
5144  # can be detected and how.
5145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146/* end confdefs.h.  */
5147#include <ac_nonexistent.h>
5148_ACEOF
5149if ac_fn_c_try_cpp "$LINENO"; then :
5150  # Broken: success on invalid input.
5151continue
5152else
5153  # Passes both tests.
5154ac_preproc_ok=:
5155break
5156fi
5157rm -f conftest.err conftest.i conftest.$ac_ext
5158
5159done
5160# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5161rm -f conftest.i conftest.err conftest.$ac_ext
5162if $ac_preproc_ok; then :
5163  break
5164fi
5165
5166    done
5167    ac_cv_build_prog_CPP=$CPP_FOR_BUILD
5168
5169fi
5170  CPP_FOR_BUILD=$ac_cv_build_prog_CPP
5171else
5172  ac_cv_build_prog_CPP=$CPP_FOR_BUILD
5173fi
5174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
5175$as_echo "$CPP_FOR_BUILD" >&6; }
5176ac_preproc_ok=false
5177for ac_c_preproc_warn_flag in '' yes
5178do
5179  # Use a header file that comes with gcc, so configuring glibc
5180  # with a fresh cross-compiler works.
5181  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5182  # <limits.h> exists even on freestanding compilers.
5183  # On the NeXT, cc -E runs the code through the compiler's parser,
5184  # not just through cpp. "Syntax error" is here to catch this case.
5185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186/* end confdefs.h.  */
5187#ifdef __STDC__
5188# include <limits.h>
5189#else
5190# include <assert.h>
5191#endif
5192		     Syntax error
5193_ACEOF
5194if ac_fn_c_try_cpp "$LINENO"; then :
5195
5196else
5197  # Broken: fails on valid input.
5198continue
5199fi
5200rm -f conftest.err conftest.i conftest.$ac_ext
5201
5202  # OK, works on sane cases.  Now check whether nonexistent headers
5203  # can be detected and how.
5204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5205/* end confdefs.h.  */
5206#include <ac_nonexistent.h>
5207_ACEOF
5208if ac_fn_c_try_cpp "$LINENO"; then :
5209  # Broken: success on invalid input.
5210continue
5211else
5212  # Passes both tests.
5213ac_preproc_ok=:
5214break
5215fi
5216rm -f conftest.err conftest.i conftest.$ac_ext
5217
5218done
5219# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5220rm -f conftest.i conftest.err conftest.$ac_ext
5221if $ac_preproc_ok; then :
5222
5223else
5224  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5225$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5226as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
5227See \`config.log' for more details" "$LINENO" 5; }
5228fi
5229
5230ac_ext=c
5231ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5232ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5233ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5234ac_compiler_gnu=$ac_cv_c_compiler_gnu
5235
5236
5237
5238ac_tool_prefix=$save_ac_tool_prefix
5239cross_compiling=$save_cross_compiling
5240
5241
5242BUILD_EXEEXT=$ac_build_exeext
5243BUILD_OBJEXT=$ac_build_objext
5244
5245ac_ext=cpp
5246ac_cpp='$CXXCPP $CPPFLAGS'
5247ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5248ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5249ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5250if test -z "$CXX"; then
5251  if test -n "$CCC"; then
5252    CXX=$CCC
5253  else
5254    if test -n "$ac_tool_prefix"; then
5255  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5256  do
5257    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5258set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5260$as_echo_n "checking for $ac_word... " >&6; }
5261if ${ac_cv_prog_CXX+:} false; then :
5262  $as_echo_n "(cached) " >&6
5263else
5264  if test -n "$CXX"; then
5265  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5266else
5267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268for as_dir in $PATH
5269do
5270  IFS=$as_save_IFS
5271  test -z "$as_dir" && as_dir=.
5272    for ac_exec_ext in '' $ac_executable_extensions; do
5273  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5274    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5275    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5276    break 2
5277  fi
5278done
5279  done
5280IFS=$as_save_IFS
5281
5282fi
5283fi
5284CXX=$ac_cv_prog_CXX
5285if test -n "$CXX"; then
5286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5287$as_echo "$CXX" >&6; }
5288else
5289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5290$as_echo "no" >&6; }
5291fi
5292
5293
5294    test -n "$CXX" && break
5295  done
5296fi
5297if test -z "$CXX"; then
5298  ac_ct_CXX=$CXX
5299  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5300do
5301  # Extract the first word of "$ac_prog", so it can be a program name with args.
5302set dummy $ac_prog; ac_word=$2
5303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5304$as_echo_n "checking for $ac_word... " >&6; }
5305if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5306  $as_echo_n "(cached) " >&6
5307else
5308  if test -n "$ac_ct_CXX"; then
5309  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5310else
5311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312for as_dir in $PATH
5313do
5314  IFS=$as_save_IFS
5315  test -z "$as_dir" && as_dir=.
5316    for ac_exec_ext in '' $ac_executable_extensions; do
5317  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5318    ac_cv_prog_ac_ct_CXX="$ac_prog"
5319    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5320    break 2
5321  fi
5322done
5323  done
5324IFS=$as_save_IFS
5325
5326fi
5327fi
5328ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5329if test -n "$ac_ct_CXX"; then
5330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5331$as_echo "$ac_ct_CXX" >&6; }
5332else
5333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5334$as_echo "no" >&6; }
5335fi
5336
5337
5338  test -n "$ac_ct_CXX" && break
5339done
5340
5341  if test "x$ac_ct_CXX" = x; then
5342    CXX="g++"
5343  else
5344    case $cross_compiling:$ac_tool_warned in
5345yes:)
5346{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5347$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5348ac_tool_warned=yes ;;
5349esac
5350    CXX=$ac_ct_CXX
5351  fi
5352fi
5353
5354  fi
5355fi
5356# Provide some information about the compiler.
5357$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5358set X $ac_compile
5359ac_compiler=$2
5360for ac_option in --version -v -V -qversion; do
5361  { { ac_try="$ac_compiler $ac_option >&5"
5362case "(($ac_try" in
5363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5364  *) ac_try_echo=$ac_try;;
5365esac
5366eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5367$as_echo "$ac_try_echo"; } >&5
5368  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5369  ac_status=$?
5370  if test -s conftest.err; then
5371    sed '10a\
5372... rest of stderr output deleted ...
5373         10q' conftest.err >conftest.er1
5374    cat conftest.er1 >&5
5375  fi
5376  rm -f conftest.er1 conftest.err
5377  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5378  test $ac_status = 0; }
5379done
5380
5381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5382$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5383if ${ac_cv_cxx_compiler_gnu+:} false; then :
5384  $as_echo_n "(cached) " >&6
5385else
5386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387/* end confdefs.h.  */
5388
5389int
5390main ()
5391{
5392#ifndef __GNUC__
5393       choke me
5394#endif
5395
5396  ;
5397  return 0;
5398}
5399_ACEOF
5400if ac_fn_cxx_try_compile "$LINENO"; then :
5401  ac_compiler_gnu=yes
5402else
5403  ac_compiler_gnu=no
5404fi
5405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5406ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5407
5408fi
5409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5410$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5411if test $ac_compiler_gnu = yes; then
5412  GXX=yes
5413else
5414  GXX=
5415fi
5416ac_test_CXXFLAGS=${CXXFLAGS+set}
5417ac_save_CXXFLAGS=$CXXFLAGS
5418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5419$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5420if ${ac_cv_prog_cxx_g+:} false; then :
5421  $as_echo_n "(cached) " >&6
5422else
5423  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5424   ac_cxx_werror_flag=yes
5425   ac_cv_prog_cxx_g=no
5426   CXXFLAGS="-g"
5427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428/* end confdefs.h.  */
5429
5430int
5431main ()
5432{
5433
5434  ;
5435  return 0;
5436}
5437_ACEOF
5438if ac_fn_cxx_try_compile "$LINENO"; then :
5439  ac_cv_prog_cxx_g=yes
5440else
5441  CXXFLAGS=""
5442      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443/* end confdefs.h.  */
5444
5445int
5446main ()
5447{
5448
5449  ;
5450  return 0;
5451}
5452_ACEOF
5453if ac_fn_cxx_try_compile "$LINENO"; then :
5454
5455else
5456  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5457	 CXXFLAGS="-g"
5458	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459/* end confdefs.h.  */
5460
5461int
5462main ()
5463{
5464
5465  ;
5466  return 0;
5467}
5468_ACEOF
5469if ac_fn_cxx_try_compile "$LINENO"; then :
5470  ac_cv_prog_cxx_g=yes
5471fi
5472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5473fi
5474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5475fi
5476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5477   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5478fi
5479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5480$as_echo "$ac_cv_prog_cxx_g" >&6; }
5481if test "$ac_test_CXXFLAGS" = set; then
5482  CXXFLAGS=$ac_save_CXXFLAGS
5483elif test $ac_cv_prog_cxx_g = yes; then
5484  if test "$GXX" = yes; then
5485    CXXFLAGS="-g -O2"
5486  else
5487    CXXFLAGS="-g"
5488  fi
5489else
5490  if test "$GXX" = yes; then
5491    CXXFLAGS="-O2"
5492  else
5493    CXXFLAGS=
5494  fi
5495fi
5496ac_ext=c
5497ac_cpp='$CPP $CPPFLAGS'
5498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5500ac_compiler_gnu=$ac_cv_c_compiler_gnu
5501
5502ac_ext=c
5503ac_cpp='$CPP $CPPFLAGS'
5504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5506ac_compiler_gnu=$ac_cv_c_compiler_gnu
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5508$as_echo_n "checking how to run the C preprocessor... " >&6; }
5509# On Suns, sometimes $CPP names a directory.
5510if test -n "$CPP" && test -d "$CPP"; then
5511  CPP=
5512fi
5513if test -z "$CPP"; then
5514  if ${ac_cv_prog_CPP+:} false; then :
5515  $as_echo_n "(cached) " >&6
5516else
5517      # Double quotes because CPP needs to be expanded
5518    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5519    do
5520      ac_preproc_ok=false
5521for ac_c_preproc_warn_flag in '' yes
5522do
5523  # Use a header file that comes with gcc, so configuring glibc
5524  # with a fresh cross-compiler works.
5525  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5526  # <limits.h> exists even on freestanding compilers.
5527  # On the NeXT, cc -E runs the code through the compiler's parser,
5528  # not just through cpp. "Syntax error" is here to catch this case.
5529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530/* end confdefs.h.  */
5531#ifdef __STDC__
5532# include <limits.h>
5533#else
5534# include <assert.h>
5535#endif
5536		     Syntax error
5537_ACEOF
5538if ac_fn_c_try_cpp "$LINENO"; then :
5539
5540else
5541  # Broken: fails on valid input.
5542continue
5543fi
5544rm -f conftest.err conftest.i conftest.$ac_ext
5545
5546  # OK, works on sane cases.  Now check whether nonexistent headers
5547  # can be detected and how.
5548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549/* end confdefs.h.  */
5550#include <ac_nonexistent.h>
5551_ACEOF
5552if ac_fn_c_try_cpp "$LINENO"; then :
5553  # Broken: success on invalid input.
5554continue
5555else
5556  # Passes both tests.
5557ac_preproc_ok=:
5558break
5559fi
5560rm -f conftest.err conftest.i conftest.$ac_ext
5561
5562done
5563# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5564rm -f conftest.i conftest.err conftest.$ac_ext
5565if $ac_preproc_ok; then :
5566  break
5567fi
5568
5569    done
5570    ac_cv_prog_CPP=$CPP
5571
5572fi
5573  CPP=$ac_cv_prog_CPP
5574else
5575  ac_cv_prog_CPP=$CPP
5576fi
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5578$as_echo "$CPP" >&6; }
5579ac_preproc_ok=false
5580for ac_c_preproc_warn_flag in '' yes
5581do
5582  # Use a header file that comes with gcc, so configuring glibc
5583  # with a fresh cross-compiler works.
5584  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5585  # <limits.h> exists even on freestanding compilers.
5586  # On the NeXT, cc -E runs the code through the compiler's parser,
5587  # not just through cpp. "Syntax error" is here to catch this case.
5588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589/* end confdefs.h.  */
5590#ifdef __STDC__
5591# include <limits.h>
5592#else
5593# include <assert.h>
5594#endif
5595		     Syntax error
5596_ACEOF
5597if ac_fn_c_try_cpp "$LINENO"; then :
5598
5599else
5600  # Broken: fails on valid input.
5601continue
5602fi
5603rm -f conftest.err conftest.i conftest.$ac_ext
5604
5605  # OK, works on sane cases.  Now check whether nonexistent headers
5606  # can be detected and how.
5607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608/* end confdefs.h.  */
5609#include <ac_nonexistent.h>
5610_ACEOF
5611if ac_fn_c_try_cpp "$LINENO"; then :
5612  # Broken: success on invalid input.
5613continue
5614else
5615  # Passes both tests.
5616ac_preproc_ok=:
5617break
5618fi
5619rm -f conftest.err conftest.i conftest.$ac_ext
5620
5621done
5622# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5623rm -f conftest.i conftest.err conftest.$ac_ext
5624if $ac_preproc_ok; then :
5625
5626else
5627  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5628$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5629as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5630See \`config.log' for more details" "$LINENO" 5; }
5631fi
5632
5633ac_ext=c
5634ac_cpp='$CPP $CPPFLAGS'
5635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5637ac_compiler_gnu=$ac_cv_c_compiler_gnu
5638
5639ac_ext=cpp
5640ac_cpp='$CXXCPP $CPPFLAGS'
5641ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5642ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5643ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5645$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5646if test -z "$CXXCPP"; then
5647  if ${ac_cv_prog_CXXCPP+:} false; then :
5648  $as_echo_n "(cached) " >&6
5649else
5650      # Double quotes because CXXCPP needs to be expanded
5651    for CXXCPP in "$CXX -E" "/lib/cpp"
5652    do
5653      ac_preproc_ok=false
5654for ac_cxx_preproc_warn_flag in '' yes
5655do
5656  # Use a header file that comes with gcc, so configuring glibc
5657  # with a fresh cross-compiler works.
5658  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5659  # <limits.h> exists even on freestanding compilers.
5660  # On the NeXT, cc -E runs the code through the compiler's parser,
5661  # not just through cpp. "Syntax error" is here to catch this case.
5662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663/* end confdefs.h.  */
5664#ifdef __STDC__
5665# include <limits.h>
5666#else
5667# include <assert.h>
5668#endif
5669		     Syntax error
5670_ACEOF
5671if ac_fn_cxx_try_cpp "$LINENO"; then :
5672
5673else
5674  # Broken: fails on valid input.
5675continue
5676fi
5677rm -f conftest.err conftest.i conftest.$ac_ext
5678
5679  # OK, works on sane cases.  Now check whether nonexistent headers
5680  # can be detected and how.
5681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5682/* end confdefs.h.  */
5683#include <ac_nonexistent.h>
5684_ACEOF
5685if ac_fn_cxx_try_cpp "$LINENO"; then :
5686  # Broken: success on invalid input.
5687continue
5688else
5689  # Passes both tests.
5690ac_preproc_ok=:
5691break
5692fi
5693rm -f conftest.err conftest.i conftest.$ac_ext
5694
5695done
5696# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5697rm -f conftest.i conftest.err conftest.$ac_ext
5698if $ac_preproc_ok; then :
5699  break
5700fi
5701
5702    done
5703    ac_cv_prog_CXXCPP=$CXXCPP
5704
5705fi
5706  CXXCPP=$ac_cv_prog_CXXCPP
5707else
5708  ac_cv_prog_CXXCPP=$CXXCPP
5709fi
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5711$as_echo "$CXXCPP" >&6; }
5712ac_preproc_ok=false
5713for ac_cxx_preproc_warn_flag in '' yes
5714do
5715  # Use a header file that comes with gcc, so configuring glibc
5716  # with a fresh cross-compiler works.
5717  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5718  # <limits.h> exists even on freestanding compilers.
5719  # On the NeXT, cc -E runs the code through the compiler's parser,
5720  # not just through cpp. "Syntax error" is here to catch this case.
5721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722/* end confdefs.h.  */
5723#ifdef __STDC__
5724# include <limits.h>
5725#else
5726# include <assert.h>
5727#endif
5728		     Syntax error
5729_ACEOF
5730if ac_fn_cxx_try_cpp "$LINENO"; then :
5731
5732else
5733  # Broken: fails on valid input.
5734continue
5735fi
5736rm -f conftest.err conftest.i conftest.$ac_ext
5737
5738  # OK, works on sane cases.  Now check whether nonexistent headers
5739  # can be detected and how.
5740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5741/* end confdefs.h.  */
5742#include <ac_nonexistent.h>
5743_ACEOF
5744if ac_fn_cxx_try_cpp "$LINENO"; then :
5745  # Broken: success on invalid input.
5746continue
5747else
5748  # Passes both tests.
5749ac_preproc_ok=:
5750break
5751fi
5752rm -f conftest.err conftest.i conftest.$ac_ext
5753
5754done
5755# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5756rm -f conftest.i conftest.err conftest.$ac_ext
5757if $ac_preproc_ok; then :
5758
5759else
5760  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5761$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5762as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5763See \`config.log' for more details" "$LINENO" 5; }
5764fi
5765
5766ac_ext=c
5767ac_cpp='$CPP $CPPFLAGS'
5768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5770ac_compiler_gnu=$ac_cv_c_compiler_gnu
5771
5772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5773$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5774set x ${MAKE-make}
5775ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5776if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5777  $as_echo_n "(cached) " >&6
5778else
5779  cat >conftest.make <<\_ACEOF
5780SHELL = /bin/sh
5781all:
5782	@echo '@@@%%%=$(MAKE)=@@@%%%'
5783_ACEOF
5784# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5785case `${MAKE-make} -f conftest.make 2>/dev/null` in
5786  *@@@%%%=?*=@@@%%%*)
5787    eval ac_cv_prog_make_${ac_make}_set=yes;;
5788  *)
5789    eval ac_cv_prog_make_${ac_make}_set=no;;
5790esac
5791rm -f conftest.make
5792fi
5793if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5795$as_echo "yes" >&6; }
5796  SET_MAKE=
5797else
5798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799$as_echo "no" >&6; }
5800  SET_MAKE="MAKE=${MAKE-make}"
5801fi
5802
5803
5804
5805
5806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5807$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5808if ${ac_cv_path_GREP+:} false; then :
5809  $as_echo_n "(cached) " >&6
5810else
5811  if test -z "$GREP"; then
5812  ac_path_GREP_found=false
5813  # Loop through the user's path and test for each of PROGNAME-LIST
5814  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5816do
5817  IFS=$as_save_IFS
5818  test -z "$as_dir" && as_dir=.
5819    for ac_prog in grep ggrep; do
5820    for ac_exec_ext in '' $ac_executable_extensions; do
5821      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5822      as_fn_executable_p "$ac_path_GREP" || continue
5823# Check for GNU ac_path_GREP and select it if it is found.
5824  # Check for GNU $ac_path_GREP
5825case `"$ac_path_GREP" --version 2>&1` in
5826*GNU*)
5827  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5828*)
5829  ac_count=0
5830  $as_echo_n 0123456789 >"conftest.in"
5831  while :
5832  do
5833    cat "conftest.in" "conftest.in" >"conftest.tmp"
5834    mv "conftest.tmp" "conftest.in"
5835    cp "conftest.in" "conftest.nl"
5836    $as_echo 'GREP' >> "conftest.nl"
5837    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5838    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5839    as_fn_arith $ac_count + 1 && ac_count=$as_val
5840    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5841      # Best one so far, save it but keep looking for a better one
5842      ac_cv_path_GREP="$ac_path_GREP"
5843      ac_path_GREP_max=$ac_count
5844    fi
5845    # 10*(2^10) chars as input seems more than enough
5846    test $ac_count -gt 10 && break
5847  done
5848  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5849esac
5850
5851      $ac_path_GREP_found && break 3
5852    done
5853  done
5854  done
5855IFS=$as_save_IFS
5856  if test -z "$ac_cv_path_GREP"; then
5857    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5858  fi
5859else
5860  ac_cv_path_GREP=$GREP
5861fi
5862
5863fi
5864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5865$as_echo "$ac_cv_path_GREP" >&6; }
5866 GREP="$ac_cv_path_GREP"
5867
5868
5869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5870$as_echo_n "checking for egrep... " >&6; }
5871if ${ac_cv_path_EGREP+:} false; then :
5872  $as_echo_n "(cached) " >&6
5873else
5874  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5875   then ac_cv_path_EGREP="$GREP -E"
5876   else
5877     if test -z "$EGREP"; then
5878  ac_path_EGREP_found=false
5879  # Loop through the user's path and test for each of PROGNAME-LIST
5880  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5882do
5883  IFS=$as_save_IFS
5884  test -z "$as_dir" && as_dir=.
5885    for ac_prog in egrep; do
5886    for ac_exec_ext in '' $ac_executable_extensions; do
5887      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5888      as_fn_executable_p "$ac_path_EGREP" || continue
5889# Check for GNU ac_path_EGREP and select it if it is found.
5890  # Check for GNU $ac_path_EGREP
5891case `"$ac_path_EGREP" --version 2>&1` in
5892*GNU*)
5893  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5894*)
5895  ac_count=0
5896  $as_echo_n 0123456789 >"conftest.in"
5897  while :
5898  do
5899    cat "conftest.in" "conftest.in" >"conftest.tmp"
5900    mv "conftest.tmp" "conftest.in"
5901    cp "conftest.in" "conftest.nl"
5902    $as_echo 'EGREP' >> "conftest.nl"
5903    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5904    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5905    as_fn_arith $ac_count + 1 && ac_count=$as_val
5906    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5907      # Best one so far, save it but keep looking for a better one
5908      ac_cv_path_EGREP="$ac_path_EGREP"
5909      ac_path_EGREP_max=$ac_count
5910    fi
5911    # 10*(2^10) chars as input seems more than enough
5912    test $ac_count -gt 10 && break
5913  done
5914  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5915esac
5916
5917      $ac_path_EGREP_found && break 3
5918    done
5919  done
5920  done
5921IFS=$as_save_IFS
5922  if test -z "$ac_cv_path_EGREP"; then
5923    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5924  fi
5925else
5926  ac_cv_path_EGREP=$EGREP
5927fi
5928
5929   fi
5930fi
5931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5932$as_echo "$ac_cv_path_EGREP" >&6; }
5933 EGREP="$ac_cv_path_EGREP"
5934
5935
5936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5937$as_echo_n "checking for ANSI C header files... " >&6; }
5938if ${ac_cv_header_stdc+:} false; then :
5939  $as_echo_n "(cached) " >&6
5940else
5941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5942/* end confdefs.h.  */
5943#include <stdlib.h>
5944#include <stdarg.h>
5945#include <string.h>
5946#include <float.h>
5947
5948int
5949main ()
5950{
5951
5952  ;
5953  return 0;
5954}
5955_ACEOF
5956if ac_fn_c_try_compile "$LINENO"; then :
5957  ac_cv_header_stdc=yes
5958else
5959  ac_cv_header_stdc=no
5960fi
5961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5962
5963if test $ac_cv_header_stdc = yes; then
5964  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966/* end confdefs.h.  */
5967#include <string.h>
5968
5969_ACEOF
5970if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5971  $EGREP "memchr" >/dev/null 2>&1; then :
5972
5973else
5974  ac_cv_header_stdc=no
5975fi
5976rm -f conftest*
5977
5978fi
5979
5980if test $ac_cv_header_stdc = yes; then
5981  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983/* end confdefs.h.  */
5984#include <stdlib.h>
5985
5986_ACEOF
5987if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5988  $EGREP "free" >/dev/null 2>&1; then :
5989
5990else
5991  ac_cv_header_stdc=no
5992fi
5993rm -f conftest*
5994
5995fi
5996
5997if test $ac_cv_header_stdc = yes; then
5998  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5999  if test "$cross_compiling" = yes; then :
6000  :
6001else
6002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003/* end confdefs.h.  */
6004#include <ctype.h>
6005#include <stdlib.h>
6006#if ((' ' & 0x0FF) == 0x020)
6007# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6008# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6009#else
6010# define ISLOWER(c) \
6011		   (('a' <= (c) && (c) <= 'i') \
6012		     || ('j' <= (c) && (c) <= 'r') \
6013		     || ('s' <= (c) && (c) <= 'z'))
6014# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6015#endif
6016
6017#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6018int
6019main ()
6020{
6021  int i;
6022  for (i = 0; i < 256; i++)
6023    if (XOR (islower (i), ISLOWER (i))
6024	|| toupper (i) != TOUPPER (i))
6025      return 2;
6026  return 0;
6027}
6028_ACEOF
6029if ac_fn_c_try_run "$LINENO"; then :
6030
6031else
6032  ac_cv_header_stdc=no
6033fi
6034rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6035  conftest.$ac_objext conftest.beam conftest.$ac_ext
6036fi
6037
6038fi
6039fi
6040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6041$as_echo "$ac_cv_header_stdc" >&6; }
6042if test $ac_cv_header_stdc = yes; then
6043
6044$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6045
6046fi
6047
6048# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6049for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6050		  inttypes.h stdint.h unistd.h
6051do :
6052  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6053ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6054"
6055if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6056  cat >>confdefs.h <<_ACEOF
6057#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6058_ACEOF
6059
6060fi
6061
6062done
6063
6064
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6066$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6067if ${ac_cv_c_bigendian+:} false; then :
6068  $as_echo_n "(cached) " >&6
6069else
6070  ac_cv_c_bigendian=unknown
6071    # See if we're dealing with a universal compiler.
6072    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6073/* end confdefs.h.  */
6074#ifndef __APPLE_CC__
6075	       not a universal capable compiler
6076	     #endif
6077	     typedef int dummy;
6078
6079_ACEOF
6080if ac_fn_c_try_compile "$LINENO"; then :
6081
6082	# Check for potential -arch flags.  It is not universal unless
6083	# there are at least two -arch flags with different values.
6084	ac_arch=
6085	ac_prev=
6086	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6087	 if test -n "$ac_prev"; then
6088	   case $ac_word in
6089	     i?86 | x86_64 | ppc | ppc64)
6090	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6091		 ac_arch=$ac_word
6092	       else
6093		 ac_cv_c_bigendian=universal
6094		 break
6095	       fi
6096	       ;;
6097	   esac
6098	   ac_prev=
6099	 elif test "x$ac_word" = "x-arch"; then
6100	   ac_prev=arch
6101	 fi
6102       done
6103fi
6104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6105    if test $ac_cv_c_bigendian = unknown; then
6106      # See if sys/param.h defines the BYTE_ORDER macro.
6107      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108/* end confdefs.h.  */
6109#include <sys/types.h>
6110	     #include <sys/param.h>
6111
6112int
6113main ()
6114{
6115#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6116		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6117		     && LITTLE_ENDIAN)
6118	      bogus endian macros
6119	     #endif
6120
6121  ;
6122  return 0;
6123}
6124_ACEOF
6125if ac_fn_c_try_compile "$LINENO"; then :
6126  # It does; now see whether it defined to BIG_ENDIAN or not.
6127	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128/* end confdefs.h.  */
6129#include <sys/types.h>
6130		#include <sys/param.h>
6131
6132int
6133main ()
6134{
6135#if BYTE_ORDER != BIG_ENDIAN
6136		 not big endian
6137		#endif
6138
6139  ;
6140  return 0;
6141}
6142_ACEOF
6143if ac_fn_c_try_compile "$LINENO"; then :
6144  ac_cv_c_bigendian=yes
6145else
6146  ac_cv_c_bigendian=no
6147fi
6148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6149fi
6150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6151    fi
6152    if test $ac_cv_c_bigendian = unknown; then
6153      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6154      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155/* end confdefs.h.  */
6156#include <limits.h>
6157
6158int
6159main ()
6160{
6161#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6162	      bogus endian macros
6163	     #endif
6164
6165  ;
6166  return 0;
6167}
6168_ACEOF
6169if ac_fn_c_try_compile "$LINENO"; then :
6170  # It does; now see whether it defined to _BIG_ENDIAN or not.
6171	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172/* end confdefs.h.  */
6173#include <limits.h>
6174
6175int
6176main ()
6177{
6178#ifndef _BIG_ENDIAN
6179		 not big endian
6180		#endif
6181
6182  ;
6183  return 0;
6184}
6185_ACEOF
6186if ac_fn_c_try_compile "$LINENO"; then :
6187  ac_cv_c_bigendian=yes
6188else
6189  ac_cv_c_bigendian=no
6190fi
6191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6192fi
6193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6194    fi
6195    if test $ac_cv_c_bigendian = unknown; then
6196      # Compile a test program.
6197      if test "$cross_compiling" = yes; then :
6198  # Try to guess by grepping values from an object file.
6199	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6200/* end confdefs.h.  */
6201short int ascii_mm[] =
6202		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6203		short int ascii_ii[] =
6204		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6205		int use_ascii (int i) {
6206		  return ascii_mm[i] + ascii_ii[i];
6207		}
6208		short int ebcdic_ii[] =
6209		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6210		short int ebcdic_mm[] =
6211		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6212		int use_ebcdic (int i) {
6213		  return ebcdic_mm[i] + ebcdic_ii[i];
6214		}
6215		extern int foo;
6216
6217int
6218main ()
6219{
6220return use_ascii (foo) == use_ebcdic (foo);
6221  ;
6222  return 0;
6223}
6224_ACEOF
6225if ac_fn_c_try_compile "$LINENO"; then :
6226  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6227	      ac_cv_c_bigendian=yes
6228	    fi
6229	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6230	      if test "$ac_cv_c_bigendian" = unknown; then
6231		ac_cv_c_bigendian=no
6232	      else
6233		# finding both strings is unlikely to happen, but who knows?
6234		ac_cv_c_bigendian=unknown
6235	      fi
6236	    fi
6237fi
6238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6239else
6240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6241/* end confdefs.h.  */
6242$ac_includes_default
6243int
6244main ()
6245{
6246
6247	     /* Are we little or big endian?  From Harbison&Steele.  */
6248	     union
6249	     {
6250	       long int l;
6251	       char c[sizeof (long int)];
6252	     } u;
6253	     u.l = 1;
6254	     return u.c[sizeof (long int) - 1] == 1;
6255
6256  ;
6257  return 0;
6258}
6259_ACEOF
6260if ac_fn_c_try_run "$LINENO"; then :
6261  ac_cv_c_bigendian=no
6262else
6263  ac_cv_c_bigendian=yes
6264fi
6265rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6266  conftest.$ac_objext conftest.beam conftest.$ac_ext
6267fi
6268
6269    fi
6270fi
6271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6272$as_echo "$ac_cv_c_bigendian" >&6; }
6273 case $ac_cv_c_bigendian in #(
6274   yes)
6275     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6276;; #(
6277   no)
6278      ;; #(
6279   universal)
6280
6281$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6282
6283     ;; #(
6284   *)
6285     as_fn_error $? "unknown endianness
6286 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6287 esac
6288
6289
6290
6291
6292
6293
6294target=`$CC -dumpmachine`
6295case "$target" in
6296	*-darwin*)
6297		SHARED_FLAGS="-dynamiclib -flat_namespace -undefined suppress"
6298		CFLAGS="$CFLAGS -fno-common"
6299		CXXFLAGS="$CXXFLAGS -fno-common"
6300		LIB_SUFFIX=.dylib
6301		PTHREAD_LIBS=-pthread
6302		;;
6303	*-haiku*)
6304		SHARED_FLAGS=-shared
6305		LIB_SUFFIX=.so
6306		PTHREAD_LIBS=
6307		with_desktop_file_install=no
6308		HAIKU=1
6309		;;
6310	*)
6311		SHARED_FLAGS=-shared
6312		LIB_SUFFIX=.so
6313		PTHREAD_LIBS=-pthread
6314		;;
6315esac
6316cat >>confdefs.h <<_ACEOF
6317#define LIB_SUFFIX "$LIB_SUFFIX"
6318_ACEOF
6319
6320
6321
6322
6323# Check whether --with-dir_suffix was given.
6324if test "${with_dir_suffix+set}" = set; then :
6325  withval=$with_dir_suffix; DIR_SUFFIX=$with_dir_suffix
6326else
6327  DIR_SUFFIX=-$PACKAGE_VERSION
6328fi
6329
6330cat >>confdefs.h <<_ACEOF
6331#define DIR_SUFFIX "$DIR_SUFFIX"
6332_ACEOF
6333
6334
6335
6336# Check whether --with-x11 was given.
6337if test "${with_x11+set}" = set; then :
6338  withval=$with_x11;
6339else
6340  with_x11=auto
6341fi
6342
6343
6344
6345# Check whether --with-adplug was given.
6346if test "${with_adplug+set}" = set; then :
6347  withval=$with_adplug;
6348else
6349  with_adplug=auto
6350fi
6351
6352
6353
6354# Check whether --with-mad was given.
6355if test "${with_mad+set}" = set; then :
6356  withval=$with_mad;
6357else
6358  with_mad=auto
6359fi
6360
6361
6362
6363# Check whether --with-alsa was given.
6364if test "${with_alsa+set}" = set; then :
6365  withval=$with_alsa;
6366else
6367  with_alsa=auto
6368fi
6369
6370
6371# Check whether --with-oss was given.
6372if test "${with_oss+set}" = set; then :
6373  withval=$with_oss;
6374else
6375  with_oss=auto
6376fi
6377
6378
6379
6380# Check whether --with-lzw was given.
6381if test "${with_lzw+set}" = set; then :
6382  withval=$with_lzw;
6383else
6384  with_lzw=yes
6385fi
6386
6387
6388
6389# Check whether --with-lzh was given.
6390if test "${with_lzh+set}" = set; then :
6391  withval=$with_lzh;
6392else
6393  with_lzh=yes
6394fi
6395
6396
6397
6398# Check whether --with-coreaudio was given.
6399if test "${with_coreaudio+set}" = set; then :
6400  withval=$with_coreaudio;
6401else
6402  with_coreaudio=auto
6403fi
6404
6405
6406# Check whether --with-flac was given.
6407if test "${with_flac+set}" = set; then :
6408  withval=$with_flac;
6409else
6410  with_flac=auto
6411fi
6412
6413
6414
6415# Check whether --with-sdl was given.
6416if test "${with_sdl+set}" = set; then :
6417  withval=$with_sdl;
6418else
6419  with_sdl=auto
6420fi
6421
6422
6423# Check whether --with-sdl2 was given.
6424if test "${with_sdl2+set}" = set; then :
6425  withval=$with_sdl2;
6426else
6427  with_sdl2=auto
6428fi
6429
6430
6431# Check whether --with-desktop_file_install was given.
6432if test "${with_desktop_file_install+set}" = set; then :
6433  withval=$with_desktop_file_install;
6434else
6435  with_desktop_file_install=auto
6436fi
6437
6438
6439
6440# Check whether --with-dumptools was given.
6441if test "${with_dumptools+set}" = set; then :
6442  withval=$with_dumptools;
6443else
6444  with_dumptools=no
6445fi
6446
6447
6448
6449# Check whether --with-unifontdir was given.
6450if test "${with_unifontdir+set}" = set; then :
6451  withval=$with_unifontdir;
6452else
6453  with_unifontdir="${datarootdir}/fonts/truetype/unifont"
6454fi
6455
6456
6457# normally, this is done automatically first when running AC_OUTPUT, but we need them expanded now
6458test "x$prefix" = xNONE && prefix=$ac_default_prefix
6459# Let make expand exec_prefix.
6460test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6461
6462
6463
6464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
6465$as_echo_n "checking gcc version... " >&6; }
6466cc_version=`( $CC -dumpversion ) 2>&1`
6467if test "$?" -gt 0 || test x$cc_version = x; then
6468	as_fn_error $? "not found" "$LINENO" 5
6469else
6470	case $cc_version in
6471		'')
6472			as_fn_error $? "not found" "$LINENO" 5;
6473			;;
6474# old GCC versions in the 2.95.xx family are known to produce bad crashing binaries (it is still out there on some old systems. In general the all versions before 3.0 is risky
6475		2.95.[2-9]|2.95.[2-9][-].*)
6476			as_fn_error $? "$cc_version, bad" "$LINENO" 5
6477			;;
6478		*)
6479			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_version, ok" >&5
6480$as_echo "$cc_version, ok" >&6; }
6481			;;
6482       esac
6483fi
6484
6485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken signed char to signed int in loops (gcc version 4.1.1)" >&5
6486$as_echo_n "checking for broken signed char to signed int in loops (gcc version 4.1.1)... " >&6; }
6487if test "$cross_compiling" = yes; then :
6488  $as_echo "#define GCC_411_RUNTIMECHECK 1" >>confdefs.h
6489
6490
6491else
6492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6493/* end confdefs.h.  */
6494
6495#include <stdio.h>
6496#include <unistd.h>
6497void failcheck(signed int source, signed int filter)
6498{
6499	if ((source>128)&&(filter>0))
6500		_exit(1);
6501}
6502
6503int main(int arg, char *argv[])
6504{
6505	int j;
6506	for (j=0; j<256; j++)
6507	{
6508		signed char j2=(signed char)j;
6509		signed int j3=j2;
6510		failcheck(j, j3);
6511	}
6512	return 0;
6513}
6514
6515_ACEOF
6516if ac_fn_c_try_run "$LINENO"; then :
6517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6518$as_echo "ok" >&6; }
6519else
6520  as_fn_error $? "failed.
6521Try to remove any -O flag or to add -fwrapv to CFLAGS and CXXFLAGS" "$LINENO" 5
6522fi
6523rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6524  conftest.$ac_objext conftest.beam conftest.$ac_ext
6525fi
6526
6527
6528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIC" >&5
6529$as_echo_n "checking for PIC... " >&6; }
6530org_cflags="$CFLAGS"
6531CFLAGS="$CFLAGS -fPIC"
6532cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6533/* end confdefs.h.  */
6534
6535int
6536main ()
6537{
6538
6539  ;
6540  return 0;
6541}
6542_ACEOF
6543if ac_fn_c_try_link "$LINENO"; then :
6544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -fPIC" >&5
6545$as_echo "-fPIC" >&6; }
6546	CXXFLAGS="$CXXFLAGS -fPIC"
6547
6548else
6549  CFLAGS="$org_cflags -fpic"
6550	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551/* end confdefs.h.  */
6552
6553int
6554main ()
6555{
6556
6557  ;
6558  return 0;
6559}
6560_ACEOF
6561if ac_fn_c_try_link "$LINENO"; then :
6562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -fpic" >&5
6563$as_echo "-fpic" >&6; }
6564		CXXFLAGS="$CXXFLAGS -fpic"
6565
6566else
6567  CFLAGS="$org_cflags"
6568		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
6569$as_echo "not supported" >&6; }
6570
6571fi
6572rm -f core conftest.err conftest.$ac_objext \
6573    conftest$ac_exeext conftest.$ac_ext
6574
6575fi
6576rm -f core conftest.err conftest.$ac_objext \
6577    conftest$ac_exeext conftest.$ac_ext
6578
6579for ac_func in memmem
6580do :
6581  ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
6582if test "x$ac_cv_func_memmem" = xyes; then :
6583  cat >>confdefs.h <<_ACEOF
6584#define HAVE_MEMMEM 1
6585_ACEOF
6586
6587fi
6588done
6589
6590for ac_func in getopt
6591do :
6592  ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
6593if test "x$ac_cv_func_getopt" = xyes; then :
6594  cat >>confdefs.h <<_ACEOF
6595#define HAVE_GETOPT 1
6596_ACEOF
6597
6598fi
6599done
6600
6601for ac_func in popen
6602do :
6603  ac_fn_c_check_func "$LINENO" "popen" "ac_cv_func_popen"
6604if test "x$ac_cv_func_popen" = xyes; then :
6605  cat >>confdefs.h <<_ACEOF
6606#define HAVE_POPEN 1
6607_ACEOF
6608
6609fi
6610done
6611
6612for ac_func in qsort
6613do :
6614  ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
6615if test "x$ac_cv_func_qsort" = xyes; then :
6616  cat >>confdefs.h <<_ACEOF
6617#define HAVE_QSORT 1
6618_ACEOF
6619
6620fi
6621done
6622
6623for ac_func in gettimeofday
6624do :
6625  ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
6626if test "x$ac_cv_func_gettimeofday" = xyes; then :
6627  cat >>confdefs.h <<_ACEOF
6628#define HAVE_GETTIMEOFDAY 1
6629_ACEOF
6630
6631fi
6632done
6633
6634for ac_func in sleep
6635do :
6636  ac_fn_c_check_func "$LINENO" "sleep" "ac_cv_func_sleep"
6637if test "x$ac_cv_func_sleep" = xyes; then :
6638  cat >>confdefs.h <<_ACEOF
6639#define HAVE_SLEEP 1
6640_ACEOF
6641
6642fi
6643done
6644
6645for ac_func in sysconf
6646do :
6647  ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
6648if test "x$ac_cv_func_sysconf" = xyes; then :
6649  cat >>confdefs.h <<_ACEOF
6650#define HAVE_SYSCONF 1
6651_ACEOF
6652
6653fi
6654done
6655
6656for ac_func in strerror
6657do :
6658  ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
6659if test "x$ac_cv_func_strerror" = xyes; then :
6660  cat >>confdefs.h <<_ACEOF
6661#define HAVE_STRERROR 1
6662_ACEOF
6663
6664fi
6665done
6666
6667for ac_func in strdup
6668do :
6669  ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
6670if test "x$ac_cv_func_strdup" = xyes; then :
6671  cat >>confdefs.h <<_ACEOF
6672#define HAVE_STRDUP 1
6673_ACEOF
6674
6675fi
6676done
6677
6678for ac_func in strstr
6679do :
6680  ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
6681if test "x$ac_cv_func_strstr" = xyes; then :
6682  cat >>confdefs.h <<_ACEOF
6683#define HAVE_STRSTR 1
6684_ACEOF
6685
6686fi
6687done
6688
6689for ac_func in strupr
6690do :
6691  ac_fn_c_check_func "$LINENO" "strupr" "ac_cv_func_strupr"
6692if test "x$ac_cv_func_strupr" = xyes; then :
6693  cat >>confdefs.h <<_ACEOF
6694#define HAVE_STRUPR 1
6695_ACEOF
6696
6697fi
6698done
6699
6700for ac_func in getcwd
6701do :
6702  ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
6703if test "x$ac_cv_func_getcwd" = xyes; then :
6704  cat >>confdefs.h <<_ACEOF
6705#define HAVE_GETCWD 1
6706_ACEOF
6707
6708fi
6709done
6710
6711for ac_func in snprintf
6712do :
6713  ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
6714if test "x$ac_cv_func_snprintf" = xyes; then :
6715  cat >>confdefs.h <<_ACEOF
6716#define HAVE_SNPRINTF 1
6717_ACEOF
6718
6719fi
6720done
6721
6722for ac_func in usleep
6723do :
6724  ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
6725if test "x$ac_cv_func_usleep" = xyes; then :
6726  cat >>confdefs.h <<_ACEOF
6727#define HAVE_USLEEP 1
6728_ACEOF
6729
6730fi
6731done
6732
6733for ac_func in vsnprintf
6734do :
6735  ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
6736if test "x$ac_cv_func_vsnprintf" = xyes; then :
6737  cat >>confdefs.h <<_ACEOF
6738#define HAVE_VSNPRINTF 1
6739_ACEOF
6740
6741fi
6742done
6743
6744for ac_func in strncasecmp
6745do :
6746  ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
6747if test "x$ac_cv_func_strncasecmp" = xyes; then :
6748  cat >>confdefs.h <<_ACEOF
6749#define HAVE_STRNCASECMP 1
6750_ACEOF
6751
6752fi
6753done
6754
6755for ac_func in mkstemp
6756do :
6757  ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
6758if test "x$ac_cv_func_mkstemp" = xyes; then :
6759  cat >>confdefs.h <<_ACEOF
6760#define HAVE_MKSTEMP 1
6761_ACEOF
6762
6763fi
6764done
6765
6766for ac_func in strlcpy
6767do :
6768  ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
6769if test "x$ac_cv_func_strlcpy" = xyes; then :
6770  cat >>confdefs.h <<_ACEOF
6771#define HAVE_STRLCPY 1
6772_ACEOF
6773
6774fi
6775done
6776
6777for ac_func in strlcat
6778do :
6779  ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
6780if test "x$ac_cv_func_strlcat" = xyes; then :
6781  cat >>confdefs.h <<_ACEOF
6782#define HAVE_STRLCAT 1
6783_ACEOF
6784
6785fi
6786done
6787
6788
6789
6790for ac_func in sqrt
6791do :
6792  ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
6793if test "x$ac_cv_func_sqrt" = xyes; then :
6794  cat >>confdefs.h <<_ACEOF
6795#define HAVE_SQRT 1
6796_ACEOF
6797 MATH_LIBS=
6798else
6799  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
6800$as_echo_n "checking for sqrt in -lm... " >&6; }
6801if ${ac_cv_lib_m_sqrt+:} false; then :
6802  $as_echo_n "(cached) " >&6
6803else
6804  ac_check_lib_save_LIBS=$LIBS
6805LIBS="-lm  $LIBS"
6806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807/* end confdefs.h.  */
6808
6809/* Override any GCC internal prototype to avoid an error.
6810   Use char because int might match the return type of a GCC
6811   builtin and then its argument prototype would still apply.  */
6812#ifdef __cplusplus
6813extern "C"
6814#endif
6815char sqrt ();
6816int
6817main ()
6818{
6819return sqrt ();
6820  ;
6821  return 0;
6822}
6823_ACEOF
6824if ac_fn_c_try_link "$LINENO"; then :
6825  ac_cv_lib_m_sqrt=yes
6826else
6827  ac_cv_lib_m_sqrt=no
6828fi
6829rm -f core conftest.err conftest.$ac_objext \
6830    conftest$ac_exeext conftest.$ac_ext
6831LIBS=$ac_check_lib_save_LIBS
6832fi
6833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
6834$as_echo "$ac_cv_lib_m_sqrt" >&6; }
6835if test "x$ac_cv_lib_m_sqrt" = xyes; then :
6836  MATH_LIBS=-lm
6837else
6838  as_fn_error $? "\"libm not found\"" "$LINENO" 5
6839
6840fi
6841
6842
6843fi
6844done
6845
6846
6847ac_header_dirent=no
6848for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6849  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6851$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6852if eval \${$as_ac_Header+:} false; then :
6853  $as_echo_n "(cached) " >&6
6854else
6855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856/* end confdefs.h.  */
6857#include <sys/types.h>
6858#include <$ac_hdr>
6859
6860int
6861main ()
6862{
6863if ((DIR *) 0)
6864return 0;
6865  ;
6866  return 0;
6867}
6868_ACEOF
6869if ac_fn_c_try_compile "$LINENO"; then :
6870  eval "$as_ac_Header=yes"
6871else
6872  eval "$as_ac_Header=no"
6873fi
6874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6875fi
6876eval ac_res=\$$as_ac_Header
6877	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6878$as_echo "$ac_res" >&6; }
6879if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6880  cat >>confdefs.h <<_ACEOF
6881#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6882_ACEOF
6883
6884ac_header_dirent=$ac_hdr; break
6885fi
6886
6887done
6888# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6889if test $ac_header_dirent = dirent.h; then
6890  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6891$as_echo_n "checking for library containing opendir... " >&6; }
6892if ${ac_cv_search_opendir+:} false; then :
6893  $as_echo_n "(cached) " >&6
6894else
6895  ac_func_search_save_LIBS=$LIBS
6896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6897/* end confdefs.h.  */
6898
6899/* Override any GCC internal prototype to avoid an error.
6900   Use char because int might match the return type of a GCC
6901   builtin and then its argument prototype would still apply.  */
6902#ifdef __cplusplus
6903extern "C"
6904#endif
6905char opendir ();
6906int
6907main ()
6908{
6909return opendir ();
6910  ;
6911  return 0;
6912}
6913_ACEOF
6914for ac_lib in '' dir; do
6915  if test -z "$ac_lib"; then
6916    ac_res="none required"
6917  else
6918    ac_res=-l$ac_lib
6919    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6920  fi
6921  if ac_fn_c_try_link "$LINENO"; then :
6922  ac_cv_search_opendir=$ac_res
6923fi
6924rm -f core conftest.err conftest.$ac_objext \
6925    conftest$ac_exeext
6926  if ${ac_cv_search_opendir+:} false; then :
6927  break
6928fi
6929done
6930if ${ac_cv_search_opendir+:} false; then :
6931
6932else
6933  ac_cv_search_opendir=no
6934fi
6935rm conftest.$ac_ext
6936LIBS=$ac_func_search_save_LIBS
6937fi
6938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6939$as_echo "$ac_cv_search_opendir" >&6; }
6940ac_res=$ac_cv_search_opendir
6941if test "$ac_res" != no; then :
6942  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6943
6944fi
6945
6946else
6947  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6948$as_echo_n "checking for library containing opendir... " >&6; }
6949if ${ac_cv_search_opendir+:} false; then :
6950  $as_echo_n "(cached) " >&6
6951else
6952  ac_func_search_save_LIBS=$LIBS
6953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6954/* end confdefs.h.  */
6955
6956/* Override any GCC internal prototype to avoid an error.
6957   Use char because int might match the return type of a GCC
6958   builtin and then its argument prototype would still apply.  */
6959#ifdef __cplusplus
6960extern "C"
6961#endif
6962char opendir ();
6963int
6964main ()
6965{
6966return opendir ();
6967  ;
6968  return 0;
6969}
6970_ACEOF
6971for ac_lib in '' x; do
6972  if test -z "$ac_lib"; then
6973    ac_res="none required"
6974  else
6975    ac_res=-l$ac_lib
6976    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6977  fi
6978  if ac_fn_c_try_link "$LINENO"; then :
6979  ac_cv_search_opendir=$ac_res
6980fi
6981rm -f core conftest.err conftest.$ac_objext \
6982    conftest$ac_exeext
6983  if ${ac_cv_search_opendir+:} false; then :
6984  break
6985fi
6986done
6987if ${ac_cv_search_opendir+:} false; then :
6988
6989else
6990  ac_cv_search_opendir=no
6991fi
6992rm conftest.$ac_ext
6993LIBS=$ac_func_search_save_LIBS
6994fi
6995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6996$as_echo "$ac_cv_search_opendir" >&6; }
6997ac_res=$ac_cv_search_opendir
6998if test "$ac_res" != no; then :
6999  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7000
7001fi
7002
7003fi
7004
7005
7006
7007  ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
7008#include <sys/types.h>
7009#ifdef HAVE_DIRENT_H
7010# include <dirent.h>
7011#else
7012# define dirent direct
7013# ifdef HAVE_SYS_NDIR_H
7014#  include <sys/ndir.h>
7015# endif
7016# ifdef HAVE_SYS_DIR_H
7017#  include <sys/dir.h>
7018# endif
7019# ifdef HAVE_NDIR_H
7020#  include <ndir.h>
7021# endif
7022#endif
7023
7024"
7025if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
7026
7027cat >>confdefs.h <<_ACEOF
7028#define HAVE_STRUCT_DIRENT_D_TYPE 1
7029_ACEOF
7030
7031
7032fi
7033
7034
7035
7036ac_config_headers="$ac_config_headers config.h playsid/sidplayfp-config/config.h"
7037
7038
7039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7040$as_echo_n "checking for ANSI C header files... " >&6; }
7041if ${ac_cv_header_stdc+:} false; then :
7042  $as_echo_n "(cached) " >&6
7043else
7044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045/* end confdefs.h.  */
7046#include <stdlib.h>
7047#include <stdarg.h>
7048#include <string.h>
7049#include <float.h>
7050
7051int
7052main ()
7053{
7054
7055  ;
7056  return 0;
7057}
7058_ACEOF
7059if ac_fn_c_try_compile "$LINENO"; then :
7060  ac_cv_header_stdc=yes
7061else
7062  ac_cv_header_stdc=no
7063fi
7064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7065
7066if test $ac_cv_header_stdc = yes; then
7067  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069/* end confdefs.h.  */
7070#include <string.h>
7071
7072_ACEOF
7073if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7074  $EGREP "memchr" >/dev/null 2>&1; then :
7075
7076else
7077  ac_cv_header_stdc=no
7078fi
7079rm -f conftest*
7080
7081fi
7082
7083if test $ac_cv_header_stdc = yes; then
7084  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7086/* end confdefs.h.  */
7087#include <stdlib.h>
7088
7089_ACEOF
7090if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7091  $EGREP "free" >/dev/null 2>&1; then :
7092
7093else
7094  ac_cv_header_stdc=no
7095fi
7096rm -f conftest*
7097
7098fi
7099
7100if test $ac_cv_header_stdc = yes; then
7101  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7102  if test "$cross_compiling" = yes; then :
7103  :
7104else
7105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7106/* end confdefs.h.  */
7107#include <ctype.h>
7108#include <stdlib.h>
7109#if ((' ' & 0x0FF) == 0x020)
7110# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7111# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7112#else
7113# define ISLOWER(c) \
7114		   (('a' <= (c) && (c) <= 'i') \
7115		     || ('j' <= (c) && (c) <= 'r') \
7116		     || ('s' <= (c) && (c) <= 'z'))
7117# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7118#endif
7119
7120#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7121int
7122main ()
7123{
7124  int i;
7125  for (i = 0; i < 256; i++)
7126    if (XOR (islower (i), ISLOWER (i))
7127	|| toupper (i) != TOUPPER (i))
7128      return 2;
7129  return 0;
7130}
7131_ACEOF
7132if ac_fn_c_try_run "$LINENO"; then :
7133
7134else
7135  ac_cv_header_stdc=no
7136fi
7137rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7138  conftest.$ac_objext conftest.beam conftest.$ac_ext
7139fi
7140
7141fi
7142fi
7143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7144$as_echo "$ac_cv_header_stdc" >&6; }
7145if test $ac_cv_header_stdc = yes; then
7146
7147$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7148
7149fi
7150
7151
7152ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
7153if test "x$ac_cv_header_dirent_h" = xyes; then :
7154  $as_echo "#define HAVE_DIRENT_H 1" >>confdefs.h
7155
7156fi
7157
7158
7159ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
7160if test "x$ac_cv_header_fcntl_h" = xyes; then :
7161  $as_echo "#define HAVE_FCNTL_H 1" >>confdefs.h
7162
7163fi
7164
7165
7166ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
7167if test "x$ac_cv_header_getopt_h" = xyes; then :
7168  $as_echo "#define HAVE_GETOPT_H 1" >>confdefs.h
7169
7170fi
7171
7172
7173ac_fn_c_check_header_mongrel "$LINENO" "ndir.h" "ac_cv_header_ndir_h" "$ac_includes_default"
7174if test "x$ac_cv_header_ndir_h" = xyes; then :
7175  $as_echo "#define HAVE_NDIR_H 1" >>confdefs.h
7176
7177fi
7178
7179
7180ac_fn_c_check_header_mongrel "$LINENO" "sys/ndir.h" "ac_cv_header_sys_ndir_h" "$ac_includes_default"
7181if test "x$ac_cv_header_sys_ndir_h" = xyes; then :
7182  $as_echo "#define HAVE_SYS_NDIR_H 1" >>confdefs.h
7183
7184fi
7185
7186
7187ac_fn_c_check_header_mongrel "$LINENO" "sys/dir.h" "ac_cv_header_sys_dir_h" "$ac_includes_default"
7188if test "x$ac_cv_header_sys_dir_h" = xyes; then :
7189  $as_echo "#define HAVE_SYS_DIR_H 1" >>confdefs.h
7190
7191fi
7192
7193
7194ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7195if test "x$ac_cv_header_stdint_h" = xyes; then :
7196  $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h
7197
7198fi
7199
7200
7201ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7202if test "x$ac_cv_header_inttypes_h" = xyes; then :
7203  $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
7204
7205fi
7206
7207
7208ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
7209if test "x$ac_cv_header_byteswap_h" = xyes; then :
7210  $as_echo "#define HAVE_BYTESWAP_H 1" >>confdefs.h
7211
7212fi
7213
7214
7215ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
7216if test "x$ac_cv_header_unistd_h" = xyes; then :
7217  $as_echo "#define HAVE_UNISTD_H 1" >>confdefs.h
7218
7219fi
7220
7221
7222ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
7223if test "x$ac_cv_header_limits_h" = xyes; then :
7224  $as_echo "#define HAVE_LIMITS_H 1" >>confdefs.h
7225
7226fi
7227
7228
7229ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
7230if test "x$ac_cv_header_string_h" = xyes; then :
7231  $as_echo "#define HAVE_STRING_H 1" >>confdefs.h
7232
7233else
7234
7235$as_echo "#define NO_STRING_H 1" >>confdefs.h
7236
7237
7238fi
7239
7240
7241ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
7242if test "x$ac_cv_header_strings_h" = xyes; then :
7243  $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h
7244
7245fi
7246
7247
7248ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
7249if test "x$ac_cv_header_errno_h" = xyes; then :
7250  $as_echo "#define HAVE_ERRNO_H 1" >>confdefs.h
7251
7252fi
7253
7254
7255ac_fn_c_check_header_mongrel "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default"
7256if test "x$ac_cv_header_sys_cdefs_h" = xyes; then :
7257  $as_echo "#define HAVE_SYS_CDEFS_H 1" >>confdefs.h
7258
7259fi
7260
7261
7262ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
7263if test "x$ac_cv_header_sys_stat_h" = xyes; then :
7264  $as_echo "#define HAVE_SYS_STAT_H 1" >>confdefs.h
7265
7266fi
7267
7268
7269ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
7270if test "x$ac_cv_header_sys_time_h" = xyes; then :
7271  $as_echo "#define HAVE_SYS_TIME_H 1" >>confdefs.h
7272
7273fi
7274
7275
7276ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
7277if test "x$ac_cv_header_sys_types_h" = xyes; then :
7278  $as_echo "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
7279
7280fi
7281
7282
7283ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
7284if test "x$ac_cv_header_sys_param_h" = xyes; then :
7285  $as_echo "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
7286
7287fi
7288
7289
7290ac_fn_c_check_header_mongrel "$LINENO" "machine/endian.h" "ac_cv_header_machine_endian_h" "$ac_includes_default"
7291if test "x$ac_cv_header_machine_endian_h" = xyes; then :
7292  $as_echo "#define HAVE_MACHINE_ENDIAN_H 1" >>confdefs.h
7293
7294fi
7295
7296
7297ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
7298if test "x$ac_cv_header_pwd_h" = xyes; then :
7299  $as_echo "#define HAVE_PWD_H 1" >>confdefs.h
7300
7301fi
7302
7303
7304
7305ac_fn_c_check_func "$LINENO" "getpwnam" "ac_cv_func_getpwnam"
7306if test "x$ac_cv_func_getpwnam" = xyes; then :
7307  HAVE_GETPWNAM=1; $as_echo "#define HAVE_GETPWNAM 1" >>confdefs.h
7308
7309fi
7310
7311
7312
7313# Check whether --with-timidity-default-path was given.
7314if test "${with_timidity_default_path+set}" = set; then :
7315  withval=$with_timidity_default_path; timiditypkgdatadir=$withval
7316else
7317
7318   if test "x$prefix" != "xNONE"; then
7319      timiditypkgdatadir='${prefix}/share/timidity'
7320   else
7321      timiditypkgdatadir='/usr/local/share/timidity'
7322   fi
7323
7324fi
7325
7326tmpdefpath="`eval \"echo ${timiditypkgdatadir}\"`"
7327
7328cat >>confdefs.h <<_ACEOF
7329#define TIMIDITY_DEFAULT_PATH "$tmpdefpath"
7330_ACEOF
7331
7332
7333$as_echo "#define TIMIDITYPKGDATADIR TIMIDITY_DEFAULT_PATH" >>confdefs.h
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7344	if test -n "$ac_tool_prefix"; then
7345  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7346set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7348$as_echo_n "checking for $ac_word... " >&6; }
7349if ${ac_cv_path_PKG_CONFIG+:} false; then :
7350  $as_echo_n "(cached) " >&6
7351else
7352  case $PKG_CONFIG in
7353  [\\/]* | ?:[\\/]*)
7354  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7355  ;;
7356  *)
7357  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358for as_dir in $PATH
7359do
7360  IFS=$as_save_IFS
7361  test -z "$as_dir" && as_dir=.
7362    for ac_exec_ext in '' $ac_executable_extensions; do
7363  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7365    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366    break 2
7367  fi
7368done
7369  done
7370IFS=$as_save_IFS
7371
7372  ;;
7373esac
7374fi
7375PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7376if test -n "$PKG_CONFIG"; then
7377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7378$as_echo "$PKG_CONFIG" >&6; }
7379else
7380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381$as_echo "no" >&6; }
7382fi
7383
7384
7385fi
7386if test -z "$ac_cv_path_PKG_CONFIG"; then
7387  ac_pt_PKG_CONFIG=$PKG_CONFIG
7388  # Extract the first word of "pkg-config", so it can be a program name with args.
7389set dummy pkg-config; ac_word=$2
7390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7391$as_echo_n "checking for $ac_word... " >&6; }
7392if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7393  $as_echo_n "(cached) " >&6
7394else
7395  case $ac_pt_PKG_CONFIG in
7396  [\\/]* | ?:[\\/]*)
7397  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7398  ;;
7399  *)
7400  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401for as_dir in $PATH
7402do
7403  IFS=$as_save_IFS
7404  test -z "$as_dir" && as_dir=.
7405    for ac_exec_ext in '' $ac_executable_extensions; do
7406  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7407    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7408    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7409    break 2
7410  fi
7411done
7412  done
7413IFS=$as_save_IFS
7414
7415  ;;
7416esac
7417fi
7418ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7419if test -n "$ac_pt_PKG_CONFIG"; then
7420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7421$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7422else
7423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7424$as_echo "no" >&6; }
7425fi
7426
7427  if test "x$ac_pt_PKG_CONFIG" = x; then
7428    PKG_CONFIG=""
7429  else
7430    case $cross_compiling:$ac_tool_warned in
7431yes:)
7432{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7433$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7434ac_tool_warned=yes ;;
7435esac
7436    PKG_CONFIG=$ac_pt_PKG_CONFIG
7437  fi
7438else
7439  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7440fi
7441
7442fi
7443if test -n "$PKG_CONFIG"; then
7444	_pkg_min_version=0.9.0
7445	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7446$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7447	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7448		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7449$as_echo "yes" >&6; }
7450	else
7451		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452$as_echo "no" >&6; }
7453		PKG_CONFIG=""
7454	fi
7455fi
7456
7457
7458
7459
7460# Check whether --with-ncurses was given.
7461if test "${with_ncurses+set}" = set; then :
7462  withval=$with_ncurses;
7463else
7464  with_ncurses=check
7465fi
7466
7467
7468# Check whether --with-ncursesw was given.
7469if test "${with_ncursesw+set}" = set; then :
7470  withval=$with_ncursesw;
7471else
7472  with_ncursesw=check
7473fi
7474
7475
7476
7477    ax_saved_LIBS=$LIBS
7478    ax_saved_CPPFLAGS=$CPPFLAGS
7479
7480    if test "x$with_ncurses" = xyes || test "x$with_ncursesw" = xyes; then :
7481  ax_with_plaincurses=no
7482else
7483  ax_with_plaincurses=check
7484fi
7485
7486    ax_cv_curses_which=no
7487
7488    # Test for NcursesW
7489    if test "x$CURSES_LIB" = x && test "x$with_ncursesw" != xno; then :
7490
7491
7492    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncursesw via pkg-config" >&5
7493$as_echo_n "checking for ncursesw via pkg-config... " >&6; }
7494
7495    if test -n "$_ax_cv_ncursesw_lib"; then
7496    pkg_cv__ax_cv_ncursesw_lib="$_ax_cv_ncursesw_lib"
7497 elif test -n "$PKG_CONFIG"; then
7498    if test -n "$PKG_CONFIG" && \
7499    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
7500  ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
7501  ac_status=$?
7502  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7503  test $ac_status = 0; }; then
7504  pkg_cv__ax_cv_ncursesw_lib=`$PKG_CONFIG --libs "ncursesw" 2>/dev/null`
7505		      test "x$?" != "x0" && pkg_failed=yes
7506else
7507  pkg_failed=yes
7508fi
7509 else
7510    pkg_failed=untried
7511fi
7512    if test -n "$_ax_cv_ncursesw_cppflags"; then
7513    pkg_cv__ax_cv_ncursesw_cppflags="$_ax_cv_ncursesw_cppflags"
7514 elif test -n "$PKG_CONFIG"; then
7515    if test -n "$PKG_CONFIG" && \
7516    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
7517  ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
7518  ac_status=$?
7519  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7520  test $ac_status = 0; }; then
7521  pkg_cv__ax_cv_ncursesw_cppflags=`$PKG_CONFIG --cflags "ncursesw" 2>/dev/null`
7522		      test "x$?" != "x0" && pkg_failed=yes
7523else
7524  pkg_failed=yes
7525fi
7526 else
7527    pkg_failed=untried
7528fi
7529
7530    if test "x$pkg_failed" = "xyes" || test "x$pkg_failed" = "xuntried"; then :
7531
7532        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7533$as_echo "no" >&6; }
7534        # No suitable .pc file found, have to find flags via fallback
7535        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncursesw via fallback" >&5
7536$as_echo_n "checking for ncursesw via fallback... " >&6; }
7537if ${ax_cv_ncursesw+:} false; then :
7538  $as_echo_n "(cached) " >&6
7539else
7540
7541            $as_echo
7542            pkg_cv__ax_cv_ncursesw_lib="-lncursesw"
7543            pkg_cv__ax_cv_ncursesw_cppflags="$CURSES_CPPFLAGS"
7544            LIBS="$ax_saved_LIBS $pkg_cv__ax_cv_ncursesw_lib"
7545            CPPFLAGS="$ax_saved_CPPFLAGS $pkg_cv__ax_cv_ncursesw_cppflags"
7546
7547            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr() with $pkg_cv__ax_cv_ncursesw_lib" >&5
7548$as_echo_n "checking for initscr() with $pkg_cv__ax_cv_ncursesw_lib... " >&6; }
7549            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550/* end confdefs.h.  */
7551
7552/* Override any GCC internal prototype to avoid an error.
7553   Use char because int might match the return type of a GCC
7554   builtin and then its argument prototype would still apply.  */
7555#ifdef __cplusplus
7556extern "C"
7557#endif
7558char initscr ();
7559int
7560main ()
7561{
7562return initscr ();
7563  ;
7564  return 0;
7565}
7566_ACEOF
7567if ac_fn_c_try_link "$LINENO"; then :
7568
7569                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7570$as_echo "yes" >&6; }
7571                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nodelay() with $pkg_cv__ax_cv_ncursesw_lib" >&5
7572$as_echo_n "checking for nodelay() with $pkg_cv__ax_cv_ncursesw_lib... " >&6; }
7573                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574/* end confdefs.h.  */
7575
7576/* Override any GCC internal prototype to avoid an error.
7577   Use char because int might match the return type of a GCC
7578   builtin and then its argument prototype would still apply.  */
7579#ifdef __cplusplus
7580extern "C"
7581#endif
7582char nodelay ();
7583int
7584main ()
7585{
7586return nodelay ();
7587  ;
7588  return 0;
7589}
7590_ACEOF
7591if ac_fn_c_try_link "$LINENO"; then :
7592
7593                        ax_cv_ncursesw=yes
7594
7595else
7596
7597                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598$as_echo "no" >&6; }
7599                        pkg_cv__ax_cv_ncursesw_lib="$pkg_cv__ax_cv_ncursesw_lib -ltinfow"
7600                        LIBS="$ax_saved_LIBS $pkg_cv__ax_cv_ncursesw_lib"
7601
7602                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nodelay() with $pkg_cv__ax_cv_ncursesw_lib" >&5
7603$as_echo_n "checking for nodelay() with $pkg_cv__ax_cv_ncursesw_lib... " >&6; }
7604                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605/* end confdefs.h.  */
7606
7607/* Override any GCC internal prototype to avoid an error.
7608   Use char because int might match the return type of a GCC
7609   builtin and then its argument prototype would still apply.  */
7610#ifdef __cplusplus
7611extern "C"
7612#endif
7613char nodelay ();
7614int
7615main ()
7616{
7617return nodelay ();
7618  ;
7619  return 0;
7620}
7621_ACEOF
7622if ac_fn_c_try_link "$LINENO"; then :
7623
7624                            ax_cv_ncursesw=yes
7625
7626else
7627
7628                            ax_cv_ncursesw=no
7629
7630fi
7631rm -f core conftest.err conftest.$ac_objext \
7632    conftest$ac_exeext conftest.$ac_ext
7633
7634fi
7635rm -f core conftest.err conftest.$ac_objext \
7636    conftest$ac_exeext conftest.$ac_ext
7637
7638else
7639
7640                    ax_cv_ncursesw=no
7641
7642fi
7643rm -f core conftest.err conftest.$ac_objext \
7644    conftest$ac_exeext conftest.$ac_ext
7645
7646fi
7647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_ncursesw" >&5
7648$as_echo "$ax_cv_ncursesw" >&6; }
7649
7650else
7651
7652        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7653$as_echo "yes" >&6; }
7654        # Found .pc file, using its information
7655        LIBS="$ax_saved_LIBS $pkg_cv__ax_cv_ncursesw_lib"
7656        CPPFLAGS="$ax_saved_CPPFLAGS $pkg_cv__ax_cv_ncursesw_cppflags"
7657        ax_cv_ncursesw=yes
7658
7659fi
7660
7661
7662        if test "x$ax_cv_ncursesw" = xno && test "x$with_ncursesw" = xyes; then :
7663
7664            as_fn_error $? "--with-ncursesw specified but could not find NcursesW library" "$LINENO" 5
7665
7666fi
7667
7668        if test "x$ax_cv_ncursesw" = xyes; then :
7669
7670            ax_cv_curses=yes
7671            ax_cv_curses_which=ncursesw
7672            CURSES_LIB="$pkg_cv__ax_cv_ncursesw_lib"
7673            CURSES_CPPFLAGS="$pkg_cv__ax_cv_ncursesw_cppflags"
7674
7675$as_echo "#define HAVE_NCURSESW 1" >>confdefs.h
7676
7677
7678$as_echo "#define HAVE_CURSES 1" >>confdefs.h
7679
7680
7681            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working ncursesw/curses.h" >&5
7682$as_echo_n "checking for working ncursesw/curses.h... " >&6; }
7683if ${ax_cv_header_ncursesw_curses_h+:} false; then :
7684  $as_echo_n "(cached) " >&6
7685else
7686
7687                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7688/* end confdefs.h.  */
7689
7690                        #define _XOPEN_SOURCE_EXTENDED 1
7691                        #include <ncursesw/curses.h>
7692
7693int
7694main ()
7695{
7696
7697                        chtype a = A_BOLD;
7698                        int b = KEY_LEFT;
7699                        chtype c = COLOR_PAIR(1) & A_COLOR;
7700                        attr_t d = WA_NORMAL;
7701                        cchar_t e;
7702                        wint_t f;
7703                        int g = getattrs(stdscr);
7704                        int h = getcurx(stdscr) + getmaxx(stdscr);
7705                        initscr();
7706                        init_pair(1, COLOR_WHITE, COLOR_RED);
7707                        wattr_set(stdscr, d, 0, NULL);
7708                        wget_wch(stdscr, &f);
7709
7710  ;
7711  return 0;
7712}
7713_ACEOF
7714if ac_fn_c_try_link "$LINENO"; then :
7715  ax_cv_header_ncursesw_curses_h=yes
7716else
7717  ax_cv_header_ncursesw_curses_h=no
7718fi
7719rm -f core conftest.err conftest.$ac_objext \
7720    conftest$ac_exeext conftest.$ac_ext
7721
7722fi
7723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_ncursesw_curses_h" >&5
7724$as_echo "$ax_cv_header_ncursesw_curses_h" >&6; }
7725            if test "x$ax_cv_header_ncursesw_curses_h" = xyes; then :
7726
7727                ax_cv_curses_enhanced=yes
7728                ax_cv_curses_color=yes
7729                ax_cv_curses_obsolete=yes
7730
7731$as_echo "#define HAVE_CURSES_ENHANCED 1" >>confdefs.h
7732
7733
7734$as_echo "#define HAVE_CURSES_COLOR 1" >>confdefs.h
7735
7736
7737$as_echo "#define HAVE_CURSES_OBSOLETE 1" >>confdefs.h
7738
7739
7740$as_echo "#define HAVE_NCURSESW_CURSES_H 1" >>confdefs.h
7741
7742
7743fi
7744
7745            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working ncursesw.h" >&5
7746$as_echo_n "checking for working ncursesw.h... " >&6; }
7747if ${ax_cv_header_ncursesw_h+:} false; then :
7748  $as_echo_n "(cached) " >&6
7749else
7750
7751                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752/* end confdefs.h.  */
7753
7754                        #define _XOPEN_SOURCE_EXTENDED 1
7755                        #include <ncursesw.h>
7756
7757int
7758main ()
7759{
7760
7761                        chtype a = A_BOLD;
7762                        int b = KEY_LEFT;
7763                        chtype c = COLOR_PAIR(1) & A_COLOR;
7764                        attr_t d = WA_NORMAL;
7765                        cchar_t e;
7766                        wint_t f;
7767                        int g = getattrs(stdscr);
7768                        int h = getcurx(stdscr) + getmaxx(stdscr);
7769                        initscr();
7770                        init_pair(1, COLOR_WHITE, COLOR_RED);
7771                        wattr_set(stdscr, d, 0, NULL);
7772                        wget_wch(stdscr, &f);
7773
7774  ;
7775  return 0;
7776}
7777_ACEOF
7778if ac_fn_c_try_link "$LINENO"; then :
7779  ax_cv_header_ncursesw_h=yes
7780else
7781  ax_cv_header_ncursesw_h=no
7782fi
7783rm -f core conftest.err conftest.$ac_objext \
7784    conftest$ac_exeext conftest.$ac_ext
7785
7786fi
7787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_ncursesw_h" >&5
7788$as_echo "$ax_cv_header_ncursesw_h" >&6; }
7789            if test "x$ax_cv_header_ncursesw_h" = xyes; then :
7790
7791                ax_cv_curses_enhanced=yes
7792                ax_cv_curses_color=yes
7793                ax_cv_curses_obsolete=yes
7794
7795$as_echo "#define HAVE_CURSES_ENHANCED 1" >>confdefs.h
7796
7797
7798$as_echo "#define HAVE_CURSES_COLOR 1" >>confdefs.h
7799
7800
7801$as_echo "#define HAVE_CURSES_OBSOLETE 1" >>confdefs.h
7802
7803
7804$as_echo "#define HAVE_NCURSESW_H 1" >>confdefs.h
7805
7806
7807fi
7808
7809            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working ncurses.h" >&5
7810$as_echo_n "checking for working ncurses.h... " >&6; }
7811if ${ax_cv_header_ncurses_h_with_ncursesw+:} false; then :
7812  $as_echo_n "(cached) " >&6
7813else
7814
7815                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816/* end confdefs.h.  */
7817
7818                        #define _XOPEN_SOURCE_EXTENDED 1
7819                        #include <ncurses.h>
7820
7821int
7822main ()
7823{
7824
7825                        chtype a = A_BOLD;
7826                        int b = KEY_LEFT;
7827                        chtype c = COLOR_PAIR(1) & A_COLOR;
7828                        attr_t d = WA_NORMAL;
7829                        cchar_t e;
7830                        wint_t f;
7831                        int g = getattrs(stdscr);
7832                        int h = getcurx(stdscr) + getmaxx(stdscr);
7833                        initscr();
7834                        init_pair(1, COLOR_WHITE, COLOR_RED);
7835                        wattr_set(stdscr, d, 0, NULL);
7836                        wget_wch(stdscr, &f);
7837
7838  ;
7839  return 0;
7840}
7841_ACEOF
7842if ac_fn_c_try_link "$LINENO"; then :
7843  ax_cv_header_ncurses_h_with_ncursesw=yes
7844else
7845  ax_cv_header_ncurses_h_with_ncursesw=no
7846fi
7847rm -f core conftest.err conftest.$ac_objext \
7848    conftest$ac_exeext conftest.$ac_ext
7849
7850fi
7851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_ncurses_h_with_ncursesw" >&5
7852$as_echo "$ax_cv_header_ncurses_h_with_ncursesw" >&6; }
7853            if test "x$ax_cv_header_ncurses_h_with_ncursesw" = xyes; then :
7854
7855                ax_cv_curses_enhanced=yes
7856                ax_cv_curses_color=yes
7857                ax_cv_curses_obsolete=yes
7858
7859$as_echo "#define HAVE_CURSES_ENHANCED 1" >>confdefs.h
7860
7861
7862$as_echo "#define HAVE_CURSES_COLOR 1" >>confdefs.h
7863
7864
7865$as_echo "#define HAVE_CURSES_OBSOLETE 1" >>confdefs.h
7866
7867
7868$as_echo "#define HAVE_NCURSES_H 1" >>confdefs.h
7869
7870
7871fi
7872
7873            if test "x$ax_cv_header_ncursesw_curses_h" = xno && test "x$ax_cv_header_ncursesw_h" = xno && test "x$ax_cv_header_ncurses_h_with_ncursesw" = xno; then :
7874
7875                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find a working ncursesw/curses.h, ncursesw.h or ncurses.h" >&5
7876$as_echo "$as_me: WARNING: could not find a working ncursesw/curses.h, ncursesw.h or ncurses.h" >&2;}
7877
7878fi
7879
7880fi
7881
7882fi
7883    unset pkg_cv__ax_cv_ncursesw_lib
7884    unset pkg_cv__ax_cv_ncursesw_cppflags
7885
7886    # Test for Ncurses
7887    if test "x$CURSES_LIB" = x && test "x$with_ncurses" != xno && test "x$ax_cv_curses_which" = xno; then :
7888
7889
7890    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses via pkg-config" >&5
7891$as_echo_n "checking for ncurses via pkg-config... " >&6; }
7892
7893    if test -n "$_ax_cv_ncurses_lib"; then
7894    pkg_cv__ax_cv_ncurses_lib="$_ax_cv_ncurses_lib"
7895 elif test -n "$PKG_CONFIG"; then
7896    if test -n "$PKG_CONFIG" && \
7897    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
7898  ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
7899  ac_status=$?
7900  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7901  test $ac_status = 0; }; then
7902  pkg_cv__ax_cv_ncurses_lib=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
7903		      test "x$?" != "x0" && pkg_failed=yes
7904else
7905  pkg_failed=yes
7906fi
7907 else
7908    pkg_failed=untried
7909fi
7910    if test -n "$_ax_cv_ncurses_cppflags"; then
7911    pkg_cv__ax_cv_ncurses_cppflags="$_ax_cv_ncurses_cppflags"
7912 elif test -n "$PKG_CONFIG"; then
7913    if test -n "$PKG_CONFIG" && \
7914    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
7915  ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
7916  ac_status=$?
7917  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7918  test $ac_status = 0; }; then
7919  pkg_cv__ax_cv_ncurses_cppflags=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
7920		      test "x$?" != "x0" && pkg_failed=yes
7921else
7922  pkg_failed=yes
7923fi
7924 else
7925    pkg_failed=untried
7926fi
7927
7928    if test "x$pkg_failed" = "xyes" || test "x$pkg_failed" = "xuntried"; then :
7929
7930        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931$as_echo "no" >&6; }
7932        # No suitable .pc file found, have to find flags via fallback
7933        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses via fallback" >&5
7934$as_echo_n "checking for ncurses via fallback... " >&6; }
7935if ${ax_cv_ncurses+:} false; then :
7936  $as_echo_n "(cached) " >&6
7937else
7938
7939            $as_echo
7940            pkg_cv__ax_cv_ncurses_lib="-lncurses"
7941            pkg_cv__ax_cv_ncurses_cppflags="$CURSES_CPPFLAGS"
7942            LIBS="$ax_saved_LIBS $pkg_cv__ax_cv_ncurses_lib"
7943            CPPFLAGS="$ax_saved_CPPFLAGS $pkg_cv__ax_cv_ncurses_cppflags"
7944
7945            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr() with $pkg_cv__ax_cv_ncurses_lib" >&5
7946$as_echo_n "checking for initscr() with $pkg_cv__ax_cv_ncurses_lib... " >&6; }
7947            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7948/* end confdefs.h.  */
7949
7950/* Override any GCC internal prototype to avoid an error.
7951   Use char because int might match the return type of a GCC
7952   builtin and then its argument prototype would still apply.  */
7953#ifdef __cplusplus
7954extern "C"
7955#endif
7956char initscr ();
7957int
7958main ()
7959{
7960return initscr ();
7961  ;
7962  return 0;
7963}
7964_ACEOF
7965if ac_fn_c_try_link "$LINENO"; then :
7966
7967                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7968$as_echo "yes" >&6; }
7969                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nodelay() with $pkg_cv__ax_cv_ncurses_lib" >&5
7970$as_echo_n "checking for nodelay() with $pkg_cv__ax_cv_ncurses_lib... " >&6; }
7971                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7972/* end confdefs.h.  */
7973
7974/* Override any GCC internal prototype to avoid an error.
7975   Use char because int might match the return type of a GCC
7976   builtin and then its argument prototype would still apply.  */
7977#ifdef __cplusplus
7978extern "C"
7979#endif
7980char nodelay ();
7981int
7982main ()
7983{
7984return nodelay ();
7985  ;
7986  return 0;
7987}
7988_ACEOF
7989if ac_fn_c_try_link "$LINENO"; then :
7990
7991                        ax_cv_ncurses=yes
7992
7993else
7994
7995                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996$as_echo "no" >&6; }
7997                        pkg_cv__ax_cv_ncurses_lib="$pkg_cv__ax_cv_ncurses_lib -ltinfo"
7998
7999                        LIBS="$ax_saved_LIBS $pkg_cv__ax_cv_ncurses_lib"
8000
8001                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nodelay() with $pkg_cv__ax_cv_ncurses_lib" >&5
8002$as_echo_n "checking for nodelay() with $pkg_cv__ax_cv_ncurses_lib... " >&6; }
8003                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8004/* end confdefs.h.  */
8005
8006/* Override any GCC internal prototype to avoid an error.
8007   Use char because int might match the return type of a GCC
8008   builtin and then its argument prototype would still apply.  */
8009#ifdef __cplusplus
8010extern "C"
8011#endif
8012char nodelay ();
8013int
8014main ()
8015{
8016return nodelay ();
8017  ;
8018  return 0;
8019}
8020_ACEOF
8021if ac_fn_c_try_link "$LINENO"; then :
8022
8023                            ax_cv_ncurses=yes
8024
8025else
8026
8027                            ax_cv_ncurses=no
8028
8029fi
8030rm -f core conftest.err conftest.$ac_objext \
8031    conftest$ac_exeext conftest.$ac_ext
8032
8033fi
8034rm -f core conftest.err conftest.$ac_objext \
8035    conftest$ac_exeext conftest.$ac_ext
8036
8037else
8038
8039                    ax_cv_ncurses=no
8040
8041fi
8042rm -f core conftest.err conftest.$ac_objext \
8043    conftest$ac_exeext conftest.$ac_ext
8044
8045fi
8046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_ncurses" >&5
8047$as_echo "$ax_cv_ncurses" >&6; }
8048
8049else
8050
8051        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8052$as_echo "yes" >&6; }
8053        # Found .pc file, using its information
8054        LIBS="$ax_saved_LIBS $pkg_cv__ax_cv_ncurses_lib"
8055        CPPFLAGS="$ax_saved_CPPFLAGS $pkg_cv__ax_cv_ncurses_cppflags"
8056        ax_cv_ncurses=yes
8057
8058fi
8059
8060
8061        if test "x$ax_cv_ncurses" = xno && test "x$with_ncurses" = xyes; then :
8062
8063            as_fn_error $? "--with-ncurses specified but could not find Ncurses library" "$LINENO" 5
8064
8065fi
8066
8067        if test "x$ax_cv_ncurses" = xyes; then :
8068
8069            ax_cv_curses=yes
8070            ax_cv_curses_which=ncurses
8071            CURSES_LIB="$pkg_cv__ax_cv_ncurses_lib"
8072            CURSES_CPPFLAGS="$pkg_cv__ax_cv_ncurses_cppflags"
8073
8074$as_echo "#define HAVE_NCURSES 1" >>confdefs.h
8075
8076
8077$as_echo "#define HAVE_CURSES 1" >>confdefs.h
8078
8079
8080            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working ncurses/curses.h" >&5
8081$as_echo_n "checking for working ncurses/curses.h... " >&6; }
8082if ${ax_cv_header_ncurses_curses_h+:} false; then :
8083  $as_echo_n "(cached) " >&6
8084else
8085
8086                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8087/* end confdefs.h.  */
8088
8089                        #include <ncurses/curses.h>
8090
8091int
8092main ()
8093{
8094
8095                        chtype a = A_BOLD;
8096                        int b = KEY_LEFT;
8097                        chtype c = COLOR_PAIR(1) & A_COLOR;
8098                        int g = getattrs(stdscr);
8099                        int h = getcurx(stdscr) + getmaxx(stdscr);
8100                        initscr();
8101                        init_pair(1, COLOR_WHITE, COLOR_RED);
8102
8103  ;
8104  return 0;
8105}
8106_ACEOF
8107if ac_fn_c_try_link "$LINENO"; then :
8108  ax_cv_header_ncurses_curses_h=yes
8109else
8110  ax_cv_header_ncurses_curses_h=no
8111fi
8112rm -f core conftest.err conftest.$ac_objext \
8113    conftest$ac_exeext conftest.$ac_ext
8114
8115fi
8116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_ncurses_curses_h" >&5
8117$as_echo "$ax_cv_header_ncurses_curses_h" >&6; }
8118            if test "x$ax_cv_header_ncurses_curses_h" = xyes; then :
8119
8120                ax_cv_curses_color=yes
8121                ax_cv_curses_obsolete=yes
8122
8123$as_echo "#define HAVE_CURSES_COLOR 1" >>confdefs.h
8124
8125
8126$as_echo "#define HAVE_CURSES_OBSOLETE 1" >>confdefs.h
8127
8128
8129$as_echo "#define HAVE_NCURSES_CURSES_H 1" >>confdefs.h
8130
8131
8132fi
8133
8134            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working ncurses.h" >&5
8135$as_echo_n "checking for working ncurses.h... " >&6; }
8136if ${ax_cv_header_ncurses_h+:} false; then :
8137  $as_echo_n "(cached) " >&6
8138else
8139
8140                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8141/* end confdefs.h.  */
8142
8143                        #include <ncurses.h>
8144
8145int
8146main ()
8147{
8148
8149                        chtype a = A_BOLD;
8150                        int b = KEY_LEFT;
8151                        chtype c = COLOR_PAIR(1) & A_COLOR;
8152                        int g = getattrs(stdscr);
8153                        int h = getcurx(stdscr) + getmaxx(stdscr);
8154                        initscr();
8155                        init_pair(1, COLOR_WHITE, COLOR_RED);
8156
8157  ;
8158  return 0;
8159}
8160_ACEOF
8161if ac_fn_c_try_link "$LINENO"; then :
8162  ax_cv_header_ncurses_h=yes
8163else
8164  ax_cv_header_ncurses_h=no
8165fi
8166rm -f core conftest.err conftest.$ac_objext \
8167    conftest$ac_exeext conftest.$ac_ext
8168
8169fi
8170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_ncurses_h" >&5
8171$as_echo "$ax_cv_header_ncurses_h" >&6; }
8172            if test "x$ax_cv_header_ncurses_h" = xyes; then :
8173
8174                ax_cv_curses_color=yes
8175                ax_cv_curses_obsolete=yes
8176
8177$as_echo "#define HAVE_CURSES_COLOR 1" >>confdefs.h
8178
8179
8180$as_echo "#define HAVE_CURSES_OBSOLETE 1" >>confdefs.h
8181
8182
8183$as_echo "#define HAVE_NCURSES_H 1" >>confdefs.h
8184
8185
8186fi
8187
8188            if test "x$ax_cv_header_ncurses_curses_h" = xno && test "x$ax_cv_header_ncurses_h" = xno; then :
8189
8190                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find a working ncurses/curses.h or ncurses.h" >&5
8191$as_echo "$as_me: WARNING: could not find a working ncurses/curses.h or ncurses.h" >&2;}
8192
8193fi
8194
8195fi
8196
8197fi
8198    unset pkg_cv__ax_cv_ncurses_lib
8199    unset pkg_cv__ax_cv_ncurses_cppflags
8200
8201    # Test for plain Curses (or if CURSES_LIB was set by user)
8202    if test "x$with_plaincurses" != xno && test "x$ax_cv_curses_which" = xno; then :
8203
8204        if test "x$CURSES_LIB" != x; then :
8205
8206            LIBS="$ax_saved_LIBS $CURSES_LIB"
8207
8208else
8209
8210            LIBS="$ax_saved_LIBS -lcurses"
8211
8212fi
8213
8214        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Curses library" >&5
8215$as_echo_n "checking for Curses library... " >&6; }
8216if ${ax_cv_plaincurses+:} false; then :
8217  $as_echo_n "(cached) " >&6
8218else
8219
8220            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8221/* end confdefs.h.  */
8222
8223/* Override any GCC internal prototype to avoid an error.
8224   Use char because int might match the return type of a GCC
8225   builtin and then its argument prototype would still apply.  */
8226#ifdef __cplusplus
8227extern "C"
8228#endif
8229char initscr ();
8230int
8231main ()
8232{
8233return initscr ();
8234  ;
8235  return 0;
8236}
8237_ACEOF
8238if ac_fn_c_try_link "$LINENO"; then :
8239  ax_cv_plaincurses=yes
8240else
8241  ax_cv_plaincurses=no
8242fi
8243rm -f core conftest.err conftest.$ac_objext \
8244    conftest$ac_exeext conftest.$ac_ext
8245
8246fi
8247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_plaincurses" >&5
8248$as_echo "$ax_cv_plaincurses" >&6; }
8249
8250        if test "x$ax_cv_plaincurses" = xyes; then :
8251
8252            ax_cv_curses=yes
8253            ax_cv_curses_which=plaincurses
8254            if test "x$CURSES_LIB" = x; then :
8255
8256                CURSES_LIB="-lcurses"
8257
8258fi
8259
8260$as_echo "#define HAVE_CURSES 1" >>confdefs.h
8261
8262
8263            # Check for base conformance (and header file)
8264
8265            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working curses.h" >&5
8266$as_echo_n "checking for working curses.h... " >&6; }
8267if ${ax_cv_header_curses_h+:} false; then :
8268  $as_echo_n "(cached) " >&6
8269else
8270
8271                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272/* end confdefs.h.  */
8273
8274                        #include <curses.h>
8275
8276int
8277main ()
8278{
8279
8280                        chtype a = A_BOLD;
8281                        int b = KEY_LEFT;
8282                        initscr();
8283
8284  ;
8285  return 0;
8286}
8287_ACEOF
8288if ac_fn_c_try_link "$LINENO"; then :
8289  ax_cv_header_curses_h=yes
8290else
8291  ax_cv_header_curses_h=no
8292fi
8293rm -f core conftest.err conftest.$ac_objext \
8294    conftest$ac_exeext conftest.$ac_ext
8295
8296fi
8297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_header_curses_h" >&5
8298$as_echo "$ax_cv_header_curses_h" >&6; }
8299            if test "x$ax_cv_header_curses_h" = xyes; then :
8300
8301
8302$as_echo "#define HAVE_CURSES_H 1" >>confdefs.h
8303
8304
8305                # Check for X/Open Enhanced conformance
8306
8307                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X/Open Enhanced Curses conformance" >&5
8308$as_echo_n "checking for X/Open Enhanced Curses conformance... " >&6; }
8309if ${ax_cv_plaincurses_enhanced+:} false; then :
8310  $as_echo_n "(cached) " >&6
8311else
8312
8313                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8314/* end confdefs.h.  */
8315
8316                            #define _XOPEN_SOURCE_EXTENDED 1
8317                            #include <curses.h>
8318                            #ifndef _XOPEN_CURSES
8319                            #error "this Curses library is not enhanced"
8320                            "this Curses library is not enhanced"
8321                            #endif
8322
8323int
8324main ()
8325{
8326
8327                            chtype a = A_BOLD;
8328                            int b = KEY_LEFT;
8329                            chtype c = COLOR_PAIR(1) & A_COLOR;
8330                            attr_t d = WA_NORMAL;
8331                            cchar_t e;
8332                            wint_t f;
8333                            initscr();
8334                            init_pair(1, COLOR_WHITE, COLOR_RED);
8335                            wattr_set(stdscr, d, 0, NULL);
8336                            wget_wch(stdscr, &f);
8337
8338  ;
8339  return 0;
8340}
8341_ACEOF
8342if ac_fn_c_try_link "$LINENO"; then :
8343  ax_cv_plaincurses_enhanced=yes
8344else
8345  ax_cv_plaincurses_enhanced=no
8346fi
8347rm -f core conftest.err conftest.$ac_objext \
8348    conftest$ac_exeext conftest.$ac_ext
8349
8350fi
8351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_plaincurses_enhanced" >&5
8352$as_echo "$ax_cv_plaincurses_enhanced" >&6; }
8353                if test "x$ax_cv_plaincurses_enhanced" = xyes; then :
8354
8355                    ax_cv_curses_enhanced=yes
8356                    ax_cv_curses_color=yes
8357
8358$as_echo "#define HAVE_CURSES_ENHANCED 1" >>confdefs.h
8359
8360
8361$as_echo "#define HAVE_CURSES_COLOR 1" >>confdefs.h
8362
8363
8364fi
8365
8366                # Check for color functions
8367
8368                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Curses color functions" >&5
8369$as_echo_n "checking for Curses color functions... " >&6; }
8370if ${ax_cv_plaincurses_color+:} false; then :
8371  $as_echo_n "(cached) " >&6
8372else
8373
8374                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8375/* end confdefs.h.  */
8376
8377                        #define _XOPEN_SOURCE_EXTENDED 1
8378                        #include <curses.h>
8379
8380int
8381main ()
8382{
8383
8384                            chtype a = A_BOLD;
8385                            int b = KEY_LEFT;
8386                            chtype c = COLOR_PAIR(1) & A_COLOR;
8387                            initscr();
8388                            init_pair(1, COLOR_WHITE, COLOR_RED);
8389
8390  ;
8391  return 0;
8392}
8393_ACEOF
8394if ac_fn_c_try_link "$LINENO"; then :
8395  ax_cv_plaincurses_color=yes
8396else
8397  ax_cv_plaincurses_color=no
8398fi
8399rm -f core conftest.err conftest.$ac_objext \
8400    conftest$ac_exeext conftest.$ac_ext
8401
8402fi
8403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_plaincurses_color" >&5
8404$as_echo "$ax_cv_plaincurses_color" >&6; }
8405                if test "x$ax_cv_plaincurses_color" = xyes; then :
8406
8407                    ax_cv_curses_color=yes
8408
8409$as_echo "#define HAVE_CURSES_COLOR 1" >>confdefs.h
8410
8411
8412fi
8413
8414                # Check for obsolete functions
8415
8416                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete Curses functions" >&5
8417$as_echo_n "checking for obsolete Curses functions... " >&6; }
8418if ${ax_cv_plaincurses_obsolete+:} false; then :
8419  $as_echo_n "(cached) " >&6
8420else
8421
8422                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8423/* end confdefs.h.  */
8424
8425                        #include <curses.h>
8426
8427int
8428main ()
8429{
8430
8431                        chtype a = A_BOLD;
8432                        int b = KEY_LEFT;
8433                        int g = getattrs(stdscr);
8434                        int h = getcurx(stdscr) + getmaxx(stdscr);
8435                        initscr();
8436
8437  ;
8438  return 0;
8439}
8440_ACEOF
8441if ac_fn_c_try_link "$LINENO"; then :
8442  ax_cv_plaincurses_obsolete=yes
8443else
8444  ax_cv_plaincurses_obsolete=no
8445fi
8446rm -f core conftest.err conftest.$ac_objext \
8447    conftest$ac_exeext conftest.$ac_ext
8448
8449fi
8450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_plaincurses_obsolete" >&5
8451$as_echo "$ax_cv_plaincurses_obsolete" >&6; }
8452                if test "x$ax_cv_plaincurses_obsolete" = xyes; then :
8453
8454                    ax_cv_curses_obsolete=yes
8455
8456$as_echo "#define HAVE_CURSES_OBSOLETE 1" >>confdefs.h
8457
8458
8459fi
8460
8461fi
8462
8463            if test "x$ax_cv_header_curses_h" = xno; then :
8464
8465                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find a working curses.h" >&5
8466$as_echo "$as_me: WARNING: could not find a working curses.h" >&2;}
8467
8468fi
8469
8470fi
8471
8472fi
8473
8474    if test "x$ax_cv_curses"          != xyes; then :
8475  ax_cv_curses=no
8476fi
8477    if test "x$ax_cv_curses_enhanced" != xyes; then :
8478  ax_cv_curses_enhanced=no
8479fi
8480    if test "x$ax_cv_curses_color"    != xyes; then :
8481  ax_cv_curses_color=no
8482fi
8483    if test "x$ax_cv_curses_obsolete" != xyes; then :
8484  ax_cv_curses_obsolete=no
8485fi
8486
8487    LIBS=$ax_saved_LIBS
8488    CPPFLAGS=$ax_saved_CPPFLAGS
8489
8490    unset ax_saved_LIBS
8491    unset ax_saved_CPPFLAGS
8492
8493if test "x$ax_cv_ncursesw" != xyes && test "x$ax_cv_ncurses" != xyes; then
8494	as_fn_error $? "requires either NcursesW or Ncurses library" "$LINENO" 5
8495fi
8496if test "x$ax_cv_curses_color" != xyes; then
8497	as_fn_error $? "requires an X/Open-compatible Curses library with color" "$LINENO" 5
8498fi
8499push_LIBS=$LIBS
8500LIBS=$CURSES_LIB
8501for ac_func in resize_term
8502do :
8503  ac_fn_c_check_func "$LINENO" "resize_term" "ac_cv_func_resize_term"
8504if test "x$ac_cv_func_resize_term" = xyes; then :
8505  cat >>confdefs.h <<_ACEOF
8506#define HAVE_RESIZE_TERM 1
8507_ACEOF
8508
8509fi
8510done
8511
8512LIBS=$push_LIBS
8513
8514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
8515$as_echo_n "checking for zlibVersion in -lz... " >&6; }
8516if ${ac_cv_lib_z_zlibVersion+:} false; then :
8517  $as_echo_n "(cached) " >&6
8518else
8519  ac_check_lib_save_LIBS=$LIBS
8520LIBS="-lz  $LIBS"
8521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522/* end confdefs.h.  */
8523
8524/* Override any GCC internal prototype to avoid an error.
8525   Use char because int might match the return type of a GCC
8526   builtin and then its argument prototype would still apply.  */
8527#ifdef __cplusplus
8528extern "C"
8529#endif
8530char zlibVersion ();
8531int
8532main ()
8533{
8534return zlibVersion ();
8535  ;
8536  return 0;
8537}
8538_ACEOF
8539if ac_fn_c_try_link "$LINENO"; then :
8540  ac_cv_lib_z_zlibVersion=yes
8541else
8542  ac_cv_lib_z_zlibVersion=no
8543fi
8544rm -f core conftest.err conftest.$ac_objext \
8545    conftest$ac_exeext conftest.$ac_ext
8546LIBS=$ac_check_lib_save_LIBS
8547fi
8548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
8549$as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
8550if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
8551  cat >>confdefs.h <<_ACEOF
8552#define HAVE_LIBZ 1
8553_ACEOF
8554
8555  LIBS="-lz $LIBS"
8556
8557else
8558  as_fn_error $? "\"zlib not found\"" "$LINENO" 5
8559fi
8560
8561ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
8562if test "x$ac_cv_header_zlib_h" = xyes; then :
8563
8564else
8565  as_fn_error $? "\"zlib header files was not found\"" "$LINENO" 5
8566fi
8567
8568
8569
8570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
8571$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
8572if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
8573  $as_echo_n "(cached) " >&6
8574else
8575  ac_check_lib_save_LIBS=$LIBS
8576LIBS="-lbz2  $LIBS"
8577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8578/* end confdefs.h.  */
8579
8580/* Override any GCC internal prototype to avoid an error.
8581   Use char because int might match the return type of a GCC
8582   builtin and then its argument prototype would still apply.  */
8583#ifdef __cplusplus
8584extern "C"
8585#endif
8586char BZ2_bzDecompress ();
8587int
8588main ()
8589{
8590return BZ2_bzDecompress ();
8591  ;
8592  return 0;
8593}
8594_ACEOF
8595if ac_fn_c_try_link "$LINENO"; then :
8596  ac_cv_lib_bz2_BZ2_bzDecompress=yes
8597else
8598  ac_cv_lib_bz2_BZ2_bzDecompress=no
8599fi
8600rm -f core conftest.err conftest.$ac_objext \
8601    conftest$ac_exeext conftest.$ac_ext
8602LIBS=$ac_check_lib_save_LIBS
8603fi
8604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
8605$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
8606if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
8607  cat >>confdefs.h <<_ACEOF
8608#define HAVE_LIBBZ2 1
8609_ACEOF
8610
8611  LIBS="-lbz2 $LIBS"
8612
8613else
8614  as_fn_error $? "bzip2 library not found (libbz2-dev)" "$LINENO" 5
8615fi
8616
8617ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
8618if test "x$ac_cv_header_bzlib_h" = xyes; then :
8619
8620else
8621  as_fn_error $? "bzip2 header file not found (libbz2-dev)" "$LINENO" 5
8622fi
8623
8624
8625
8626
8627push_LIBS=$LIBS
8628LIBS=
8629ac_ext=c
8630ac_cpp='$CPP $CPPFLAGS'
8631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8633ac_compiler_gnu=$ac_cv_c_compiler_gnu
8634
8635ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
8636if test "x$ac_cv_func_dlopen" = xyes; then :
8637  DL_LIBS=""
8638else
8639  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8640$as_echo_n "checking for dlopen in -ldl... " >&6; }
8641if ${ac_cv_lib_dl_dlopen+:} false; then :
8642  $as_echo_n "(cached) " >&6
8643else
8644  ac_check_lib_save_LIBS=$LIBS
8645LIBS="-ldl  $LIBS"
8646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8647/* end confdefs.h.  */
8648
8649/* Override any GCC internal prototype to avoid an error.
8650   Use char because int might match the return type of a GCC
8651   builtin and then its argument prototype would still apply.  */
8652#ifdef __cplusplus
8653extern "C"
8654#endif
8655char dlopen ();
8656int
8657main ()
8658{
8659return dlopen ();
8660  ;
8661  return 0;
8662}
8663_ACEOF
8664if ac_fn_c_try_link "$LINENO"; then :
8665  ac_cv_lib_dl_dlopen=yes
8666else
8667  ac_cv_lib_dl_dlopen=no
8668fi
8669rm -f core conftest.err conftest.$ac_objext \
8670    conftest$ac_exeext conftest.$ac_ext
8671LIBS=$ac_check_lib_save_LIBS
8672fi
8673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8674$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8675if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8676  DL_LIBS="-ldl"
8677else
8678  as_fn_error $? "\"dlopen not found\"" "$LINENO" 5
8679fi
8680
8681fi
8682
8683LIBS=$push_LIBS
8684ac_ext=c
8685ac_cpp='$CPP $CPPFLAGS'
8686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8688ac_compiler_gnu=$ac_cv_c_compiler_gnu
8689
8690
8691
8692
8693
8694
8695
8696
8697if test "x$with_mad" != "xno"; then
8698	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking mad support" >&5
8699$as_echo_n "checking mad support... " >&6; }
8700	MAD_LIBS=`pkg-config --libs mad 2> /dev/null`
8701	MAD_CFLAGS=`pkg-config --cflags mad 2> /dev/null`
8702	if test "$?" = 0; then
8703		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$MAD_CFLAGS $MAD_LIBS\"" >&5
8704$as_echo "\"$MAD_CFLAGS $MAD_LIBS\"" >&6; }
8705	else
8706		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config failed" >&5
8707$as_echo "pkg-config failed" >&6; };
8708			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mad_stream_init in -lmad" >&5
8709$as_echo_n "checking for mad_stream_init in -lmad... " >&6; }
8710if ${ac_cv_lib_mad_mad_stream_init+:} false; then :
8711  $as_echo_n "(cached) " >&6
8712else
8713  ac_check_lib_save_LIBS=$LIBS
8714LIBS="-lmad  $LIBS"
8715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8716/* end confdefs.h.  */
8717
8718/* Override any GCC internal prototype to avoid an error.
8719   Use char because int might match the return type of a GCC
8720   builtin and then its argument prototype would still apply.  */
8721#ifdef __cplusplus
8722extern "C"
8723#endif
8724char mad_stream_init ();
8725int
8726main ()
8727{
8728return mad_stream_init ();
8729  ;
8730  return 0;
8731}
8732_ACEOF
8733if ac_fn_c_try_link "$LINENO"; then :
8734  ac_cv_lib_mad_mad_stream_init=yes
8735else
8736  ac_cv_lib_mad_mad_stream_init=no
8737fi
8738rm -f core conftest.err conftest.$ac_objext \
8739    conftest$ac_exeext conftest.$ac_ext
8740LIBS=$ac_check_lib_save_LIBS
8741fi
8742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mad_mad_stream_init" >&5
8743$as_echo "$ac_cv_lib_mad_mad_stream_init" >&6; }
8744if test "x$ac_cv_lib_mad_mad_stream_init" = xyes; then :
8745  cat >>confdefs.h <<_ACEOF
8746#define HAVE_LIBMAD 1
8747_ACEOF
8748
8749  LIBS="-lmad $LIBS"
8750
8751else
8752  if test "x$with_mad" = "xyes"; then as_fn_error $? "\"libmad not found\"" "$LINENO" 5; else with_mad="no"; fi
8753fi
8754
8755		if test "x$with_mad" != "xno"; then
8756			ac_fn_c_check_header_mongrel "$LINENO" "mad.h" "ac_cv_header_mad_h" "$ac_includes_default"
8757if test "x$ac_cv_header_mad_h" = xyes; then :
8758
8759else
8760  if test "x$with_mad" = "xyes"; then as_fn_error $? "\"libmad header files was not found\"" "$LINENO" 5; else with_mad="no"; fi
8761fi
8762
8763
8764		fi
8765		if test "x$with_mad" != "xno"; then
8766			MAD_LIBS="-lmad"
8767			MAD_CFLAGS=""
8768			LIBS=$push_LIBS
8769		fi
8770	fi
8771fi
8772
8773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libjpeg / libjpeg-turbo support" >&5
8774$as_echo_n "checking libjpeg / libjpeg-turbo support... " >&6; }
8775LIBJPEG_LIBS=`pkg-config --libs libjpeg 2> /dev/null`
8776LIBJPEG_CFLAGS=`pkg-config --cflags libjpeg 2> /dev/null`
8777if test "$?" = 0; then
8778	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$LIBJPEG_CFLAGS $LIBJPEG_LIBS\"" >&5
8779$as_echo "\"$LIBJPEG_CFLAGS $LIBJPEG_LIBS\"" >&6; }
8780else
8781	as_fn_error $? "pkg-config failed" "$LINENO" 5;
8782fi
8783
8784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libpng support" >&5
8785$as_echo_n "checking libpng support... " >&6; }
8786LIBPNG_LIBS=`pkg-config --libs libpng 2> /dev/null`
8787LIBPNG_CFLAGS=`pkg-config --cflags libpng 2> /dev/null`
8788if test "$?" = 0; then
8789	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$LIBPNG_CFLAGS $LIBPNG_LIBS\"" >&5
8790$as_echo "\"$LIBPNG_CFLAGS $LIBPNG_LIBS\"" >&6; }
8791else
8792	as_fn_error $? "pkg-config failed" "$LINENO" 5;
8793fi
8794
8795
8796if test "x$with_mad" = "xno"; then
8797	HAVE_MAD=0
8798else
8799	HAVE_MAD=1
8800	$as_echo "#define HAVE_MAD 1" >>confdefs.h
8801
8802fi
8803
8804
8805
8806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ogg support" >&5
8807$as_echo_n "checking ogg support... " >&6; }
8808OGG_LIBS=`pkg-config --libs ogg 2> /dev/null`
8809OGG_CFLAGS=`pkg-config --cflags ogg 2> /dev/null`
8810if test "$?" = 0; then
8811	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$OGG_CFLAGS $OGG_LIBS\"" >&5
8812$as_echo "\"$OGG_CFLAGS $OGG_LIBS\"" >&6; }
8813else
8814	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config failed" >&5
8815$as_echo "pkg-config failed" >&6; };
8816	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ogg_sync_init in -logg" >&5
8817$as_echo_n "checking for ogg_sync_init in -logg... " >&6; }
8818if ${ac_cv_lib_ogg_ogg_sync_init+:} false; then :
8819  $as_echo_n "(cached) " >&6
8820else
8821  ac_check_lib_save_LIBS=$LIBS
8822LIBS="-logg  $LIBS"
8823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824/* end confdefs.h.  */
8825
8826/* Override any GCC internal prototype to avoid an error.
8827   Use char because int might match the return type of a GCC
8828   builtin and then its argument prototype would still apply.  */
8829#ifdef __cplusplus
8830extern "C"
8831#endif
8832char ogg_sync_init ();
8833int
8834main ()
8835{
8836return ogg_sync_init ();
8837  ;
8838  return 0;
8839}
8840_ACEOF
8841if ac_fn_c_try_link "$LINENO"; then :
8842  ac_cv_lib_ogg_ogg_sync_init=yes
8843else
8844  ac_cv_lib_ogg_ogg_sync_init=no
8845fi
8846rm -f core conftest.err conftest.$ac_objext \
8847    conftest$ac_exeext conftest.$ac_ext
8848LIBS=$ac_check_lib_save_LIBS
8849fi
8850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
8851$as_echo "$ac_cv_lib_ogg_ogg_sync_init" >&6; }
8852if test "x$ac_cv_lib_ogg_ogg_sync_init" = xyes; then :
8853  cat >>confdefs.h <<_ACEOF
8854#define HAVE_LIBOGG 1
8855_ACEOF
8856
8857  LIBS="-logg $LIBS"
8858
8859else
8860  as_fn_error $? "\"ogg libraries not found\"" "$LINENO" 5
8861fi
8862
8863	OGG_LIBS="-logg"
8864	OGG_CFLAGS=""
8865	LIBS=$push_LIBS
8866fi
8867
8868
8869
8870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking vorbis support" >&5
8871$as_echo_n "checking vorbis support... " >&6; }
8872VORBIS_LIBS=`pkg-config --libs vorbis 2> /dev/null`
8873VORBIS_CFLAGS=`pkg-config --cflags vorbis 2> /dev/null`
8874if test "$?" = 0; then
8875	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$VORBIS_CFLAGS $VORBIS_LIBS\"" >&5
8876$as_echo "\"$VORBIS_CFLAGS $VORBIS_LIBS\"" >&6; }
8877else
8878	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config failed" >&5
8879$as_echo "pkg-config failed" >&6; };
8880	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for vorbis_bitrate_init in -lvorbis" >&5
8881$as_echo_n "checking for vorbis_bitrate_init in -lvorbis... " >&6; }
8882if ${ac_cv_lib_vorbis_vorbis_bitrate_init+:} false; then :
8883  $as_echo_n "(cached) " >&6
8884else
8885  ac_check_lib_save_LIBS=$LIBS
8886LIBS="-lvorbis -logg $LIBS"
8887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8888/* end confdefs.h.  */
8889
8890/* Override any GCC internal prototype to avoid an error.
8891   Use char because int might match the return type of a GCC
8892   builtin and then its argument prototype would still apply.  */
8893#ifdef __cplusplus
8894extern "C"
8895#endif
8896char vorbis_bitrate_init ();
8897int
8898main ()
8899{
8900return vorbis_bitrate_init ();
8901  ;
8902  return 0;
8903}
8904_ACEOF
8905if ac_fn_c_try_link "$LINENO"; then :
8906  ac_cv_lib_vorbis_vorbis_bitrate_init=yes
8907else
8908  ac_cv_lib_vorbis_vorbis_bitrate_init=no
8909fi
8910rm -f core conftest.err conftest.$ac_objext \
8911    conftest$ac_exeext conftest.$ac_ext
8912LIBS=$ac_check_lib_save_LIBS
8913fi
8914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vorbis_vorbis_bitrate_init" >&5
8915$as_echo "$ac_cv_lib_vorbis_vorbis_bitrate_init" >&6; }
8916if test "x$ac_cv_lib_vorbis_vorbis_bitrate_init" = xyes; then :
8917  cat >>confdefs.h <<_ACEOF
8918#define HAVE_LIBVORBIS 1
8919_ACEOF
8920
8921  LIBS="-lvorbis $LIBS"
8922
8923else
8924  as_fn_error $? "\"vorbis libraries not found\"" "$LINENO" 5
8925fi
8926
8927	ac_fn_c_check_header_mongrel "$LINENO" "vorbis/codec.h" "ac_cv_header_vorbis_codec_h" "$ac_includes_default"
8928if test "x$ac_cv_header_vorbis_codec_h" = xyes; then :
8929
8930else
8931  as_fn_error $? "\"libvorbis header files was not found\"" "$LINENO" 5
8932fi
8933
8934
8935	VORBIS_LIBS="-lvorbis"
8936	VORBIS_CFLAGS=""
8937	LIBS=$push_LIBS
8938fi
8939
8940
8941
8942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking vorbisfile support" >&5
8943$as_echo_n "checking vorbisfile support... " >&6; }
8944VORBISFILE_LIBS=`pkg-config --libs vorbisfile 2> /dev/null`
8945VORBISFILE_CFLAGS=`pkg-config --cflags vorbisfile 2> /dev/null`
8946if test "$?" = 0; then
8947	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$VORBISFILE_CFLAGS $VORBISFILE_LIBS\"" >&5
8948$as_echo "\"$VORBISFILE_CFLAGS $VORBISFILE_LIBS\"" >&6; }
8949else
8950	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config failed" >&5
8951$as_echo "pkg-config failed" >&6; };
8952
8953	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ov_pcm_seek_lap in -lvorbisfile" >&5
8954$as_echo_n "checking for ov_pcm_seek_lap in -lvorbisfile... " >&6; }
8955if ${ac_cv_lib_vorbisfile_ov_pcm_seek_lap+:} false; then :
8956  $as_echo_n "(cached) " >&6
8957else
8958  ac_check_lib_save_LIBS=$LIBS
8959LIBS="-lvorbisfile  $LIBS"
8960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8961/* end confdefs.h.  */
8962
8963/* Override any GCC internal prototype to avoid an error.
8964   Use char because int might match the return type of a GCC
8965   builtin and then its argument prototype would still apply.  */
8966#ifdef __cplusplus
8967extern "C"
8968#endif
8969char ov_pcm_seek_lap ();
8970int
8971main ()
8972{
8973return ov_pcm_seek_lap ();
8974  ;
8975  return 0;
8976}
8977_ACEOF
8978if ac_fn_c_try_link "$LINENO"; then :
8979  ac_cv_lib_vorbisfile_ov_pcm_seek_lap=yes
8980else
8981  ac_cv_lib_vorbisfile_ov_pcm_seek_lap=no
8982fi
8983rm -f core conftest.err conftest.$ac_objext \
8984    conftest$ac_exeext conftest.$ac_ext
8985LIBS=$ac_check_lib_save_LIBS
8986fi
8987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vorbisfile_ov_pcm_seek_lap" >&5
8988$as_echo "$ac_cv_lib_vorbisfile_ov_pcm_seek_lap" >&6; }
8989if test "x$ac_cv_lib_vorbisfile_ov_pcm_seek_lap" = xyes; then :
8990  $as_echo "#define HAVE_OV_PCM_SEEK_LAP 1" >>confdefs.h
8991
8992else
8993  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ov_pcm_seek in -lvorbisfile" >&5
8994$as_echo_n "checking for ov_pcm_seek in -lvorbisfile... " >&6; }
8995if ${ac_cv_lib_vorbisfile_ov_pcm_seek+:} false; then :
8996  $as_echo_n "(cached) " >&6
8997else
8998  ac_check_lib_save_LIBS=$LIBS
8999LIBS="-lvorbisfile -logg -lvorbis $LIBS"
9000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001/* end confdefs.h.  */
9002
9003/* Override any GCC internal prototype to avoid an error.
9004   Use char because int might match the return type of a GCC
9005   builtin and then its argument prototype would still apply.  */
9006#ifdef __cplusplus
9007extern "C"
9008#endif
9009char ov_pcm_seek ();
9010int
9011main ()
9012{
9013return ov_pcm_seek ();
9014  ;
9015  return 0;
9016}
9017_ACEOF
9018if ac_fn_c_try_link "$LINENO"; then :
9019  ac_cv_lib_vorbisfile_ov_pcm_seek=yes
9020else
9021  ac_cv_lib_vorbisfile_ov_pcm_seek=no
9022fi
9023rm -f core conftest.err conftest.$ac_objext \
9024    conftest$ac_exeext conftest.$ac_ext
9025LIBS=$ac_check_lib_save_LIBS
9026fi
9027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vorbisfile_ov_pcm_seek" >&5
9028$as_echo "$ac_cv_lib_vorbisfile_ov_pcm_seek" >&6; }
9029if test "x$ac_cv_lib_vorbisfile_ov_pcm_seek" = xyes; then :
9030  $as_echo "#define HAVE_OV_PCM_SEEK 1" >>confdefs.h
9031
9032else
9033  as_fn_error $? "\"vorbis libraries not found\"" "$LINENO" 5
9034fi
9035
9036
9037fi
9038
9039	ac_fn_c_check_header_mongrel "$LINENO" "vorbis/vorbisfile.h" "ac_cv_header_vorbis_vorbisfile_h" "$ac_includes_default"
9040if test "x$ac_cv_header_vorbis_vorbisfile_h" = xyes; then :
9041
9042else
9043  as_fn_error $? "\"libvorbis header files were not found\"" "$LINENO" 5
9044fi
9045
9046
9047	VORBISFILE_LIBS="-lvorbisfile"
9048	VORBISFILE_CFLAGS=""
9049	LIBS=$push_LIBS
9050fi
9051
9052
9053
9054if test "x$with_flac" != "xno"; then
9055	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLAC__seekable_stream_decoder_process_until_end_of_metadata in -lFLAC" >&5
9056$as_echo_n "checking for FLAC__seekable_stream_decoder_process_until_end_of_metadata in -lFLAC... " >&6; }
9057if ${ac_cv_lib_FLAC_FLAC__seekable_stream_decoder_process_until_end_of_metadata+:} false; then :
9058  $as_echo_n "(cached) " >&6
9059else
9060  ac_check_lib_save_LIBS=$LIBS
9061LIBS="-lFLAC -lz $LIBS"
9062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9063/* end confdefs.h.  */
9064
9065/* Override any GCC internal prototype to avoid an error.
9066   Use char because int might match the return type of a GCC
9067   builtin and then its argument prototype would still apply.  */
9068#ifdef __cplusplus
9069extern "C"
9070#endif
9071char FLAC__seekable_stream_decoder_process_until_end_of_metadata ();
9072int
9073main ()
9074{
9075return FLAC__seekable_stream_decoder_process_until_end_of_metadata ();
9076  ;
9077  return 0;
9078}
9079_ACEOF
9080if ac_fn_c_try_link "$LINENO"; then :
9081  ac_cv_lib_FLAC_FLAC__seekable_stream_decoder_process_until_end_of_metadata=yes
9082else
9083  ac_cv_lib_FLAC_FLAC__seekable_stream_decoder_process_until_end_of_metadata=no
9084fi
9085rm -f core conftest.err conftest.$ac_objext \
9086    conftest$ac_exeext conftest.$ac_ext
9087LIBS=$ac_check_lib_save_LIBS
9088fi
9089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_FLAC_FLAC__seekable_stream_decoder_process_until_end_of_metadata" >&5
9090$as_echo "$ac_cv_lib_FLAC_FLAC__seekable_stream_decoder_process_until_end_of_metadata" >&6; }
9091if test "x$ac_cv_lib_FLAC_FLAC__seekable_stream_decoder_process_until_end_of_metadata" = xyes; then :
9092  FLAC_LIBS="-lFLAC"
9093else
9094  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLAC__stream_decoder_process_until_end_of_metadata in -lFLAC" >&5
9095$as_echo_n "checking for FLAC__stream_decoder_process_until_end_of_metadata in -lFLAC... " >&6; }
9096if ${ac_cv_lib_FLAC_FLAC__stream_decoder_process_until_end_of_metadata+:} false; then :
9097  $as_echo_n "(cached) " >&6
9098else
9099  ac_check_lib_save_LIBS=$LIBS
9100LIBS="-lFLAC -lz $LIBS"
9101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9102/* end confdefs.h.  */
9103
9104/* Override any GCC internal prototype to avoid an error.
9105   Use char because int might match the return type of a GCC
9106   builtin and then its argument prototype would still apply.  */
9107#ifdef __cplusplus
9108extern "C"
9109#endif
9110char FLAC__stream_decoder_process_until_end_of_metadata ();
9111int
9112main ()
9113{
9114return FLAC__stream_decoder_process_until_end_of_metadata ();
9115  ;
9116  return 0;
9117}
9118_ACEOF
9119if ac_fn_c_try_link "$LINENO"; then :
9120  ac_cv_lib_FLAC_FLAC__stream_decoder_process_until_end_of_metadata=yes
9121else
9122  ac_cv_lib_FLAC_FLAC__stream_decoder_process_until_end_of_metadata=no
9123fi
9124rm -f core conftest.err conftest.$ac_objext \
9125    conftest$ac_exeext conftest.$ac_ext
9126LIBS=$ac_check_lib_save_LIBS
9127fi
9128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_FLAC_FLAC__stream_decoder_process_until_end_of_metadata" >&5
9129$as_echo "$ac_cv_lib_FLAC_FLAC__stream_decoder_process_until_end_of_metadata" >&6; }
9130if test "x$ac_cv_lib_FLAC_FLAC__stream_decoder_process_until_end_of_metadata" = xyes; then :
9131  FLAC_LIBS="-lFLAC"
9132else
9133  if test "x$with_flac" = "xyes"; then as_fn_error $? "\"libFLAC not found\"" "$LINENO" 5; else with_flac="no"; fi
9134fi
9135
9136fi
9137
9138	LIBS=$push_LIBS
9139fi
9140if test "x$with_flac" != "xno"; then
9141	ac_fn_c_check_header_mongrel "$LINENO" "FLAC/all.h" "ac_cv_header_FLAC_all_h" "$ac_includes_default"
9142if test "x$ac_cv_header_FLAC_all_h" = xyes; then :
9143  FLAC_CFLAGS=""
9144else
9145  if test "x$with_flac" = "xyes"; then as_fn_error $? "\"libFLAC header files were not found\"" "$LINENO" 5; else with_flac="no"; fi
9146fi
9147
9148
9149fi
9150
9151
9152if test "x$with_flac" = "xno"; then
9153	HAVE_FLAC=
9154	FLAC_INI=
9155else
9156	HAVE_FLAC=1
9157	FLAC_INI=flacptype
9158fi
9159
9160if test "x$with_x11" != "xno"; then
9161	ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
9162
9163"
9164if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
9165
9166else
9167  if test "x$with_x11" = "xyes"; then as_fn_error $? "\"xvidmode header files was not found\"" "$LINENO" 5; else with_x11="no"; fi
9168fi
9169
9170
9171fi
9172if test "x$with_x11" != "xno"; then
9173	ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XShm.h" "ac_cv_header_X11_extensions_XShm_h" "#include <X11/Xlib.h>
9174
9175"
9176if test "x$ac_cv_header_X11_extensions_XShm_h" = xyes; then :
9177
9178else
9179  if test "x$with_x11" = "xyes"; then as_fn_error $? "\"XShm header files was not found\"" "$LINENO" 5; else with_x11="no"; fi
9180fi
9181
9182
9183fi
9184if test "x$with_x11" != "xno"; then
9185	ac_fn_c_check_header_compile "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "#include <X11/Xlib.h>
9186
9187"
9188if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
9189
9190else
9191  if test "x$with_x11" = "xyes"; then as_fn_error $? "\"xpm header files was not found\"" "$LINENO" 5; else with_x11="no"; fi
9192fi
9193
9194
9195fi
9196if test "x$with_x11" != "xno"; then
9197	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5
9198$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
9199if ${ac_cv_lib_Xpm_XpmCreatePixmapFromData+:} false; then :
9200  $as_echo_n "(cached) " >&6
9201else
9202  ac_check_lib_save_LIBS=$LIBS
9203LIBS="-lXpm -lXpm -lX11 -L/usr/X11R6/lib $LIBS"
9204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9205/* end confdefs.h.  */
9206
9207/* Override any GCC internal prototype to avoid an error.
9208   Use char because int might match the return type of a GCC
9209   builtin and then its argument prototype would still apply.  */
9210#ifdef __cplusplus
9211extern "C"
9212#endif
9213char XpmCreatePixmapFromData ();
9214int
9215main ()
9216{
9217return XpmCreatePixmapFromData ();
9218  ;
9219  return 0;
9220}
9221_ACEOF
9222if ac_fn_c_try_link "$LINENO"; then :
9223  ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
9224else
9225  ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
9226fi
9227rm -f core conftest.err conftest.$ac_objext \
9228    conftest$ac_exeext conftest.$ac_ext
9229LIBS=$ac_check_lib_save_LIBS
9230fi
9231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
9232$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
9233if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then :
9234  X11_LIBS="-lXpm -lX11 -L/usr/X11R6/lib"
9235else
9236  if test "x$with_x11" = "xyes"; then as_fn_error $? "\"Xpm/X11 not found (expected to be found in /usr/X11R6/lib)\"" "$LINENO" 5; else with_x11="no"; fi
9237fi
9238
9239	LIBS=$push_LIBS
9240fi
9241if test "x$with_x11" != "xno"; then
9242	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
9243$as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
9244if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
9245  $as_echo_n "(cached) " >&6
9246else
9247  ac_check_lib_save_LIBS=$LIBS
9248LIBS="-lXext -lX11 -lXext -L/usr/X11R6/lib $LIBS"
9249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9250/* end confdefs.h.  */
9251
9252/* Override any GCC internal prototype to avoid an error.
9253   Use char because int might match the return type of a GCC
9254   builtin and then its argument prototype would still apply.  */
9255#ifdef __cplusplus
9256extern "C"
9257#endif
9258char XShmQueryExtension ();
9259int
9260main ()
9261{
9262return XShmQueryExtension ();
9263  ;
9264  return 0;
9265}
9266_ACEOF
9267if ac_fn_c_try_link "$LINENO"; then :
9268  ac_cv_lib_Xext_XShmQueryExtension=yes
9269else
9270  ac_cv_lib_Xext_XShmQueryExtension=no
9271fi
9272rm -f core conftest.err conftest.$ac_objext \
9273    conftest$ac_exeext conftest.$ac_ext
9274LIBS=$ac_check_lib_save_LIBS
9275fi
9276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
9277$as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
9278if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
9279  X11_LIBS="-lXext $X11_LIBS"
9280else
9281  if test "x$with_x11" = "xyes"; then as_fn_error $? "\"SHM/X11 not found (expected to be found in /usr/X11R6/lib)\"" "$LINENO" 5; else with_x11="no"; fi
9282fi
9283
9284	LIBS=$push_LIBS
9285fi
9286if test "x$with_x11" != "xno"; then
9287	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
9288$as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
9289if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
9290  $as_echo_n "(cached) " >&6
9291else
9292  ac_check_lib_save_LIBS=$LIBS
9293LIBS="-lXxf86vm -lX11 -lXext -L/usr/X11R6/lib $LIBS"
9294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9295/* end confdefs.h.  */
9296
9297/* Override any GCC internal prototype to avoid an error.
9298   Use char because int might match the return type of a GCC
9299   builtin and then its argument prototype would still apply.  */
9300#ifdef __cplusplus
9301extern "C"
9302#endif
9303char XF86VidModeQueryExtension ();
9304int
9305main ()
9306{
9307return XF86VidModeQueryExtension ();
9308  ;
9309  return 0;
9310}
9311_ACEOF
9312if ac_fn_c_try_link "$LINENO"; then :
9313  ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
9314else
9315  ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
9316fi
9317rm -f core conftest.err conftest.$ac_objext \
9318    conftest$ac_exeext conftest.$ac_ext
9319LIBS=$ac_check_lib_save_LIBS
9320fi
9321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
9322$as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
9323if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
9324  X11_LIBS="-lXxf86vm $X11_LIBS"
9325else
9326  if test "x$with_x11" = "xyes"; then as_fn_error $? "\"xvidmode was not found (expected to be found in /usr/X11R6/lib)\"" "$LINENO" 5; else with_x11="no"; fi
9327fi
9328
9329	LIBS=$push_LIBS
9330fi
9331
9332if test "x$with_x11" = "xno"; then
9333	X11_LIBS=
9334	HAVE_X11=
9335else
9336	HAVE_X11=1
9337	$as_echo "#define HAVE_X11 1" >>confdefs.h
9338
9339fi
9340
9341if test "x$with_sdl" = "xyes" && test "x$with_sdl2" = "xyes"; then
9342	as_fn_error $? "\"Can not use both --with-sdl and --with-sdl2\"" "$LINENO" 5
9343fi
9344
9345if test "x$with_sdl" = "xyes"; then
9346	with_sdl2="no"
9347fi
9348
9349if test "x$with_sdl2" = "xyes"; then
9350	with_sdl="no"
9351fi
9352
9353
9354
9355if test "x$with_sdl2" != "xno"; then
9356
9357# Check whether --with-sdl-prefix was given.
9358if test "${with_sdl_prefix+set}" = set; then :
9359  withval=$with_sdl_prefix; sdl_prefix="$withval"
9360else
9361  sdl_prefix=""
9362fi
9363
9364
9365# Check whether --with-sdl-exec-prefix was given.
9366if test "${with_sdl_exec_prefix+set}" = set; then :
9367  withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
9368else
9369  sdl_exec_prefix=""
9370fi
9371
9372# Check whether --enable-sdltest was given.
9373if test "${enable_sdltest+set}" = set; then :
9374  enableval=$enable_sdltest;
9375else
9376  enable_sdltest=yes
9377fi
9378
9379# Check whether --enable-sdlframework was given.
9380if test "${enable_sdlframework+set}" = set; then :
9381  enableval=$enable_sdlframework;
9382else
9383  search_sdl_framework=yes
9384fi
9385
9386
9387
9388
9389  min_sdl_version="2.0.0"
9390
9391  if test "x$sdl_prefix$sdl_exec_prefix" = x ; then
9392
9393pkg_failed=no
9394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5
9395$as_echo_n "checking for SDL... " >&6; }
9396
9397if test -n "$SDL_CFLAGS"; then
9398    pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
9399 elif test -n "$PKG_CONFIG"; then
9400    if test -n "$PKG_CONFIG" && \
9401    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5
9402  ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5
9403  ac_status=$?
9404  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9405  test $ac_status = 0; }; then
9406  pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2 >= $min_sdl_version" 2>/dev/null`
9407		      test "x$?" != "x0" && pkg_failed=yes
9408else
9409  pkg_failed=yes
9410fi
9411 else
9412    pkg_failed=untried
9413fi
9414if test -n "$SDL_LIBS"; then
9415    pkg_cv_SDL_LIBS="$SDL_LIBS"
9416 elif test -n "$PKG_CONFIG"; then
9417    if test -n "$PKG_CONFIG" && \
9418    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5
9419  ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5
9420  ac_status=$?
9421  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9422  test $ac_status = 0; }; then
9423  pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2 >= $min_sdl_version" 2>/dev/null`
9424		      test "x$?" != "x0" && pkg_failed=yes
9425else
9426  pkg_failed=yes
9427fi
9428 else
9429    pkg_failed=untried
9430fi
9431
9432
9433
9434if test $pkg_failed = yes; then
9435   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9436$as_echo "no" >&6; }
9437
9438if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9439        _pkg_short_errors_supported=yes
9440else
9441        _pkg_short_errors_supported=no
9442fi
9443        if test $_pkg_short_errors_supported = yes; then
9444	        SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2 >= $min_sdl_version" 2>&1`
9445        else
9446	        SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2 >= $min_sdl_version" 2>&1`
9447        fi
9448	# Put the nasty error message in config.log where it belongs
9449	echo "$SDL_PKG_ERRORS" >&5
9450
9451	sdl_pc=no
9452elif test $pkg_failed = untried; then
9453     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9454$as_echo "no" >&6; }
9455	sdl_pc=no
9456else
9457	SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
9458	SDL_LIBS=$pkg_cv_SDL_LIBS
9459        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9460$as_echo "yes" >&6; }
9461	sdl_pc=yes
9462fi
9463  else
9464    sdl_pc=no
9465    if test x$sdl_exec_prefix != x ; then
9466      sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
9467      if test x${SDL2_CONFIG+set} != xset ; then
9468        SDL2_CONFIG=$sdl_exec_prefix/bin/sdl2-config
9469      fi
9470    fi
9471    if test x$sdl_prefix != x ; then
9472      sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
9473      if test x${SDL2_CONFIG+set} != xset ; then
9474        SDL2_CONFIG=$sdl_prefix/bin/sdl2-config
9475      fi
9476    fi
9477  fi
9478
9479  if test "x$sdl_pc" = xyes ; then
9480    no_sdl=""
9481    SDL2_CONFIG="pkg-config sdl2"
9482  else
9483    as_save_PATH="$PATH"
9484    if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then
9485      PATH="$prefix/bin:$prefix/usr/bin:$PATH"
9486    fi
9487    # Extract the first word of "sdl2-config", so it can be a program name with args.
9488set dummy sdl2-config; ac_word=$2
9489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9490$as_echo_n "checking for $ac_word... " >&6; }
9491if ${ac_cv_path_SDL2_CONFIG+:} false; then :
9492  $as_echo_n "(cached) " >&6
9493else
9494  case $SDL2_CONFIG in
9495  [\\/]* | ?:[\\/]*)
9496  ac_cv_path_SDL2_CONFIG="$SDL2_CONFIG" # Let the user override the test with a path.
9497  ;;
9498  *)
9499  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9500for as_dir in $PATH
9501do
9502  IFS=$as_save_IFS
9503  test -z "$as_dir" && as_dir=.
9504    for ac_exec_ext in '' $ac_executable_extensions; do
9505  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9506    ac_cv_path_SDL2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9507    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9508    break 2
9509  fi
9510done
9511  done
9512IFS=$as_save_IFS
9513
9514  test -z "$ac_cv_path_SDL2_CONFIG" && ac_cv_path_SDL2_CONFIG="no"
9515  ;;
9516esac
9517fi
9518SDL2_CONFIG=$ac_cv_path_SDL2_CONFIG
9519if test -n "$SDL2_CONFIG"; then
9520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL2_CONFIG" >&5
9521$as_echo "$SDL2_CONFIG" >&6; }
9522else
9523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9524$as_echo "no" >&6; }
9525fi
9526
9527
9528    PATH="$as_save_PATH"
9529    no_sdl=""
9530
9531    if test "$SDL2_CONFIG" = "no" -a "x$search_sdl_framework" = "xyes"; then
9532      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL2.framework" >&5
9533$as_echo_n "checking for SDL2.framework... " >&6; }
9534      if test "x$SDL2_FRAMEWORK" != x; then
9535        sdl_framework=$SDL2_FRAMEWORK
9536      else
9537        for d in / ~/ /System/; do
9538          if test -d "$dLibrary/Frameworks/SDL2.framework"; then
9539            sdl_framework="$dLibrary/Frameworks/SDL2.framework"
9540          fi
9541        done
9542      fi
9543
9544      if test x"$sdl_framework" != x && test -d "$sdl_framework"; then
9545        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sdl_framework" >&5
9546$as_echo "$sdl_framework" >&6; }
9547        sdl_framework_dir=`dirname $sdl_framework`
9548        SDL_CFLAGS="-F$sdl_framework_dir -Wl,-framework,SDL2 -I$sdl_framework/include"
9549        SDL_LIBS="-F$sdl_framework_dir -Wl,-framework,SDL2"
9550      else
9551        no_sdl=yes
9552      fi
9553    fi
9554
9555    if test "$SDL2_CONFIG" != "no"; then
9556      if test "x$sdl_pc" = "xno"; then
9557        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
9558$as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
9559        SDL_CFLAGS=`$SDL2_CONFIG $sdl_config_args --cflags`
9560        SDL_LIBS=`$SDL2_CONFIG $sdl_config_args --libs`
9561      fi
9562
9563      sdl_major_version=`$SDL2_CONFIG $sdl_config_args --version | \
9564             sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9565      sdl_minor_version=`$SDL2_CONFIG $sdl_config_args --version | \
9566             sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9567      sdl_micro_version=`$SDL2_CONFIG $sdl_config_args --version | \
9568             sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9569      if test "x$enable_sdltest" = "xyes" ; then
9570        ac_save_CFLAGS="$CFLAGS"
9571        ac_save_CXXFLAGS="$CXXFLAGS"
9572        ac_save_LIBS="$LIBS"
9573        CFLAGS="$CFLAGS $SDL_CFLAGS"
9574        CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
9575        LIBS="$LIBS $SDL_LIBS"
9576      rm -f conf.sdltest
9577      if test "$cross_compiling" = yes; then :
9578  echo $ac_n "cross compiling; assumed OK... $ac_c"
9579else
9580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9581/* end confdefs.h.  */
9582
9583#include <stdio.h>
9584#include <stdlib.h>
9585#include <string.h>
9586#include "SDL.h"
9587
9588char*
9589my_strdup (char *str)
9590{
9591  char *new_str;
9592
9593  if (str)
9594    {
9595      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
9596      strcpy (new_str, str);
9597    }
9598  else
9599    new_str = NULL;
9600
9601  return new_str;
9602}
9603
9604int main (int argc, char *argv[])
9605{
9606  int major, minor, micro;
9607  char *tmp_version;
9608
9609  /* This hangs on some systems (?)
9610  system ("touch conf.sdltest");
9611  */
9612  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
9613
9614  /* HP/UX 9 (%@#!) writes to sscanf strings */
9615  tmp_version = my_strdup("$min_sdl_version");
9616  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9617     printf("%s, bad version string\n", "$min_sdl_version");
9618     exit(1);
9619   }
9620
9621   if (($sdl_major_version > major) ||
9622      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
9623      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
9624    {
9625      return 0;
9626    }
9627  else
9628    {
9629      printf("\n*** 'sdl2-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
9630      printf("*** of SDL required is %d.%d.%d. If sdl2-config is correct, then it is\n", major, minor, micro);
9631      printf("*** best to upgrade to the required version.\n");
9632      printf("*** If sdl2-config was wrong, set the environment variable SDL2_CONFIG\n");
9633      printf("*** to point to the correct copy of sdl2-config, and remove the file\n");
9634      printf("*** config.cache before re-running configure\n");
9635      return 1;
9636    }
9637}
9638
9639
9640_ACEOF
9641if ac_fn_c_try_run "$LINENO"; then :
9642
9643else
9644  no_sdl=yes
9645fi
9646rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9647  conftest.$ac_objext conftest.beam conftest.$ac_ext
9648fi
9649
9650        CFLAGS="$ac_save_CFLAGS"
9651        CXXFLAGS="$ac_save_CXXFLAGS"
9652        LIBS="$ac_save_LIBS"
9653
9654      fi
9655      if test "x$sdl_pc" = "xno"; then
9656        if test "x$no_sdl" = "xyes"; then
9657          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9658$as_echo "no" >&6; }
9659        else
9660          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9661$as_echo "yes" >&6; }
9662        fi
9663      fi
9664    fi
9665  fi
9666  if test "x$no_sdl" = x ; then
9667     with_sdl2=yes;
9668  else
9669     if test "$SDL2_CONFIG" = "no" ; then
9670       echo "*** The sdl2-config script installed by SDL could not be found"
9671       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
9672       echo "*** your path, or set the SDL2_CONFIG environment variable to the"
9673       echo "*** full path to sdl2-config."
9674     else
9675       if test -f conf.sdltest ; then
9676        :
9677       else
9678          echo "*** Could not run SDL test program, checking why..."
9679          CFLAGS="$CFLAGS $SDL_CFLAGS"
9680          CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
9681          LIBS="$LIBS $SDL_LIBS"
9682          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9683/* end confdefs.h.  */
9684
9685#include <stdio.h>
9686#include "SDL.h"
9687
9688int main(int argc, char *argv[])
9689{ return 0; }
9690#undef  main
9691#define main K_and_R_C_main
9692
9693int
9694main ()
9695{
9696 return 0;
9697  ;
9698  return 0;
9699}
9700_ACEOF
9701if ac_fn_c_try_link "$LINENO"; then :
9702   echo "*** The test program compiled, but did not run. This usually means"
9703          echo "*** that the run-time linker is not finding SDL or finding the wrong"
9704          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
9705          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9706          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
9707          echo "*** is required on your system"
9708	  echo "***"
9709          echo "*** If you have an old version installed, it is best to remove it, although"
9710          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9711else
9712   echo "*** The test program failed to compile or link. See the file config.log for the"
9713          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
9714          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
9715          echo "*** may want to edit the sdl2-config script: $SDL2_CONFIG"
9716fi
9717rm -f core conftest.err conftest.$ac_objext \
9718    conftest$ac_exeext conftest.$ac_ext
9719          CFLAGS="$ac_save_CFLAGS"
9720          CXXFLAGS="$ac_save_CXXFLAGS"
9721          LIBS="$ac_save_LIBS"
9722       fi
9723     fi
9724     SDL_CFLAGS=""
9725     SDL_LIBS=""
9726     if test "x$with_sdl2" = "xyes"; then as_fn_error $? "\"libSDL2 was not found\"" "$LINENO" 5; else with_sdl2="no"; fi
9727  fi
9728
9729
9730  rm -f conf.sdltest
9731
9732fi
9733SDL2_CFLAGS=$SDL_CFLAGS
9734SDL2_LIBS=$SDL_LIBS
9735SDL_CFLAGS=
9736SDL_LIBS=
9737
9738
9739if test "x$with_sdl2" = "xno"; then
9740	HAVE_SDL2=
9741else
9742	HAVE_SDL2=1
9743	$as_echo "#define HAVE_SDL2 1" >>confdefs.h
9744
9745	with_sdl="no"
9746fi
9747
9748org_cflags="$CFLAGS"
9749org_cppflags="$CPPFLAGS"
9750
9751
9752if test "x$with_sdl" != "xno"; then
9753	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL support" >&5
9754$as_echo_n "checking SDL support... " >&6; }
9755	SDL_LIBS=`pkg-config --libs sdl 2> /dev/null`
9756	SDL_CFLAGS=`pkg-config --cflags sdl 2> /dev/null`
9757	if test "$?" = 0; then
9758		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$SDL_CFLAGS $SDL_LIBS\"" >&5
9759$as_echo "\"$SDL_CFLAGS $SDL_LIBS\"" >&6; }
9760	else
9761		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config failed" >&5
9762$as_echo "pkg-config failed" >&6; }
9763
9764		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL" >&5
9765$as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
9766if ${ac_cv_lib_SDL_SDL_Init+:} false; then :
9767  $as_echo_n "(cached) " >&6
9768else
9769  ac_check_lib_save_LIBS=$LIBS
9770LIBS="-lSDL  $LIBS"
9771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9772/* end confdefs.h.  */
9773
9774/* Override any GCC internal prototype to avoid an error.
9775   Use char because int might match the return type of a GCC
9776   builtin and then its argument prototype would still apply.  */
9777#ifdef __cplusplus
9778extern "C"
9779#endif
9780char SDL_Init ();
9781int
9782main ()
9783{
9784return SDL_Init ();
9785  ;
9786  return 0;
9787}
9788_ACEOF
9789if ac_fn_c_try_link "$LINENO"; then :
9790  ac_cv_lib_SDL_SDL_Init=yes
9791else
9792  ac_cv_lib_SDL_SDL_Init=no
9793fi
9794rm -f core conftest.err conftest.$ac_objext \
9795    conftest$ac_exeext conftest.$ac_ext
9796LIBS=$ac_check_lib_save_LIBS
9797fi
9798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Init" >&5
9799$as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
9800if test "x$ac_cv_lib_SDL_SDL_Init" = xyes; then :
9801  SDL_LIBS="-lSDL"
9802else
9803  if test "x$with_sdl" = "xyes"; then as_fn_error $? "\"libSDL was not found\"" "$LINENO" 5; else with_sdl="no"; fi
9804fi
9805
9806
9807		if test "x$with_sdl" != "xno"; then
9808			CFLAGS="$CFLAGS -I/usr/include/SDL"
9809			CPPFLAGS="$CPPFLAGS -I/usr/include/SDL"
9810			ac_fn_c_check_header_mongrel "$LINENO" "SDL.h" "ac_cv_header_SDL_h" "$ac_includes_default"
9811if test "x$ac_cv_header_SDL_h" = xyes; then :
9812  SDL_CFLAGS="-I/usr/include/SDL"
9813else
9814  if test "x$with_sdl" = "xyes"; then as_fn_error $? "\"SDL header files not found\"" "$LINENO" 5; else with_sdl="no"; fi
9815fi
9816
9817
9818		fi
9819	fi
9820fi
9821
9822if test "x$with_sdl" = "xno"; then
9823	HAVE_SDL=
9824else
9825	HAVE_SDL=1
9826	$as_echo "#define HAVE_SDL 1" >>confdefs.h
9827
9828fi
9829CFLAGS="$org_cflags"
9830CPPFLAGS="$org_cflags"
9831
9832
9833
9834if test "x$HAVE_SDL" = "x1" || test "x$HAVE_SDL2" = "x1" || test "x$HAVE_X11" = "x1"; then
9835	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking freetype2 support" >&5
9836$as_echo_n "checking freetype2 support... " >&6; }
9837	FREETYPE2_LIBS=`pkg-config --libs freetype2 2> /dev/null`
9838	FREETYPE2_CFLAGS=`pkg-config --cflags freetype2 2> /dev/null`
9839	if test "$?" = 0; then
9840		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$FREETYPE2_CFLAGS $FREETYPE2_LIBS\"" >&5
9841$as_echo "\"$FREETYPE2_CFLAGS $FREETYPE2_LIBS\"" >&6; }
9842	else
9843		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config failed" >&5
9844$as_echo "pkg-config failed" >&6; };
9845			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
9846$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
9847if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
9848  $as_echo_n "(cached) " >&6
9849else
9850  ac_check_lib_save_LIBS=$LIBS
9851LIBS="-lfreetype  $LIBS"
9852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9853/* end confdefs.h.  */
9854
9855/* Override any GCC internal prototype to avoid an error.
9856   Use char because int might match the return type of a GCC
9857   builtin and then its argument prototype would still apply.  */
9858#ifdef __cplusplus
9859extern "C"
9860#endif
9861char FT_Init_FreeType ();
9862int
9863main ()
9864{
9865return FT_Init_FreeType ();
9866  ;
9867  return 0;
9868}
9869_ACEOF
9870if ac_fn_c_try_link "$LINENO"; then :
9871  ac_cv_lib_freetype_FT_Init_FreeType=yes
9872else
9873  ac_cv_lib_freetype_FT_Init_FreeType=no
9874fi
9875rm -f core conftest.err conftest.$ac_objext \
9876    conftest$ac_exeext conftest.$ac_ext
9877LIBS=$ac_check_lib_save_LIBS
9878fi
9879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
9880$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
9881if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
9882  cat >>confdefs.h <<_ACEOF
9883#define HAVE_LIBFREETYPE 1
9884_ACEOF
9885
9886  LIBS="-lfreetype $LIBS"
9887
9888else
9889  as_fn_error $? "\"libfreetype not found\"" "$LINENO" 5
9890fi
9891
9892		ac_fn_c_check_header_mongrel "$LINENO" "ft2built.h" "ac_cv_header_ft2built_h" "$ac_includes_default"
9893if test "x$ac_cv_header_ft2built_h" = xyes; then :
9894
9895else
9896  as_fn_error $? "\"libfreetype header files was not found\"" "$LINENO" 5
9897fi
9898
9899
9900	fi
9901
9902
9903  EXP_VAR=UNIFONTDIR
9904  FROM_VAR=$with_unifontdir
9905  prefix_save=$prefix
9906  exec_prefix_save=$exec_prefix
9907  full_var="$FROM_VAR"
9908  while true; do
9909    new_full_var="`eval echo $full_var`"
9910    if test "x$new_full_var" = "x$full_var"; then break; fi
9911    full_var=$new_full_var
9912  done
9913  full_var=$new_full_var
9914  UNIFONTDIR="$full_var"
9915
9916  prefix=$prefix_save
9917  exec_prefix=$exec_prefix_save
9918
9919	as_ac_File=`$as_echo "ac_cv_file_$UNIFONTDIR/unifont.ttf" | $as_tr_sh`
9920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $UNIFONTDIR/unifont.ttf" >&5
9921$as_echo_n "checking for $UNIFONTDIR/unifont.ttf... " >&6; }
9922if eval \${$as_ac_File+:} false; then :
9923  $as_echo_n "(cached) " >&6
9924else
9925  test "$cross_compiling" = yes &&
9926  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
9927if test -r "$UNIFONTDIR/unifont.ttf"; then
9928  eval "$as_ac_File=yes"
9929else
9930  eval "$as_ac_File=no"
9931fi
9932fi
9933eval ac_res=\$$as_ac_File
9934	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9935$as_echo "$ac_res" >&6; }
9936if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
9937
9938else
9939  as_fn_error $? "$UNIFONTDIR/unifont.ttf not found - please use --with-unifontdir=/path/ (needed by X11, SDL1.x and SDL2)" "$LINENO" 5
9940fi
9941
9942	as_ac_File=`$as_echo "ac_cv_file_$UNIFONTDIR/unifont_csur.ttf" | $as_tr_sh`
9943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $UNIFONTDIR/unifont_csur.ttf" >&5
9944$as_echo_n "checking for $UNIFONTDIR/unifont_csur.ttf... " >&6; }
9945if eval \${$as_ac_File+:} false; then :
9946  $as_echo_n "(cached) " >&6
9947else
9948  test "$cross_compiling" = yes &&
9949  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
9950if test -r "$UNIFONTDIR/unifont_csur.ttf"; then
9951  eval "$as_ac_File=yes"
9952else
9953  eval "$as_ac_File=no"
9954fi
9955fi
9956eval ac_res=\$$as_ac_File
9957	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9958$as_echo "$ac_res" >&6; }
9959if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
9960
9961else
9962  as_fn_error $? "$UNIFONTDIR/unifont_csur.ttf not found - please use --with-unifontdir=/path/ (needed by X11, SDL1.x and SDL2)" "$LINENO" 5
9963fi
9964
9965	as_ac_File=`$as_echo "ac_cv_file_$UNIFONTDIR/unifont_upper.ttf" | $as_tr_sh`
9966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $UNIFONTDIR/unifont_upper.ttf" >&5
9967$as_echo_n "checking for $UNIFONTDIR/unifont_upper.ttf... " >&6; }
9968if eval \${$as_ac_File+:} false; then :
9969  $as_echo_n "(cached) " >&6
9970else
9971  test "$cross_compiling" = yes &&
9972  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
9973if test -r "$UNIFONTDIR/unifont_upper.ttf"; then
9974  eval "$as_ac_File=yes"
9975else
9976  eval "$as_ac_File=no"
9977fi
9978fi
9979eval ac_res=\$$as_ac_File
9980	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9981$as_echo "$ac_res" >&6; }
9982if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
9983
9984else
9985  as_fn_error $? "$UNIFONTDIR/unifont_upper.ttf not found - please use --with-unifontdir=/path/ (needed by X11, SDL1.x and SDL2)" "$LINENO" 5
9986fi
9987
9988	cat >>confdefs.h <<_ACEOF
9989#define UNIFONTDIR "$UNIFONTDIR"
9990_ACEOF
9991
9992fi
9993
9994ac_ext=cpp
9995ac_cpp='$CXXCPP $CPPFLAGS'
9996ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9997ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9998ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9999
10000org_cxxflags="$CXXFLAGS"
10001org_cppflags="$CPPFLAGS"
10002
10003
10004if test "x$with_adplug" != "xno"; then
10005	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Adplug support" >&5
10006$as_echo_n "checking Adplug support... " >&6; }
10007	ADPLUG_LIBS=`pkg-config --libs adplug 2> /dev/null`
10008	ADPLUG_CXXFLAGS=`pkg-config --cflags adplug 2> /dev/null`
10009	if test "$?" = 0; then
10010		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$ADPLUG_CXXFLAGS $ADPLUG_LIBS\"" >&5
10011$as_echo "\"$ADPLUG_CXXFLAGS $ADPLUG_LIBS\"" >&6; }
10012	else
10013		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config failed" >&5
10014$as_echo "pkg-config failed" >&6; };
10015
10016
10017ac_fn_cxx_check_header_mongrel "$LINENO" "adplug/adplug.h" "ac_cv_header_adplug_adplug_h" "$ac_includes_default"
10018if test "x$ac_cv_header_adplug_adplug_h" = xyes; then :
10019
10020else
10021  with_adplug_failed=yes
10022fi
10023
10024
10025		if test "x$with_adplug_failed" = "xyes"; then
10026			CXXFLAGS="$CXXFLAGS -I/usr/include/libbinio"
10027			CPPFLAGS="$CPPFLAGS -I/usr/include/libbinio"
10028			unset ac_cv_header_adplug_adplug_h
10029			{ $as_echo "$as_me:${as_lineno-$LINENO}: \"Trying again with -I/usr/include/libbinio\"" >&5
10030$as_echo "$as_me: \"Trying again with -I/usr/include/libbinio\"" >&6;}
10031			ac_fn_cxx_check_header_mongrel "$LINENO" "adplug/adplug.h" "ac_cv_header_adplug_adplug_h" "$ac_includes_default"
10032if test "x$ac_cv_header_adplug_adplug_h" = xyes; then :
10033  ADPLUG_CXXFLAGS="-I/usr/include/libbinio"
10034else
10035  if test "x$with_adplug" = "xyes"; then as_fn_error $? "\"Adplug header files was not found\"" "$LINENO" 5; else with_adplug="no"; fi
10036
10037fi
10038
10039
10040		fi
10041		if test "x$with_adplug" != "xno"; then
10042			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for docell0 in -ladplug" >&5
10043$as_echo_n "checking for docell0 in -ladplug... " >&6; }
10044if ${ac_cv_lib_adplug_docell0+:} false; then :
10045  $as_echo_n "(cached) " >&6
10046else
10047  ac_check_lib_save_LIBS=$LIBS
10048LIBS="-ladplug  $LIBS"
10049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10050/* end confdefs.h.  */
10051
10052/* Override any GCC internal prototype to avoid an error.
10053   Use char because int might match the return type of a GCC
10054   builtin and then its argument prototype would still apply.  */
10055#ifdef __cplusplus
10056extern "C"
10057#endif
10058char docell0 ();
10059int
10060main ()
10061{
10062return docell0 ();
10063  ;
10064  return 0;
10065}
10066_ACEOF
10067if ac_fn_cxx_try_link "$LINENO"; then :
10068  ac_cv_lib_adplug_docell0=yes
10069else
10070  ac_cv_lib_adplug_docell0=no
10071fi
10072rm -f core conftest.err conftest.$ac_objext \
10073    conftest$ac_exeext conftest.$ac_ext
10074LIBS=$ac_check_lib_save_LIBS
10075fi
10076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_adplug_docell0" >&5
10077$as_echo "$ac_cv_lib_adplug_docell0" >&6; }
10078if test "x$ac_cv_lib_adplug_docell0" = xyes; then :
10079  ADPLUG_LIBS="-ladplug"
10080else
10081  if test "x$with_adplug" = "xyes"; then as_fn_error $? "\"Adplug was not found\"" "$LINENO" 5; else with_adplug="no"; fi
10082fi
10083
10084			LIBS=$push_LIBS
10085		fi
10086	fi
10087fi
10088CXXFLAGS="$org_cxxflags"
10089CPPFLAGS="$org_cppflags"
10090
10091if test "x$with_adplug" != "xno"; then
10092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking If AdPlug was compiled with another C++ ABI" >&5
10093$as_echo_n "checking If AdPlug was compiled with another C++ ABI... " >&6; }
10094	CXXFLAGS="$CXXFLAGS $ADPLUG_CXXFLAGS"
10095	LIBS="$LIBS $ADPLUG_LIBS"
10096
10097	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10098/* end confdefs.h.  */
10099#include <adplug/emuopl.h>
10100int
10101main ()
10102{
10103CEmuopl opl = CEmuopl(48000, 1, 1);
10104  ;
10105  return 0;
10106}
10107_ACEOF
10108if ac_fn_cxx_try_link "$LINENO"; then :
10109
10110else
10111  as_fn_error $? "\"Adplug was compiled with a different c++ compiler\"" "$LINENO" 5
10112
10113fi
10114rm -f core conftest.err conftest.$ac_objext \
10115    conftest$ac_exeext conftest.$ac_ext
10116
10117	if test "$cross_compiling" = yes; then :
10118  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10119$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10120as_fn_error $? "cannot run test program while cross compiling
10121See \`config.log' for more details" "$LINENO" 5; }
10122else
10123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10124/* end confdefs.h.  */
10125
10126#include <adplug/adplug.h>
10127#include <adplug/players.h>
10128#include <adplug/player.h>
10129
10130int
10131main ()
10132{
10133
10134	int j;
10135	CPlayers::const_iterator i;
10136
10137	for (i = CAdPlug::players.begin(); i != CAdPlug::players.end(); i++)
10138	{
10139		for (j = 0; (*i)->get_extension(j); j++)
10140		{
10141			if (CFileProvider::extension("OPL", (*i)->get_extension(j)))
10142			{
10143				return 0;
10144			}
10145		}
10146	}
10147	return 0;
10148
10149  ;
10150  return 0;
10151}
10152_ACEOF
10153if ac_fn_cxx_try_run "$LINENO"; then :
10154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10155$as_echo "ok" >&6; }
10156else
10157  as_fn_error $? "\"Adplug was compiled with a different c++ compiler\"" "$LINENO" 5
10158
10159fi
10160rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10161  conftest.$ac_objext conftest.beam conftest.$ac_ext
10162fi
10163
10164	LIBS=$push_LIBS
10165	CXXFLAGS="$org_cxxflags"
10166	CPPFLAGS="$org_cppflags"
10167fi
10168
10169if test "x$with_adplug" != "xno"; then
10170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking If libbinio used by AdPlug contains bugs https://github.com/adplug/libbinio/issues/2" >&5
10171$as_echo_n "checking If libbinio used by AdPlug contains bugs https://github.com/adplug/libbinio/issues/2... " >&6; }
10172	CXXFLAGS="$CXXFLAGS $ADPLUG_CXXFLAGS"
10173	LIBS="$LIBS $ADPLUG_LIBS"
10174
10175	if test "$cross_compiling" = yes; then :
10176  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10177$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10178as_fn_error $? "cannot run test program while cross compiling
10179See \`config.log' for more details" "$LINENO" 5; }
10180else
10181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10182/* end confdefs.h.  */
10183
10184#include <binio.h>
10185#include <binstr.h>
10186#include <cstdlib>
10187#include <string.h>
10188#include <adplug/adplug.h>
10189#include <adplug/fprovide.h>
10190#include <string.h>
10191
10192int
10193main ()
10194{
10195
10196	binisstream *f = new binisstream((void *)"foobar", 6);
10197	long size;
10198	char test[6] = {1,2,3,4,5,6};
10199
10200	f->seek(0, binio::End);
10201	size = f->pos();
10202	f->seek(0);
10203
10204	if (f->readString(test, size) != 6) return -1;
10205
10206	/* test should contain "foobar" if all is correct */
10207	return memcmp(test, "foobar", 6);
10208
10209  ;
10210  return 0;
10211}
10212_ACEOF
10213if ac_fn_cxx_try_run "$LINENO"; then :
10214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10215$as_echo "ok" >&6; }
10216else
10217  as_fn_error $? "\"libbinio fails to use memoryobjects\"" "$LINENO" 5
10218
10219fi
10220rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10221  conftest.$ac_objext conftest.beam conftest.$ac_ext
10222fi
10223
10224	LIBS=$push_LIBS
10225	CXXFLAGS="$org_cxxflags"
10226	CPPFLAGS="$org_cppflags"
10227fi
10228
10229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking GIT submodules are checked out" >&5
10230$as_echo_n "checking GIT submodules are checked out... " >&6; }
10231if ! test -f playsid/libsidplayfp-git/src/sidemu.cpp; then
10232  as_fn_error $? "playsid/libsidplayfp-git is missing - please execute 'git submodule update --init --recursive'" "$LINENO" 5
10233else if ! test -f playsid/libsidplayfp-git/src/builders/resid-builder/resid/sid.h; then
10234  as_fn_error $? "playsid/libsidplayfp-git/src/builders/resid-builder/resid is missing - please execute 'git submodule update --init --recursive'" "$LINENO" 5
10235else
10236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10237$as_echo "ok" >&6; }
10238fi
10239
10240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10241$as_echo "ok" >&6; }
10242fi
10243origCXX="$CXX"
10244origCXXFLAGS="$CXXFLAGS"
10245ac_ext=cpp
10246ac_cpp='$CXXCPP $CPPFLAGS'
10247ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10248ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10249ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10250
10251HAVE_SIDPLAYFP_BUILDERS_RESIDFP_H=1
10252HAVE_SIDPLAYFP_BUILDERS_RESID_H=1
10253RESID_INLINING=1
10254RESID_INLINE=inline
10255  ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=false
10256  ac_ext=cpp
10257ac_cpp='$CXXCPP $CPPFLAGS'
10258ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10259ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10260ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10261  ac_success=no
10262
10263
10264
10265    if test x$ac_success = xno; then
10266                for alternative in ${ax_cxx_compile_alternatives}; do
10267      for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
10268        cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
10269        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
10270$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
10271if eval \${$cachevar+:} false; then :
10272  $as_echo_n "(cached) " >&6
10273else
10274  ac_save_CXX="$CXX"
10275           CXX="$CXX $switch"
10276           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10277/* end confdefs.h.  */
10278
10279
10280// If the compiler admits that it is not ready for C++11, why torture it?
10281// Hopefully, this will speed up the test.
10282
10283#ifndef __cplusplus
10284
10285#error "This is not a C++ compiler"
10286
10287#elif __cplusplus < 201103L
10288
10289#error "This is not a C++11 compiler"
10290
10291#else
10292
10293namespace cxx11
10294{
10295
10296  namespace test_static_assert
10297  {
10298
10299    template <typename T>
10300    struct check
10301    {
10302      static_assert(sizeof(int) <= sizeof(T), "not big enough");
10303    };
10304
10305  }
10306
10307  namespace test_final_override
10308  {
10309
10310    struct Base
10311    {
10312      virtual ~Base() {}
10313      virtual void f() {}
10314    };
10315
10316    struct Derived : public Base
10317    {
10318      virtual ~Derived() override {}
10319      virtual void f() override {}
10320    };
10321
10322  }
10323
10324  namespace test_double_right_angle_brackets
10325  {
10326
10327    template < typename T >
10328    struct check {};
10329
10330    typedef check<void> single_type;
10331    typedef check<check<void>> double_type;
10332    typedef check<check<check<void>>> triple_type;
10333    typedef check<check<check<check<void>>>> quadruple_type;
10334
10335  }
10336
10337  namespace test_decltype
10338  {
10339
10340    int
10341    f()
10342    {
10343      int a = 1;
10344      decltype(a) b = 2;
10345      return a + b;
10346    }
10347
10348  }
10349
10350  namespace test_type_deduction
10351  {
10352
10353    template < typename T1, typename T2 >
10354    struct is_same
10355    {
10356      static const bool value = false;
10357    };
10358
10359    template < typename T >
10360    struct is_same<T, T>
10361    {
10362      static const bool value = true;
10363    };
10364
10365    template < typename T1, typename T2 >
10366    auto
10367    add(T1 a1, T2 a2) -> decltype(a1 + a2)
10368    {
10369      return a1 + a2;
10370    }
10371
10372    int
10373    test(const int c, volatile int v)
10374    {
10375      static_assert(is_same<int, decltype(0)>::value == true, "");
10376      static_assert(is_same<int, decltype(c)>::value == false, "");
10377      static_assert(is_same<int, decltype(v)>::value == false, "");
10378      auto ac = c;
10379      auto av = v;
10380      auto sumi = ac + av + 'x';
10381      auto sumf = ac + av + 1.0;
10382      static_assert(is_same<int, decltype(ac)>::value == true, "");
10383      static_assert(is_same<int, decltype(av)>::value == true, "");
10384      static_assert(is_same<int, decltype(sumi)>::value == true, "");
10385      static_assert(is_same<int, decltype(sumf)>::value == false, "");
10386      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
10387      return (sumf > 0.0) ? sumi : add(c, v);
10388    }
10389
10390  }
10391
10392  namespace test_noexcept
10393  {
10394
10395    int f() { return 0; }
10396    int g() noexcept { return 0; }
10397
10398    static_assert(noexcept(f()) == false, "");
10399    static_assert(noexcept(g()) == true, "");
10400
10401  }
10402
10403  namespace test_constexpr
10404  {
10405
10406    template < typename CharT >
10407    unsigned long constexpr
10408    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
10409    {
10410      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
10411    }
10412
10413    template < typename CharT >
10414    unsigned long constexpr
10415    strlen_c(const CharT *const s) noexcept
10416    {
10417      return strlen_c_r(s, 0UL);
10418    }
10419
10420    static_assert(strlen_c("") == 0UL, "");
10421    static_assert(strlen_c("1") == 1UL, "");
10422    static_assert(strlen_c("example") == 7UL, "");
10423    static_assert(strlen_c("another\0example") == 7UL, "");
10424
10425  }
10426
10427  namespace test_rvalue_references
10428  {
10429
10430    template < int N >
10431    struct answer
10432    {
10433      static constexpr int value = N;
10434    };
10435
10436    answer<1> f(int&)       { return answer<1>(); }
10437    answer<2> f(const int&) { return answer<2>(); }
10438    answer<3> f(int&&)      { return answer<3>(); }
10439
10440    void
10441    test()
10442    {
10443      int i = 0;
10444      const int c = 0;
10445      static_assert(decltype(f(i))::value == 1, "");
10446      static_assert(decltype(f(c))::value == 2, "");
10447      static_assert(decltype(f(0))::value == 3, "");
10448    }
10449
10450  }
10451
10452  namespace test_uniform_initialization
10453  {
10454
10455    struct test
10456    {
10457      static const int zero {};
10458      static const int one {1};
10459    };
10460
10461    static_assert(test::zero == 0, "");
10462    static_assert(test::one == 1, "");
10463
10464  }
10465
10466  namespace test_lambdas
10467  {
10468
10469    void
10470    test1()
10471    {
10472      auto lambda1 = [](){};
10473      auto lambda2 = lambda1;
10474      lambda1();
10475      lambda2();
10476    }
10477
10478    int
10479    test2()
10480    {
10481      auto a = [](int i, int j){ return i + j; }(1, 2);
10482      auto b = []() -> int { return '0'; }();
10483      auto c = [=](){ return a + b; }();
10484      auto d = [&](){ return c; }();
10485      auto e = [a, &b](int x) mutable {
10486        const auto identity = [](int y){ return y; };
10487        for (auto i = 0; i < a; ++i)
10488          a += b--;
10489        return x + identity(a + b);
10490      }(0);
10491      return a + b + c + d + e;
10492    }
10493
10494    int
10495    test3()
10496    {
10497      const auto nullary = [](){ return 0; };
10498      const auto unary = [](int x){ return x; };
10499      using nullary_t = decltype(nullary);
10500      using unary_t = decltype(unary);
10501      const auto higher1st = [](nullary_t f){ return f(); };
10502      const auto higher2nd = [unary](nullary_t f1){
10503        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
10504      };
10505      return higher1st(nullary) + higher2nd(nullary)(unary);
10506    }
10507
10508  }
10509
10510  namespace test_variadic_templates
10511  {
10512
10513    template <int...>
10514    struct sum;
10515
10516    template <int N0, int... N1toN>
10517    struct sum<N0, N1toN...>
10518    {
10519      static constexpr auto value = N0 + sum<N1toN...>::value;
10520    };
10521
10522    template <>
10523    struct sum<>
10524    {
10525      static constexpr auto value = 0;
10526    };
10527
10528    static_assert(sum<>::value == 0, "");
10529    static_assert(sum<1>::value == 1, "");
10530    static_assert(sum<23>::value == 23, "");
10531    static_assert(sum<1, 2>::value == 3, "");
10532    static_assert(sum<5, 5, 11>::value == 21, "");
10533    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
10534
10535  }
10536
10537  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
10538  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
10539  // because of this.
10540  namespace test_template_alias_sfinae
10541  {
10542
10543    struct foo {};
10544
10545    template<typename T>
10546    using member = typename T::member_type;
10547
10548    template<typename T>
10549    void func(...) {}
10550
10551    template<typename T>
10552    void func(member<T>*) {}
10553
10554    void test();
10555
10556    void test() { func<foo>(0); }
10557
10558  }
10559
10560}  // namespace cxx11
10561
10562#endif  // __cplusplus >= 201103L
10563
10564
10565
10566_ACEOF
10567if ac_fn_cxx_try_compile "$LINENO"; then :
10568  eval $cachevar=yes
10569else
10570  eval $cachevar=no
10571fi
10572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10573           CXX="$ac_save_CXX"
10574fi
10575eval ac_res=\$$cachevar
10576	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10577$as_echo "$ac_res" >&6; }
10578        if eval test x\$$cachevar = xyes; then
10579          CXX="$CXX $switch"
10580          if test -n "$CXXCPP" ; then
10581            CXXCPP="$CXXCPP $switch"
10582          fi
10583          ac_success=yes
10584          break
10585        fi
10586      done
10587      if test x$ac_success = xyes; then
10588        break
10589      fi
10590    done
10591  fi
10592  ac_ext=cpp
10593ac_cpp='$CXXCPP $CPPFLAGS'
10594ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10595ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10596ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10597
10598  if test x$ax_cxx_compile_cxx11_required = xtrue; then
10599    if test x$ac_success = xno; then
10600      as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
10601    fi
10602  fi
10603  if test x$ac_success = xno; then
10604    HAVE_CXX11=0
10605    { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
10606$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
10607  else
10608    HAVE_CXX11=1
10609
10610$as_echo "#define HAVE_CXX11 1" >>confdefs.h
10611
10612  fi
10613
10614
10615
10616# Extract the first word of "xa", so it can be a program name with args.
10617set dummy xa; ac_word=$2
10618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10619$as_echo_n "checking for $ac_word... " >&6; }
10620if ${ac_cv_path_XA+:} false; then :
10621  $as_echo_n "(cached) " >&6
10622else
10623  case $XA in
10624  [\\/]* | ?:[\\/]*)
10625  ac_cv_path_XA="$XA" # Let the user override the test with a path.
10626  ;;
10627  *)
10628  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10629for as_dir in $PATH
10630do
10631  IFS=$as_save_IFS
10632  test -z "$as_dir" && as_dir=.
10633    for ac_exec_ext in '' $ac_executable_extensions; do
10634  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10635    ac_cv_path_XA="$as_dir/$ac_word$ac_exec_ext"
10636    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10637    break 2
10638  fi
10639done
10640  done
10641IFS=$as_save_IFS
10642
10643  ;;
10644esac
10645fi
10646XA=$ac_cv_path_XA
10647if test -n "$XA"; then
10648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XA" >&5
10649$as_echo "$XA" >&6; }
10650else
10651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10652$as_echo "no" >&6; }
10653fi
10654
10655
10656if test -z "$XA"; then
10657  as_fn_error $? "xa is needed for compiling 6502 assembler used by libsidplayfp" "$LINENO" 5
10658fi
10659# Extract the first word of "hexdump", so it can be a program name with args.
10660set dummy hexdump; ac_word=$2
10661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10662$as_echo_n "checking for $ac_word... " >&6; }
10663if ${ac_cv_path_HEXDUMP+:} false; then :
10664  $as_echo_n "(cached) " >&6
10665else
10666  case $HEXDUMP in
10667  [\\/]* | ?:[\\/]*)
10668  ac_cv_path_HEXDUMP="$HEXDUMP" # Let the user override the test with a path.
10669  ;;
10670  *)
10671  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10672for as_dir in $PATH
10673do
10674  IFS=$as_save_IFS
10675  test -z "$as_dir" && as_dir=.
10676    for ac_exec_ext in '' $ac_executable_extensions; do
10677  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10678    ac_cv_path_HEXDUMP="$as_dir/$ac_word$ac_exec_ext"
10679    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10680    break 2
10681  fi
10682done
10683  done
10684IFS=$as_save_IFS
10685
10686  ;;
10687esac
10688fi
10689HEXDUMP=$ac_cv_path_HEXDUMP
10690if test -n "$HEXDUMP"; then
10691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEXDUMP" >&5
10692$as_echo "$HEXDUMP" >&6; }
10693else
10694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10695$as_echo "no" >&6; }
10696fi
10697
10698
10699if test -z "$HEXDUMP"; then
10700  as_fn_error $? "hexdump is needed for compiling libsidplayfp" "$LINENO" 5
10701fi
10702# Extract the first word of "perl", so it can be a program name with args.
10703set dummy perl; ac_word=$2
10704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10705$as_echo_n "checking for $ac_word... " >&6; }
10706if ${ac_cv_path_PERL+:} false; then :
10707  $as_echo_n "(cached) " >&6
10708else
10709  case $PERL in
10710  [\\/]* | ?:[\\/]*)
10711  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10712  ;;
10713  *)
10714  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10715for as_dir in $PATH
10716do
10717  IFS=$as_save_IFS
10718  test -z "$as_dir" && as_dir=.
10719    for ac_exec_ext in '' $ac_executable_extensions; do
10720  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10721    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10722    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10723    break 2
10724  fi
10725done
10726  done
10727IFS=$as_save_IFS
10728
10729  ;;
10730esac
10731fi
10732PERL=$ac_cv_path_PERL
10733if test -n "$PERL"; then
10734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10735$as_echo "$PERL" >&6; }
10736else
10737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10738$as_echo "no" >&6; }
10739fi
10740
10741
10742if test -z "$PERL"; then
10743  as_fn_error $? "perl is needed for compiling libsidplayfp" "$LINENO" 5
10744fi
10745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -fvisibility=hidden -fvisibility-inlines-hidden" >&5
10746$as_echo_n "checking whether C++ compiler accepts -fvisibility=hidden -fvisibility-inlines-hidden... " >&6; }
10747if ${ax_cv_check_cxxflags___fvisibility_hidden__fvisibility_inlines_hidden+:} false; then :
10748  $as_echo_n "(cached) " >&6
10749else
10750
10751  ax_check_save_flags=$CXXFLAGS
10752  CXXFLAGS="$CXXFLAGS  -fvisibility=hidden -fvisibility-inlines-hidden"
10753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10754/* end confdefs.h.  */
10755
10756int
10757main ()
10758{
10759
10760  ;
10761  return 0;
10762}
10763_ACEOF
10764if ac_fn_cxx_try_compile "$LINENO"; then :
10765  ax_cv_check_cxxflags___fvisibility_hidden__fvisibility_inlines_hidden=yes
10766else
10767  ax_cv_check_cxxflags___fvisibility_hidden__fvisibility_inlines_hidden=no
10768fi
10769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10770  CXXFLAGS=$ax_check_save_flags
10771fi
10772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___fvisibility_hidden__fvisibility_inlines_hidden" >&5
10773$as_echo "$ax_cv_check_cxxflags___fvisibility_hidden__fvisibility_inlines_hidden" >&6; }
10774if test "x$ax_cv_check_cxxflags___fvisibility_hidden__fvisibility_inlines_hidden" = xyes; then :
10775  HAVE_VISIBILITY=1;has_visibility=yes
10776else
10777  has_visibility=no
10778fi
10779
10780# The cast to long int works around a bug in the HP C Compiler
10781# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10782# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10783# This bug is HP SR number 8606223364.
10784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10785$as_echo_n "checking size of short... " >&6; }
10786if ${ac_cv_sizeof_short+:} false; then :
10787  $as_echo_n "(cached) " >&6
10788else
10789  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
10790
10791else
10792  if test "$ac_cv_type_short" = yes; then
10793     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10794$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10795as_fn_error 77 "cannot compute sizeof (short)
10796See \`config.log' for more details" "$LINENO" 5; }
10797   else
10798     ac_cv_sizeof_short=0
10799   fi
10800fi
10801
10802fi
10803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10804$as_echo "$ac_cv_sizeof_short" >&6; }
10805
10806
10807
10808cat >>confdefs.h <<_ACEOF
10809#define SIZEOF_SHORT $ac_cv_sizeof_short
10810_ACEOF
10811
10812
10813# The cast to long int works around a bug in the HP C Compiler
10814# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10815# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10816# This bug is HP SR number 8606223364.
10817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10818$as_echo_n "checking size of int... " >&6; }
10819if ${ac_cv_sizeof_int+:} false; then :
10820  $as_echo_n "(cached) " >&6
10821else
10822  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
10823
10824else
10825  if test "$ac_cv_type_int" = yes; then
10826     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10827$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10828as_fn_error 77 "cannot compute sizeof (int)
10829See \`config.log' for more details" "$LINENO" 5; }
10830   else
10831     ac_cv_sizeof_int=0
10832   fi
10833fi
10834
10835fi
10836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10837$as_echo "$ac_cv_sizeof_int" >&6; }
10838
10839
10840
10841cat >>confdefs.h <<_ACEOF
10842#define SIZEOF_INT $ac_cv_sizeof_int
10843_ACEOF
10844
10845
10846if test $ac_cv_sizeof_short -ne 2; then :
10847  as_fn_error $? "LIBSIDPLAYFP: size of short must be 16 bit" "$LINENO" 5
10848
10849fi
10850if test $ac_cv_sizeof_int -lt 4; then :
10851  as_fn_error $? "LIBSIDPLAYFP: only 32 bit or better CPUs are supported" "$LINENO" 5
10852
10853fi
10854if test "x${ac_cv_header_stdint_h}" != "xyes"; then :
10855  as_fn_error $? "Required header stdint.h not found" "$LINENO" 5
10856
10857fi
10858ac_fn_cxx_check_decl "$LINENO" "strcasecmp" "ac_cv_have_decl_strcasecmp" "$ac_includes_default"
10859if test "x$ac_cv_have_decl_strcasecmp" = xyes; then :
10860  for ac_func in strcasecmp
10861do :
10862  ac_fn_cxx_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
10863if test "x$ac_cv_func_strcasecmp" = xyes; then :
10864  cat >>confdefs.h <<_ACEOF
10865#define HAVE_STRCASECMP 1
10866_ACEOF
10867
10868fi
10869done
10870
10871else
10872  ac_fn_cxx_check_decl "$LINENO" "stricmp" "ac_cv_have_decl_stricmp" "$ac_includes_default"
10873if test "x$ac_cv_have_decl_stricmp" = xyes; then :
10874  for ac_func in stricmp
10875do :
10876  ac_fn_cxx_check_func "$LINENO" "stricmp" "ac_cv_func_stricmp"
10877if test "x$ac_cv_func_stricmp" = xyes; then :
10878  cat >>confdefs.h <<_ACEOF
10879#define HAVE_STRICMP 1
10880_ACEOF
10881
10882fi
10883done
10884
10885
10886fi
10887
10888
10889fi
10890
10891ac_fn_cxx_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
10892if test "x$ac_cv_have_decl_strncasecmp" = xyes; then :
10893  for ac_func in strncasecmp
10894do :
10895  ac_fn_cxx_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
10896if test "x$ac_cv_func_strncasecmp" = xyes; then :
10897  cat >>confdefs.h <<_ACEOF
10898#define HAVE_STRNCASECMP 1
10899_ACEOF
10900
10901fi
10902done
10903
10904else
10905  ac_fn_cxx_check_decl "$LINENO" "strnicmp" "ac_cv_have_decl_strnicmp" "$ac_includes_default"
10906if test "x$ac_cv_have_decl_strnicmp" = xyes; then :
10907  for ac_func in strnicmp
10908do :
10909  ac_fn_cxx_check_func "$LINENO" "strnicmp" "ac_cv_func_strnicmp"
10910if test "x$ac_cv_func_strnicmp" = xyes; then :
10911  cat >>confdefs.h <<_ACEOF
10912#define HAVE_STRNICMP 1
10913_ACEOF
10914
10915fi
10916done
10917
10918
10919fi
10920
10921
10922fi
10923
10924if test "x$with_debug" = "xyes"; then
10925  $CXXFLAGS="$CXXFLAGS -DDEBUG=1"
10926fi
10927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working bool" >&5
10928$as_echo_n "checking for working bool... " >&6; }
10929if ${ac_cv_cxx_bool+:} false; then :
10930  $as_echo_n "(cached) " >&6
10931else
10932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10933/* end confdefs.h.  */
10934
10935int
10936main ()
10937{
10938bool flag;
10939  ;
10940  return 0;
10941}
10942_ACEOF
10943if ac_fn_cxx_try_compile "$LINENO"; then :
10944  ac_cv_cxx_bool=yes
10945else
10946  ac_cv_cxx_bool=no
10947fi
10948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10949
10950fi
10951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_bool" >&5
10952$as_echo "$ac_cv_cxx_bool" >&6; }
10953if test "x$ac_cv_cxx_bool" = "xno"; then :
10954  HAVE_BOOL=0
10955else
10956  HAVE_BOOL=1
10957
10958fi
10959# Check whether --enable-branch-hints was given.
10960if test "${enable_branch_hints+set}" = set; then :
10961  enableval=$enable_branch_hints;
10962else
10963  enable_branch_hints=yes
10964
10965fi
10966
10967if test "$enable_branch_hints" != no; then :
10968  RESID_BRANCH_HINTS=1
10969else
10970  RESID_BRANCH_HINTS=0
10971
10972fi
10973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log1p" >&5
10974$as_echo_n "checking for log1p... " >&6; }
10975if ${resid_cv_log1p+:} false; then :
10976  $as_echo_n "(cached) " >&6
10977else
10978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10979/* end confdefs.h.  */
10980#include <math.h>
10981int
10982main ()
10983{
10984 log1p(1);
10985  ;
10986  return 0;
10987}
10988_ACEOF
10989if ac_fn_cxx_try_compile "$LINENO"; then :
10990  resid_cv_log1p=yes
10991else
10992  resid_cv_log1p=no
10993fi
10994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10995fi
10996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $resid_cv_log1p" >&5
10997$as_echo "$resid_cv_log1p" >&6; }
10998if test "$resid_cv_log1p" = no; then :
10999  HAVE_LOG1P=0
11000else
11001  HAVE_LOG1P=1
11002
11003fi
11004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
11005$as_echo_n "checking for __builtin_expect... " >&6; }
11006if ${resid_cv_builtin_expect+:} false; then :
11007  $as_echo_n "(cached) " >&6
11008else
11009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11010/* end confdefs.h.  */
11011int main() { __builtin_expect(0, 0); }
11012_ACEOF
11013if ac_fn_cxx_try_compile "$LINENO"; then :
11014  resid_cv_builtin_expect=yes
11015else
11016  resid_cv_builtin_expect=no
11017fi
11018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11019
11020fi
11021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $resid_cv_builtin_expect" >&5
11022$as_echo "$resid_cv_builtin_expect" >&6; }
11023if test "$resid_cv_builtin_expect" = no; then :
11024  HAVE_BUILTIN_EXPECT=0
11025else
11026  HAVE_BUILTIN_EXPECT=1
11027
11028fi
11029LIBSIDPLAYCXX="$CXX -DHAVE_CONFIG_H=1 -DSIDTUNE_NO_STDIN_LOADER=1 -DPACKAGE_NAME=\\\"sidplayfp\\\" -DVERSION=\\\"2.0.1\\\" -DPACKAGE_VERSION=\\\"2.0.1-1\\\" -DPACKAGE_URL=\\\"\\\""
11030LIBSIDPLAYCXXFLAGS="$CXXFLAGS"
11031
11032
11033ac_ext=cpp
11034ac_cpp='$CXXCPP $CPPFLAGS'
11035ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11036ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11037ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11038
11039CXX=$origCXX
11040CXXFLAGS=$origCXXFLAGS
11041NEW_8580_FILTER=0
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052ac_ext=c
11053ac_cpp='$CPP $CPPFLAGS'
11054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11056ac_compiler_gnu=$ac_cv_c_compiler_gnu
11057
11058
11059
11060
11061if test "x$with_alsa" != "xno"; then
11062	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Alsa support" >&5
11063$as_echo_n "checking Alsa support... " >&6; }
11064	ALSA_LIBS=`pkg-config --libs alsa 2> /dev/null`
11065	ALSA_CFLAGS=`pkg-config --cflags alsa 2> /dev/null`
11066	if test "$?" = 0; then
11067		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$ALSA_CFLAGS $ALSA_LIBS\"" >&5
11068$as_echo "\"$ALSA_CFLAGS $ALSA_LIBS\"" >&6; }
11069	else
11070		if test "x$with_alsa" = "xyes"; then
11071			as_fn_error $? "pkg-config failed" "$LINENO" 5;
11072		else
11073			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config failed" >&5
11074$as_echo "pkg-config failed" >&6; };
11075			with_alsa="no"
11076		fi
11077	fi
11078fi
11079
11080
11081if test "x$with_alsa" = "xno"; then
11082	HAVE_ALSA=0
11083else
11084	HAVE_ALSA=1
11085fi
11086
11087
11088
11089if test "x$with_adplug" = "xno"; then
11090	HAVE_ADPLUG=
11091	ADPLUG_INI=
11092else
11093	HAVE_ADPLUG=1
11094	ADPLUG_INI=opltype
11095fi
11096
11097
11098
11099
11100
11101
11102HAVE_FRAMEBUFFER=1
11103LINUX=1
11104	ac_fn_c_check_header_mongrel "$LINENO" "linux/limits.h" "ac_cv_header_linux_limits_h" "$ac_includes_default"
11105if test "x$ac_cv_header_linux_limits_h" = xyes; then :
11106
11107else
11108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux kernel header files was not found" >&5
11109$as_echo "linux kernel header files was not found" >&6; };LINUX=
11110fi
11111
11112
11113if test "$LINUX+set" != "+set"; then
11114	ac_fn_c_check_header_mongrel "$LINENO" "linux/major.h" "ac_cv_header_linux_major_h" "$ac_includes_default"
11115if test "x$ac_cv_header_linux_major_h" = xyes; then :
11116
11117else
11118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux kernel header files was not found" >&5
11119$as_echo "linux kernel header files was not found" >&6; };LINUX=
11120fi
11121
11122
11123fi
11124if test "$LINUX+set" != "+set"; then
11125	ac_fn_c_check_header_mongrel "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default"
11126if test "x$ac_cv_header_linux_fb_h" = xyes; then :
11127  $as_echo "#define HAVE_FRAMEBUFFER 1" >>confdefs.h
11128
11129else
11130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux kernel header files was not found" >&5
11131$as_echo "linux kernel header files was not found" >&6; };LINUX=;HAVE_FRAMEBUFFER=
11132fi
11133
11134
11135fi
11136if test "$LINUX+set" != "+set"; then
11137	ac_fn_c_check_header_mongrel "$LINENO" "linux/cdrom.h" "ac_cv_header_linux_cdrom_h" "$ac_includes_default"
11138if test "x$ac_cv_header_linux_cdrom_h" = xyes; then :
11139  CDROM_SUPPORT=1;CDROM_INI="cdrom"
11140else
11141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: linux cdrom kernel header files was not found" >&5
11142$as_echo "linux cdrom kernel header files was not found" >&6; }
11143fi
11144
11145
11146fi
11147
11148
11149
11150
11151if test "x$with_oss" != "xno"; then
11152	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking liboss" >&5
11153$as_echo_n "checking liboss... " >&6; }
11154	OSS_LIBS=`pkg-config --libs liboss 2> /dev/null`
11155	OSS_CFLAGS=`pkg-config --cflags liboss 2> /dev/null`
11156	if test "$?" = 0; then
11157		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$OSS_CFLAGS $OSS_LIBS\"" >&5
11158$as_echo "\"$OSS_CFLAGS $OSS_LIBS\"" >&6; }
11159		HAVE_OSS=1
11160	else
11161		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config failed" >&5
11162$as_echo "pkg-config failed" >&6; };
11163		ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
11164if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
11165  HAVE_OSS=1
11166			$as_echo "#define HAVE_SYS_SOUNDCARD_H 1" >>confdefs.h
11167
11168else
11169  if test "x$with_oss" = "xyes"; then as_fn_error 1 "kernel OSS header file was not found" "$LINENO" 5; else with_oss="no"; HAVE_OSS=0;fi
11170fi
11171
11172
11173	fi
11174fi
11175
11176
11177
11178
11179if test "x$with_coreaudio" != "xno"; then
11180	ac_fn_c_check_header_mongrel "$LINENO" "CoreServices/CoreServices.h" "ac_cv_header_CoreServices_CoreServices_h" "$ac_includes_default"
11181if test "x$ac_cv_header_CoreServices_CoreServices_h" = xyes; then :
11182  HAVE_COREAUDIO=1
11183else
11184  if test "x$with_coreaudio" = "xyes"; then as_fn_error 1 "CoreAudio not found" "$LINENO" 5; else with_coreaudio="no"; HAVE_COREAUDIO=0; fi
11185fi
11186
11187
11188fi
11189if test "x$with_coreaudio" != "xno"; then
11190	ac_fn_c_check_header_mongrel "$LINENO" "AudioUnit/AudioUnit.h" "ac_cv_header_AudioUnit_AudioUnit_h" "$ac_includes_default"
11191if test "x$ac_cv_header_AudioUnit_AudioUnit_h" = xyes; then :
11192  HAVE_COREAUDIO=1
11193else
11194  if test "x$with_coreaudio" = "xyes"; then as_fn_error 1 "CoreAudio not found" "$LINENO" 5; else with_coreaudio="no"; HAVE_COREAUDIO=0; fi
11195fi
11196
11197
11198fi
11199if test "x$with_coreaudio" != "xno"; then
11200	ac_fn_c_check_header_mongrel "$LINENO" "AudioToolbox/AudioToolbox.h" "ac_cv_header_AudioToolbox_AudioToolbox_h" "$ac_includes_default"
11201if test "x$ac_cv_header_AudioToolbox_AudioToolbox_h" = xyes; then :
11202  HAVE_COREAUDIO=1
11203else
11204  if test "x$with_coreaudio" = "xyes"; then as_fn_error 1 "CoreAudio not found" "$LINENO" 5; else with_coreaudio="no"; HAVE_COREAUDIO=0; fi
11205fi
11206
11207
11208fi
11209if test "x$with_coreaudio" != "xno"; then
11210	ac_fn_c_check_header_mongrel "$LINENO" "CoreAudio/CoreAudio.h" "ac_cv_header_CoreAudio_CoreAudio_h" "$ac_includes_default"
11211if test "x$ac_cv_header_CoreAudio_CoreAudio_h" = xyes; then :
11212  HAVE_COREAUDIO=1
11213else
11214  if test "x$with_coreaudio" = "xyes"; then as_fn_error 1 "CoreAudio not found" "$LINENO" 5; else with_coreaudio="no"; HAVE_COREAUDIO=0; fi
11215fi
11216
11217
11218fi
11219if test "x$with_coreaudio" != "xno"; then
11220	COREAUDIO_CFLAGS=""
11221	COREAUDIO_LIBS="-framework CoreAudio -framework Carbon -framework AudioUnit"
11222fi
11223
11224
11225  EXP_VAR=LIBDIR
11226  FROM_VAR=$libdir/$PACKAGE_NAME$DIR_SUFFIX
11227  prefix_save=$prefix
11228  exec_prefix_save=$exec_prefix
11229  full_var="$FROM_VAR"
11230  while true; do
11231    new_full_var="`eval echo $full_var`"
11232    if test "x$new_full_var" = "x$full_var"; then break; fi
11233    full_var=$new_full_var
11234  done
11235  full_var=$new_full_var
11236  LIBDIR="$full_var"
11237
11238  prefix=$prefix_save
11239  exec_prefix=$exec_prefix_save
11240
11241cat >>confdefs.h <<_ACEOF
11242#define LIBDIR "$LIBDIR"
11243_ACEOF
11244
11245
11246
11247  EXP_VAR=BINDIR
11248  FROM_VAR=$exec_prefix/bin
11249  prefix_save=$prefix
11250  exec_prefix_save=$exec_prefix
11251  full_var="$FROM_VAR"
11252  while true; do
11253    new_full_var="`eval echo $full_var`"
11254    if test "x$new_full_var" = "x$full_var"; then break; fi
11255    full_var=$new_full_var
11256  done
11257  full_var=$new_full_var
11258  BINDIR="$full_var"
11259
11260  prefix=$prefix_save
11261  exec_prefix=$exec_prefix_save
11262
11263
11264
11265  EXP_VAR=PREFIX
11266  FROM_VAR=$prefix
11267  prefix_save=$prefix
11268  exec_prefix_save=$exec_prefix
11269  full_var="$FROM_VAR"
11270  while true; do
11271    new_full_var="`eval echo $full_var`"
11272    if test "x$new_full_var" = "x$full_var"; then break; fi
11273    full_var=$new_full_var
11274  done
11275  full_var=$new_full_var
11276  PREFIX="$full_var"
11277
11278  prefix=$prefix_save
11279  exec_prefix=$exec_prefix_save
11280
11281
11282  EXP_VAR=DOCDIR
11283  FROM_VAR=$docdir
11284  prefix_save=$prefix
11285  exec_prefix_save=$exec_prefix
11286  full_var="$FROM_VAR"
11287  while true; do
11288    new_full_var="`eval echo $full_var`"
11289    if test "x$new_full_var" = "x$full_var"; then break; fi
11290    full_var=$new_full_var
11291  done
11292  full_var=$new_full_var
11293  DOCDIR="$full_var"
11294
11295  prefix=$prefix_save
11296  exec_prefix=$exec_prefix_save
11297
11298
11299  EXP_VAR=INFODIR
11300  FROM_VAR=$infodir
11301  prefix_save=$prefix
11302  exec_prefix_save=$exec_prefix
11303  full_var="$FROM_VAR"
11304  while true; do
11305    new_full_var="`eval echo $full_var`"
11306    if test "x$new_full_var" = "x$full_var"; then break; fi
11307    full_var=$new_full_var
11308  done
11309  full_var=$new_full_var
11310  INFODIR="$full_var"
11311
11312  prefix=$prefix_save
11313  exec_prefix=$exec_prefix_save
11314
11315
11316  EXP_VAR=SYSCONFDIR
11317  FROM_VAR=$sysconfdir
11318  prefix_save=$prefix
11319  exec_prefix_save=$exec_prefix
11320  full_var="$FROM_VAR"
11321  while true; do
11322    new_full_var="`eval echo $full_var`"
11323    if test "x$new_full_var" = "x$full_var"; then break; fi
11324    full_var=$new_full_var
11325  done
11326  full_var=$new_full_var
11327  SYSCONFDIR="$full_var"
11328
11329  prefix=$prefix_save
11330  exec_prefix=$exec_prefix_save
11331
11332
11333  EXP_VAR=DATADIR
11334  FROM_VAR=$datadir
11335  prefix_save=$prefix
11336  exec_prefix_save=$exec_prefix
11337  full_var="$FROM_VAR"
11338  while true; do
11339    new_full_var="`eval echo $full_var`"
11340    if test "x$new_full_var" = "x$full_var"; then break; fi
11341    full_var=$new_full_var
11342  done
11343  full_var=$new_full_var
11344  DATADIR="$full_var"
11345
11346  prefix=$prefix_save
11347  exec_prefix=$exec_prefix_save
11348
11349
11350  EXP_VAR=DATAROOTDIR
11351  FROM_VAR=$datarootdir
11352  prefix_save=$prefix
11353  exec_prefix_save=$exec_prefix
11354  full_var="$FROM_VAR"
11355  while true; do
11356    new_full_var="`eval echo $full_var`"
11357    if test "x$new_full_var" = "x$full_var"; then break; fi
11358    full_var=$new_full_var
11359  done
11360  full_var=$new_full_var
11361  DATAROOTDIR="$full_var"
11362
11363  prefix=$prefix_save
11364  exec_prefix=$exec_prefix_save
11365
11366cat >>confdefs.h <<_ACEOF
11367#define DATADIR "$DATADIR"
11368_ACEOF
11369
11370cat >>confdefs.h <<_ACEOF
11371#define PREFIX "$PREFIX"
11372_ACEOF
11373
11374
11375
11376# Check whether --with-efence was given.
11377if test "${with_efence+set}" = set; then :
11378  withval=$with_efence; EFENCE_LIBS="-lefence"
11379$as_echo "#define HAVE_EFENCE 1" >>confdefs.h
11380
11381
11382fi
11383
11384
11385
11386
11387# Check whether --with-duma was given.
11388if test "${with_duma+set}" = set; then :
11389  withval=$with_duma; DUMA_LIBS="-lduma"
11390$as_echo "#define HAVE_DUMA 1" >>confdefs.h
11391
11392
11393fi
11394
11395
11396
11397
11398
11399# Extract the first word of "makeinfo", so it can be a program name with args.
11400set dummy makeinfo; ac_word=$2
11401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11402$as_echo_n "checking for $ac_word... " >&6; }
11403if ${ac_cv_prog_HAVE_MAKEINFO+:} false; then :
11404  $as_echo_n "(cached) " >&6
11405else
11406  if test -n "$HAVE_MAKEINFO"; then
11407  ac_cv_prog_HAVE_MAKEINFO="$HAVE_MAKEINFO" # Let the user override the test.
11408else
11409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11410for as_dir in $PATH
11411do
11412  IFS=$as_save_IFS
11413  test -z "$as_dir" && as_dir=.
11414    for ac_exec_ext in '' $ac_executable_extensions; do
11415  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11416    ac_cv_prog_HAVE_MAKEINFO="yes"
11417    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11418    break 2
11419  fi
11420done
11421  done
11422IFS=$as_save_IFS
11423
11424fi
11425fi
11426HAVE_MAKEINFO=$ac_cv_prog_HAVE_MAKEINFO
11427if test -n "$HAVE_MAKEINFO"; then
11428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_MAKEINFO" >&5
11429$as_echo "$HAVE_MAKEINFO" >&6; }
11430else
11431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11432$as_echo "no" >&6; }
11433fi
11434
11435
11436
11437
11438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Include lzw support (used by GIF and arcZIP)" >&5
11439$as_echo_n "checking Include lzw support (used by GIF and arcZIP)... " >&6; }
11440if test "x$with_lzw" = "xyes"; then
11441	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11442$as_echo "yes" >&6; }
11443	$as_echo "#define HAVE_LZW 1" >>confdefs.h
11444
11445	HAVE_LZW=1
11446else
11447	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11448$as_echo "no" >&6; }
11449fi
11450
11451
11452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Include lzh support (used by .ym file support)" >&5
11453$as_echo_n "checking Include lzh support (used by .ym file support)... " >&6; }
11454if test "x$with_lzh" = "xyes"; then
11455	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11456$as_echo "yes" >&6; }
11457	$as_echo "#define HAVE_LZH 1" >>confdefs.h
11458
11459	HAVE_LZH=1
11460else
11461	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11462$as_echo "no" >&6; }
11463fi
11464
11465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking \"cp -f implies --remove-destination\"" >&5
11466$as_echo_n "checking \"cp -f implies --remove-destination\"... " >&6; }
11467cp -f --remove-destination Rules.make.in Rules.make.in.tmp > /dev/null 2>&1
11468if test "$?" -ne 0; then
11469	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11470$as_echo "yes" >&6; }
11471	CP="cp -f"
11472else
11473	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11474$as_echo "no" >&6; }
11475	CP="cp -f --remove-destination"
11476fi
11477rm -f Rules.make.in.tmp
11478
11479
11480
11481# Check whether --with-libiconv was given.
11482if test "${with_libiconv+set}" = set; then :
11483  withval=$with_libiconv; with_libiconv=$withval
11484else
11485  with_libiconv=auto
11486fi
11487
11488
11489found_iconv=no
11490case $with_libiconv in
11491	auto)
11492		# Check in the C library first
11493		ac_fn_c_check_func "$LINENO" "iconv_open" "ac_cv_func_iconv_open"
11494if test "x$ac_cv_func_iconv_open" = xyes; then :
11495  with_libiconv=no; found_iconv=yes
11496fi
11497
11498		# Check if we have GNU libiconv
11499		if test $found_iconv = "no"; then
11500			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
11501$as_echo_n "checking for libiconv_open in -liconv... " >&6; }
11502if ${ac_cv_lib_iconv_libiconv_open+:} false; then :
11503  $as_echo_n "(cached) " >&6
11504else
11505  ac_check_lib_save_LIBS=$LIBS
11506LIBS="-liconv  $LIBS"
11507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11508/* end confdefs.h.  */
11509
11510/* Override any GCC internal prototype to avoid an error.
11511   Use char because int might match the return type of a GCC
11512   builtin and then its argument prototype would still apply.  */
11513#ifdef __cplusplus
11514extern "C"
11515#endif
11516char libiconv_open ();
11517int
11518main ()
11519{
11520return libiconv_open ();
11521  ;
11522  return 0;
11523}
11524_ACEOF
11525if ac_fn_c_try_link "$LINENO"; then :
11526  ac_cv_lib_iconv_libiconv_open=yes
11527else
11528  ac_cv_lib_iconv_libiconv_open=no
11529fi
11530rm -f core conftest.err conftest.$ac_objext \
11531    conftest$ac_exeext conftest.$ac_ext
11532LIBS=$ac_check_lib_save_LIBS
11533fi
11534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
11535$as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
11536if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then :
11537  ICONV_LIBS=-liconv; with_libiconv=gnu; found_iconv=yes
11538fi
11539
11540		fi
11541		# Check if we have a iconv in -liconv, possibly from vendor
11542		if test $found_iconv = "no"; then
11543			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
11544$as_echo_n "checking for iconv_open in -liconv... " >&6; }
11545if ${ac_cv_lib_iconv_iconv_open+:} false; then :
11546  $as_echo_n "(cached) " >&6
11547else
11548  ac_check_lib_save_LIBS=$LIBS
11549LIBS="-liconv  $LIBS"
11550cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11551/* end confdefs.h.  */
11552
11553/* Override any GCC internal prototype to avoid an error.
11554   Use char because int might match the return type of a GCC
11555   builtin and then its argument prototype would still apply.  */
11556#ifdef __cplusplus
11557extern "C"
11558#endif
11559char iconv_open ();
11560int
11561main ()
11562{
11563return iconv_open ();
11564  ;
11565  return 0;
11566}
11567_ACEOF
11568if ac_fn_c_try_link "$LINENO"; then :
11569  ac_cv_lib_iconv_iconv_open=yes
11570else
11571  ac_cv_lib_iconv_iconv_open=no
11572fi
11573rm -f core conftest.err conftest.$ac_objext \
11574    conftest$ac_exeext conftest.$ac_ext
11575LIBS=$ac_check_lib_save_LIBS
11576fi
11577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
11578$as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
11579if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
11580  ICONV_LIBS=-liconv; with_libiconv=native; found_iconv=yes
11581fi
11582
11583		fi
11584		;;
11585	no)
11586		ac_fn_c_check_func "$LINENO" "iconv_open" "ac_cv_func_iconv_open"
11587if test "x$ac_cv_func_iconv_open" = xyes; then :
11588  with_libiconv=no; found_iconv=yes
11589fi
11590
11591		;;
11592	gnu|yes)
11593		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
11594$as_echo_n "checking for libiconv_open in -liconv... " >&6; }
11595if ${ac_cv_lib_iconv_libiconv_open+:} false; then :
11596  $as_echo_n "(cached) " >&6
11597else
11598  ac_check_lib_save_LIBS=$LIBS
11599LIBS="-liconv  $LIBS"
11600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11601/* end confdefs.h.  */
11602
11603/* Override any GCC internal prototype to avoid an error.
11604   Use char because int might match the return type of a GCC
11605   builtin and then its argument prototype would still apply.  */
11606#ifdef __cplusplus
11607extern "C"
11608#endif
11609char libiconv_open ();
11610int
11611main ()
11612{
11613return libiconv_open ();
11614  ;
11615  return 0;
11616}
11617_ACEOF
11618if ac_fn_c_try_link "$LINENO"; then :
11619  ac_cv_lib_iconv_libiconv_open=yes
11620else
11621  ac_cv_lib_iconv_libiconv_open=no
11622fi
11623rm -f core conftest.err conftest.$ac_objext \
11624    conftest$ac_exeext conftest.$ac_ext
11625LIBS=$ac_check_lib_save_LIBS
11626fi
11627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
11628$as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
11629if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then :
11630  ICONV_LIBS=-liconv; with_libiconv=gnu; found_iconv=yes
11631fi
11632
11633		;;
11634	native)
11635		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
11636$as_echo_n "checking for iconv_open in -liconv... " >&6; }
11637if ${ac_cv_lib_iconv_iconv_open+:} false; then :
11638  $as_echo_n "(cached) " >&6
11639else
11640  ac_check_lib_save_LIBS=$LIBS
11641LIBS="-liconv  $LIBS"
11642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11643/* end confdefs.h.  */
11644
11645/* Override any GCC internal prototype to avoid an error.
11646   Use char because int might match the return type of a GCC
11647   builtin and then its argument prototype would still apply.  */
11648#ifdef __cplusplus
11649extern "C"
11650#endif
11651char iconv_open ();
11652int
11653main ()
11654{
11655return iconv_open ();
11656  ;
11657  return 0;
11658}
11659_ACEOF
11660if ac_fn_c_try_link "$LINENO"; then :
11661  ac_cv_lib_iconv_iconv_open=yes
11662else
11663  ac_cv_lib_iconv_iconv_open=no
11664fi
11665rm -f core conftest.err conftest.$ac_objext \
11666    conftest$ac_exeext conftest.$ac_ext
11667LIBS=$ac_check_lib_save_LIBS
11668fi
11669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
11670$as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
11671if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
11672  ICONV_LIBS=-liconv; with_libiconv=native; found_iconv=yes
11673fi
11674
11675		;;
11676esac
11677LIBS=$push_LIBS
11678
11679if test "x$found_iconv" = "xno" ; then
11680	as_fn_error $? "*** No iconv() implementation found in C library or libiconv" "$LINENO" 5
11681fi
11682
11683
11684case $with_libiconv in
11685	gnu)
11686
11687$as_echo "#define USE_LIBICONV_GNU 1" >>confdefs.h
11688
11689		;;
11690	native)
11691
11692$as_echo "#define USE_LIBICONV_NATIVE 1" >>confdefs.h
11693
11694		;;
11695esac
11696
11697if ! test "x$with_desktop_file_install" = "xno"; then
11698	if test "x$with_x11" != "xno" || test "x$with_sdl" != "xno" || test "x$with_sdl2" != "xno"; then
11699		# Extract the first word of "desktop-file-install", so it can be a program name with args.
11700set dummy desktop-file-install; ac_word=$2
11701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11702$as_echo_n "checking for $ac_word... " >&6; }
11703if ${ac_cv_prog_DESKTOP_FILE_INSTALL+:} false; then :
11704  $as_echo_n "(cached) " >&6
11705else
11706  if test -n "$DESKTOP_FILE_INSTALL"; then
11707  ac_cv_prog_DESKTOP_FILE_INSTALL="$DESKTOP_FILE_INSTALL" # Let the user override the test.
11708else
11709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11710for as_dir in $PATH
11711do
11712  IFS=$as_save_IFS
11713  test -z "$as_dir" && as_dir=.
11714    for ac_exec_ext in '' $ac_executable_extensions; do
11715  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11716    ac_cv_prog_DESKTOP_FILE_INSTALL="desktop-file-install"
11717    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11718    break 2
11719  fi
11720done
11721  done
11722IFS=$as_save_IFS
11723
11724  test -z "$ac_cv_prog_DESKTOP_FILE_INSTALL" && ac_cv_prog_DESKTOP_FILE_INSTALL="failed"
11725fi
11726fi
11727DESKTOP_FILE_INSTALL=$ac_cv_prog_DESKTOP_FILE_INSTALL
11728if test -n "$DESKTOP_FILE_INSTALL"; then
11729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DESKTOP_FILE_INSTALL" >&5
11730$as_echo "$DESKTOP_FILE_INSTALL" >&6; }
11731else
11732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11733$as_echo "no" >&6; }
11734fi
11735
11736
11737		if test "x$DESKTOP_FILE_INSTALL" = "xfailed"; then
11738			as_fn_error $? "Cannot find desktop-file-install (required by x11 and SDL driver)." "$LINENO" 5
11739		fi
11740	fi
11741fi
11742
11743if test "x$with_dumptools" = "xyes"; then
11744	BUILD_DUMPTOOLS=1
11745fi
11746
11747
11748ac_config_files="$ac_config_files Rules.make"
11749
11750ac_config_files="$ac_config_files Makefile"
11751
11752ac_config_files="$ac_config_files goodies/helpc/Makefile"
11753
11754ac_config_files="$ac_config_files goodies/pack/Makefile"
11755
11756ac_config_files="$ac_config_files ocp.ini"
11757
11758ac_config_files="$ac_config_files desktop/opencubicplayer.desktop"
11759
11760
11761ac_config_files="$ac_config_files doc/opencp.dox"
11762
11763ac_config_files="$ac_config_files doc/texi/faq.texi"
11764
11765ac_config_files="$ac_config_files doc/texi/ocp.texi"
11766
11767ac_config_files="$ac_config_files playsid/libsidplayfp-git/src/builders/resid-builder/resid/siddefs.h"
11768
11769ac_config_files="$ac_config_files playsid/libsidplayfp-git/src/builders/residfp-builder/residfp/siddefs-fp.h"
11770
11771
11772cat >confcache <<\_ACEOF
11773# This file is a shell script that caches the results of configure
11774# tests run on this system so they can be shared between configure
11775# scripts and configure runs, see configure's option --config-cache.
11776# It is not useful on other systems.  If it contains results you don't
11777# want to keep, you may remove or edit it.
11778#
11779# config.status only pays attention to the cache file if you give it
11780# the --recheck option to rerun configure.
11781#
11782# `ac_cv_env_foo' variables (set or unset) will be overridden when
11783# loading this file, other *unset* `ac_cv_foo' will be assigned the
11784# following values.
11785
11786_ACEOF
11787
11788# The following way of writing the cache mishandles newlines in values,
11789# but we know of no workaround that is simple, portable, and efficient.
11790# So, we kill variables containing newlines.
11791# Ultrix sh set writes to stderr and can't be redirected directly,
11792# and sets the high bit in the cache file unless we assign to the vars.
11793(
11794  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11795    eval ac_val=\$$ac_var
11796    case $ac_val in #(
11797    *${as_nl}*)
11798      case $ac_var in #(
11799      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11800$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11801      esac
11802      case $ac_var in #(
11803      _ | IFS | as_nl) ;; #(
11804      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11805      *) { eval $ac_var=; unset $ac_var;} ;;
11806      esac ;;
11807    esac
11808  done
11809
11810  (set) 2>&1 |
11811    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11812    *${as_nl}ac_space=\ *)
11813      # `set' does not quote correctly, so add quotes: double-quote
11814      # substitution turns \\\\ into \\, and sed turns \\ into \.
11815      sed -n \
11816	"s/'/'\\\\''/g;
11817	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11818      ;; #(
11819    *)
11820      # `set' quotes correctly as required by POSIX, so do not add quotes.
11821      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11822      ;;
11823    esac |
11824    sort
11825) |
11826  sed '
11827     /^ac_cv_env_/b end
11828     t clear
11829     :clear
11830     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11831     t end
11832     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11833     :end' >>confcache
11834if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11835  if test -w "$cache_file"; then
11836    if test "x$cache_file" != "x/dev/null"; then
11837      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11838$as_echo "$as_me: updating cache $cache_file" >&6;}
11839      if test ! -f "$cache_file" || test -h "$cache_file"; then
11840	cat confcache >"$cache_file"
11841      else
11842        case $cache_file in #(
11843        */* | ?:*)
11844	  mv -f confcache "$cache_file"$$ &&
11845	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11846        *)
11847	  mv -f confcache "$cache_file" ;;
11848	esac
11849      fi
11850    fi
11851  else
11852    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11853$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11854  fi
11855fi
11856rm -f confcache
11857
11858test "x$prefix" = xNONE && prefix=$ac_default_prefix
11859# Let make expand exec_prefix.
11860test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11861
11862DEFS=-DHAVE_CONFIG_H
11863
11864ac_libobjs=
11865ac_ltlibobjs=
11866U=
11867for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11868  # 1. Remove the extension, and $U if already installed.
11869  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11870  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11871  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11872  #    will be set to the directory where LIBOBJS objects are built.
11873  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11874  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11875done
11876LIBOBJS=$ac_libobjs
11877
11878LTLIBOBJS=$ac_ltlibobjs
11879
11880
11881
11882
11883: "${CONFIG_STATUS=./config.status}"
11884ac_write_fail=0
11885ac_clean_files_save=$ac_clean_files
11886ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11887{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11888$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11889as_write_fail=0
11890cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11891#! $SHELL
11892# Generated by $as_me.
11893# Run this file to recreate the current configuration.
11894# Compiler output produced by configure, useful for debugging
11895# configure, is in config.log if it exists.
11896
11897debug=false
11898ac_cs_recheck=false
11899ac_cs_silent=false
11900
11901SHELL=\${CONFIG_SHELL-$SHELL}
11902export SHELL
11903_ASEOF
11904cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11905## -------------------- ##
11906## M4sh Initialization. ##
11907## -------------------- ##
11908
11909# Be more Bourne compatible
11910DUALCASE=1; export DUALCASE # for MKS sh
11911if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11912  emulate sh
11913  NULLCMD=:
11914  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11915  # is contrary to our usage.  Disable this feature.
11916  alias -g '${1+"$@"}'='"$@"'
11917  setopt NO_GLOB_SUBST
11918else
11919  case `(set -o) 2>/dev/null` in #(
11920  *posix*) :
11921    set -o posix ;; #(
11922  *) :
11923     ;;
11924esac
11925fi
11926
11927
11928as_nl='
11929'
11930export as_nl
11931# Printing a long string crashes Solaris 7 /usr/bin/printf.
11932as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11933as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11934as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11935# Prefer a ksh shell builtin over an external printf program on Solaris,
11936# but without wasting forks for bash or zsh.
11937if test -z "$BASH_VERSION$ZSH_VERSION" \
11938    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11939  as_echo='print -r --'
11940  as_echo_n='print -rn --'
11941elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11942  as_echo='printf %s\n'
11943  as_echo_n='printf %s'
11944else
11945  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11946    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11947    as_echo_n='/usr/ucb/echo -n'
11948  else
11949    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11950    as_echo_n_body='eval
11951      arg=$1;
11952      case $arg in #(
11953      *"$as_nl"*)
11954	expr "X$arg" : "X\\(.*\\)$as_nl";
11955	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11956      esac;
11957      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11958    '
11959    export as_echo_n_body
11960    as_echo_n='sh -c $as_echo_n_body as_echo'
11961  fi
11962  export as_echo_body
11963  as_echo='sh -c $as_echo_body as_echo'
11964fi
11965
11966# The user is always right.
11967if test "${PATH_SEPARATOR+set}" != set; then
11968  PATH_SEPARATOR=:
11969  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11970    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11971      PATH_SEPARATOR=';'
11972  }
11973fi
11974
11975
11976# IFS
11977# We need space, tab and new line, in precisely that order.  Quoting is
11978# there to prevent editors from complaining about space-tab.
11979# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11980# splitting by setting IFS to empty value.)
11981IFS=" ""	$as_nl"
11982
11983# Find who we are.  Look in the path if we contain no directory separator.
11984as_myself=
11985case $0 in #((
11986  *[\\/]* ) as_myself=$0 ;;
11987  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11988for as_dir in $PATH
11989do
11990  IFS=$as_save_IFS
11991  test -z "$as_dir" && as_dir=.
11992    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11993  done
11994IFS=$as_save_IFS
11995
11996     ;;
11997esac
11998# We did not find ourselves, most probably we were run as `sh COMMAND'
11999# in which case we are not to be found in the path.
12000if test "x$as_myself" = x; then
12001  as_myself=$0
12002fi
12003if test ! -f "$as_myself"; then
12004  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12005  exit 1
12006fi
12007
12008# Unset variables that we do not need and which cause bugs (e.g. in
12009# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12010# suppresses any "Segmentation fault" message there.  '((' could
12011# trigger a bug in pdksh 5.2.14.
12012for as_var in BASH_ENV ENV MAIL MAILPATH
12013do eval test x\${$as_var+set} = xset \
12014  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12015done
12016PS1='$ '
12017PS2='> '
12018PS4='+ '
12019
12020# NLS nuisances.
12021LC_ALL=C
12022export LC_ALL
12023LANGUAGE=C
12024export LANGUAGE
12025
12026# CDPATH.
12027(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12028
12029
12030# as_fn_error STATUS ERROR [LINENO LOG_FD]
12031# ----------------------------------------
12032# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12033# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12034# script with STATUS, using 1 if that was 0.
12035as_fn_error ()
12036{
12037  as_status=$1; test $as_status -eq 0 && as_status=1
12038  if test "$4"; then
12039    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12040    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12041  fi
12042  $as_echo "$as_me: error: $2" >&2
12043  as_fn_exit $as_status
12044} # as_fn_error
12045
12046
12047# as_fn_set_status STATUS
12048# -----------------------
12049# Set $? to STATUS, without forking.
12050as_fn_set_status ()
12051{
12052  return $1
12053} # as_fn_set_status
12054
12055# as_fn_exit STATUS
12056# -----------------
12057# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12058as_fn_exit ()
12059{
12060  set +e
12061  as_fn_set_status $1
12062  exit $1
12063} # as_fn_exit
12064
12065# as_fn_unset VAR
12066# ---------------
12067# Portably unset VAR.
12068as_fn_unset ()
12069{
12070  { eval $1=; unset $1;}
12071}
12072as_unset=as_fn_unset
12073# as_fn_append VAR VALUE
12074# ----------------------
12075# Append the text in VALUE to the end of the definition contained in VAR. Take
12076# advantage of any shell optimizations that allow amortized linear growth over
12077# repeated appends, instead of the typical quadratic growth present in naive
12078# implementations.
12079if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12080  eval 'as_fn_append ()
12081  {
12082    eval $1+=\$2
12083  }'
12084else
12085  as_fn_append ()
12086  {
12087    eval $1=\$$1\$2
12088  }
12089fi # as_fn_append
12090
12091# as_fn_arith ARG...
12092# ------------------
12093# Perform arithmetic evaluation on the ARGs, and store the result in the
12094# global $as_val. Take advantage of shells that can avoid forks. The arguments
12095# must be portable across $(()) and expr.
12096if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12097  eval 'as_fn_arith ()
12098  {
12099    as_val=$(( $* ))
12100  }'
12101else
12102  as_fn_arith ()
12103  {
12104    as_val=`expr "$@" || test $? -eq 1`
12105  }
12106fi # as_fn_arith
12107
12108
12109if expr a : '\(a\)' >/dev/null 2>&1 &&
12110   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12111  as_expr=expr
12112else
12113  as_expr=false
12114fi
12115
12116if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12117  as_basename=basename
12118else
12119  as_basename=false
12120fi
12121
12122if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12123  as_dirname=dirname
12124else
12125  as_dirname=false
12126fi
12127
12128as_me=`$as_basename -- "$0" ||
12129$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12130	 X"$0" : 'X\(//\)$' \| \
12131	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12132$as_echo X/"$0" |
12133    sed '/^.*\/\([^/][^/]*\)\/*$/{
12134	    s//\1/
12135	    q
12136	  }
12137	  /^X\/\(\/\/\)$/{
12138	    s//\1/
12139	    q
12140	  }
12141	  /^X\/\(\/\).*/{
12142	    s//\1/
12143	    q
12144	  }
12145	  s/.*/./; q'`
12146
12147# Avoid depending upon Character Ranges.
12148as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12149as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12150as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12151as_cr_digits='0123456789'
12152as_cr_alnum=$as_cr_Letters$as_cr_digits
12153
12154ECHO_C= ECHO_N= ECHO_T=
12155case `echo -n x` in #(((((
12156-n*)
12157  case `echo 'xy\c'` in
12158  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12159  xy)  ECHO_C='\c';;
12160  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12161       ECHO_T='	';;
12162  esac;;
12163*)
12164  ECHO_N='-n';;
12165esac
12166
12167rm -f conf$$ conf$$.exe conf$$.file
12168if test -d conf$$.dir; then
12169  rm -f conf$$.dir/conf$$.file
12170else
12171  rm -f conf$$.dir
12172  mkdir conf$$.dir 2>/dev/null
12173fi
12174if (echo >conf$$.file) 2>/dev/null; then
12175  if ln -s conf$$.file conf$$ 2>/dev/null; then
12176    as_ln_s='ln -s'
12177    # ... but there are two gotchas:
12178    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12179    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12180    # In both cases, we have to default to `cp -pR'.
12181    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12182      as_ln_s='cp -pR'
12183  elif ln conf$$.file conf$$ 2>/dev/null; then
12184    as_ln_s=ln
12185  else
12186    as_ln_s='cp -pR'
12187  fi
12188else
12189  as_ln_s='cp -pR'
12190fi
12191rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12192rmdir conf$$.dir 2>/dev/null
12193
12194
12195# as_fn_mkdir_p
12196# -------------
12197# Create "$as_dir" as a directory, including parents if necessary.
12198as_fn_mkdir_p ()
12199{
12200
12201  case $as_dir in #(
12202  -*) as_dir=./$as_dir;;
12203  esac
12204  test -d "$as_dir" || eval $as_mkdir_p || {
12205    as_dirs=
12206    while :; do
12207      case $as_dir in #(
12208      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12209      *) as_qdir=$as_dir;;
12210      esac
12211      as_dirs="'$as_qdir' $as_dirs"
12212      as_dir=`$as_dirname -- "$as_dir" ||
12213$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12214	 X"$as_dir" : 'X\(//\)[^/]' \| \
12215	 X"$as_dir" : 'X\(//\)$' \| \
12216	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12217$as_echo X"$as_dir" |
12218    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12219	    s//\1/
12220	    q
12221	  }
12222	  /^X\(\/\/\)[^/].*/{
12223	    s//\1/
12224	    q
12225	  }
12226	  /^X\(\/\/\)$/{
12227	    s//\1/
12228	    q
12229	  }
12230	  /^X\(\/\).*/{
12231	    s//\1/
12232	    q
12233	  }
12234	  s/.*/./; q'`
12235      test -d "$as_dir" && break
12236    done
12237    test -z "$as_dirs" || eval "mkdir $as_dirs"
12238  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12239
12240
12241} # as_fn_mkdir_p
12242if mkdir -p . 2>/dev/null; then
12243  as_mkdir_p='mkdir -p "$as_dir"'
12244else
12245  test -d ./-p && rmdir ./-p
12246  as_mkdir_p=false
12247fi
12248
12249
12250# as_fn_executable_p FILE
12251# -----------------------
12252# Test if FILE is an executable regular file.
12253as_fn_executable_p ()
12254{
12255  test -f "$1" && test -x "$1"
12256} # as_fn_executable_p
12257as_test_x='test -x'
12258as_executable_p=as_fn_executable_p
12259
12260# Sed expression to map a string onto a valid CPP name.
12261as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12262
12263# Sed expression to map a string onto a valid variable name.
12264as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12265
12266
12267exec 6>&1
12268## ----------------------------------- ##
12269## Main body of $CONFIG_STATUS script. ##
12270## ----------------------------------- ##
12271_ASEOF
12272test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12273
12274cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12275# Save the log message, to keep $0 and so on meaningful, and to
12276# report actual input values of CONFIG_FILES etc. instead of their
12277# values after options handling.
12278ac_log="
12279This file was extended by ocp $as_me 0.2.90, which was
12280generated by GNU Autoconf 2.69.  Invocation command line was
12281
12282  CONFIG_FILES    = $CONFIG_FILES
12283  CONFIG_HEADERS  = $CONFIG_HEADERS
12284  CONFIG_LINKS    = $CONFIG_LINKS
12285  CONFIG_COMMANDS = $CONFIG_COMMANDS
12286  $ $0 $@
12287
12288on `(hostname || uname -n) 2>/dev/null | sed 1q`
12289"
12290
12291_ACEOF
12292
12293case $ac_config_files in *"
12294"*) set x $ac_config_files; shift; ac_config_files=$*;;
12295esac
12296
12297case $ac_config_headers in *"
12298"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12299esac
12300
12301
12302cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12303# Files that config.status was made for.
12304config_files="$ac_config_files"
12305config_headers="$ac_config_headers"
12306
12307_ACEOF
12308
12309cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12310ac_cs_usage="\
12311\`$as_me' instantiates files and other configuration actions
12312from templates according to the current configuration.  Unless the files
12313and actions are specified as TAGs, all are instantiated by default.
12314
12315Usage: $0 [OPTION]... [TAG]...
12316
12317  -h, --help       print this help, then exit
12318  -V, --version    print version number and configuration settings, then exit
12319      --config     print configuration, then exit
12320  -q, --quiet, --silent
12321                   do not print progress messages
12322  -d, --debug      don't remove temporary files
12323      --recheck    update $as_me by reconfiguring in the same conditions
12324      --file=FILE[:TEMPLATE]
12325                   instantiate the configuration file FILE
12326      --header=FILE[:TEMPLATE]
12327                   instantiate the configuration header FILE
12328
12329Configuration files:
12330$config_files
12331
12332Configuration headers:
12333$config_headers
12334
12335Report bugs to <stian.skjelstad@gmail.com>."
12336
12337_ACEOF
12338cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12339ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12340ac_cs_version="\\
12341ocp config.status 0.2.90
12342configured by $0, generated by GNU Autoconf 2.69,
12343  with options \\"\$ac_cs_config\\"
12344
12345Copyright (C) 2012 Free Software Foundation, Inc.
12346This config.status script is free software; the Free Software Foundation
12347gives unlimited permission to copy, distribute and modify it."
12348
12349ac_pwd='$ac_pwd'
12350srcdir='$srcdir'
12351test -n "\$AWK" || AWK=awk
12352_ACEOF
12353
12354cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12355# The default lists apply if the user does not specify any file.
12356ac_need_defaults=:
12357while test $# != 0
12358do
12359  case $1 in
12360  --*=?*)
12361    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12362    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12363    ac_shift=:
12364    ;;
12365  --*=)
12366    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12367    ac_optarg=
12368    ac_shift=:
12369    ;;
12370  *)
12371    ac_option=$1
12372    ac_optarg=$2
12373    ac_shift=shift
12374    ;;
12375  esac
12376
12377  case $ac_option in
12378  # Handling of the options.
12379  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12380    ac_cs_recheck=: ;;
12381  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12382    $as_echo "$ac_cs_version"; exit ;;
12383  --config | --confi | --conf | --con | --co | --c )
12384    $as_echo "$ac_cs_config"; exit ;;
12385  --debug | --debu | --deb | --de | --d | -d )
12386    debug=: ;;
12387  --file | --fil | --fi | --f )
12388    $ac_shift
12389    case $ac_optarg in
12390    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12391    '') as_fn_error $? "missing file argument" ;;
12392    esac
12393    as_fn_append CONFIG_FILES " '$ac_optarg'"
12394    ac_need_defaults=false;;
12395  --header | --heade | --head | --hea )
12396    $ac_shift
12397    case $ac_optarg in
12398    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12399    esac
12400    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12401    ac_need_defaults=false;;
12402  --he | --h)
12403    # Conflict between --help and --header
12404    as_fn_error $? "ambiguous option: \`$1'
12405Try \`$0 --help' for more information.";;
12406  --help | --hel | -h )
12407    $as_echo "$ac_cs_usage"; exit ;;
12408  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12409  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12410    ac_cs_silent=: ;;
12411
12412  # This is an error.
12413  -*) as_fn_error $? "unrecognized option: \`$1'
12414Try \`$0 --help' for more information." ;;
12415
12416  *) as_fn_append ac_config_targets " $1"
12417     ac_need_defaults=false ;;
12418
12419  esac
12420  shift
12421done
12422
12423ac_configure_extra_args=
12424
12425if $ac_cs_silent; then
12426  exec 6>/dev/null
12427  ac_configure_extra_args="$ac_configure_extra_args --silent"
12428fi
12429
12430_ACEOF
12431cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12432if \$ac_cs_recheck; then
12433  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12434  shift
12435  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12436  CONFIG_SHELL='$SHELL'
12437  export CONFIG_SHELL
12438  exec "\$@"
12439fi
12440
12441_ACEOF
12442cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12443exec 5>>config.log
12444{
12445  echo
12446  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12447## Running $as_me. ##
12448_ASBOX
12449  $as_echo "$ac_log"
12450} >&5
12451
12452_ACEOF
12453cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12454_ACEOF
12455
12456cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12457
12458# Handling of arguments.
12459for ac_config_target in $ac_config_targets
12460do
12461  case $ac_config_target in
12462    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12463    "playsid/sidplayfp-config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS playsid/sidplayfp-config/config.h" ;;
12464    "Rules.make") CONFIG_FILES="$CONFIG_FILES Rules.make" ;;
12465    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12466    "goodies/helpc/Makefile") CONFIG_FILES="$CONFIG_FILES goodies/helpc/Makefile" ;;
12467    "goodies/pack/Makefile") CONFIG_FILES="$CONFIG_FILES goodies/pack/Makefile" ;;
12468    "ocp.ini") CONFIG_FILES="$CONFIG_FILES ocp.ini" ;;
12469    "desktop/opencubicplayer.desktop") CONFIG_FILES="$CONFIG_FILES desktop/opencubicplayer.desktop" ;;
12470    "doc/opencp.dox") CONFIG_FILES="$CONFIG_FILES doc/opencp.dox" ;;
12471    "doc/texi/faq.texi") CONFIG_FILES="$CONFIG_FILES doc/texi/faq.texi" ;;
12472    "doc/texi/ocp.texi") CONFIG_FILES="$CONFIG_FILES doc/texi/ocp.texi" ;;
12473    "playsid/libsidplayfp-git/src/builders/resid-builder/resid/siddefs.h") CONFIG_FILES="$CONFIG_FILES playsid/libsidplayfp-git/src/builders/resid-builder/resid/siddefs.h" ;;
12474    "playsid/libsidplayfp-git/src/builders/residfp-builder/residfp/siddefs-fp.h") CONFIG_FILES="$CONFIG_FILES playsid/libsidplayfp-git/src/builders/residfp-builder/residfp/siddefs-fp.h" ;;
12475
12476  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12477  esac
12478done
12479
12480
12481# If the user did not use the arguments to specify the items to instantiate,
12482# then the envvar interface is used.  Set only those that are not.
12483# We use the long form for the default assignment because of an extremely
12484# bizarre bug on SunOS 4.1.3.
12485if $ac_need_defaults; then
12486  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12487  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12488fi
12489
12490# Have a temporary directory for convenience.  Make it in the build tree
12491# simply because there is no reason against having it here, and in addition,
12492# creating and moving files from /tmp can sometimes cause problems.
12493# Hook for its removal unless debugging.
12494# Note that there is a small window in which the directory will not be cleaned:
12495# after its creation but before its name has been assigned to `$tmp'.
12496$debug ||
12497{
12498  tmp= ac_tmp=
12499  trap 'exit_status=$?
12500  : "${ac_tmp:=$tmp}"
12501  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12502' 0
12503  trap 'as_fn_exit 1' 1 2 13 15
12504}
12505# Create a (secure) tmp directory for tmp files.
12506
12507{
12508  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12509  test -d "$tmp"
12510}  ||
12511{
12512  tmp=./conf$$-$RANDOM
12513  (umask 077 && mkdir "$tmp")
12514} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12515ac_tmp=$tmp
12516
12517# Set up the scripts for CONFIG_FILES section.
12518# No need to generate them if there are no CONFIG_FILES.
12519# This happens for instance with `./config.status config.h'.
12520if test -n "$CONFIG_FILES"; then
12521
12522
12523ac_cr=`echo X | tr X '\015'`
12524# On cygwin, bash can eat \r inside `` if the user requested igncr.
12525# But we know of no other shell where ac_cr would be empty at this
12526# point, so we can use a bashism as a fallback.
12527if test "x$ac_cr" = x; then
12528  eval ac_cr=\$\'\\r\'
12529fi
12530ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12531if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12532  ac_cs_awk_cr='\\r'
12533else
12534  ac_cs_awk_cr=$ac_cr
12535fi
12536
12537echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12538_ACEOF
12539
12540
12541{
12542  echo "cat >conf$$subs.awk <<_ACEOF" &&
12543  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12544  echo "_ACEOF"
12545} >conf$$subs.sh ||
12546  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12547ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12548ac_delim='%!_!# '
12549for ac_last_try in false false false false false :; do
12550  . ./conf$$subs.sh ||
12551    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12552
12553  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12554  if test $ac_delim_n = $ac_delim_num; then
12555    break
12556  elif $ac_last_try; then
12557    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12558  else
12559    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12560  fi
12561done
12562rm -f conf$$subs.sh
12563
12564cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12565cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12566_ACEOF
12567sed -n '
12568h
12569s/^/S["/; s/!.*/"]=/
12570p
12571g
12572s/^[^!]*!//
12573:repl
12574t repl
12575s/'"$ac_delim"'$//
12576t delim
12577:nl
12578h
12579s/\(.\{148\}\)..*/\1/
12580t more1
12581s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12582p
12583n
12584b repl
12585:more1
12586s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12587p
12588g
12589s/.\{148\}//
12590t nl
12591:delim
12592h
12593s/\(.\{148\}\)..*/\1/
12594t more2
12595s/["\\]/\\&/g; s/^/"/; s/$/"/
12596p
12597b
12598:more2
12599s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12600p
12601g
12602s/.\{148\}//
12603t delim
12604' <conf$$subs.awk | sed '
12605/^[^""]/{
12606  N
12607  s/\n//
12608}
12609' >>$CONFIG_STATUS || ac_write_fail=1
12610rm -f conf$$subs.awk
12611cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12612_ACAWK
12613cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12614  for (key in S) S_is_set[key] = 1
12615  FS = ""
12616
12617}
12618{
12619  line = $ 0
12620  nfields = split(line, field, "@")
12621  substed = 0
12622  len = length(field[1])
12623  for (i = 2; i < nfields; i++) {
12624    key = field[i]
12625    keylen = length(key)
12626    if (S_is_set[key]) {
12627      value = S[key]
12628      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12629      len += length(value) + length(field[++i])
12630      substed = 1
12631    } else
12632      len += 1 + keylen
12633  }
12634
12635  print line
12636}
12637
12638_ACAWK
12639_ACEOF
12640cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12641if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12642  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12643else
12644  cat
12645fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12646  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12647_ACEOF
12648
12649# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12650# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12651# trailing colons and then remove the whole line if VPATH becomes empty
12652# (actually we leave an empty line to preserve line numbers).
12653if test "x$srcdir" = x.; then
12654  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12655h
12656s///
12657s/^/:/
12658s/[	 ]*$/:/
12659s/:\$(srcdir):/:/g
12660s/:\${srcdir}:/:/g
12661s/:@srcdir@:/:/g
12662s/^:*//
12663s/:*$//
12664x
12665s/\(=[	 ]*\).*/\1/
12666G
12667s/\n//
12668s/^[^=]*=[	 ]*$//
12669}'
12670fi
12671
12672cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12673fi # test -n "$CONFIG_FILES"
12674
12675# Set up the scripts for CONFIG_HEADERS section.
12676# No need to generate them if there are no CONFIG_HEADERS.
12677# This happens for instance with `./config.status Makefile'.
12678if test -n "$CONFIG_HEADERS"; then
12679cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12680BEGIN {
12681_ACEOF
12682
12683# Transform confdefs.h into an awk script `defines.awk', embedded as
12684# here-document in config.status, that substitutes the proper values into
12685# config.h.in to produce config.h.
12686
12687# Create a delimiter string that does not exist in confdefs.h, to ease
12688# handling of long lines.
12689ac_delim='%!_!# '
12690for ac_last_try in false false :; do
12691  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12692  if test -z "$ac_tt"; then
12693    break
12694  elif $ac_last_try; then
12695    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12696  else
12697    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12698  fi
12699done
12700
12701# For the awk script, D is an array of macro values keyed by name,
12702# likewise P contains macro parameters if any.  Preserve backslash
12703# newline sequences.
12704
12705ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12706sed -n '
12707s/.\{148\}/&'"$ac_delim"'/g
12708t rset
12709:rset
12710s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12711t def
12712d
12713:def
12714s/\\$//
12715t bsnl
12716s/["\\]/\\&/g
12717s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12718D["\1"]=" \3"/p
12719s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12720d
12721:bsnl
12722s/["\\]/\\&/g
12723s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12724D["\1"]=" \3\\\\\\n"\\/p
12725t cont
12726s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12727t cont
12728d
12729:cont
12730n
12731s/.\{148\}/&'"$ac_delim"'/g
12732t clear
12733:clear
12734s/\\$//
12735t bsnlc
12736s/["\\]/\\&/g; s/^/"/; s/$/"/p
12737d
12738:bsnlc
12739s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12740b cont
12741' <confdefs.h | sed '
12742s/'"$ac_delim"'/"\\\
12743"/g' >>$CONFIG_STATUS || ac_write_fail=1
12744
12745cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12746  for (key in D) D_is_set[key] = 1
12747  FS = ""
12748}
12749/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12750  line = \$ 0
12751  split(line, arg, " ")
12752  if (arg[1] == "#") {
12753    defundef = arg[2]
12754    mac1 = arg[3]
12755  } else {
12756    defundef = substr(arg[1], 2)
12757    mac1 = arg[2]
12758  }
12759  split(mac1, mac2, "(") #)
12760  macro = mac2[1]
12761  prefix = substr(line, 1, index(line, defundef) - 1)
12762  if (D_is_set[macro]) {
12763    # Preserve the white space surrounding the "#".
12764    print prefix "define", macro P[macro] D[macro]
12765    next
12766  } else {
12767    # Replace #undef with comments.  This is necessary, for example,
12768    # in the case of _POSIX_SOURCE, which is predefined and required
12769    # on some systems where configure will not decide to define it.
12770    if (defundef == "undef") {
12771      print "/*", prefix defundef, macro, "*/"
12772      next
12773    }
12774  }
12775}
12776{ print }
12777_ACAWK
12778_ACEOF
12779cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12780  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12781fi # test -n "$CONFIG_HEADERS"
12782
12783
12784eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
12785shift
12786for ac_tag
12787do
12788  case $ac_tag in
12789  :[FHLC]) ac_mode=$ac_tag; continue;;
12790  esac
12791  case $ac_mode$ac_tag in
12792  :[FHL]*:*);;
12793  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12794  :[FH]-) ac_tag=-:-;;
12795  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12796  esac
12797  ac_save_IFS=$IFS
12798  IFS=:
12799  set x $ac_tag
12800  IFS=$ac_save_IFS
12801  shift
12802  ac_file=$1
12803  shift
12804
12805  case $ac_mode in
12806  :L) ac_source=$1;;
12807  :[FH])
12808    ac_file_inputs=
12809    for ac_f
12810    do
12811      case $ac_f in
12812      -) ac_f="$ac_tmp/stdin";;
12813      *) # Look for the file first in the build tree, then in the source tree
12814	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12815	 # because $ac_f cannot contain `:'.
12816	 test -f "$ac_f" ||
12817	   case $ac_f in
12818	   [\\/$]*) false;;
12819	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12820	   esac ||
12821	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12822      esac
12823      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12824      as_fn_append ac_file_inputs " '$ac_f'"
12825    done
12826
12827    # Let's still pretend it is `configure' which instantiates (i.e., don't
12828    # use $as_me), people would be surprised to read:
12829    #    /* config.h.  Generated by config.status.  */
12830    configure_input='Generated from '`
12831	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12832	`' by configure.'
12833    if test x"$ac_file" != x-; then
12834      configure_input="$ac_file.  $configure_input"
12835      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12836$as_echo "$as_me: creating $ac_file" >&6;}
12837    fi
12838    # Neutralize special characters interpreted by sed in replacement strings.
12839    case $configure_input in #(
12840    *\&* | *\|* | *\\* )
12841       ac_sed_conf_input=`$as_echo "$configure_input" |
12842       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12843    *) ac_sed_conf_input=$configure_input;;
12844    esac
12845
12846    case $ac_tag in
12847    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12848      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12849    esac
12850    ;;
12851  esac
12852
12853  ac_dir=`$as_dirname -- "$ac_file" ||
12854$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12855	 X"$ac_file" : 'X\(//\)[^/]' \| \
12856	 X"$ac_file" : 'X\(//\)$' \| \
12857	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12858$as_echo X"$ac_file" |
12859    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12860	    s//\1/
12861	    q
12862	  }
12863	  /^X\(\/\/\)[^/].*/{
12864	    s//\1/
12865	    q
12866	  }
12867	  /^X\(\/\/\)$/{
12868	    s//\1/
12869	    q
12870	  }
12871	  /^X\(\/\).*/{
12872	    s//\1/
12873	    q
12874	  }
12875	  s/.*/./; q'`
12876  as_dir="$ac_dir"; as_fn_mkdir_p
12877  ac_builddir=.
12878
12879case "$ac_dir" in
12880.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12881*)
12882  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12883  # A ".." for each directory in $ac_dir_suffix.
12884  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12885  case $ac_top_builddir_sub in
12886  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12887  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12888  esac ;;
12889esac
12890ac_abs_top_builddir=$ac_pwd
12891ac_abs_builddir=$ac_pwd$ac_dir_suffix
12892# for backward compatibility:
12893ac_top_builddir=$ac_top_build_prefix
12894
12895case $srcdir in
12896  .)  # We are building in place.
12897    ac_srcdir=.
12898    ac_top_srcdir=$ac_top_builddir_sub
12899    ac_abs_top_srcdir=$ac_pwd ;;
12900  [\\/]* | ?:[\\/]* )  # Absolute name.
12901    ac_srcdir=$srcdir$ac_dir_suffix;
12902    ac_top_srcdir=$srcdir
12903    ac_abs_top_srcdir=$srcdir ;;
12904  *) # Relative name.
12905    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12906    ac_top_srcdir=$ac_top_build_prefix$srcdir
12907    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12908esac
12909ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12910
12911
12912  case $ac_mode in
12913  :F)
12914  #
12915  # CONFIG_FILE
12916  #
12917
12918_ACEOF
12919
12920cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12921# If the template does not know about datarootdir, expand it.
12922# FIXME: This hack should be removed a few years after 2.60.
12923ac_datarootdir_hack=; ac_datarootdir_seen=
12924ac_sed_dataroot='
12925/datarootdir/ {
12926  p
12927  q
12928}
12929/@datadir@/p
12930/@docdir@/p
12931/@infodir@/p
12932/@localedir@/p
12933/@mandir@/p'
12934case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12935*datarootdir*) ac_datarootdir_seen=yes;;
12936*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12937  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12938$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12939_ACEOF
12940cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12941  ac_datarootdir_hack='
12942  s&@datadir@&$datadir&g
12943  s&@docdir@&$docdir&g
12944  s&@infodir@&$infodir&g
12945  s&@localedir@&$localedir&g
12946  s&@mandir@&$mandir&g
12947  s&\\\${datarootdir}&$datarootdir&g' ;;
12948esac
12949_ACEOF
12950
12951# Neutralize VPATH when `$srcdir' = `.'.
12952# Shell code in configure.ac might set extrasub.
12953# FIXME: do we really want to maintain this feature?
12954cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12955ac_sed_extra="$ac_vpsub
12956$extrasub
12957_ACEOF
12958cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12959:t
12960/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12961s|@configure_input@|$ac_sed_conf_input|;t t
12962s&@top_builddir@&$ac_top_builddir_sub&;t t
12963s&@top_build_prefix@&$ac_top_build_prefix&;t t
12964s&@srcdir@&$ac_srcdir&;t t
12965s&@abs_srcdir@&$ac_abs_srcdir&;t t
12966s&@top_srcdir@&$ac_top_srcdir&;t t
12967s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12968s&@builddir@&$ac_builddir&;t t
12969s&@abs_builddir@&$ac_abs_builddir&;t t
12970s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12971$ac_datarootdir_hack
12972"
12973eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12974  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12975
12976test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12977  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12978  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12979      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12980  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12981which seems to be undefined.  Please make sure it is defined" >&5
12982$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12983which seems to be undefined.  Please make sure it is defined" >&2;}
12984
12985  rm -f "$ac_tmp/stdin"
12986  case $ac_file in
12987  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12988  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12989  esac \
12990  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12991 ;;
12992  :H)
12993  #
12994  # CONFIG_HEADER
12995  #
12996  if test x"$ac_file" != x-; then
12997    {
12998      $as_echo "/* $configure_input  */" \
12999      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13000    } >"$ac_tmp/config.h" \
13001      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13002    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13003      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13004$as_echo "$as_me: $ac_file is unchanged" >&6;}
13005    else
13006      rm -f "$ac_file"
13007      mv "$ac_tmp/config.h" "$ac_file" \
13008	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13009    fi
13010  else
13011    $as_echo "/* $configure_input  */" \
13012      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13013      || as_fn_error $? "could not create -" "$LINENO" 5
13014  fi
13015 ;;
13016
13017
13018  esac
13019
13020done # for ac_tag
13021
13022
13023as_fn_exit 0
13024_ACEOF
13025ac_clean_files=$ac_clean_files_save
13026
13027test $ac_write_fail = 0 ||
13028  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13029
13030
13031# configure is writing to config.log, and then calls config.status.
13032# config.status does its own redirection, appending to config.log.
13033# Unfortunately, on DOS this fails, as config.log is still kept open
13034# by configure, so config.status won't be able to write to it; its
13035# output is simply discarded.  So we exec the FD to /dev/null,
13036# effectively closing config.log, so it can be properly (re)opened and
13037# appended to by config.status.  When coming back to configure, we
13038# need to make the FD available again.
13039if test "$no_create" != yes; then
13040  ac_cs_success=:
13041  ac_config_status_args=
13042  test "$silent" = yes &&
13043    ac_config_status_args="$ac_config_status_args --quiet"
13044  exec 5>/dev/null
13045  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13046  exec 5>>config.log
13047  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13048  # would make configure fail if this is the last instruction.
13049  $ac_cs_success || as_fn_exit 1
13050fi
13051if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13052  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13053$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13054fi
13055
13056
13057echo
13058if test "x$with_debug" = "xyes"; then
13059	echo "debug:             ON"
13060else
13061	echo "debug:             OFF"
13062fi
13063
13064if test "x$with_adplug" = "xno"; then
13065	echo "adplug:            OFF"
13066else
13067	echo "adplug:            ON"
13068fi
13069if test "x$with_mad" = "xno"; then
13070	echo "mad:               OFF"
13071else
13072	echo "mad:               ON"
13073fi
13074echo "sidplayfp:         GIT/builtin"
13075if test "x$with_flac" = "xno"; then
13076	echo "FLAC:              OFF"
13077else
13078	echo "FLAC:              ON"
13079fi
13080if test "x$with_x11" = "xno"; then
13081	echo "x11:               OFF"
13082else
13083	echo "x11:               ON  (UNIFONTDIR="$UNIFONTDIR")"
13084fi
13085if test "x$with_sdl" = "xno"; then
13086	echo "SDL:               OFF"
13087else
13088	echo "SDL:               ON  (UNIFONTDIR="$UNIFONTDIR")"
13089fi
13090if test "x$with_sdl2" = "xno"; then
13091	echo "SDL2:              OFF"
13092else
13093	echo "SDL2:              ON  (UNIFONTDIR="$UNIFONTDIR")"
13094fi
13095if test "x$with_alsa" = "xno"; then
13096	echo "ALSA:              OFF"
13097else
13098	echo "ALSA:              ON"
13099fi
13100if test "x$with_oss" = "xno"; then
13101	echo "OSS:               OFF"
13102else
13103	echo "OSS:               ON"
13104fi
13105if test "x$with_coreaudio" = "xno"; then
13106	echo "CoreAudio:         OFF"
13107else
13108	echo "CoreAudio:         ON"
13109fi
13110if test "$LINUX+set" != "+set"; then
13111	echo "linux cdrom:       ON"
13112	echo "linux framebuffer: ON"
13113else
13114	echo "linux cdrom:       OFF"
13115	echo "linux framebuffer: OFF"
13116fi
13117if test "x$with_lzw" = "xno"; then
13118	echo "include LZW:       OFF"
13119else
13120	echo "include LZW:       ON"
13121fi
13122if test "x$with_lzh" = "xno"; then
13123	echo "include LZH:       OFF"
13124else
13125	echo "include LZH:       ON"
13126fi
13127if test "x$with_dumptools" = "xyes"; then
13128	echo "include DumpTools: ON"
13129else
13130	echo "include DumpTools: OFF"
13131fi
13132