1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
199  if (eval "$as_required") 2>/dev/null; then :
200  as_have_required=yes
201else
202  as_have_required=no
203fi
204  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
205
206else
207  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208as_found=false
209for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210do
211  IFS=$as_save_IFS
212  test -z "$as_dir" && as_dir=.
213  as_found=:
214  case $as_dir in #(
215	 /*)
216	   for as_base in sh bash ksh sh5; do
217	     # Try only shells that exist, to save several forks.
218	     as_shell=$as_dir/$as_base
219	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
221  CONFIG_SHELL=$as_shell as_have_required=yes
222		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
223  break 2
224fi
225fi
226	   done;;
227       esac
228  as_found=false
229done
230$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
231	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
232  CONFIG_SHELL=$SHELL as_have_required=yes
233fi; }
234IFS=$as_save_IFS
235
236
237      if test "x$CONFIG_SHELL" != x; then :
238  export CONFIG_SHELL
239             # We cannot yet assume a decent shell, so we have to provide a
240# neutralization value for shells without unset; and this also
241# works around shells that cannot unset nonexistent variables.
242# Preserve -v and -x to the replacement shell.
243BASH_ENV=/dev/null
244ENV=/dev/null
245(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
246case $- in # ((((
247  *v*x* | *x*v* ) as_opts=-vx ;;
248  *v* ) as_opts=-v ;;
249  *x* ) as_opts=-x ;;
250  * ) as_opts= ;;
251esac
252exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
253# Admittedly, this is quite paranoid, since all the known shells bail
254# out after a failed `exec'.
255$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
256exit 255
257fi
258
259    if test x$as_have_required = xno; then :
260  $as_echo "$0: This script requires a shell more modern than all"
261  $as_echo "$0: the shells that I found on your system."
262  if test x${ZSH_VERSION+set} = xset ; then
263    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
264    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
265  else
266    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
267$0: including any error possibly output before this
268$0: message. Then install a modern shell, or manually run
269$0: the script under such a shell if you do have one."
270  fi
271  exit 1
272fi
273fi
274fi
275SHELL=${CONFIG_SHELL-/bin/sh}
276export SHELL
277# Unset more variables known to interfere with behavior of common tools.
278CLICOLOR_FORCE= GREP_OPTIONS=
279unset CLICOLOR_FORCE GREP_OPTIONS
280
281## --------------------- ##
282## M4sh Shell Functions. ##
283## --------------------- ##
284# as_fn_unset VAR
285# ---------------
286# Portably unset VAR.
287as_fn_unset ()
288{
289  { eval $1=; unset $1;}
290}
291as_unset=as_fn_unset
292
293# as_fn_set_status STATUS
294# -----------------------
295# Set $? to STATUS, without forking.
296as_fn_set_status ()
297{
298  return $1
299} # as_fn_set_status
300
301# as_fn_exit STATUS
302# -----------------
303# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
304as_fn_exit ()
305{
306  set +e
307  as_fn_set_status $1
308  exit $1
309} # as_fn_exit
310
311# as_fn_mkdir_p
312# -------------
313# Create "$as_dir" as a directory, including parents if necessary.
314as_fn_mkdir_p ()
315{
316
317  case $as_dir in #(
318  -*) as_dir=./$as_dir;;
319  esac
320  test -d "$as_dir" || eval $as_mkdir_p || {
321    as_dirs=
322    while :; do
323      case $as_dir in #(
324      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
325      *) as_qdir=$as_dir;;
326      esac
327      as_dirs="'$as_qdir' $as_dirs"
328      as_dir=`$as_dirname -- "$as_dir" ||
329$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
330	 X"$as_dir" : 'X\(//\)[^/]' \| \
331	 X"$as_dir" : 'X\(//\)$' \| \
332	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
333$as_echo X"$as_dir" |
334    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335	    s//\1/
336	    q
337	  }
338	  /^X\(\/\/\)[^/].*/{
339	    s//\1/
340	    q
341	  }
342	  /^X\(\/\/\)$/{
343	    s//\1/
344	    q
345	  }
346	  /^X\(\/\).*/{
347	    s//\1/
348	    q
349	  }
350	  s/.*/./; q'`
351      test -d "$as_dir" && break
352    done
353    test -z "$as_dirs" || eval "mkdir $as_dirs"
354  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
355
356
357} # as_fn_mkdir_p
358
359# as_fn_executable_p FILE
360# -----------------------
361# Test if FILE is an executable regular file.
362as_fn_executable_p ()
363{
364  test -f "$1" && test -x "$1"
365} # as_fn_executable_p
366# as_fn_append VAR VALUE
367# ----------------------
368# Append the text in VALUE to the end of the definition contained in VAR. Take
369# advantage of any shell optimizations that allow amortized linear growth over
370# repeated appends, instead of the typical quadratic growth present in naive
371# implementations.
372if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
373  eval 'as_fn_append ()
374  {
375    eval $1+=\$2
376  }'
377else
378  as_fn_append ()
379  {
380    eval $1=\$$1\$2
381  }
382fi # as_fn_append
383
384# as_fn_arith ARG...
385# ------------------
386# Perform arithmetic evaluation on the ARGs, and store the result in the
387# global $as_val. Take advantage of shells that can avoid forks. The arguments
388# must be portable across $(()) and expr.
389if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
390  eval 'as_fn_arith ()
391  {
392    as_val=$(( $* ))
393  }'
394else
395  as_fn_arith ()
396  {
397    as_val=`expr "$@" || test $? -eq 1`
398  }
399fi # as_fn_arith
400
401
402# as_fn_error STATUS ERROR [LINENO LOG_FD]
403# ----------------------------------------
404# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
405# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
406# script with STATUS, using 1 if that was 0.
407as_fn_error ()
408{
409  as_status=$1; test $as_status -eq 0 && as_status=1
410  if test "$4"; then
411    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
412    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
413  fi
414  $as_echo "$as_me: error: $2" >&2
415  as_fn_exit $as_status
416} # as_fn_error
417
418if expr a : '\(a\)' >/dev/null 2>&1 &&
419   test "X`expr 00001 : '.*\(...\)'`" = X001; then
420  as_expr=expr
421else
422  as_expr=false
423fi
424
425if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
426  as_basename=basename
427else
428  as_basename=false
429fi
430
431if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
432  as_dirname=dirname
433else
434  as_dirname=false
435fi
436
437as_me=`$as_basename -- "$0" ||
438$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
439	 X"$0" : 'X\(//\)$' \| \
440	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
441$as_echo X/"$0" |
442    sed '/^.*\/\([^/][^/]*\)\/*$/{
443	    s//\1/
444	    q
445	  }
446	  /^X\/\(\/\/\)$/{
447	    s//\1/
448	    q
449	  }
450	  /^X\/\(\/\).*/{
451	    s//\1/
452	    q
453	  }
454	  s/.*/./; q'`
455
456# Avoid depending upon Character Ranges.
457as_cr_letters='abcdefghijklmnopqrstuvwxyz'
458as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
459as_cr_Letters=$as_cr_letters$as_cr_LETTERS
460as_cr_digits='0123456789'
461as_cr_alnum=$as_cr_Letters$as_cr_digits
462
463
464  as_lineno_1=$LINENO as_lineno_1a=$LINENO
465  as_lineno_2=$LINENO as_lineno_2a=$LINENO
466  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
467  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
468  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
469  sed -n '
470    p
471    /[$]LINENO/=
472  ' <$as_myself |
473    sed '
474      s/[$]LINENO.*/&-/
475      t lineno
476      b
477      :lineno
478      N
479      :loop
480      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
481      t loop
482      s/-\n.*//
483    ' >$as_me.lineno &&
484  chmod +x "$as_me.lineno" ||
485    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
486
487  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
488  # already done that, so ensure we don't try to do so again and fall
489  # in an infinite loop.  This has already happened in practice.
490  _as_can_reexec=no; export _as_can_reexec
491  # Don't try to exec as it changes $[0], causing all sort of problems
492  # (the dirname of $[0] is not the place where we might find the
493  # original and so on.  Autoconf is especially sensitive to this).
494  . "./$as_me.lineno"
495  # Exit status is that of the last command.
496  exit
497}
498
499ECHO_C= ECHO_N= ECHO_T=
500case `echo -n x` in #(((((
501-n*)
502  case `echo 'xy\c'` in
503  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
504  xy)  ECHO_C='\c';;
505  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
506       ECHO_T='	';;
507  esac;;
508*)
509  ECHO_N='-n';;
510esac
511
512rm -f conf$$ conf$$.exe conf$$.file
513if test -d conf$$.dir; then
514  rm -f conf$$.dir/conf$$.file
515else
516  rm -f conf$$.dir
517  mkdir conf$$.dir 2>/dev/null
518fi
519if (echo >conf$$.file) 2>/dev/null; then
520  if ln -s conf$$.file conf$$ 2>/dev/null; then
521    as_ln_s='ln -s'
522    # ... but there are two gotchas:
523    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525    # In both cases, we have to default to `cp -pR'.
526    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527      as_ln_s='cp -pR'
528  elif ln conf$$.file conf$$ 2>/dev/null; then
529    as_ln_s=ln
530  else
531    as_ln_s='cp -pR'
532  fi
533else
534  as_ln_s='cp -pR'
535fi
536rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537rmdir conf$$.dir 2>/dev/null
538
539if mkdir -p . 2>/dev/null; then
540  as_mkdir_p='mkdir -p "$as_dir"'
541else
542  test -d ./-p && rmdir ./-p
543  as_mkdir_p=false
544fi
545
546as_test_x='test -x'
547as_executable_p=as_fn_executable_p
548
549# Sed expression to map a string onto a valid CPP name.
550as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551
552# Sed expression to map a string onto a valid variable name.
553as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554
555
556test -n "$DJDIR" || exec 7<&0 </dev/null
557exec 6>&1
558
559# Name of the host.
560# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
561# so uname gets run too.
562ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563
564#
565# Initializations.
566#
567ac_default_prefix=/usr/local
568ac_clean_files=
569ac_config_libobj_dir=.
570LIBOBJS=
571cross_compiling=no
572subdirs=
573MFLAGS=
574MAKEFLAGS=
575
576# Identity of this package.
577PACKAGE_NAME=
578PACKAGE_TARNAME=
579PACKAGE_VERSION=
580PACKAGE_STRING=
581PACKAGE_BUGREPORT=
582PACKAGE_URL=
583
584ac_unique_file="main.c"
585ac_subst_vars='LTLIBOBJS
586LIBOBJS
587TARGETSINSTALL
588TARGETSCLEAN
589TARGETS
590CURSES
591PKG_CONFIG
592FREETYPE_CONFIG
593SDLCONFIG
594INSTALL_DATA
595INSTALL_SCRIPT
596INSTALL_PROGRAM
597OBJEXT
598EXEEXT
599ac_ct_CC
600CPPFLAGS
601LDFLAGS
602CFLAGS
603CC
604target_alias
605host_alias
606build_alias
607LIBS
608ECHO_T
609ECHO_N
610ECHO_C
611DEFS
612mandir
613localedir
614libdir
615psdir
616pdfdir
617dvidir
618htmldir
619infodir
620docdir
621oldincludedir
622includedir
623localstatedir
624sharedstatedir
625sysconfdir
626datadir
627datarootdir
628libexecdir
629sbindir
630bindir
631program_transform_name
632prefix
633exec_prefix
634PACKAGE_URL
635PACKAGE_BUGREPORT
636PACKAGE_STRING
637PACKAGE_VERSION
638PACKAGE_TARNAME
639PACKAGE_NAME
640PATH_SEPARATOR
641SHELL'
642ac_subst_files=''
643ac_user_opts='
644enable_option_checking
645enable_sdl
646enable_curses
647with_freetype_prefix
648with_freetype_exec_prefix
649'
650      ac_precious_vars='build_alias
651host_alias
652target_alias
653CC
654CFLAGS
655LDFLAGS
656LIBS
657CPPFLAGS'
658
659
660# Initialize some variables set by options.
661ac_init_help=
662ac_init_version=false
663ac_unrecognized_opts=
664ac_unrecognized_sep=
665# The variables have the same names as the options, with
666# dashes changed to underlines.
667cache_file=/dev/null
668exec_prefix=NONE
669no_create=
670no_recursion=
671prefix=NONE
672program_prefix=NONE
673program_suffix=NONE
674program_transform_name=s,x,x,
675silent=
676site=
677srcdir=
678verbose=
679x_includes=NONE
680x_libraries=NONE
681
682# Installation directory options.
683# These are left unexpanded so users can "make install exec_prefix=/foo"
684# and all the variables that are supposed to be based on exec_prefix
685# by default will actually change.
686# Use braces instead of parens because sh, perl, etc. also accept them.
687# (The list follows the same order as the GNU Coding Standards.)
688bindir='${exec_prefix}/bin'
689sbindir='${exec_prefix}/sbin'
690libexecdir='${exec_prefix}/libexec'
691datarootdir='${prefix}/share'
692datadir='${datarootdir}'
693sysconfdir='${prefix}/etc'
694sharedstatedir='${prefix}/com'
695localstatedir='${prefix}/var'
696includedir='${prefix}/include'
697oldincludedir='/usr/include'
698docdir='${datarootdir}/doc/${PACKAGE}'
699infodir='${datarootdir}/info'
700htmldir='${docdir}'
701dvidir='${docdir}'
702pdfdir='${docdir}'
703psdir='${docdir}'
704libdir='${exec_prefix}/lib'
705localedir='${datarootdir}/locale'
706mandir='${datarootdir}/man'
707
708ac_prev=
709ac_dashdash=
710for ac_option
711do
712  # If the previous option needs an argument, assign it.
713  if test -n "$ac_prev"; then
714    eval $ac_prev=\$ac_option
715    ac_prev=
716    continue
717  fi
718
719  case $ac_option in
720  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
721  *=)   ac_optarg= ;;
722  *)    ac_optarg=yes ;;
723  esac
724
725  # Accept the important Cygnus configure options, so we can diagnose typos.
726
727  case $ac_dashdash$ac_option in
728  --)
729    ac_dashdash=yes ;;
730
731  -bindir | --bindir | --bindi | --bind | --bin | --bi)
732    ac_prev=bindir ;;
733  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
734    bindir=$ac_optarg ;;
735
736  -build | --build | --buil | --bui | --bu)
737    ac_prev=build_alias ;;
738  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
739    build_alias=$ac_optarg ;;
740
741  -cache-file | --cache-file | --cache-fil | --cache-fi \
742  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
743    ac_prev=cache_file ;;
744  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
745  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
746    cache_file=$ac_optarg ;;
747
748  --config-cache | -C)
749    cache_file=config.cache ;;
750
751  -datadir | --datadir | --datadi | --datad)
752    ac_prev=datadir ;;
753  -datadir=* | --datadir=* | --datadi=* | --datad=*)
754    datadir=$ac_optarg ;;
755
756  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
757  | --dataroo | --dataro | --datar)
758    ac_prev=datarootdir ;;
759  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
760  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
761    datarootdir=$ac_optarg ;;
762
763  -disable-* | --disable-*)
764    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
765    # Reject names that are not valid shell variable names.
766    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
767      as_fn_error $? "invalid feature name: $ac_useropt"
768    ac_useropt_orig=$ac_useropt
769    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
770    case $ac_user_opts in
771      *"
772"enable_$ac_useropt"
773"*) ;;
774      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
775	 ac_unrecognized_sep=', ';;
776    esac
777    eval enable_$ac_useropt=no ;;
778
779  -docdir | --docdir | --docdi | --doc | --do)
780    ac_prev=docdir ;;
781  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
782    docdir=$ac_optarg ;;
783
784  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
785    ac_prev=dvidir ;;
786  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
787    dvidir=$ac_optarg ;;
788
789  -enable-* | --enable-*)
790    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
791    # Reject names that are not valid shell variable names.
792    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
793      as_fn_error $? "invalid feature name: $ac_useropt"
794    ac_useropt_orig=$ac_useropt
795    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
796    case $ac_user_opts in
797      *"
798"enable_$ac_useropt"
799"*) ;;
800      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
801	 ac_unrecognized_sep=', ';;
802    esac
803    eval enable_$ac_useropt=\$ac_optarg ;;
804
805  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
806  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
807  | --exec | --exe | --ex)
808    ac_prev=exec_prefix ;;
809  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
810  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
811  | --exec=* | --exe=* | --ex=*)
812    exec_prefix=$ac_optarg ;;
813
814  -gas | --gas | --ga | --g)
815    # Obsolete; use --with-gas.
816    with_gas=yes ;;
817
818  -help | --help | --hel | --he | -h)
819    ac_init_help=long ;;
820  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
821    ac_init_help=recursive ;;
822  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
823    ac_init_help=short ;;
824
825  -host | --host | --hos | --ho)
826    ac_prev=host_alias ;;
827  -host=* | --host=* | --hos=* | --ho=*)
828    host_alias=$ac_optarg ;;
829
830  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
831    ac_prev=htmldir ;;
832  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
833  | --ht=*)
834    htmldir=$ac_optarg ;;
835
836  -includedir | --includedir | --includedi | --included | --include \
837  | --includ | --inclu | --incl | --inc)
838    ac_prev=includedir ;;
839  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
840  | --includ=* | --inclu=* | --incl=* | --inc=*)
841    includedir=$ac_optarg ;;
842
843  -infodir | --infodir | --infodi | --infod | --info | --inf)
844    ac_prev=infodir ;;
845  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
846    infodir=$ac_optarg ;;
847
848  -libdir | --libdir | --libdi | --libd)
849    ac_prev=libdir ;;
850  -libdir=* | --libdir=* | --libdi=* | --libd=*)
851    libdir=$ac_optarg ;;
852
853  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
854  | --libexe | --libex | --libe)
855    ac_prev=libexecdir ;;
856  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
857  | --libexe=* | --libex=* | --libe=*)
858    libexecdir=$ac_optarg ;;
859
860  -localedir | --localedir | --localedi | --localed | --locale)
861    ac_prev=localedir ;;
862  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
863    localedir=$ac_optarg ;;
864
865  -localstatedir | --localstatedir | --localstatedi | --localstated \
866  | --localstate | --localstat | --localsta | --localst | --locals)
867    ac_prev=localstatedir ;;
868  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
869  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
870    localstatedir=$ac_optarg ;;
871
872  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
873    ac_prev=mandir ;;
874  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
875    mandir=$ac_optarg ;;
876
877  -nfp | --nfp | --nf)
878    # Obsolete; use --without-fp.
879    with_fp=no ;;
880
881  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
882  | --no-cr | --no-c | -n)
883    no_create=yes ;;
884
885  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
886  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
887    no_recursion=yes ;;
888
889  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
890  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
891  | --oldin | --oldi | --old | --ol | --o)
892    ac_prev=oldincludedir ;;
893  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
894  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
895  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
896    oldincludedir=$ac_optarg ;;
897
898  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
899    ac_prev=prefix ;;
900  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
901    prefix=$ac_optarg ;;
902
903  -program-prefix | --program-prefix | --program-prefi | --program-pref \
904  | --program-pre | --program-pr | --program-p)
905    ac_prev=program_prefix ;;
906  -program-prefix=* | --program-prefix=* | --program-prefi=* \
907  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
908    program_prefix=$ac_optarg ;;
909
910  -program-suffix | --program-suffix | --program-suffi | --program-suff \
911  | --program-suf | --program-su | --program-s)
912    ac_prev=program_suffix ;;
913  -program-suffix=* | --program-suffix=* | --program-suffi=* \
914  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
915    program_suffix=$ac_optarg ;;
916
917  -program-transform-name | --program-transform-name \
918  | --program-transform-nam | --program-transform-na \
919  | --program-transform-n | --program-transform- \
920  | --program-transform | --program-transfor \
921  | --program-transfo | --program-transf \
922  | --program-trans | --program-tran \
923  | --progr-tra | --program-tr | --program-t)
924    ac_prev=program_transform_name ;;
925  -program-transform-name=* | --program-transform-name=* \
926  | --program-transform-nam=* | --program-transform-na=* \
927  | --program-transform-n=* | --program-transform-=* \
928  | --program-transform=* | --program-transfor=* \
929  | --program-transfo=* | --program-transf=* \
930  | --program-trans=* | --program-tran=* \
931  | --progr-tra=* | --program-tr=* | --program-t=*)
932    program_transform_name=$ac_optarg ;;
933
934  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
935    ac_prev=pdfdir ;;
936  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
937    pdfdir=$ac_optarg ;;
938
939  -psdir | --psdir | --psdi | --psd | --ps)
940    ac_prev=psdir ;;
941  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
942    psdir=$ac_optarg ;;
943
944  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
945  | -silent | --silent | --silen | --sile | --sil)
946    silent=yes ;;
947
948  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
949    ac_prev=sbindir ;;
950  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
951  | --sbi=* | --sb=*)
952    sbindir=$ac_optarg ;;
953
954  -sharedstatedir | --sharedstatedir | --sharedstatedi \
955  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
956  | --sharedst | --shareds | --shared | --share | --shar \
957  | --sha | --sh)
958    ac_prev=sharedstatedir ;;
959  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
960  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
961  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
962  | --sha=* | --sh=*)
963    sharedstatedir=$ac_optarg ;;
964
965  -site | --site | --sit)
966    ac_prev=site ;;
967  -site=* | --site=* | --sit=*)
968    site=$ac_optarg ;;
969
970  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
971    ac_prev=srcdir ;;
972  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
973    srcdir=$ac_optarg ;;
974
975  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
976  | --syscon | --sysco | --sysc | --sys | --sy)
977    ac_prev=sysconfdir ;;
978  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
979  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
980    sysconfdir=$ac_optarg ;;
981
982  -target | --target | --targe | --targ | --tar | --ta | --t)
983    ac_prev=target_alias ;;
984  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
985    target_alias=$ac_optarg ;;
986
987  -v | -verbose | --verbose | --verbos | --verbo | --verb)
988    verbose=yes ;;
989
990  -version | --version | --versio | --versi | --vers | -V)
991    ac_init_version=: ;;
992
993  -with-* | --with-*)
994    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
995    # Reject names that are not valid shell variable names.
996    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997      as_fn_error $? "invalid package name: $ac_useropt"
998    ac_useropt_orig=$ac_useropt
999    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000    case $ac_user_opts in
1001      *"
1002"with_$ac_useropt"
1003"*) ;;
1004      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1005	 ac_unrecognized_sep=', ';;
1006    esac
1007    eval with_$ac_useropt=\$ac_optarg ;;
1008
1009  -without-* | --without-*)
1010    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1011    # Reject names that are not valid shell variable names.
1012    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1013      as_fn_error $? "invalid package name: $ac_useropt"
1014    ac_useropt_orig=$ac_useropt
1015    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016    case $ac_user_opts in
1017      *"
1018"with_$ac_useropt"
1019"*) ;;
1020      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1021	 ac_unrecognized_sep=', ';;
1022    esac
1023    eval with_$ac_useropt=no ;;
1024
1025  --x)
1026    # Obsolete; use --with-x.
1027    with_x=yes ;;
1028
1029  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1030  | --x-incl | --x-inc | --x-in | --x-i)
1031    ac_prev=x_includes ;;
1032  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1033  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1034    x_includes=$ac_optarg ;;
1035
1036  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1037  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1038    ac_prev=x_libraries ;;
1039  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1040  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1041    x_libraries=$ac_optarg ;;
1042
1043  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1044Try \`$0 --help' for more information"
1045    ;;
1046
1047  *=*)
1048    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1049    # Reject names that are not valid shell variable names.
1050    case $ac_envvar in #(
1051      '' | [0-9]* | *[!_$as_cr_alnum]* )
1052      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1053    esac
1054    eval $ac_envvar=\$ac_optarg
1055    export $ac_envvar ;;
1056
1057  *)
1058    # FIXME: should be removed in autoconf 3.0.
1059    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1060    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1061      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1062    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1063    ;;
1064
1065  esac
1066done
1067
1068if test -n "$ac_prev"; then
1069  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1070  as_fn_error $? "missing argument to $ac_option"
1071fi
1072
1073if test -n "$ac_unrecognized_opts"; then
1074  case $enable_option_checking in
1075    no) ;;
1076    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1077    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1078  esac
1079fi
1080
1081# Check all directory arguments for consistency.
1082for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1083		datadir sysconfdir sharedstatedir localstatedir includedir \
1084		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1085		libdir localedir mandir
1086do
1087  eval ac_val=\$$ac_var
1088  # Remove trailing slashes.
1089  case $ac_val in
1090    */ )
1091      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1092      eval $ac_var=\$ac_val;;
1093  esac
1094  # Be sure to have absolute directory names.
1095  case $ac_val in
1096    [\\/$]* | ?:[\\/]* )  continue;;
1097    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1098  esac
1099  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1100done
1101
1102# There might be people who depend on the old broken behavior: `$host'
1103# used to hold the argument of --host etc.
1104# FIXME: To remove some day.
1105build=$build_alias
1106host=$host_alias
1107target=$target_alias
1108
1109# FIXME: To remove some day.
1110if test "x$host_alias" != x; then
1111  if test "x$build_alias" = x; then
1112    cross_compiling=maybe
1113  elif test "x$build_alias" != "x$host_alias"; then
1114    cross_compiling=yes
1115  fi
1116fi
1117
1118ac_tool_prefix=
1119test -n "$host_alias" && ac_tool_prefix=$host_alias-
1120
1121test "$silent" = yes && exec 6>/dev/null
1122
1123
1124ac_pwd=`pwd` && test -n "$ac_pwd" &&
1125ac_ls_di=`ls -di .` &&
1126ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1127  as_fn_error $? "working directory cannot be determined"
1128test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1129  as_fn_error $? "pwd does not report name of working directory"
1130
1131
1132# Find the source files, if location was not specified.
1133if test -z "$srcdir"; then
1134  ac_srcdir_defaulted=yes
1135  # Try the directory containing this script, then the parent directory.
1136  ac_confdir=`$as_dirname -- "$as_myself" ||
1137$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1138	 X"$as_myself" : 'X\(//\)[^/]' \| \
1139	 X"$as_myself" : 'X\(//\)$' \| \
1140	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1141$as_echo X"$as_myself" |
1142    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1143	    s//\1/
1144	    q
1145	  }
1146	  /^X\(\/\/\)[^/].*/{
1147	    s//\1/
1148	    q
1149	  }
1150	  /^X\(\/\/\)$/{
1151	    s//\1/
1152	    q
1153	  }
1154	  /^X\(\/\).*/{
1155	    s//\1/
1156	    q
1157	  }
1158	  s/.*/./; q'`
1159  srcdir=$ac_confdir
1160  if test ! -r "$srcdir/$ac_unique_file"; then
1161    srcdir=..
1162  fi
1163else
1164  ac_srcdir_defaulted=no
1165fi
1166if test ! -r "$srcdir/$ac_unique_file"; then
1167  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1168  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1169fi
1170ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1171ac_abs_confdir=`(
1172	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1173	pwd)`
1174# When building in place, set srcdir=.
1175if test "$ac_abs_confdir" = "$ac_pwd"; then
1176  srcdir=.
1177fi
1178# Remove unnecessary trailing slashes from srcdir.
1179# Double slashes in file names in object file debugging info
1180# mess up M-x gdb in Emacs.
1181case $srcdir in
1182*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1183esac
1184for ac_var in $ac_precious_vars; do
1185  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1186  eval ac_env_${ac_var}_value=\$${ac_var}
1187  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1188  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1189done
1190
1191#
1192# Report the --help message.
1193#
1194if test "$ac_init_help" = "long"; then
1195  # Omit some internal or obsolete options to make the list less imposing.
1196  # This message is too long to be a string in the A/UX 3.1 sh.
1197  cat <<_ACEOF
1198\`configure' configures this package to adapt to many kinds of systems.
1199
1200Usage: $0 [OPTION]... [VAR=VALUE]...
1201
1202To assign environment variables (e.g., CC, CFLAGS...), specify them as
1203VAR=VALUE.  See below for descriptions of some of the useful variables.
1204
1205Defaults for the options are specified in brackets.
1206
1207Configuration:
1208  -h, --help              display this help and exit
1209      --help=short        display options specific to this package
1210      --help=recursive    display the short help of all the included packages
1211  -V, --version           display version information and exit
1212  -q, --quiet, --silent   do not print \`checking ...' messages
1213      --cache-file=FILE   cache test results in FILE [disabled]
1214  -C, --config-cache      alias for \`--cache-file=config.cache'
1215  -n, --no-create         do not create output files
1216      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1217
1218Installation directories:
1219  --prefix=PREFIX         install architecture-independent files in PREFIX
1220                          [$ac_default_prefix]
1221  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1222                          [PREFIX]
1223
1224By default, \`make install' will install all the files in
1225\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1226an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1227for instance \`--prefix=\$HOME'.
1228
1229For better control, use the options below.
1230
1231Fine tuning of the installation directories:
1232  --bindir=DIR            user executables [EPREFIX/bin]
1233  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1234  --libexecdir=DIR        program executables [EPREFIX/libexec]
1235  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1236  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1237  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1238  --libdir=DIR            object code libraries [EPREFIX/lib]
1239  --includedir=DIR        C header files [PREFIX/include]
1240  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1241  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1242  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1243  --infodir=DIR           info documentation [DATAROOTDIR/info]
1244  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1245  --mandir=DIR            man documentation [DATAROOTDIR/man]
1246  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1247  --htmldir=DIR           html documentation [DOCDIR]
1248  --dvidir=DIR            dvi documentation [DOCDIR]
1249  --pdfdir=DIR            pdf documentation [DOCDIR]
1250  --psdir=DIR             ps documentation [DOCDIR]
1251_ACEOF
1252
1253  cat <<\_ACEOF
1254_ACEOF
1255fi
1256
1257if test -n "$ac_init_help"; then
1258
1259  cat <<\_ACEOF
1260
1261Optional Features:
1262  --disable-option-checking  ignore unrecognized --enable/--with options
1263  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1264  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1265  --enable-sdl            build SDL chroma
1266  --enable-curses         build curses chroma
1267
1268Optional Packages:
1269  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1270  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1271  --with-freetype-prefix=PFX   Prefix where FREETYPE is installed (optional)
1272  --with-freetype-exec-prefix=PFX Exec prefix where FREETYPE is installed (optional)
1273
1274Some influential environment variables:
1275  CC          C compiler command
1276  CFLAGS      C compiler flags
1277  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1278              nonstandard directory <lib dir>
1279  LIBS        libraries to pass to the linker, e.g. -l<library>
1280  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1281              you have headers in a nonstandard directory <include dir>
1282
1283Use these variables to override the choices made by `configure' or to help
1284it to find libraries and programs with nonstandard names/locations.
1285
1286Report bugs to the package provider.
1287_ACEOF
1288ac_status=$?
1289fi
1290
1291if test "$ac_init_help" = "recursive"; then
1292  # If there are subdirs, report their specific --help.
1293  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1294    test -d "$ac_dir" ||
1295      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1296      continue
1297    ac_builddir=.
1298
1299case "$ac_dir" in
1300.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1301*)
1302  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1303  # A ".." for each directory in $ac_dir_suffix.
1304  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1305  case $ac_top_builddir_sub in
1306  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1307  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1308  esac ;;
1309esac
1310ac_abs_top_builddir=$ac_pwd
1311ac_abs_builddir=$ac_pwd$ac_dir_suffix
1312# for backward compatibility:
1313ac_top_builddir=$ac_top_build_prefix
1314
1315case $srcdir in
1316  .)  # We are building in place.
1317    ac_srcdir=.
1318    ac_top_srcdir=$ac_top_builddir_sub
1319    ac_abs_top_srcdir=$ac_pwd ;;
1320  [\\/]* | ?:[\\/]* )  # Absolute name.
1321    ac_srcdir=$srcdir$ac_dir_suffix;
1322    ac_top_srcdir=$srcdir
1323    ac_abs_top_srcdir=$srcdir ;;
1324  *) # Relative name.
1325    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1326    ac_top_srcdir=$ac_top_build_prefix$srcdir
1327    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1328esac
1329ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1330
1331    cd "$ac_dir" || { ac_status=$?; continue; }
1332    # Check for guested configure.
1333    if test -f "$ac_srcdir/configure.gnu"; then
1334      echo &&
1335      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1336    elif test -f "$ac_srcdir/configure"; then
1337      echo &&
1338      $SHELL "$ac_srcdir/configure" --help=recursive
1339    else
1340      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1341    fi || ac_status=$?
1342    cd "$ac_pwd" || { ac_status=$?; break; }
1343  done
1344fi
1345
1346test -n "$ac_init_help" && exit $ac_status
1347if $ac_init_version; then
1348  cat <<\_ACEOF
1349configure
1350generated by GNU Autoconf 2.69
1351
1352Copyright (C) 2012 Free Software Foundation, Inc.
1353This configure script is free software; the Free Software Foundation
1354gives unlimited permission to copy, distribute and modify it.
1355_ACEOF
1356  exit
1357fi
1358
1359## ------------------------ ##
1360## Autoconf initialization. ##
1361## ------------------------ ##
1362
1363# ac_fn_c_try_compile LINENO
1364# --------------------------
1365# Try to compile conftest.$ac_ext, and return whether this succeeded.
1366ac_fn_c_try_compile ()
1367{
1368  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1369  rm -f conftest.$ac_objext
1370  if { { ac_try="$ac_compile"
1371case "(($ac_try" in
1372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1373  *) ac_try_echo=$ac_try;;
1374esac
1375eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1376$as_echo "$ac_try_echo"; } >&5
1377  (eval "$ac_compile") 2>conftest.err
1378  ac_status=$?
1379  if test -s conftest.err; then
1380    grep -v '^ *+' conftest.err >conftest.er1
1381    cat conftest.er1 >&5
1382    mv -f conftest.er1 conftest.err
1383  fi
1384  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1385  test $ac_status = 0; } && {
1386	 test -z "$ac_c_werror_flag" ||
1387	 test ! -s conftest.err
1388       } && test -s conftest.$ac_objext; then :
1389  ac_retval=0
1390else
1391  $as_echo "$as_me: failed program was:" >&5
1392sed 's/^/| /' conftest.$ac_ext >&5
1393
1394	ac_retval=1
1395fi
1396  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1397  as_fn_set_status $ac_retval
1398
1399} # ac_fn_c_try_compile
1400
1401# ac_fn_c_try_link LINENO
1402# -----------------------
1403# Try to link conftest.$ac_ext, and return whether this succeeded.
1404ac_fn_c_try_link ()
1405{
1406  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1407  rm -f conftest.$ac_objext conftest$ac_exeext
1408  if { { ac_try="$ac_link"
1409case "(($ac_try" in
1410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1411  *) ac_try_echo=$ac_try;;
1412esac
1413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1414$as_echo "$ac_try_echo"; } >&5
1415  (eval "$ac_link") 2>conftest.err
1416  ac_status=$?
1417  if test -s conftest.err; then
1418    grep -v '^ *+' conftest.err >conftest.er1
1419    cat conftest.er1 >&5
1420    mv -f conftest.er1 conftest.err
1421  fi
1422  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1423  test $ac_status = 0; } && {
1424	 test -z "$ac_c_werror_flag" ||
1425	 test ! -s conftest.err
1426       } && test -s conftest$ac_exeext && {
1427	 test "$cross_compiling" = yes ||
1428	 test -x conftest$ac_exeext
1429       }; then :
1430  ac_retval=0
1431else
1432  $as_echo "$as_me: failed program was:" >&5
1433sed 's/^/| /' conftest.$ac_ext >&5
1434
1435	ac_retval=1
1436fi
1437  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1438  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1439  # interfere with the next link command; also delete a directory that is
1440  # left behind by Apple's compiler.  We do this before executing the actions.
1441  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1442  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1443  as_fn_set_status $ac_retval
1444
1445} # ac_fn_c_try_link
1446cat >config.log <<_ACEOF
1447This file contains any messages produced by compilers while
1448running configure, to aid debugging if configure makes a mistake.
1449
1450It was created by $as_me, which was
1451generated by GNU Autoconf 2.69.  Invocation command line was
1452
1453  $ $0 $@
1454
1455_ACEOF
1456exec 5>>config.log
1457{
1458cat <<_ASUNAME
1459## --------- ##
1460## Platform. ##
1461## --------- ##
1462
1463hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1464uname -m = `(uname -m) 2>/dev/null || echo unknown`
1465uname -r = `(uname -r) 2>/dev/null || echo unknown`
1466uname -s = `(uname -s) 2>/dev/null || echo unknown`
1467uname -v = `(uname -v) 2>/dev/null || echo unknown`
1468
1469/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1470/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1471
1472/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1473/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1474/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1475/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1476/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1477/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1478/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1479
1480_ASUNAME
1481
1482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483for as_dir in $PATH
1484do
1485  IFS=$as_save_IFS
1486  test -z "$as_dir" && as_dir=.
1487    $as_echo "PATH: $as_dir"
1488  done
1489IFS=$as_save_IFS
1490
1491} >&5
1492
1493cat >&5 <<_ACEOF
1494
1495
1496## ----------- ##
1497## Core tests. ##
1498## ----------- ##
1499
1500_ACEOF
1501
1502
1503# Keep a trace of the command line.
1504# Strip out --no-create and --no-recursion so they do not pile up.
1505# Strip out --silent because we don't want to record it for future runs.
1506# Also quote any args containing shell meta-characters.
1507# Make two passes to allow for proper duplicate-argument suppression.
1508ac_configure_args=
1509ac_configure_args0=
1510ac_configure_args1=
1511ac_must_keep_next=false
1512for ac_pass in 1 2
1513do
1514  for ac_arg
1515  do
1516    case $ac_arg in
1517    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1518    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1519    | -silent | --silent | --silen | --sile | --sil)
1520      continue ;;
1521    *\'*)
1522      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1523    esac
1524    case $ac_pass in
1525    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1526    2)
1527      as_fn_append ac_configure_args1 " '$ac_arg'"
1528      if test $ac_must_keep_next = true; then
1529	ac_must_keep_next=false # Got value, back to normal.
1530      else
1531	case $ac_arg in
1532	  *=* | --config-cache | -C | -disable-* | --disable-* \
1533	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1534	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1535	  | -with-* | --with-* | -without-* | --without-* | --x)
1536	    case "$ac_configure_args0 " in
1537	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1538	    esac
1539	    ;;
1540	  -* ) ac_must_keep_next=true ;;
1541	esac
1542      fi
1543      as_fn_append ac_configure_args " '$ac_arg'"
1544      ;;
1545    esac
1546  done
1547done
1548{ ac_configure_args0=; unset ac_configure_args0;}
1549{ ac_configure_args1=; unset ac_configure_args1;}
1550
1551# When interrupted or exit'd, cleanup temporary files, and complete
1552# config.log.  We remove comments because anyway the quotes in there
1553# would cause problems or look ugly.
1554# WARNING: Use '\'' to represent an apostrophe within the trap.
1555# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1556trap 'exit_status=$?
1557  # Save into config.log some information that might help in debugging.
1558  {
1559    echo
1560
1561    $as_echo "## ---------------- ##
1562## Cache variables. ##
1563## ---------------- ##"
1564    echo
1565    # The following way of writing the cache mishandles newlines in values,
1566(
1567  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1568    eval ac_val=\$$ac_var
1569    case $ac_val in #(
1570    *${as_nl}*)
1571      case $ac_var in #(
1572      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1573$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1574      esac
1575      case $ac_var in #(
1576      _ | IFS | as_nl) ;; #(
1577      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1578      *) { eval $ac_var=; unset $ac_var;} ;;
1579      esac ;;
1580    esac
1581  done
1582  (set) 2>&1 |
1583    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1584    *${as_nl}ac_space=\ *)
1585      sed -n \
1586	"s/'\''/'\''\\\\'\'''\''/g;
1587	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1588      ;; #(
1589    *)
1590      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1591      ;;
1592    esac |
1593    sort
1594)
1595    echo
1596
1597    $as_echo "## ----------------- ##
1598## Output variables. ##
1599## ----------------- ##"
1600    echo
1601    for ac_var in $ac_subst_vars
1602    do
1603      eval ac_val=\$$ac_var
1604      case $ac_val in
1605      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1606      esac
1607      $as_echo "$ac_var='\''$ac_val'\''"
1608    done | sort
1609    echo
1610
1611    if test -n "$ac_subst_files"; then
1612      $as_echo "## ------------------- ##
1613## File substitutions. ##
1614## ------------------- ##"
1615      echo
1616      for ac_var in $ac_subst_files
1617      do
1618	eval ac_val=\$$ac_var
1619	case $ac_val in
1620	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1621	esac
1622	$as_echo "$ac_var='\''$ac_val'\''"
1623      done | sort
1624      echo
1625    fi
1626
1627    if test -s confdefs.h; then
1628      $as_echo "## ----------- ##
1629## confdefs.h. ##
1630## ----------- ##"
1631      echo
1632      cat confdefs.h
1633      echo
1634    fi
1635    test "$ac_signal" != 0 &&
1636      $as_echo "$as_me: caught signal $ac_signal"
1637    $as_echo "$as_me: exit $exit_status"
1638  } >&5
1639  rm -f core *.core core.conftest.* &&
1640    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1641    exit $exit_status
1642' 0
1643for ac_signal in 1 2 13 15; do
1644  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1645done
1646ac_signal=0
1647
1648# confdefs.h avoids OS command line length limits that DEFS can exceed.
1649rm -f -r conftest* confdefs.h
1650
1651$as_echo "/* confdefs.h */" > confdefs.h
1652
1653# Predefined preprocessor variables.
1654
1655cat >>confdefs.h <<_ACEOF
1656#define PACKAGE_NAME "$PACKAGE_NAME"
1657_ACEOF
1658
1659cat >>confdefs.h <<_ACEOF
1660#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1661_ACEOF
1662
1663cat >>confdefs.h <<_ACEOF
1664#define PACKAGE_VERSION "$PACKAGE_VERSION"
1665_ACEOF
1666
1667cat >>confdefs.h <<_ACEOF
1668#define PACKAGE_STRING "$PACKAGE_STRING"
1669_ACEOF
1670
1671cat >>confdefs.h <<_ACEOF
1672#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1673_ACEOF
1674
1675cat >>confdefs.h <<_ACEOF
1676#define PACKAGE_URL "$PACKAGE_URL"
1677_ACEOF
1678
1679
1680# Let the site file select an alternate cache file if it wants to.
1681# Prefer an explicitly selected file to automatically selected ones.
1682ac_site_file1=NONE
1683ac_site_file2=NONE
1684if test -n "$CONFIG_SITE"; then
1685  # We do not want a PATH search for config.site.
1686  case $CONFIG_SITE in #((
1687    -*)  ac_site_file1=./$CONFIG_SITE;;
1688    */*) ac_site_file1=$CONFIG_SITE;;
1689    *)   ac_site_file1=./$CONFIG_SITE;;
1690  esac
1691elif test "x$prefix" != xNONE; then
1692  ac_site_file1=$prefix/share/config.site
1693  ac_site_file2=$prefix/etc/config.site
1694else
1695  ac_site_file1=$ac_default_prefix/share/config.site
1696  ac_site_file2=$ac_default_prefix/etc/config.site
1697fi
1698for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1699do
1700  test "x$ac_site_file" = xNONE && continue
1701  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1702    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1703$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1704    sed 's/^/| /' "$ac_site_file" >&5
1705    . "$ac_site_file" \
1706      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1707$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1708as_fn_error $? "failed to load site script $ac_site_file
1709See \`config.log' for more details" "$LINENO" 5; }
1710  fi
1711done
1712
1713if test -r "$cache_file"; then
1714  # Some versions of bash will fail to source /dev/null (special files
1715  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1716  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1717    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1718$as_echo "$as_me: loading cache $cache_file" >&6;}
1719    case $cache_file in
1720      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1721      *)                      . "./$cache_file";;
1722    esac
1723  fi
1724else
1725  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1726$as_echo "$as_me: creating cache $cache_file" >&6;}
1727  >$cache_file
1728fi
1729
1730# Check that the precious variables saved in the cache have kept the same
1731# value.
1732ac_cache_corrupted=false
1733for ac_var in $ac_precious_vars; do
1734  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1735  eval ac_new_set=\$ac_env_${ac_var}_set
1736  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1737  eval ac_new_val=\$ac_env_${ac_var}_value
1738  case $ac_old_set,$ac_new_set in
1739    set,)
1740      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1741$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1742      ac_cache_corrupted=: ;;
1743    ,set)
1744      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1745$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1746      ac_cache_corrupted=: ;;
1747    ,);;
1748    *)
1749      if test "x$ac_old_val" != "x$ac_new_val"; then
1750	# differences in whitespace do not lead to failure.
1751	ac_old_val_w=`echo x $ac_old_val`
1752	ac_new_val_w=`echo x $ac_new_val`
1753	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1754	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1755$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1756	  ac_cache_corrupted=:
1757	else
1758	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1759$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1760	  eval $ac_var=\$ac_old_val
1761	fi
1762	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1763$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1764	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1765$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1766      fi;;
1767  esac
1768  # Pass precious variables to config.status.
1769  if test "$ac_new_set" = set; then
1770    case $ac_new_val in
1771    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1772    *) ac_arg=$ac_var=$ac_new_val ;;
1773    esac
1774    case " $ac_configure_args " in
1775      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1776      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1777    esac
1778  fi
1779done
1780if $ac_cache_corrupted; then
1781  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1782$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1783  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1784$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1785  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1786fi
1787## -------------------- ##
1788## Main body of script. ##
1789## -------------------- ##
1790
1791ac_ext=c
1792ac_cpp='$CPP $CPPFLAGS'
1793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1795ac_compiler_gnu=$ac_cv_c_compiler_gnu
1796
1797
1798
1799# Check whether --enable-sdl was given.
1800if test "${enable_sdl+set}" = set; then :
1801  enableval=$enable_sdl; with_sdl=$enableval
1802else
1803  with_sdl=yes
1804fi
1805
1806
1807# Check whether --enable-curses was given.
1808if test "${enable_curses+set}" = set; then :
1809  enableval=$enable_curses; with_curses=$enableval
1810else
1811  with_curses=yes
1812fi
1813
1814
1815ac_ext=c
1816ac_cpp='$CPP $CPPFLAGS'
1817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1819ac_compiler_gnu=$ac_cv_c_compiler_gnu
1820if test -n "$ac_tool_prefix"; then
1821  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1822set dummy ${ac_tool_prefix}gcc; ac_word=$2
1823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1824$as_echo_n "checking for $ac_word... " >&6; }
1825if ${ac_cv_prog_CC+:} false; then :
1826  $as_echo_n "(cached) " >&6
1827else
1828  if test -n "$CC"; then
1829  ac_cv_prog_CC="$CC" # Let the user override the test.
1830else
1831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832for as_dir in $PATH
1833do
1834  IFS=$as_save_IFS
1835  test -z "$as_dir" && as_dir=.
1836    for ac_exec_ext in '' $ac_executable_extensions; do
1837  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1838    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1839    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1840    break 2
1841  fi
1842done
1843  done
1844IFS=$as_save_IFS
1845
1846fi
1847fi
1848CC=$ac_cv_prog_CC
1849if test -n "$CC"; then
1850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1851$as_echo "$CC" >&6; }
1852else
1853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1854$as_echo "no" >&6; }
1855fi
1856
1857
1858fi
1859if test -z "$ac_cv_prog_CC"; then
1860  ac_ct_CC=$CC
1861  # Extract the first word of "gcc", so it can be a program name with args.
1862set dummy gcc; ac_word=$2
1863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1864$as_echo_n "checking for $ac_word... " >&6; }
1865if ${ac_cv_prog_ac_ct_CC+:} false; then :
1866  $as_echo_n "(cached) " >&6
1867else
1868  if test -n "$ac_ct_CC"; then
1869  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1870else
1871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872for as_dir in $PATH
1873do
1874  IFS=$as_save_IFS
1875  test -z "$as_dir" && as_dir=.
1876    for ac_exec_ext in '' $ac_executable_extensions; do
1877  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1878    ac_cv_prog_ac_ct_CC="gcc"
1879    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1880    break 2
1881  fi
1882done
1883  done
1884IFS=$as_save_IFS
1885
1886fi
1887fi
1888ac_ct_CC=$ac_cv_prog_ac_ct_CC
1889if test -n "$ac_ct_CC"; then
1890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1891$as_echo "$ac_ct_CC" >&6; }
1892else
1893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1894$as_echo "no" >&6; }
1895fi
1896
1897  if test "x$ac_ct_CC" = x; then
1898    CC=""
1899  else
1900    case $cross_compiling:$ac_tool_warned in
1901yes:)
1902{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1904ac_tool_warned=yes ;;
1905esac
1906    CC=$ac_ct_CC
1907  fi
1908else
1909  CC="$ac_cv_prog_CC"
1910fi
1911
1912if test -z "$CC"; then
1913          if test -n "$ac_tool_prefix"; then
1914    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1915set dummy ${ac_tool_prefix}cc; ac_word=$2
1916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1917$as_echo_n "checking for $ac_word... " >&6; }
1918if ${ac_cv_prog_CC+:} false; then :
1919  $as_echo_n "(cached) " >&6
1920else
1921  if test -n "$CC"; then
1922  ac_cv_prog_CC="$CC" # Let the user override the test.
1923else
1924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925for as_dir in $PATH
1926do
1927  IFS=$as_save_IFS
1928  test -z "$as_dir" && as_dir=.
1929    for ac_exec_ext in '' $ac_executable_extensions; do
1930  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1931    ac_cv_prog_CC="${ac_tool_prefix}cc"
1932    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1933    break 2
1934  fi
1935done
1936  done
1937IFS=$as_save_IFS
1938
1939fi
1940fi
1941CC=$ac_cv_prog_CC
1942if test -n "$CC"; then
1943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1944$as_echo "$CC" >&6; }
1945else
1946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1947$as_echo "no" >&6; }
1948fi
1949
1950
1951  fi
1952fi
1953if test -z "$CC"; then
1954  # Extract the first word of "cc", so it can be a program name with args.
1955set dummy cc; ac_word=$2
1956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1957$as_echo_n "checking for $ac_word... " >&6; }
1958if ${ac_cv_prog_CC+:} false; then :
1959  $as_echo_n "(cached) " >&6
1960else
1961  if test -n "$CC"; then
1962  ac_cv_prog_CC="$CC" # Let the user override the test.
1963else
1964  ac_prog_rejected=no
1965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1966for as_dir in $PATH
1967do
1968  IFS=$as_save_IFS
1969  test -z "$as_dir" && as_dir=.
1970    for ac_exec_ext in '' $ac_executable_extensions; do
1971  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1972    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1973       ac_prog_rejected=yes
1974       continue
1975     fi
1976    ac_cv_prog_CC="cc"
1977    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1978    break 2
1979  fi
1980done
1981  done
1982IFS=$as_save_IFS
1983
1984if test $ac_prog_rejected = yes; then
1985  # We found a bogon in the path, so make sure we never use it.
1986  set dummy $ac_cv_prog_CC
1987  shift
1988  if test $# != 0; then
1989    # We chose a different compiler from the bogus one.
1990    # However, it has the same basename, so the bogon will be chosen
1991    # first if we set CC to just the basename; use the full file name.
1992    shift
1993    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1994  fi
1995fi
1996fi
1997fi
1998CC=$ac_cv_prog_CC
1999if test -n "$CC"; then
2000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2001$as_echo "$CC" >&6; }
2002else
2003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2004$as_echo "no" >&6; }
2005fi
2006
2007
2008fi
2009if test -z "$CC"; then
2010  if test -n "$ac_tool_prefix"; then
2011  for ac_prog in cl.exe
2012  do
2013    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2014set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2016$as_echo_n "checking for $ac_word... " >&6; }
2017if ${ac_cv_prog_CC+:} false; then :
2018  $as_echo_n "(cached) " >&6
2019else
2020  if test -n "$CC"; then
2021  ac_cv_prog_CC="$CC" # Let the user override the test.
2022else
2023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024for as_dir in $PATH
2025do
2026  IFS=$as_save_IFS
2027  test -z "$as_dir" && as_dir=.
2028    for ac_exec_ext in '' $ac_executable_extensions; do
2029  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2030    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2031    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2032    break 2
2033  fi
2034done
2035  done
2036IFS=$as_save_IFS
2037
2038fi
2039fi
2040CC=$ac_cv_prog_CC
2041if test -n "$CC"; then
2042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2043$as_echo "$CC" >&6; }
2044else
2045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2046$as_echo "no" >&6; }
2047fi
2048
2049
2050    test -n "$CC" && break
2051  done
2052fi
2053if test -z "$CC"; then
2054  ac_ct_CC=$CC
2055  for ac_prog in cl.exe
2056do
2057  # Extract the first word of "$ac_prog", so it can be a program name with args.
2058set dummy $ac_prog; ac_word=$2
2059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2060$as_echo_n "checking for $ac_word... " >&6; }
2061if ${ac_cv_prog_ac_ct_CC+:} false; then :
2062  $as_echo_n "(cached) " >&6
2063else
2064  if test -n "$ac_ct_CC"; then
2065  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2066else
2067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068for as_dir in $PATH
2069do
2070  IFS=$as_save_IFS
2071  test -z "$as_dir" && as_dir=.
2072    for ac_exec_ext in '' $ac_executable_extensions; do
2073  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2074    ac_cv_prog_ac_ct_CC="$ac_prog"
2075    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2076    break 2
2077  fi
2078done
2079  done
2080IFS=$as_save_IFS
2081
2082fi
2083fi
2084ac_ct_CC=$ac_cv_prog_ac_ct_CC
2085if test -n "$ac_ct_CC"; then
2086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2087$as_echo "$ac_ct_CC" >&6; }
2088else
2089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2090$as_echo "no" >&6; }
2091fi
2092
2093
2094  test -n "$ac_ct_CC" && break
2095done
2096
2097  if test "x$ac_ct_CC" = x; then
2098    CC=""
2099  else
2100    case $cross_compiling:$ac_tool_warned in
2101yes:)
2102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2104ac_tool_warned=yes ;;
2105esac
2106    CC=$ac_ct_CC
2107  fi
2108fi
2109
2110fi
2111
2112
2113test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2115as_fn_error $? "no acceptable C compiler found in \$PATH
2116See \`config.log' for more details" "$LINENO" 5; }
2117
2118# Provide some information about the compiler.
2119$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2120set X $ac_compile
2121ac_compiler=$2
2122for ac_option in --version -v -V -qversion; do
2123  { { ac_try="$ac_compiler $ac_option >&5"
2124case "(($ac_try" in
2125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2126  *) ac_try_echo=$ac_try;;
2127esac
2128eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2129$as_echo "$ac_try_echo"; } >&5
2130  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2131  ac_status=$?
2132  if test -s conftest.err; then
2133    sed '10a\
2134... rest of stderr output deleted ...
2135         10q' conftest.err >conftest.er1
2136    cat conftest.er1 >&5
2137  fi
2138  rm -f conftest.er1 conftest.err
2139  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2140  test $ac_status = 0; }
2141done
2142
2143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144/* end confdefs.h.  */
2145
2146int
2147main ()
2148{
2149
2150  ;
2151  return 0;
2152}
2153_ACEOF
2154ac_clean_files_save=$ac_clean_files
2155ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2156# Try to create an executable without -o first, disregard a.out.
2157# It will help us diagnose broken compilers, and finding out an intuition
2158# of exeext.
2159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2160$as_echo_n "checking whether the C compiler works... " >&6; }
2161ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2162
2163# The possible output files:
2164ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2165
2166ac_rmfiles=
2167for ac_file in $ac_files
2168do
2169  case $ac_file in
2170    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2171    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2172  esac
2173done
2174rm -f $ac_rmfiles
2175
2176if { { ac_try="$ac_link_default"
2177case "(($ac_try" in
2178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2179  *) ac_try_echo=$ac_try;;
2180esac
2181eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2182$as_echo "$ac_try_echo"; } >&5
2183  (eval "$ac_link_default") 2>&5
2184  ac_status=$?
2185  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2186  test $ac_status = 0; }; then :
2187  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2188# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2189# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2190# so that the user can short-circuit this test for compilers unknown to
2191# Autoconf.
2192for ac_file in $ac_files ''
2193do
2194  test -f "$ac_file" || continue
2195  case $ac_file in
2196    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2197	;;
2198    [ab].out )
2199	# We found the default executable, but exeext='' is most
2200	# certainly right.
2201	break;;
2202    *.* )
2203	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2204	then :; else
2205	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2206	fi
2207	# We set ac_cv_exeext here because the later test for it is not
2208	# safe: cross compilers may not add the suffix if given an `-o'
2209	# argument, so we may need to know it at that point already.
2210	# Even if this section looks crufty: it has the advantage of
2211	# actually working.
2212	break;;
2213    * )
2214	break;;
2215  esac
2216done
2217test "$ac_cv_exeext" = no && ac_cv_exeext=
2218
2219else
2220  ac_file=''
2221fi
2222if test -z "$ac_file"; then :
2223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2224$as_echo "no" >&6; }
2225$as_echo "$as_me: failed program was:" >&5
2226sed 's/^/| /' conftest.$ac_ext >&5
2227
2228{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2229$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2230as_fn_error 77 "C compiler cannot create executables
2231See \`config.log' for more details" "$LINENO" 5; }
2232else
2233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2234$as_echo "yes" >&6; }
2235fi
2236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2237$as_echo_n "checking for C compiler default output file name... " >&6; }
2238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2239$as_echo "$ac_file" >&6; }
2240ac_exeext=$ac_cv_exeext
2241
2242rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2243ac_clean_files=$ac_clean_files_save
2244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2245$as_echo_n "checking for suffix of executables... " >&6; }
2246if { { ac_try="$ac_link"
2247case "(($ac_try" in
2248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249  *) ac_try_echo=$ac_try;;
2250esac
2251eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2252$as_echo "$ac_try_echo"; } >&5
2253  (eval "$ac_link") 2>&5
2254  ac_status=$?
2255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2256  test $ac_status = 0; }; then :
2257  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2258# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2259# work properly (i.e., refer to `conftest.exe'), while it won't with
2260# `rm'.
2261for ac_file in conftest.exe conftest conftest.*; do
2262  test -f "$ac_file" || continue
2263  case $ac_file in
2264    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2265    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2266	  break;;
2267    * ) break;;
2268  esac
2269done
2270else
2271  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2273as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2274See \`config.log' for more details" "$LINENO" 5; }
2275fi
2276rm -f conftest conftest$ac_cv_exeext
2277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2278$as_echo "$ac_cv_exeext" >&6; }
2279
2280rm -f conftest.$ac_ext
2281EXEEXT=$ac_cv_exeext
2282ac_exeext=$EXEEXT
2283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284/* end confdefs.h.  */
2285#include <stdio.h>
2286int
2287main ()
2288{
2289FILE *f = fopen ("conftest.out", "w");
2290 return ferror (f) || fclose (f) != 0;
2291
2292  ;
2293  return 0;
2294}
2295_ACEOF
2296ac_clean_files="$ac_clean_files conftest.out"
2297# Check that the compiler produces executables we can run.  If not, either
2298# the compiler is broken, or we cross compile.
2299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2300$as_echo_n "checking whether we are cross compiling... " >&6; }
2301if test "$cross_compiling" != yes; then
2302  { { ac_try="$ac_link"
2303case "(($ac_try" in
2304  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2305  *) ac_try_echo=$ac_try;;
2306esac
2307eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2308$as_echo "$ac_try_echo"; } >&5
2309  (eval "$ac_link") 2>&5
2310  ac_status=$?
2311  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2312  test $ac_status = 0; }
2313  if { ac_try='./conftest$ac_cv_exeext'
2314  { { case "(($ac_try" in
2315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2316  *) ac_try_echo=$ac_try;;
2317esac
2318eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2319$as_echo "$ac_try_echo"; } >&5
2320  (eval "$ac_try") 2>&5
2321  ac_status=$?
2322  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2323  test $ac_status = 0; }; }; then
2324    cross_compiling=no
2325  else
2326    if test "$cross_compiling" = maybe; then
2327	cross_compiling=yes
2328    else
2329	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2330$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2331as_fn_error $? "cannot run C compiled programs.
2332If you meant to cross compile, use \`--host'.
2333See \`config.log' for more details" "$LINENO" 5; }
2334    fi
2335  fi
2336fi
2337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2338$as_echo "$cross_compiling" >&6; }
2339
2340rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2341ac_clean_files=$ac_clean_files_save
2342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2343$as_echo_n "checking for suffix of object files... " >&6; }
2344if ${ac_cv_objext+:} false; then :
2345  $as_echo_n "(cached) " >&6
2346else
2347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348/* end confdefs.h.  */
2349
2350int
2351main ()
2352{
2353
2354  ;
2355  return 0;
2356}
2357_ACEOF
2358rm -f conftest.o conftest.obj
2359if { { ac_try="$ac_compile"
2360case "(($ac_try" in
2361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362  *) ac_try_echo=$ac_try;;
2363esac
2364eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2365$as_echo "$ac_try_echo"; } >&5
2366  (eval "$ac_compile") 2>&5
2367  ac_status=$?
2368  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2369  test $ac_status = 0; }; then :
2370  for ac_file in conftest.o conftest.obj conftest.*; do
2371  test -f "$ac_file" || continue;
2372  case $ac_file in
2373    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2374    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2375       break;;
2376  esac
2377done
2378else
2379  $as_echo "$as_me: failed program was:" >&5
2380sed 's/^/| /' conftest.$ac_ext >&5
2381
2382{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2384as_fn_error $? "cannot compute suffix of object files: cannot compile
2385See \`config.log' for more details" "$LINENO" 5; }
2386fi
2387rm -f conftest.$ac_cv_objext conftest.$ac_ext
2388fi
2389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2390$as_echo "$ac_cv_objext" >&6; }
2391OBJEXT=$ac_cv_objext
2392ac_objext=$OBJEXT
2393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2394$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2395if ${ac_cv_c_compiler_gnu+:} false; then :
2396  $as_echo_n "(cached) " >&6
2397else
2398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2399/* end confdefs.h.  */
2400
2401int
2402main ()
2403{
2404#ifndef __GNUC__
2405       choke me
2406#endif
2407
2408  ;
2409  return 0;
2410}
2411_ACEOF
2412if ac_fn_c_try_compile "$LINENO"; then :
2413  ac_compiler_gnu=yes
2414else
2415  ac_compiler_gnu=no
2416fi
2417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2418ac_cv_c_compiler_gnu=$ac_compiler_gnu
2419
2420fi
2421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2422$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2423if test $ac_compiler_gnu = yes; then
2424  GCC=yes
2425else
2426  GCC=
2427fi
2428ac_test_CFLAGS=${CFLAGS+set}
2429ac_save_CFLAGS=$CFLAGS
2430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2431$as_echo_n "checking whether $CC accepts -g... " >&6; }
2432if ${ac_cv_prog_cc_g+:} false; then :
2433  $as_echo_n "(cached) " >&6
2434else
2435  ac_save_c_werror_flag=$ac_c_werror_flag
2436   ac_c_werror_flag=yes
2437   ac_cv_prog_cc_g=no
2438   CFLAGS="-g"
2439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2440/* end confdefs.h.  */
2441
2442int
2443main ()
2444{
2445
2446  ;
2447  return 0;
2448}
2449_ACEOF
2450if ac_fn_c_try_compile "$LINENO"; then :
2451  ac_cv_prog_cc_g=yes
2452else
2453  CFLAGS=""
2454      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2455/* end confdefs.h.  */
2456
2457int
2458main ()
2459{
2460
2461  ;
2462  return 0;
2463}
2464_ACEOF
2465if ac_fn_c_try_compile "$LINENO"; then :
2466
2467else
2468  ac_c_werror_flag=$ac_save_c_werror_flag
2469	 CFLAGS="-g"
2470	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2471/* end confdefs.h.  */
2472
2473int
2474main ()
2475{
2476
2477  ;
2478  return 0;
2479}
2480_ACEOF
2481if ac_fn_c_try_compile "$LINENO"; then :
2482  ac_cv_prog_cc_g=yes
2483fi
2484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2485fi
2486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2487fi
2488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2489   ac_c_werror_flag=$ac_save_c_werror_flag
2490fi
2491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2492$as_echo "$ac_cv_prog_cc_g" >&6; }
2493if test "$ac_test_CFLAGS" = set; then
2494  CFLAGS=$ac_save_CFLAGS
2495elif test $ac_cv_prog_cc_g = yes; then
2496  if test "$GCC" = yes; then
2497    CFLAGS="-g -O2"
2498  else
2499    CFLAGS="-g"
2500  fi
2501else
2502  if test "$GCC" = yes; then
2503    CFLAGS="-O2"
2504  else
2505    CFLAGS=
2506  fi
2507fi
2508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2509$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2510if ${ac_cv_prog_cc_c89+:} false; then :
2511  $as_echo_n "(cached) " >&6
2512else
2513  ac_cv_prog_cc_c89=no
2514ac_save_CC=$CC
2515cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2516/* end confdefs.h.  */
2517#include <stdarg.h>
2518#include <stdio.h>
2519struct stat;
2520/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2521struct buf { int x; };
2522FILE * (*rcsopen) (struct buf *, struct stat *, int);
2523static char *e (p, i)
2524     char **p;
2525     int i;
2526{
2527  return p[i];
2528}
2529static char *f (char * (*g) (char **, int), char **p, ...)
2530{
2531  char *s;
2532  va_list v;
2533  va_start (v,p);
2534  s = g (p, va_arg (v,int));
2535  va_end (v);
2536  return s;
2537}
2538
2539/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2540   function prototypes and stuff, but not '\xHH' hex character constants.
2541   These don't provoke an error unfortunately, instead are silently treated
2542   as 'x'.  The following induces an error, until -std is added to get
2543   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2544   array size at least.  It's necessary to write '\x00'==0 to get something
2545   that's true only with -std.  */
2546int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2547
2548/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2549   inside strings and character constants.  */
2550#define FOO(x) 'x'
2551int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2552
2553int test (int i, double x);
2554struct s1 {int (*f) (int a);};
2555struct s2 {int (*f) (double a);};
2556int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2557int argc;
2558char **argv;
2559int
2560main ()
2561{
2562return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2563  ;
2564  return 0;
2565}
2566_ACEOF
2567for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2568	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2569do
2570  CC="$ac_save_CC $ac_arg"
2571  if ac_fn_c_try_compile "$LINENO"; then :
2572  ac_cv_prog_cc_c89=$ac_arg
2573fi
2574rm -f core conftest.err conftest.$ac_objext
2575  test "x$ac_cv_prog_cc_c89" != "xno" && break
2576done
2577rm -f conftest.$ac_ext
2578CC=$ac_save_CC
2579
2580fi
2581# AC_CACHE_VAL
2582case "x$ac_cv_prog_cc_c89" in
2583  x)
2584    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2585$as_echo "none needed" >&6; } ;;
2586  xno)
2587    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2588$as_echo "unsupported" >&6; } ;;
2589  *)
2590    CC="$CC $ac_cv_prog_cc_c89"
2591    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2592$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2593esac
2594if test "x$ac_cv_prog_cc_c89" != xno; then :
2595
2596fi
2597
2598ac_ext=c
2599ac_cpp='$CPP $CPPFLAGS'
2600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2602ac_compiler_gnu=$ac_cv_c_compiler_gnu
2603
2604ac_aux_dir=
2605for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2606  if test -f "$ac_dir/install-sh"; then
2607    ac_aux_dir=$ac_dir
2608    ac_install_sh="$ac_aux_dir/install-sh -c"
2609    break
2610  elif test -f "$ac_dir/install.sh"; then
2611    ac_aux_dir=$ac_dir
2612    ac_install_sh="$ac_aux_dir/install.sh -c"
2613    break
2614  elif test -f "$ac_dir/shtool"; then
2615    ac_aux_dir=$ac_dir
2616    ac_install_sh="$ac_aux_dir/shtool install -c"
2617    break
2618  fi
2619done
2620if test -z "$ac_aux_dir"; then
2621  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2622fi
2623
2624# These three variables are undocumented and unsupported,
2625# and are intended to be withdrawn in a future Autoconf release.
2626# They can cause serious problems if a builder's source tree is in a directory
2627# whose full name contains unusual characters.
2628ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2629ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2630ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2631
2632
2633# Find a good install program.  We prefer a C program (faster),
2634# so one script is as good as another.  But avoid the broken or
2635# incompatible versions:
2636# SysV /etc/install, /usr/sbin/install
2637# SunOS /usr/etc/install
2638# IRIX /sbin/install
2639# AIX /bin/install
2640# AmigaOS /C/install, which installs bootblocks on floppy discs
2641# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2642# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2643# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2644# OS/2's system install, which has a completely different semantic
2645# ./install, which can be erroneously created by make from ./install.sh.
2646# Reject install programs that cannot install multiple files.
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2648$as_echo_n "checking for a BSD-compatible install... " >&6; }
2649if test -z "$INSTALL"; then
2650if ${ac_cv_path_install+:} false; then :
2651  $as_echo_n "(cached) " >&6
2652else
2653  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654for as_dir in $PATH
2655do
2656  IFS=$as_save_IFS
2657  test -z "$as_dir" && as_dir=.
2658    # Account for people who put trailing slashes in PATH elements.
2659case $as_dir/ in #((
2660  ./ | .// | /[cC]/* | \
2661  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2662  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2663  /usr/ucb/* ) ;;
2664  *)
2665    # OSF1 and SCO ODT 3.0 have their own names for install.
2666    # Don't use installbsd from OSF since it installs stuff as root
2667    # by default.
2668    for ac_prog in ginstall scoinst install; do
2669      for ac_exec_ext in '' $ac_executable_extensions; do
2670	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2671	  if test $ac_prog = install &&
2672	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2673	    # AIX install.  It has an incompatible calling convention.
2674	    :
2675	  elif test $ac_prog = install &&
2676	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2677	    # program-specific install script used by HP pwplus--don't use.
2678	    :
2679	  else
2680	    rm -rf conftest.one conftest.two conftest.dir
2681	    echo one > conftest.one
2682	    echo two > conftest.two
2683	    mkdir conftest.dir
2684	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2685	      test -s conftest.one && test -s conftest.two &&
2686	      test -s conftest.dir/conftest.one &&
2687	      test -s conftest.dir/conftest.two
2688	    then
2689	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2690	      break 3
2691	    fi
2692	  fi
2693	fi
2694      done
2695    done
2696    ;;
2697esac
2698
2699  done
2700IFS=$as_save_IFS
2701
2702rm -rf conftest.one conftest.two conftest.dir
2703
2704fi
2705  if test "${ac_cv_path_install+set}" = set; then
2706    INSTALL=$ac_cv_path_install
2707  else
2708    # As a last resort, use the slow shell script.  Don't cache a
2709    # value for INSTALL within a source directory, because that will
2710    # break other packages using the cache if that directory is
2711    # removed, or if the value is a relative name.
2712    INSTALL=$ac_install_sh
2713  fi
2714fi
2715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2716$as_echo "$INSTALL" >&6; }
2717
2718# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2719# It thinks the first close brace ends the variable substitution.
2720test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2721
2722test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2723
2724test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2725
2726
2727if test "$with_sdl" = "yes"; then
2728    # Extract the first word of "sdl-config", so it can be a program name with args.
2729set dummy sdl-config; ac_word=$2
2730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2731$as_echo_n "checking for $ac_word... " >&6; }
2732if ${ac_cv_path_SDLCONFIG+:} false; then :
2733  $as_echo_n "(cached) " >&6
2734else
2735  case $SDLCONFIG in
2736  [\\/]* | ?:[\\/]*)
2737  ac_cv_path_SDLCONFIG="$SDLCONFIG" # Let the user override the test with a path.
2738  ;;
2739  *)
2740  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741for as_dir in $PATH
2742do
2743  IFS=$as_save_IFS
2744  test -z "$as_dir" && as_dir=.
2745    for ac_exec_ext in '' $ac_executable_extensions; do
2746  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2747    ac_cv_path_SDLCONFIG="$as_dir/$ac_word$ac_exec_ext"
2748    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2749    break 2
2750  fi
2751done
2752  done
2753IFS=$as_save_IFS
2754
2755  test -z "$ac_cv_path_SDLCONFIG" && ac_cv_path_SDLCONFIG="no"
2756  ;;
2757esac
2758fi
2759SDLCONFIG=$ac_cv_path_SDLCONFIG
2760if test -n "$SDLCONFIG"; then
2761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDLCONFIG" >&5
2762$as_echo "$SDLCONFIG" >&6; }
2763else
2764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765$as_echo "no" >&6; }
2766fi
2767
2768
2769    if test "$SDLCONFIG" = "no"; then
2770        as_fn_error $? "*** Unable to find sdl-config" "$LINENO" 5
2771    else
2772        CFLAGS="$CFLAGS "`sdl-config --cflags`
2773        LDFLAGS="$LDFLAGS "`sdl-config --libs`
2774    fi
2775fi
2776
2777if test "$with_sdl" = "yes"; then
2778
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMG_LoadPNG_RW in -lSDL_image" >&5
2780$as_echo_n "checking for IMG_LoadPNG_RW in -lSDL_image... " >&6; }
2781if ${ac_cv_lib_SDL_image_IMG_LoadPNG_RW+:} false; then :
2782  $as_echo_n "(cached) " >&6
2783else
2784  ac_check_lib_save_LIBS=$LIBS
2785LIBS="-lSDL_image  $LIBS"
2786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2787/* end confdefs.h.  */
2788
2789/* Override any GCC internal prototype to avoid an error.
2790   Use char because int might match the return type of a GCC
2791   builtin and then its argument prototype would still apply.  */
2792#ifdef __cplusplus
2793extern "C"
2794#endif
2795char IMG_LoadPNG_RW ();
2796int
2797main ()
2798{
2799return IMG_LoadPNG_RW ();
2800  ;
2801  return 0;
2802}
2803_ACEOF
2804if ac_fn_c_try_link "$LINENO"; then :
2805  ac_cv_lib_SDL_image_IMG_LoadPNG_RW=yes
2806else
2807  ac_cv_lib_SDL_image_IMG_LoadPNG_RW=no
2808fi
2809rm -f core conftest.err conftest.$ac_objext \
2810    conftest$ac_exeext conftest.$ac_ext
2811LIBS=$ac_check_lib_save_LIBS
2812fi
2813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_image_IMG_LoadPNG_RW" >&5
2814$as_echo "$ac_cv_lib_SDL_image_IMG_LoadPNG_RW" >&6; }
2815if test "x$ac_cv_lib_SDL_image_IMG_LoadPNG_RW" = xyes; then :
2816  cat >>confdefs.h <<_ACEOF
2817#define HAVE_LIBSDL_IMAGE 1
2818_ACEOF
2819
2820  LIBS="-lSDL_image $LIBS"
2821
2822fi
2823
2824    if test "$ac_cv_lib_SDL_image_IMG_LoadPNG_RW" != "yes"; then
2825        as_fn_error $? "*** Unable to find SDL_image library with PNG support" "$LINENO" 5
2826    fi
2827fi
2828
2829if test "$with_sdl" = "yes"; then
2830
2831# Check whether --with-freetype-prefix was given.
2832if test "${with_freetype_prefix+set}" = set; then :
2833  withval=$with_freetype_prefix; freetype_prefix="$withval"
2834else
2835  freetype_prefix=""
2836fi
2837
2838
2839# Check whether --with-freetype-exec-prefix was given.
2840if test "${with_freetype_exec_prefix+set}" = set; then :
2841  withval=$with_freetype_exec_prefix; freetype_exec_prefix="$withval"
2842else
2843  freetype_exec_prefix=""
2844fi
2845
2846    if test x$freetype_exec_prefix != x ; then
2847        freetype_args="$freetype_args --exec-prefix=$freetype_exec_prefix"
2848        if test x${FREETYPE_CONFIG+set} != xset ; then
2849            FREETYPE_CONFIG=$freetype_exec_prefix/bin/freetype-config
2850        fi
2851    fi
2852    if test x$freetype_prefix != x ; then
2853        freetype_args="$freetype_args --prefix=$freetype_prefix"
2854        if test x${FREETYPE_CONFIG+set} != xset ; then
2855        FREETYPE_CONFIG=$freetype_prefix/bin/freetype-config
2856        fi
2857    fi
2858    # Extract the first word of "freetype-config", so it can be a program name with args.
2859set dummy freetype-config; ac_word=$2
2860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2861$as_echo_n "checking for $ac_word... " >&6; }
2862if ${ac_cv_path_FREETYPE_CONFIG+:} false; then :
2863  $as_echo_n "(cached) " >&6
2864else
2865  case $FREETYPE_CONFIG in
2866  [\\/]* | ?:[\\/]*)
2867  ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
2868  ;;
2869  *)
2870  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871for as_dir in $PATH
2872do
2873  IFS=$as_save_IFS
2874  test -z "$as_dir" && as_dir=.
2875    for ac_exec_ext in '' $ac_executable_extensions; do
2876  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2877    ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2878    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2879    break 2
2880  fi
2881done
2882  done
2883IFS=$as_save_IFS
2884
2885  test -z "$ac_cv_path_FREETYPE_CONFIG" && ac_cv_path_FREETYPE_CONFIG="no"
2886  ;;
2887esac
2888fi
2889FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
2890if test -n "$FREETYPE_CONFIG"; then
2891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CONFIG" >&5
2892$as_echo "$FREETYPE_CONFIG" >&6; }
2893else
2894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895$as_echo "no" >&6; }
2896fi
2897
2898
2899    no_freetype=""
2900    if test "$FREETYPE_CONFIG" = "no" ; then
2901        # Extract the first word of "pkg-config", so it can be a program name with args.
2902set dummy pkg-config; ac_word=$2
2903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904$as_echo_n "checking for $ac_word... " >&6; }
2905if ${ac_cv_path_PKG_CONFIG+:} false; then :
2906  $as_echo_n "(cached) " >&6
2907else
2908  case $PKG_CONFIG in
2909  [\\/]* | ?:[\\/]*)
2910  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2911  ;;
2912  *)
2913  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914for as_dir in $PATH
2915do
2916  IFS=$as_save_IFS
2917  test -z "$as_dir" && as_dir=.
2918    for ac_exec_ext in '' $ac_executable_extensions; do
2919  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2920    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2921    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922    break 2
2923  fi
2924done
2925  done
2926IFS=$as_save_IFS
2927
2928  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
2929  ;;
2930esac
2931fi
2932PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2933if test -n "$PKG_CONFIG"; then
2934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
2935$as_echo "$PKG_CONFIG" >&6; }
2936else
2937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2938$as_echo "no" >&6; }
2939fi
2940
2941
2942        if test "$PKG_CONFIG" = "no" ; then
2943            as_fn_error $? "*** Unable to find FreeType2 library (http://www.freetype.org/)" "$LINENO" 5
2944        else
2945            CFLAGS="$CFLAGS `$PKG_CONFIG freetype2 --cflags`"
2946            LIBS="$LIBS `$PKG_CONFIG freetype2 --libs`"
2947        fi
2948    else
2949        CFLAGS="$CFLAGS `$FREETYPE_CONFIG $freetypeconf_args --cflags`"
2950        LIBS="$LIBS `$FREETYPE_CONFIG $freetypeconf_args --libs`"
2951    fi
2952fi
2953
2954if test "$with_curses" = "yes"; then
2955    CURSES="ncurses"
2956    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
2957$as_echo_n "checking for initscr in -lncurses... " >&6; }
2958if ${ac_cv_lib_ncurses_initscr+:} false; then :
2959  $as_echo_n "(cached) " >&6
2960else
2961  ac_check_lib_save_LIBS=$LIBS
2962LIBS="-lncurses  $LIBS"
2963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2964/* end confdefs.h.  */
2965
2966/* Override any GCC internal prototype to avoid an error.
2967   Use char because int might match the return type of a GCC
2968   builtin and then its argument prototype would still apply.  */
2969#ifdef __cplusplus
2970extern "C"
2971#endif
2972char initscr ();
2973int
2974main ()
2975{
2976return initscr ();
2977  ;
2978  return 0;
2979}
2980_ACEOF
2981if ac_fn_c_try_link "$LINENO"; then :
2982  ac_cv_lib_ncurses_initscr=yes
2983else
2984  ac_cv_lib_ncurses_initscr=no
2985fi
2986rm -f core conftest.err conftest.$ac_objext \
2987    conftest$ac_exeext conftest.$ac_ext
2988LIBS=$ac_check_lib_save_LIBS
2989fi
2990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
2991$as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
2992if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
2993  cat >>confdefs.h <<_ACEOF
2994#define HAVE_LIBNCURSES 1
2995_ACEOF
2996
2997  LIBS="-lncurses $LIBS"
2998
2999fi
3000
3001    if test "$ac_cv_lib_ncurses_initscr" != "yes"; then
3002        CURSES="curses"
3003        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5
3004$as_echo_n "checking for initscr in -lcurses... " >&6; }
3005if ${ac_cv_lib_curses_initscr+:} false; then :
3006  $as_echo_n "(cached) " >&6
3007else
3008  ac_check_lib_save_LIBS=$LIBS
3009LIBS="-lcurses  $LIBS"
3010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3011/* end confdefs.h.  */
3012
3013/* Override any GCC internal prototype to avoid an error.
3014   Use char because int might match the return type of a GCC
3015   builtin and then its argument prototype would still apply.  */
3016#ifdef __cplusplus
3017extern "C"
3018#endif
3019char initscr ();
3020int
3021main ()
3022{
3023return initscr ();
3024  ;
3025  return 0;
3026}
3027_ACEOF
3028if ac_fn_c_try_link "$LINENO"; then :
3029  ac_cv_lib_curses_initscr=yes
3030else
3031  ac_cv_lib_curses_initscr=no
3032fi
3033rm -f core conftest.err conftest.$ac_objext \
3034    conftest$ac_exeext conftest.$ac_ext
3035LIBS=$ac_check_lib_save_LIBS
3036fi
3037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5
3038$as_echo "$ac_cv_lib_curses_initscr" >&6; }
3039if test "x$ac_cv_lib_curses_initscr" = xyes; then :
3040  cat >>confdefs.h <<_ACEOF
3041#define HAVE_LIBCURSES 1
3042_ACEOF
3043
3044  LIBS="-lcurses $LIBS"
3045
3046fi
3047
3048        if test "$ac_cv_lib_curses_initscr" != "yes"; then
3049            CURSES=""
3050        fi
3051    fi
3052    if test "$CURSES" = ""; then
3053    as_fn_error $? "*** Unable to find curses / ncurses library" "$LINENO" 5
3054    fi
3055fi
3056
3057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5
3058$as_echo_n "checking for library containing gettext... " >&6; }
3059if ${ac_cv_search_gettext+:} false; then :
3060  $as_echo_n "(cached) " >&6
3061else
3062  ac_func_search_save_LIBS=$LIBS
3063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3064/* end confdefs.h.  */
3065
3066/* Override any GCC internal prototype to avoid an error.
3067   Use char because int might match the return type of a GCC
3068   builtin and then its argument prototype would still apply.  */
3069#ifdef __cplusplus
3070extern "C"
3071#endif
3072char gettext ();
3073int
3074main ()
3075{
3076return gettext ();
3077  ;
3078  return 0;
3079}
3080_ACEOF
3081for ac_lib in '' intl; do
3082  if test -z "$ac_lib"; then
3083    ac_res="none required"
3084  else
3085    ac_res=-l$ac_lib
3086    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3087  fi
3088  if ac_fn_c_try_link "$LINENO"; then :
3089  ac_cv_search_gettext=$ac_res
3090fi
3091rm -f core conftest.err conftest.$ac_objext \
3092    conftest$ac_exeext
3093  if ${ac_cv_search_gettext+:} false; then :
3094  break
3095fi
3096done
3097if ${ac_cv_search_gettext+:} false; then :
3098
3099else
3100  ac_cv_search_gettext=no
3101fi
3102rm conftest.$ac_ext
3103LIBS=$ac_func_search_save_LIBS
3104fi
3105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5
3106$as_echo "$ac_cv_search_gettext" >&6; }
3107ac_res=$ac_cv_search_gettext
3108if test "$ac_res" != no; then :
3109  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3110
3111fi
3112
3113
3114TARGETS=""
3115TARGETSCLEAN=""
3116TARGETSINSTALL=""
3117if test "$with_sdl" = "yes"; then
3118TARGETS="$TARGETS chroma-sdl"
3119TARGETSCLEAN="$TARGETSCLEAN clean-sdl";
3120TARGETSINSTALL="$TARGETSINSTALL install-sdl";
3121fi
3122if test "$with_curses" = "yes"; then
3123TARGETS="$TARGETS chroma-curses"
3124TARGETSCLEAN="$TARGETSCLEAN clean-curses";
3125TARGETSINSTALL="$TARGETSINSTALL install-curses";
3126fi
3127if test "$TARGETS" = ""; then
3128as_fn_error $? "*** Nothing to build - specify either --enable-sdl and/or --enable-curses" "$LINENO" 5
3129fi
3130
3131
3132
3133
3134
3135ac_config_files="$ac_config_files Makefile"
3136
3137cat >confcache <<\_ACEOF
3138# This file is a shell script that caches the results of configure
3139# tests run on this system so they can be shared between configure
3140# scripts and configure runs, see configure's option --config-cache.
3141# It is not useful on other systems.  If it contains results you don't
3142# want to keep, you may remove or edit it.
3143#
3144# config.status only pays attention to the cache file if you give it
3145# the --recheck option to rerun configure.
3146#
3147# `ac_cv_env_foo' variables (set or unset) will be overridden when
3148# loading this file, other *unset* `ac_cv_foo' will be assigned the
3149# following values.
3150
3151_ACEOF
3152
3153# The following way of writing the cache mishandles newlines in values,
3154# but we know of no workaround that is simple, portable, and efficient.
3155# So, we kill variables containing newlines.
3156# Ultrix sh set writes to stderr and can't be redirected directly,
3157# and sets the high bit in the cache file unless we assign to the vars.
3158(
3159  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3160    eval ac_val=\$$ac_var
3161    case $ac_val in #(
3162    *${as_nl}*)
3163      case $ac_var in #(
3164      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3165$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3166      esac
3167      case $ac_var in #(
3168      _ | IFS | as_nl) ;; #(
3169      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3170      *) { eval $ac_var=; unset $ac_var;} ;;
3171      esac ;;
3172    esac
3173  done
3174
3175  (set) 2>&1 |
3176    case $as_nl`(ac_space=' '; set) 2>&1` in #(
3177    *${as_nl}ac_space=\ *)
3178      # `set' does not quote correctly, so add quotes: double-quote
3179      # substitution turns \\\\ into \\, and sed turns \\ into \.
3180      sed -n \
3181	"s/'/'\\\\''/g;
3182	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3183      ;; #(
3184    *)
3185      # `set' quotes correctly as required by POSIX, so do not add quotes.
3186      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3187      ;;
3188    esac |
3189    sort
3190) |
3191  sed '
3192     /^ac_cv_env_/b end
3193     t clear
3194     :clear
3195     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3196     t end
3197     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3198     :end' >>confcache
3199if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3200  if test -w "$cache_file"; then
3201    if test "x$cache_file" != "x/dev/null"; then
3202      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3203$as_echo "$as_me: updating cache $cache_file" >&6;}
3204      if test ! -f "$cache_file" || test -h "$cache_file"; then
3205	cat confcache >"$cache_file"
3206      else
3207        case $cache_file in #(
3208        */* | ?:*)
3209	  mv -f confcache "$cache_file"$$ &&
3210	  mv -f "$cache_file"$$ "$cache_file" ;; #(
3211        *)
3212	  mv -f confcache "$cache_file" ;;
3213	esac
3214      fi
3215    fi
3216  else
3217    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3218$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3219  fi
3220fi
3221rm -f confcache
3222
3223test "x$prefix" = xNONE && prefix=$ac_default_prefix
3224# Let make expand exec_prefix.
3225test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3226
3227# Transform confdefs.h into DEFS.
3228# Protect against shell expansion while executing Makefile rules.
3229# Protect against Makefile macro expansion.
3230#
3231# If the first sed substitution is executed (which looks for macros that
3232# take arguments), then branch to the quote section.  Otherwise,
3233# look for a macro that doesn't take arguments.
3234ac_script='
3235:mline
3236/\\$/{
3237 N
3238 s,\\\n,,
3239 b mline
3240}
3241t clear
3242:clear
3243s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
3244t quote
3245s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
3246t quote
3247b any
3248:quote
3249s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3250s/\[/\\&/g
3251s/\]/\\&/g
3252s/\$/$$/g
3253H
3254:any
3255${
3256	g
3257	s/^\n//
3258	s/\n/ /g
3259	p
3260}
3261'
3262DEFS=`sed -n "$ac_script" confdefs.h`
3263
3264
3265ac_libobjs=
3266ac_ltlibobjs=
3267U=
3268for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3269  # 1. Remove the extension, and $U if already installed.
3270  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3271  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3272  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
3273  #    will be set to the directory where LIBOBJS objects are built.
3274  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3275  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3276done
3277LIBOBJS=$ac_libobjs
3278
3279LTLIBOBJS=$ac_ltlibobjs
3280
3281
3282
3283: "${CONFIG_STATUS=./config.status}"
3284ac_write_fail=0
3285ac_clean_files_save=$ac_clean_files
3286ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3287{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3288$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3289as_write_fail=0
3290cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3291#! $SHELL
3292# Generated by $as_me.
3293# Run this file to recreate the current configuration.
3294# Compiler output produced by configure, useful for debugging
3295# configure, is in config.log if it exists.
3296
3297debug=false
3298ac_cs_recheck=false
3299ac_cs_silent=false
3300
3301SHELL=\${CONFIG_SHELL-$SHELL}
3302export SHELL
3303_ASEOF
3304cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3305## -------------------- ##
3306## M4sh Initialization. ##
3307## -------------------- ##
3308
3309# Be more Bourne compatible
3310DUALCASE=1; export DUALCASE # for MKS sh
3311if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3312  emulate sh
3313  NULLCMD=:
3314  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3315  # is contrary to our usage.  Disable this feature.
3316  alias -g '${1+"$@"}'='"$@"'
3317  setopt NO_GLOB_SUBST
3318else
3319  case `(set -o) 2>/dev/null` in #(
3320  *posix*) :
3321    set -o posix ;; #(
3322  *) :
3323     ;;
3324esac
3325fi
3326
3327
3328as_nl='
3329'
3330export as_nl
3331# Printing a long string crashes Solaris 7 /usr/bin/printf.
3332as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3333as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3334as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3335# Prefer a ksh shell builtin over an external printf program on Solaris,
3336# but without wasting forks for bash or zsh.
3337if test -z "$BASH_VERSION$ZSH_VERSION" \
3338    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3339  as_echo='print -r --'
3340  as_echo_n='print -rn --'
3341elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3342  as_echo='printf %s\n'
3343  as_echo_n='printf %s'
3344else
3345  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3346    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3347    as_echo_n='/usr/ucb/echo -n'
3348  else
3349    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3350    as_echo_n_body='eval
3351      arg=$1;
3352      case $arg in #(
3353      *"$as_nl"*)
3354	expr "X$arg" : "X\\(.*\\)$as_nl";
3355	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3356      esac;
3357      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3358    '
3359    export as_echo_n_body
3360    as_echo_n='sh -c $as_echo_n_body as_echo'
3361  fi
3362  export as_echo_body
3363  as_echo='sh -c $as_echo_body as_echo'
3364fi
3365
3366# The user is always right.
3367if test "${PATH_SEPARATOR+set}" != set; then
3368  PATH_SEPARATOR=:
3369  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3370    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3371      PATH_SEPARATOR=';'
3372  }
3373fi
3374
3375
3376# IFS
3377# We need space, tab and new line, in precisely that order.  Quoting is
3378# there to prevent editors from complaining about space-tab.
3379# (If _AS_PATH_WALK were called with IFS unset, it would disable word
3380# splitting by setting IFS to empty value.)
3381IFS=" ""	$as_nl"
3382
3383# Find who we are.  Look in the path if we contain no directory separator.
3384as_myself=
3385case $0 in #((
3386  *[\\/]* ) as_myself=$0 ;;
3387  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388for as_dir in $PATH
3389do
3390  IFS=$as_save_IFS
3391  test -z "$as_dir" && as_dir=.
3392    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3393  done
3394IFS=$as_save_IFS
3395
3396     ;;
3397esac
3398# We did not find ourselves, most probably we were run as `sh COMMAND'
3399# in which case we are not to be found in the path.
3400if test "x$as_myself" = x; then
3401  as_myself=$0
3402fi
3403if test ! -f "$as_myself"; then
3404  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3405  exit 1
3406fi
3407
3408# Unset variables that we do not need and which cause bugs (e.g. in
3409# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
3410# suppresses any "Segmentation fault" message there.  '((' could
3411# trigger a bug in pdksh 5.2.14.
3412for as_var in BASH_ENV ENV MAIL MAILPATH
3413do eval test x\${$as_var+set} = xset \
3414  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3415done
3416PS1='$ '
3417PS2='> '
3418PS4='+ '
3419
3420# NLS nuisances.
3421LC_ALL=C
3422export LC_ALL
3423LANGUAGE=C
3424export LANGUAGE
3425
3426# CDPATH.
3427(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3428
3429
3430# as_fn_error STATUS ERROR [LINENO LOG_FD]
3431# ----------------------------------------
3432# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3433# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3434# script with STATUS, using 1 if that was 0.
3435as_fn_error ()
3436{
3437  as_status=$1; test $as_status -eq 0 && as_status=1
3438  if test "$4"; then
3439    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3440    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3441  fi
3442  $as_echo "$as_me: error: $2" >&2
3443  as_fn_exit $as_status
3444} # as_fn_error
3445
3446
3447# as_fn_set_status STATUS
3448# -----------------------
3449# Set $? to STATUS, without forking.
3450as_fn_set_status ()
3451{
3452  return $1
3453} # as_fn_set_status
3454
3455# as_fn_exit STATUS
3456# -----------------
3457# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3458as_fn_exit ()
3459{
3460  set +e
3461  as_fn_set_status $1
3462  exit $1
3463} # as_fn_exit
3464
3465# as_fn_unset VAR
3466# ---------------
3467# Portably unset VAR.
3468as_fn_unset ()
3469{
3470  { eval $1=; unset $1;}
3471}
3472as_unset=as_fn_unset
3473# as_fn_append VAR VALUE
3474# ----------------------
3475# Append the text in VALUE to the end of the definition contained in VAR. Take
3476# advantage of any shell optimizations that allow amortized linear growth over
3477# repeated appends, instead of the typical quadratic growth present in naive
3478# implementations.
3479if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3480  eval 'as_fn_append ()
3481  {
3482    eval $1+=\$2
3483  }'
3484else
3485  as_fn_append ()
3486  {
3487    eval $1=\$$1\$2
3488  }
3489fi # as_fn_append
3490
3491# as_fn_arith ARG...
3492# ------------------
3493# Perform arithmetic evaluation on the ARGs, and store the result in the
3494# global $as_val. Take advantage of shells that can avoid forks. The arguments
3495# must be portable across $(()) and expr.
3496if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3497  eval 'as_fn_arith ()
3498  {
3499    as_val=$(( $* ))
3500  }'
3501else
3502  as_fn_arith ()
3503  {
3504    as_val=`expr "$@" || test $? -eq 1`
3505  }
3506fi # as_fn_arith
3507
3508
3509if expr a : '\(a\)' >/dev/null 2>&1 &&
3510   test "X`expr 00001 : '.*\(...\)'`" = X001; then
3511  as_expr=expr
3512else
3513  as_expr=false
3514fi
3515
3516if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3517  as_basename=basename
3518else
3519  as_basename=false
3520fi
3521
3522if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3523  as_dirname=dirname
3524else
3525  as_dirname=false
3526fi
3527
3528as_me=`$as_basename -- "$0" ||
3529$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3530	 X"$0" : 'X\(//\)$' \| \
3531	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3532$as_echo X/"$0" |
3533    sed '/^.*\/\([^/][^/]*\)\/*$/{
3534	    s//\1/
3535	    q
3536	  }
3537	  /^X\/\(\/\/\)$/{
3538	    s//\1/
3539	    q
3540	  }
3541	  /^X\/\(\/\).*/{
3542	    s//\1/
3543	    q
3544	  }
3545	  s/.*/./; q'`
3546
3547# Avoid depending upon Character Ranges.
3548as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3549as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3550as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3551as_cr_digits='0123456789'
3552as_cr_alnum=$as_cr_Letters$as_cr_digits
3553
3554ECHO_C= ECHO_N= ECHO_T=
3555case `echo -n x` in #(((((
3556-n*)
3557  case `echo 'xy\c'` in
3558  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
3559  xy)  ECHO_C='\c';;
3560  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
3561       ECHO_T='	';;
3562  esac;;
3563*)
3564  ECHO_N='-n';;
3565esac
3566
3567rm -f conf$$ conf$$.exe conf$$.file
3568if test -d conf$$.dir; then
3569  rm -f conf$$.dir/conf$$.file
3570else
3571  rm -f conf$$.dir
3572  mkdir conf$$.dir 2>/dev/null
3573fi
3574if (echo >conf$$.file) 2>/dev/null; then
3575  if ln -s conf$$.file conf$$ 2>/dev/null; then
3576    as_ln_s='ln -s'
3577    # ... but there are two gotchas:
3578    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3579    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3580    # In both cases, we have to default to `cp -pR'.
3581    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3582      as_ln_s='cp -pR'
3583  elif ln conf$$.file conf$$ 2>/dev/null; then
3584    as_ln_s=ln
3585  else
3586    as_ln_s='cp -pR'
3587  fi
3588else
3589  as_ln_s='cp -pR'
3590fi
3591rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3592rmdir conf$$.dir 2>/dev/null
3593
3594
3595# as_fn_mkdir_p
3596# -------------
3597# Create "$as_dir" as a directory, including parents if necessary.
3598as_fn_mkdir_p ()
3599{
3600
3601  case $as_dir in #(
3602  -*) as_dir=./$as_dir;;
3603  esac
3604  test -d "$as_dir" || eval $as_mkdir_p || {
3605    as_dirs=
3606    while :; do
3607      case $as_dir in #(
3608      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3609      *) as_qdir=$as_dir;;
3610      esac
3611      as_dirs="'$as_qdir' $as_dirs"
3612      as_dir=`$as_dirname -- "$as_dir" ||
3613$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3614	 X"$as_dir" : 'X\(//\)[^/]' \| \
3615	 X"$as_dir" : 'X\(//\)$' \| \
3616	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3617$as_echo X"$as_dir" |
3618    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3619	    s//\1/
3620	    q
3621	  }
3622	  /^X\(\/\/\)[^/].*/{
3623	    s//\1/
3624	    q
3625	  }
3626	  /^X\(\/\/\)$/{
3627	    s//\1/
3628	    q
3629	  }
3630	  /^X\(\/\).*/{
3631	    s//\1/
3632	    q
3633	  }
3634	  s/.*/./; q'`
3635      test -d "$as_dir" && break
3636    done
3637    test -z "$as_dirs" || eval "mkdir $as_dirs"
3638  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3639
3640
3641} # as_fn_mkdir_p
3642if mkdir -p . 2>/dev/null; then
3643  as_mkdir_p='mkdir -p "$as_dir"'
3644else
3645  test -d ./-p && rmdir ./-p
3646  as_mkdir_p=false
3647fi
3648
3649
3650# as_fn_executable_p FILE
3651# -----------------------
3652# Test if FILE is an executable regular file.
3653as_fn_executable_p ()
3654{
3655  test -f "$1" && test -x "$1"
3656} # as_fn_executable_p
3657as_test_x='test -x'
3658as_executable_p=as_fn_executable_p
3659
3660# Sed expression to map a string onto a valid CPP name.
3661as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3662
3663# Sed expression to map a string onto a valid variable name.
3664as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3665
3666
3667exec 6>&1
3668## ----------------------------------- ##
3669## Main body of $CONFIG_STATUS script. ##
3670## ----------------------------------- ##
3671_ASEOF
3672test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3673
3674cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3675# Save the log message, to keep $0 and so on meaningful, and to
3676# report actual input values of CONFIG_FILES etc. instead of their
3677# values after options handling.
3678ac_log="
3679This file was extended by $as_me, which was
3680generated by GNU Autoconf 2.69.  Invocation command line was
3681
3682  CONFIG_FILES    = $CONFIG_FILES
3683  CONFIG_HEADERS  = $CONFIG_HEADERS
3684  CONFIG_LINKS    = $CONFIG_LINKS
3685  CONFIG_COMMANDS = $CONFIG_COMMANDS
3686  $ $0 $@
3687
3688on `(hostname || uname -n) 2>/dev/null | sed 1q`
3689"
3690
3691_ACEOF
3692
3693case $ac_config_files in *"
3694"*) set x $ac_config_files; shift; ac_config_files=$*;;
3695esac
3696
3697
3698
3699cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3700# Files that config.status was made for.
3701config_files="$ac_config_files"
3702
3703_ACEOF
3704
3705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3706ac_cs_usage="\
3707\`$as_me' instantiates files and other configuration actions
3708from templates according to the current configuration.  Unless the files
3709and actions are specified as TAGs, all are instantiated by default.
3710
3711Usage: $0 [OPTION]... [TAG]...
3712
3713  -h, --help       print this help, then exit
3714  -V, --version    print version number and configuration settings, then exit
3715      --config     print configuration, then exit
3716  -q, --quiet, --silent
3717                   do not print progress messages
3718  -d, --debug      don't remove temporary files
3719      --recheck    update $as_me by reconfiguring in the same conditions
3720      --file=FILE[:TEMPLATE]
3721                   instantiate the configuration file FILE
3722
3723Configuration files:
3724$config_files
3725
3726Report bugs to the package provider."
3727
3728_ACEOF
3729cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3730ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3731ac_cs_version="\\
3732config.status
3733configured by $0, generated by GNU Autoconf 2.69,
3734  with options \\"\$ac_cs_config\\"
3735
3736Copyright (C) 2012 Free Software Foundation, Inc.
3737This config.status script is free software; the Free Software Foundation
3738gives unlimited permission to copy, distribute and modify it."
3739
3740ac_pwd='$ac_pwd'
3741srcdir='$srcdir'
3742INSTALL='$INSTALL'
3743test -n "\$AWK" || AWK=awk
3744_ACEOF
3745
3746cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3747# The default lists apply if the user does not specify any file.
3748ac_need_defaults=:
3749while test $# != 0
3750do
3751  case $1 in
3752  --*=?*)
3753    ac_option=`expr "X$1" : 'X\([^=]*\)='`
3754    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3755    ac_shift=:
3756    ;;
3757  --*=)
3758    ac_option=`expr "X$1" : 'X\([^=]*\)='`
3759    ac_optarg=
3760    ac_shift=:
3761    ;;
3762  *)
3763    ac_option=$1
3764    ac_optarg=$2
3765    ac_shift=shift
3766    ;;
3767  esac
3768
3769  case $ac_option in
3770  # Handling of the options.
3771  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3772    ac_cs_recheck=: ;;
3773  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3774    $as_echo "$ac_cs_version"; exit ;;
3775  --config | --confi | --conf | --con | --co | --c )
3776    $as_echo "$ac_cs_config"; exit ;;
3777  --debug | --debu | --deb | --de | --d | -d )
3778    debug=: ;;
3779  --file | --fil | --fi | --f )
3780    $ac_shift
3781    case $ac_optarg in
3782    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3783    '') as_fn_error $? "missing file argument" ;;
3784    esac
3785    as_fn_append CONFIG_FILES " '$ac_optarg'"
3786    ac_need_defaults=false;;
3787  --he | --h |  --help | --hel | -h )
3788    $as_echo "$ac_cs_usage"; exit ;;
3789  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3790  | -silent | --silent | --silen | --sile | --sil | --si | --s)
3791    ac_cs_silent=: ;;
3792
3793  # This is an error.
3794  -*) as_fn_error $? "unrecognized option: \`$1'
3795Try \`$0 --help' for more information." ;;
3796
3797  *) as_fn_append ac_config_targets " $1"
3798     ac_need_defaults=false ;;
3799
3800  esac
3801  shift
3802done
3803
3804ac_configure_extra_args=
3805
3806if $ac_cs_silent; then
3807  exec 6>/dev/null
3808  ac_configure_extra_args="$ac_configure_extra_args --silent"
3809fi
3810
3811_ACEOF
3812cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3813if \$ac_cs_recheck; then
3814  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3815  shift
3816  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3817  CONFIG_SHELL='$SHELL'
3818  export CONFIG_SHELL
3819  exec "\$@"
3820fi
3821
3822_ACEOF
3823cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3824exec 5>>config.log
3825{
3826  echo
3827  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3828## Running $as_me. ##
3829_ASBOX
3830  $as_echo "$ac_log"
3831} >&5
3832
3833_ACEOF
3834cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3835_ACEOF
3836
3837cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3838
3839# Handling of arguments.
3840for ac_config_target in $ac_config_targets
3841do
3842  case $ac_config_target in
3843    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3844
3845  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3846  esac
3847done
3848
3849
3850# If the user did not use the arguments to specify the items to instantiate,
3851# then the envvar interface is used.  Set only those that are not.
3852# We use the long form for the default assignment because of an extremely
3853# bizarre bug on SunOS 4.1.3.
3854if $ac_need_defaults; then
3855  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3856fi
3857
3858# Have a temporary directory for convenience.  Make it in the build tree
3859# simply because there is no reason against having it here, and in addition,
3860# creating and moving files from /tmp can sometimes cause problems.
3861# Hook for its removal unless debugging.
3862# Note that there is a small window in which the directory will not be cleaned:
3863# after its creation but before its name has been assigned to `$tmp'.
3864$debug ||
3865{
3866  tmp= ac_tmp=
3867  trap 'exit_status=$?
3868  : "${ac_tmp:=$tmp}"
3869  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
3870' 0
3871  trap 'as_fn_exit 1' 1 2 13 15
3872}
3873# Create a (secure) tmp directory for tmp files.
3874
3875{
3876  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3877  test -d "$tmp"
3878}  ||
3879{
3880  tmp=./conf$$-$RANDOM
3881  (umask 077 && mkdir "$tmp")
3882} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
3883ac_tmp=$tmp
3884
3885# Set up the scripts for CONFIG_FILES section.
3886# No need to generate them if there are no CONFIG_FILES.
3887# This happens for instance with `./config.status config.h'.
3888if test -n "$CONFIG_FILES"; then
3889
3890
3891ac_cr=`echo X | tr X '\015'`
3892# On cygwin, bash can eat \r inside `` if the user requested igncr.
3893# But we know of no other shell where ac_cr would be empty at this
3894# point, so we can use a bashism as a fallback.
3895if test "x$ac_cr" = x; then
3896  eval ac_cr=\$\'\\r\'
3897fi
3898ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3899if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3900  ac_cs_awk_cr='\\r'
3901else
3902  ac_cs_awk_cr=$ac_cr
3903fi
3904
3905echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
3906_ACEOF
3907
3908
3909{
3910  echo "cat >conf$$subs.awk <<_ACEOF" &&
3911  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3912  echo "_ACEOF"
3913} >conf$$subs.sh ||
3914  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3915ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
3916ac_delim='%!_!# '
3917for ac_last_try in false false false false false :; do
3918  . ./conf$$subs.sh ||
3919    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3920
3921  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3922  if test $ac_delim_n = $ac_delim_num; then
3923    break
3924  elif $ac_last_try; then
3925    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3926  else
3927    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3928  fi
3929done
3930rm -f conf$$subs.sh
3931
3932cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3933cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
3934_ACEOF
3935sed -n '
3936h
3937s/^/S["/; s/!.*/"]=/
3938p
3939g
3940s/^[^!]*!//
3941:repl
3942t repl
3943s/'"$ac_delim"'$//
3944t delim
3945:nl
3946h
3947s/\(.\{148\}\)..*/\1/
3948t more1
3949s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3950p
3951n
3952b repl
3953:more1
3954s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3955p
3956g
3957s/.\{148\}//
3958t nl
3959:delim
3960h
3961s/\(.\{148\}\)..*/\1/
3962t more2
3963s/["\\]/\\&/g; s/^/"/; s/$/"/
3964p
3965b
3966:more2
3967s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3968p
3969g
3970s/.\{148\}//
3971t delim
3972' <conf$$subs.awk | sed '
3973/^[^""]/{
3974  N
3975  s/\n//
3976}
3977' >>$CONFIG_STATUS || ac_write_fail=1
3978rm -f conf$$subs.awk
3979cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3980_ACAWK
3981cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
3982  for (key in S) S_is_set[key] = 1
3983  FS = ""
3984
3985}
3986{
3987  line = $ 0
3988  nfields = split(line, field, "@")
3989  substed = 0
3990  len = length(field[1])
3991  for (i = 2; i < nfields; i++) {
3992    key = field[i]
3993    keylen = length(key)
3994    if (S_is_set[key]) {
3995      value = S[key]
3996      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3997      len += length(value) + length(field[++i])
3998      substed = 1
3999    } else
4000      len += 1 + keylen
4001  }
4002
4003  print line
4004}
4005
4006_ACAWK
4007_ACEOF
4008cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4009if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4010  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4011else
4012  cat
4013fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4014  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4015_ACEOF
4016
4017# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4018# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4019# trailing colons and then remove the whole line if VPATH becomes empty
4020# (actually we leave an empty line to preserve line numbers).
4021if test "x$srcdir" = x.; then
4022  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
4023h
4024s///
4025s/^/:/
4026s/[	 ]*$/:/
4027s/:\$(srcdir):/:/g
4028s/:\${srcdir}:/:/g
4029s/:@srcdir@:/:/g
4030s/^:*//
4031s/:*$//
4032x
4033s/\(=[	 ]*\).*/\1/
4034G
4035s/\n//
4036s/^[^=]*=[	 ]*$//
4037}'
4038fi
4039
4040cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4041fi # test -n "$CONFIG_FILES"
4042
4043
4044eval set X "  :F $CONFIG_FILES      "
4045shift
4046for ac_tag
4047do
4048  case $ac_tag in
4049  :[FHLC]) ac_mode=$ac_tag; continue;;
4050  esac
4051  case $ac_mode$ac_tag in
4052  :[FHL]*:*);;
4053  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4054  :[FH]-) ac_tag=-:-;;
4055  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4056  esac
4057  ac_save_IFS=$IFS
4058  IFS=:
4059  set x $ac_tag
4060  IFS=$ac_save_IFS
4061  shift
4062  ac_file=$1
4063  shift
4064
4065  case $ac_mode in
4066  :L) ac_source=$1;;
4067  :[FH])
4068    ac_file_inputs=
4069    for ac_f
4070    do
4071      case $ac_f in
4072      -) ac_f="$ac_tmp/stdin";;
4073      *) # Look for the file first in the build tree, then in the source tree
4074	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
4075	 # because $ac_f cannot contain `:'.
4076	 test -f "$ac_f" ||
4077	   case $ac_f in
4078	   [\\/$]*) false;;
4079	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4080	   esac ||
4081	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4082      esac
4083      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4084      as_fn_append ac_file_inputs " '$ac_f'"
4085    done
4086
4087    # Let's still pretend it is `configure' which instantiates (i.e., don't
4088    # use $as_me), people would be surprised to read:
4089    #    /* config.h.  Generated by config.status.  */
4090    configure_input='Generated from '`
4091	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4092	`' by configure.'
4093    if test x"$ac_file" != x-; then
4094      configure_input="$ac_file.  $configure_input"
4095      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4096$as_echo "$as_me: creating $ac_file" >&6;}
4097    fi
4098    # Neutralize special characters interpreted by sed in replacement strings.
4099    case $configure_input in #(
4100    *\&* | *\|* | *\\* )
4101       ac_sed_conf_input=`$as_echo "$configure_input" |
4102       sed 's/[\\\\&|]/\\\\&/g'`;; #(
4103    *) ac_sed_conf_input=$configure_input;;
4104    esac
4105
4106    case $ac_tag in
4107    *:-:* | *:-) cat >"$ac_tmp/stdin" \
4108      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4109    esac
4110    ;;
4111  esac
4112
4113  ac_dir=`$as_dirname -- "$ac_file" ||
4114$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4115	 X"$ac_file" : 'X\(//\)[^/]' \| \
4116	 X"$ac_file" : 'X\(//\)$' \| \
4117	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4118$as_echo X"$ac_file" |
4119    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4120	    s//\1/
4121	    q
4122	  }
4123	  /^X\(\/\/\)[^/].*/{
4124	    s//\1/
4125	    q
4126	  }
4127	  /^X\(\/\/\)$/{
4128	    s//\1/
4129	    q
4130	  }
4131	  /^X\(\/\).*/{
4132	    s//\1/
4133	    q
4134	  }
4135	  s/.*/./; q'`
4136  as_dir="$ac_dir"; as_fn_mkdir_p
4137  ac_builddir=.
4138
4139case "$ac_dir" in
4140.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4141*)
4142  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4143  # A ".." for each directory in $ac_dir_suffix.
4144  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4145  case $ac_top_builddir_sub in
4146  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4147  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4148  esac ;;
4149esac
4150ac_abs_top_builddir=$ac_pwd
4151ac_abs_builddir=$ac_pwd$ac_dir_suffix
4152# for backward compatibility:
4153ac_top_builddir=$ac_top_build_prefix
4154
4155case $srcdir in
4156  .)  # We are building in place.
4157    ac_srcdir=.
4158    ac_top_srcdir=$ac_top_builddir_sub
4159    ac_abs_top_srcdir=$ac_pwd ;;
4160  [\\/]* | ?:[\\/]* )  # Absolute name.
4161    ac_srcdir=$srcdir$ac_dir_suffix;
4162    ac_top_srcdir=$srcdir
4163    ac_abs_top_srcdir=$srcdir ;;
4164  *) # Relative name.
4165    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4166    ac_top_srcdir=$ac_top_build_prefix$srcdir
4167    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4168esac
4169ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4170
4171
4172  case $ac_mode in
4173  :F)
4174  #
4175  # CONFIG_FILE
4176  #
4177
4178  case $INSTALL in
4179  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4180  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
4181  esac
4182_ACEOF
4183
4184cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4185# If the template does not know about datarootdir, expand it.
4186# FIXME: This hack should be removed a few years after 2.60.
4187ac_datarootdir_hack=; ac_datarootdir_seen=
4188ac_sed_dataroot='
4189/datarootdir/ {
4190  p
4191  q
4192}
4193/@datadir@/p
4194/@docdir@/p
4195/@infodir@/p
4196/@localedir@/p
4197/@mandir@/p'
4198case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4199*datarootdir*) ac_datarootdir_seen=yes;;
4200*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4201  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4202$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4203_ACEOF
4204cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4205  ac_datarootdir_hack='
4206  s&@datadir@&$datadir&g
4207  s&@docdir@&$docdir&g
4208  s&@infodir@&$infodir&g
4209  s&@localedir@&$localedir&g
4210  s&@mandir@&$mandir&g
4211  s&\\\${datarootdir}&$datarootdir&g' ;;
4212esac
4213_ACEOF
4214
4215# Neutralize VPATH when `$srcdir' = `.'.
4216# Shell code in configure.ac might set extrasub.
4217# FIXME: do we really want to maintain this feature?
4218cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4219ac_sed_extra="$ac_vpsub
4220$extrasub
4221_ACEOF
4222cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4223:t
4224/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4225s|@configure_input@|$ac_sed_conf_input|;t t
4226s&@top_builddir@&$ac_top_builddir_sub&;t t
4227s&@top_build_prefix@&$ac_top_build_prefix&;t t
4228s&@srcdir@&$ac_srcdir&;t t
4229s&@abs_srcdir@&$ac_abs_srcdir&;t t
4230s&@top_srcdir@&$ac_top_srcdir&;t t
4231s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4232s&@builddir@&$ac_builddir&;t t
4233s&@abs_builddir@&$ac_abs_builddir&;t t
4234s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4235s&@INSTALL@&$ac_INSTALL&;t t
4236$ac_datarootdir_hack
4237"
4238eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4239  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4240
4241test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4242  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4243  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
4244      "$ac_tmp/out"`; test -z "$ac_out"; } &&
4245  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4246which seems to be undefined.  Please make sure it is defined" >&5
4247$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4248which seems to be undefined.  Please make sure it is defined" >&2;}
4249
4250  rm -f "$ac_tmp/stdin"
4251  case $ac_file in
4252  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4253  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4254  esac \
4255  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4256 ;;
4257
4258
4259
4260  esac
4261
4262done # for ac_tag
4263
4264
4265as_fn_exit 0
4266_ACEOF
4267ac_clean_files=$ac_clean_files_save
4268
4269test $ac_write_fail = 0 ||
4270  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4271
4272
4273# configure is writing to config.log, and then calls config.status.
4274# config.status does its own redirection, appending to config.log.
4275# Unfortunately, on DOS this fails, as config.log is still kept open
4276# by configure, so config.status won't be able to write to it; its
4277# output is simply discarded.  So we exec the FD to /dev/null,
4278# effectively closing config.log, so it can be properly (re)opened and
4279# appended to by config.status.  When coming back to configure, we
4280# need to make the FD available again.
4281if test "$no_create" != yes; then
4282  ac_cs_success=:
4283  ac_config_status_args=
4284  test "$silent" = yes &&
4285    ac_config_status_args="$ac_config_status_args --quiet"
4286  exec 5>/dev/null
4287  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4288  exec 5>>config.log
4289  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4290  # would make configure fail if this is the last instruction.
4291  $ac_cs_success || as_fn_exit 1
4292fi
4293if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4294  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4295$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4296fi
4297
4298
4299