1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for VoR 0.5.8.
4#
5# Report bugs to <jason@jasonwoof.com>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: jason@jasonwoof.com about your system, including any
271$0: error possibly output before this message. Then install
272$0: a modern shell, or manually run the script under such a
273$0: shell if you do have one."
274  fi
275  exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293  { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302  return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310  set +e
311  as_fn_set_status $1
312  exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321  case $as_dir in #(
322  -*) as_dir=./$as_dir;;
323  esac
324  test -d "$as_dir" || eval $as_mkdir_p || {
325    as_dirs=
326    while :; do
327      case $as_dir in #(
328      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329      *) as_qdir=$as_dir;;
330      esac
331      as_dirs="'$as_qdir' $as_dirs"
332      as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334	 X"$as_dir" : 'X\(//\)[^/]' \| \
335	 X"$as_dir" : 'X\(//\)$' \| \
336	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339	    s//\1/
340	    q
341	  }
342	  /^X\(\/\/\)[^/].*/{
343	    s//\1/
344	    q
345	  }
346	  /^X\(\/\/\)$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\).*/{
351	    s//\1/
352	    q
353	  }
354	  s/.*/./; q'`
355      test -d "$as_dir" && break
356    done
357    test -z "$as_dirs" || eval "mkdir $as_dirs"
358  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368  test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377  eval 'as_fn_append ()
378  {
379    eval $1+=\$2
380  }'
381else
382  as_fn_append ()
383  {
384    eval $1=\$$1\$2
385  }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394  eval 'as_fn_arith ()
395  {
396    as_val=$(( $* ))
397  }'
398else
399  as_fn_arith ()
400  {
401    as_val=`expr "$@" || test $? -eq 1`
402  }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413  as_status=$1; test $as_status -eq 0 && as_status=1
414  if test "$4"; then
415    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417  fi
418  $as_echo "$as_me: error: $2" >&2
419  as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423   test "X`expr 00001 : '.*\(...\)'`" = X001; then
424  as_expr=expr
425else
426  as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430  as_basename=basename
431else
432  as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436  as_dirname=dirname
437else
438  as_dirname=false
439fi
440
441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443	 X"$0" : 'X\(//\)$' \| \
444	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446    sed '/^.*\/\([^/][^/]*\)\/*$/{
447	    s//\1/
448	    q
449	  }
450	  /^X\/\(\/\/\)$/{
451	    s//\1/
452	    q
453	  }
454	  /^X\/\(\/\).*/{
455	    s//\1/
456	    q
457	  }
458	  s/.*/./; q'`
459
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468  as_lineno_1=$LINENO as_lineno_1a=$LINENO
469  as_lineno_2=$LINENO as_lineno_2a=$LINENO
470  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473  sed -n '
474    p
475    /[$]LINENO/=
476  ' <$as_myself |
477    sed '
478      s/[$]LINENO.*/&-/
479      t lineno
480      b
481      :lineno
482      N
483      :loop
484      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485      t loop
486      s/-\n.*//
487    ' >$as_me.lineno &&
488  chmod +x "$as_me.lineno" ||
489    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492  # already done that, so ensure we don't try to do so again and fall
493  # in an infinite loop.  This has already happened in practice.
494  _as_can_reexec=no; export _as_can_reexec
495  # Don't try to exec as it changes $[0], causing all sort of problems
496  # (the dirname of $[0] is not the place where we might find the
497  # original and so on.  Autoconf is especially sensitive to this).
498  . "./$as_me.lineno"
499  # Exit status is that of the last command.
500  exit
501}
502
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506  case `echo 'xy\c'` in
507  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
508  xy)  ECHO_C='\c';;
509  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510       ECHO_T='	';;
511  esac;;
512*)
513  ECHO_N='-n';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518  rm -f conf$$.dir/conf$$.file
519else
520  rm -f conf$$.dir
521  mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524  if ln -s conf$$.file conf$$ 2>/dev/null; then
525    as_ln_s='ln -s'
526    # ... but there are two gotchas:
527    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529    # In both cases, we have to default to `cp -pR'.
530    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531      as_ln_s='cp -pR'
532  elif ln conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s=ln
534  else
535    as_ln_s='cp -pR'
536  fi
537else
538  as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544  as_mkdir_p='mkdir -p "$as_dir"'
545else
546  test -d ./-p && rmdir ./-p
547  as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
562
563# Name of the host.
564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='VoR'
582PACKAGE_TARNAME='vor'
583PACKAGE_VERSION='0.5.8'
584PACKAGE_STRING='VoR 0.5.8'
585PACKAGE_BUGREPORT='jason@jasonwoof.com'
586PACKAGE_URL=''
587
588ac_unique_file="config.h.in"
589# Factoring default headers for most tests.
590ac_includes_default="\
591#include <stdio.h>
592#ifdef HAVE_SYS_TYPES_H
593# include <sys/types.h>
594#endif
595#ifdef HAVE_SYS_STAT_H
596# include <sys/stat.h>
597#endif
598#ifdef STDC_HEADERS
599# include <stdlib.h>
600# include <stddef.h>
601#else
602# ifdef HAVE_STDLIB_H
603#  include <stdlib.h>
604# endif
605#endif
606#ifdef HAVE_STRING_H
607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608#  include <memory.h>
609# endif
610# include <string.h>
611#endif
612#ifdef HAVE_STRINGS_H
613# include <strings.h>
614#endif
615#ifdef HAVE_INTTYPES_H
616# include <inttypes.h>
617#endif
618#ifdef HAVE_STDINT_H
619# include <stdint.h>
620#endif
621#ifdef HAVE_UNISTD_H
622# include <unistd.h>
623#endif"
624
625ac_subst_vars='LTLIBOBJS
626LIBOBJS
627EGREP
628GREP
629CPP
630SDL_MIXER_LIBS
631SDL_MIXER_CFLAGS
632SDL_IMAGE_LIBS
633SDL_IMAGE_CFLAGS
634SDL_LIBS
635SDL_CFLAGS
636PKG_CONFIG_LIBDIR
637PKG_CONFIG_PATH
638PKG_CONFIG
639SET_MAKE
640INSTALL_DATA
641INSTALL_SCRIPT
642INSTALL_PROGRAM
643OBJEXT
644EXEEXT
645ac_ct_CC
646CPPFLAGS
647LDFLAGS
648CFLAGS
649CC
650target_alias
651host_alias
652build_alias
653LIBS
654ECHO_T
655ECHO_N
656ECHO_C
657DEFS
658mandir
659localedir
660libdir
661psdir
662pdfdir
663dvidir
664htmldir
665infodir
666docdir
667oldincludedir
668includedir
669runstatedir
670localstatedir
671sharedstatedir
672sysconfdir
673datadir
674datarootdir
675libexecdir
676sbindir
677bindir
678program_transform_name
679prefix
680exec_prefix
681PACKAGE_URL
682PACKAGE_BUGREPORT
683PACKAGE_STRING
684PACKAGE_VERSION
685PACKAGE_TARNAME
686PACKAGE_NAME
687PATH_SEPARATOR
688SHELL'
689ac_subst_files=''
690ac_user_opts='
691enable_option_checking
692'
693      ac_precious_vars='build_alias
694host_alias
695target_alias
696CC
697CFLAGS
698LDFLAGS
699LIBS
700CPPFLAGS
701PKG_CONFIG
702PKG_CONFIG_PATH
703PKG_CONFIG_LIBDIR
704SDL_CFLAGS
705SDL_LIBS
706SDL_IMAGE_CFLAGS
707SDL_IMAGE_LIBS
708SDL_MIXER_CFLAGS
709SDL_MIXER_LIBS
710CPP'
711
712
713# Initialize some variables set by options.
714ac_init_help=
715ac_init_version=false
716ac_unrecognized_opts=
717ac_unrecognized_sep=
718# The variables have the same names as the options, with
719# dashes changed to underlines.
720cache_file=/dev/null
721exec_prefix=NONE
722no_create=
723no_recursion=
724prefix=NONE
725program_prefix=NONE
726program_suffix=NONE
727program_transform_name=s,x,x,
728silent=
729site=
730srcdir=
731verbose=
732x_includes=NONE
733x_libraries=NONE
734
735# Installation directory options.
736# These are left unexpanded so users can "make install exec_prefix=/foo"
737# and all the variables that are supposed to be based on exec_prefix
738# by default will actually change.
739# Use braces instead of parens because sh, perl, etc. also accept them.
740# (The list follows the same order as the GNU Coding Standards.)
741bindir='${exec_prefix}/bin'
742sbindir='${exec_prefix}/sbin'
743libexecdir='${exec_prefix}/libexec'
744datarootdir='${prefix}/share'
745datadir='${datarootdir}'
746sysconfdir='${prefix}/etc'
747sharedstatedir='${prefix}/com'
748localstatedir='${prefix}/var'
749runstatedir='${localstatedir}/run'
750includedir='${prefix}/include'
751oldincludedir='/usr/include'
752docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
753infodir='${datarootdir}/info'
754htmldir='${docdir}'
755dvidir='${docdir}'
756pdfdir='${docdir}'
757psdir='${docdir}'
758libdir='${exec_prefix}/lib'
759localedir='${datarootdir}/locale'
760mandir='${datarootdir}/man'
761
762ac_prev=
763ac_dashdash=
764for ac_option
765do
766  # If the previous option needs an argument, assign it.
767  if test -n "$ac_prev"; then
768    eval $ac_prev=\$ac_option
769    ac_prev=
770    continue
771  fi
772
773  case $ac_option in
774  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
775  *=)   ac_optarg= ;;
776  *)    ac_optarg=yes ;;
777  esac
778
779  # Accept the important Cygnus configure options, so we can diagnose typos.
780
781  case $ac_dashdash$ac_option in
782  --)
783    ac_dashdash=yes ;;
784
785  -bindir | --bindir | --bindi | --bind | --bin | --bi)
786    ac_prev=bindir ;;
787  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
788    bindir=$ac_optarg ;;
789
790  -build | --build | --buil | --bui | --bu)
791    ac_prev=build_alias ;;
792  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
793    build_alias=$ac_optarg ;;
794
795  -cache-file | --cache-file | --cache-fil | --cache-fi \
796  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
797    ac_prev=cache_file ;;
798  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
799  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
800    cache_file=$ac_optarg ;;
801
802  --config-cache | -C)
803    cache_file=config.cache ;;
804
805  -datadir | --datadir | --datadi | --datad)
806    ac_prev=datadir ;;
807  -datadir=* | --datadir=* | --datadi=* | --datad=*)
808    datadir=$ac_optarg ;;
809
810  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
811  | --dataroo | --dataro | --datar)
812    ac_prev=datarootdir ;;
813  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
814  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
815    datarootdir=$ac_optarg ;;
816
817  -disable-* | --disable-*)
818    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
819    # Reject names that are not valid shell variable names.
820    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
821      as_fn_error $? "invalid feature name: $ac_useropt"
822    ac_useropt_orig=$ac_useropt
823    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
824    case $ac_user_opts in
825      *"
826"enable_$ac_useropt"
827"*) ;;
828      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
829	 ac_unrecognized_sep=', ';;
830    esac
831    eval enable_$ac_useropt=no ;;
832
833  -docdir | --docdir | --docdi | --doc | --do)
834    ac_prev=docdir ;;
835  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
836    docdir=$ac_optarg ;;
837
838  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
839    ac_prev=dvidir ;;
840  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
841    dvidir=$ac_optarg ;;
842
843  -enable-* | --enable-*)
844    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
845    # Reject names that are not valid shell variable names.
846    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
847      as_fn_error $? "invalid feature name: $ac_useropt"
848    ac_useropt_orig=$ac_useropt
849    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
850    case $ac_user_opts in
851      *"
852"enable_$ac_useropt"
853"*) ;;
854      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
855	 ac_unrecognized_sep=', ';;
856    esac
857    eval enable_$ac_useropt=\$ac_optarg ;;
858
859  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
860  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
861  | --exec | --exe | --ex)
862    ac_prev=exec_prefix ;;
863  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
864  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
865  | --exec=* | --exe=* | --ex=*)
866    exec_prefix=$ac_optarg ;;
867
868  -gas | --gas | --ga | --g)
869    # Obsolete; use --with-gas.
870    with_gas=yes ;;
871
872  -help | --help | --hel | --he | -h)
873    ac_init_help=long ;;
874  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
875    ac_init_help=recursive ;;
876  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
877    ac_init_help=short ;;
878
879  -host | --host | --hos | --ho)
880    ac_prev=host_alias ;;
881  -host=* | --host=* | --hos=* | --ho=*)
882    host_alias=$ac_optarg ;;
883
884  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
885    ac_prev=htmldir ;;
886  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
887  | --ht=*)
888    htmldir=$ac_optarg ;;
889
890  -includedir | --includedir | --includedi | --included | --include \
891  | --includ | --inclu | --incl | --inc)
892    ac_prev=includedir ;;
893  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
894  | --includ=* | --inclu=* | --incl=* | --inc=*)
895    includedir=$ac_optarg ;;
896
897  -infodir | --infodir | --infodi | --infod | --info | --inf)
898    ac_prev=infodir ;;
899  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
900    infodir=$ac_optarg ;;
901
902  -libdir | --libdir | --libdi | --libd)
903    ac_prev=libdir ;;
904  -libdir=* | --libdir=* | --libdi=* | --libd=*)
905    libdir=$ac_optarg ;;
906
907  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
908  | --libexe | --libex | --libe)
909    ac_prev=libexecdir ;;
910  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
911  | --libexe=* | --libex=* | --libe=*)
912    libexecdir=$ac_optarg ;;
913
914  -localedir | --localedir | --localedi | --localed | --locale)
915    ac_prev=localedir ;;
916  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
917    localedir=$ac_optarg ;;
918
919  -localstatedir | --localstatedir | --localstatedi | --localstated \
920  | --localstate | --localstat | --localsta | --localst | --locals)
921    ac_prev=localstatedir ;;
922  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
923  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
924    localstatedir=$ac_optarg ;;
925
926  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
927    ac_prev=mandir ;;
928  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
929    mandir=$ac_optarg ;;
930
931  -nfp | --nfp | --nf)
932    # Obsolete; use --without-fp.
933    with_fp=no ;;
934
935  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
936  | --no-cr | --no-c | -n)
937    no_create=yes ;;
938
939  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
940  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
941    no_recursion=yes ;;
942
943  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
944  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
945  | --oldin | --oldi | --old | --ol | --o)
946    ac_prev=oldincludedir ;;
947  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
948  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
949  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
950    oldincludedir=$ac_optarg ;;
951
952  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
953    ac_prev=prefix ;;
954  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
955    prefix=$ac_optarg ;;
956
957  -program-prefix | --program-prefix | --program-prefi | --program-pref \
958  | --program-pre | --program-pr | --program-p)
959    ac_prev=program_prefix ;;
960  -program-prefix=* | --program-prefix=* | --program-prefi=* \
961  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
962    program_prefix=$ac_optarg ;;
963
964  -program-suffix | --program-suffix | --program-suffi | --program-suff \
965  | --program-suf | --program-su | --program-s)
966    ac_prev=program_suffix ;;
967  -program-suffix=* | --program-suffix=* | --program-suffi=* \
968  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
969    program_suffix=$ac_optarg ;;
970
971  -program-transform-name | --program-transform-name \
972  | --program-transform-nam | --program-transform-na \
973  | --program-transform-n | --program-transform- \
974  | --program-transform | --program-transfor \
975  | --program-transfo | --program-transf \
976  | --program-trans | --program-tran \
977  | --progr-tra | --program-tr | --program-t)
978    ac_prev=program_transform_name ;;
979  -program-transform-name=* | --program-transform-name=* \
980  | --program-transform-nam=* | --program-transform-na=* \
981  | --program-transform-n=* | --program-transform-=* \
982  | --program-transform=* | --program-transfor=* \
983  | --program-transfo=* | --program-transf=* \
984  | --program-trans=* | --program-tran=* \
985  | --progr-tra=* | --program-tr=* | --program-t=*)
986    program_transform_name=$ac_optarg ;;
987
988  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
989    ac_prev=pdfdir ;;
990  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
991    pdfdir=$ac_optarg ;;
992
993  -psdir | --psdir | --psdi | --psd | --ps)
994    ac_prev=psdir ;;
995  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
996    psdir=$ac_optarg ;;
997
998  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
999  | -silent | --silent | --silen | --sile | --sil)
1000    silent=yes ;;
1001
1002  -runstatedir | --runstatedir | --runstatedi | --runstated \
1003  | --runstate | --runstat | --runsta | --runst | --runs \
1004  | --run | --ru | --r)
1005    ac_prev=runstatedir ;;
1006  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1007  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1008  | --run=* | --ru=* | --r=*)
1009    runstatedir=$ac_optarg ;;
1010
1011  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1012    ac_prev=sbindir ;;
1013  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1014  | --sbi=* | --sb=*)
1015    sbindir=$ac_optarg ;;
1016
1017  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1018  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1019  | --sharedst | --shareds | --shared | --share | --shar \
1020  | --sha | --sh)
1021    ac_prev=sharedstatedir ;;
1022  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1023  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1024  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1025  | --sha=* | --sh=*)
1026    sharedstatedir=$ac_optarg ;;
1027
1028  -site | --site | --sit)
1029    ac_prev=site ;;
1030  -site=* | --site=* | --sit=*)
1031    site=$ac_optarg ;;
1032
1033  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1034    ac_prev=srcdir ;;
1035  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1036    srcdir=$ac_optarg ;;
1037
1038  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1039  | --syscon | --sysco | --sysc | --sys | --sy)
1040    ac_prev=sysconfdir ;;
1041  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1042  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1043    sysconfdir=$ac_optarg ;;
1044
1045  -target | --target | --targe | --targ | --tar | --ta | --t)
1046    ac_prev=target_alias ;;
1047  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1048    target_alias=$ac_optarg ;;
1049
1050  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1051    verbose=yes ;;
1052
1053  -version | --version | --versio | --versi | --vers | -V)
1054    ac_init_version=: ;;
1055
1056  -with-* | --with-*)
1057    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1058    # Reject names that are not valid shell variable names.
1059    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1060      as_fn_error $? "invalid package name: $ac_useropt"
1061    ac_useropt_orig=$ac_useropt
1062    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063    case $ac_user_opts in
1064      *"
1065"with_$ac_useropt"
1066"*) ;;
1067      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1068	 ac_unrecognized_sep=', ';;
1069    esac
1070    eval with_$ac_useropt=\$ac_optarg ;;
1071
1072  -without-* | --without-*)
1073    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1074    # Reject names that are not valid shell variable names.
1075    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076      as_fn_error $? "invalid package name: $ac_useropt"
1077    ac_useropt_orig=$ac_useropt
1078    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079    case $ac_user_opts in
1080      *"
1081"with_$ac_useropt"
1082"*) ;;
1083      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1084	 ac_unrecognized_sep=', ';;
1085    esac
1086    eval with_$ac_useropt=no ;;
1087
1088  --x)
1089    # Obsolete; use --with-x.
1090    with_x=yes ;;
1091
1092  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1093  | --x-incl | --x-inc | --x-in | --x-i)
1094    ac_prev=x_includes ;;
1095  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1096  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1097    x_includes=$ac_optarg ;;
1098
1099  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1100  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1101    ac_prev=x_libraries ;;
1102  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1103  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1104    x_libraries=$ac_optarg ;;
1105
1106  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1107Try \`$0 --help' for more information"
1108    ;;
1109
1110  *=*)
1111    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1112    # Reject names that are not valid shell variable names.
1113    case $ac_envvar in #(
1114      '' | [0-9]* | *[!_$as_cr_alnum]* )
1115      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1116    esac
1117    eval $ac_envvar=\$ac_optarg
1118    export $ac_envvar ;;
1119
1120  *)
1121    # FIXME: should be removed in autoconf 3.0.
1122    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1123    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1124      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1125    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1126    ;;
1127
1128  esac
1129done
1130
1131if test -n "$ac_prev"; then
1132  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1133  as_fn_error $? "missing argument to $ac_option"
1134fi
1135
1136if test -n "$ac_unrecognized_opts"; then
1137  case $enable_option_checking in
1138    no) ;;
1139    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1140    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1141  esac
1142fi
1143
1144# Check all directory arguments for consistency.
1145for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1146		datadir sysconfdir sharedstatedir localstatedir includedir \
1147		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1148		libdir localedir mandir runstatedir
1149do
1150  eval ac_val=\$$ac_var
1151  # Remove trailing slashes.
1152  case $ac_val in
1153    */ )
1154      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1155      eval $ac_var=\$ac_val;;
1156  esac
1157  # Be sure to have absolute directory names.
1158  case $ac_val in
1159    [\\/$]* | ?:[\\/]* )  continue;;
1160    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1161  esac
1162  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1163done
1164
1165# There might be people who depend on the old broken behavior: `$host'
1166# used to hold the argument of --host etc.
1167# FIXME: To remove some day.
1168build=$build_alias
1169host=$host_alias
1170target=$target_alias
1171
1172# FIXME: To remove some day.
1173if test "x$host_alias" != x; then
1174  if test "x$build_alias" = x; then
1175    cross_compiling=maybe
1176  elif test "x$build_alias" != "x$host_alias"; then
1177    cross_compiling=yes
1178  fi
1179fi
1180
1181ac_tool_prefix=
1182test -n "$host_alias" && ac_tool_prefix=$host_alias-
1183
1184test "$silent" = yes && exec 6>/dev/null
1185
1186
1187ac_pwd=`pwd` && test -n "$ac_pwd" &&
1188ac_ls_di=`ls -di .` &&
1189ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1190  as_fn_error $? "working directory cannot be determined"
1191test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1192  as_fn_error $? "pwd does not report name of working directory"
1193
1194
1195# Find the source files, if location was not specified.
1196if test -z "$srcdir"; then
1197  ac_srcdir_defaulted=yes
1198  # Try the directory containing this script, then the parent directory.
1199  ac_confdir=`$as_dirname -- "$as_myself" ||
1200$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1201	 X"$as_myself" : 'X\(//\)[^/]' \| \
1202	 X"$as_myself" : 'X\(//\)$' \| \
1203	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1204$as_echo X"$as_myself" |
1205    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1206	    s//\1/
1207	    q
1208	  }
1209	  /^X\(\/\/\)[^/].*/{
1210	    s//\1/
1211	    q
1212	  }
1213	  /^X\(\/\/\)$/{
1214	    s//\1/
1215	    q
1216	  }
1217	  /^X\(\/\).*/{
1218	    s//\1/
1219	    q
1220	  }
1221	  s/.*/./; q'`
1222  srcdir=$ac_confdir
1223  if test ! -r "$srcdir/$ac_unique_file"; then
1224    srcdir=..
1225  fi
1226else
1227  ac_srcdir_defaulted=no
1228fi
1229if test ! -r "$srcdir/$ac_unique_file"; then
1230  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1231  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1232fi
1233ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1234ac_abs_confdir=`(
1235	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1236	pwd)`
1237# When building in place, set srcdir=.
1238if test "$ac_abs_confdir" = "$ac_pwd"; then
1239  srcdir=.
1240fi
1241# Remove unnecessary trailing slashes from srcdir.
1242# Double slashes in file names in object file debugging info
1243# mess up M-x gdb in Emacs.
1244case $srcdir in
1245*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1246esac
1247for ac_var in $ac_precious_vars; do
1248  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1249  eval ac_env_${ac_var}_value=\$${ac_var}
1250  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1251  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1252done
1253
1254#
1255# Report the --help message.
1256#
1257if test "$ac_init_help" = "long"; then
1258  # Omit some internal or obsolete options to make the list less imposing.
1259  # This message is too long to be a string in the A/UX 3.1 sh.
1260  cat <<_ACEOF
1261\`configure' configures VoR 0.5.8 to adapt to many kinds of systems.
1262
1263Usage: $0 [OPTION]... [VAR=VALUE]...
1264
1265To assign environment variables (e.g., CC, CFLAGS...), specify them as
1266VAR=VALUE.  See below for descriptions of some of the useful variables.
1267
1268Defaults for the options are specified in brackets.
1269
1270Configuration:
1271  -h, --help              display this help and exit
1272      --help=short        display options specific to this package
1273      --help=recursive    display the short help of all the included packages
1274  -V, --version           display version information and exit
1275  -q, --quiet, --silent   do not print \`checking ...' messages
1276      --cache-file=FILE   cache test results in FILE [disabled]
1277  -C, --config-cache      alias for \`--cache-file=config.cache'
1278  -n, --no-create         do not create output files
1279      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1280
1281Installation directories:
1282  --prefix=PREFIX         install architecture-independent files in PREFIX
1283                          [$ac_default_prefix]
1284  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1285                          [PREFIX]
1286
1287By default, \`make install' will install all the files in
1288\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1289an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1290for instance \`--prefix=\$HOME'.
1291
1292For better control, use the options below.
1293
1294Fine tuning of the installation directories:
1295  --bindir=DIR            user executables [EPREFIX/bin]
1296  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1297  --libexecdir=DIR        program executables [EPREFIX/libexec]
1298  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1299  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1300  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1301  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1302  --libdir=DIR            object code libraries [EPREFIX/lib]
1303  --includedir=DIR        C header files [PREFIX/include]
1304  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1305  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1306  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1307  --infodir=DIR           info documentation [DATAROOTDIR/info]
1308  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1309  --mandir=DIR            man documentation [DATAROOTDIR/man]
1310  --docdir=DIR            documentation root [DATAROOTDIR/doc/vor]
1311  --htmldir=DIR           html documentation [DOCDIR]
1312  --dvidir=DIR            dvi documentation [DOCDIR]
1313  --pdfdir=DIR            pdf documentation [DOCDIR]
1314  --psdir=DIR             ps documentation [DOCDIR]
1315_ACEOF
1316
1317  cat <<\_ACEOF
1318_ACEOF
1319fi
1320
1321if test -n "$ac_init_help"; then
1322  case $ac_init_help in
1323     short | recursive ) echo "Configuration of VoR 0.5.8:";;
1324   esac
1325  cat <<\_ACEOF
1326
1327Some influential environment variables:
1328  CC          C compiler command
1329  CFLAGS      C compiler flags
1330  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1331              nonstandard directory <lib dir>
1332  LIBS        libraries to pass to the linker, e.g. -l<library>
1333  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1334              you have headers in a nonstandard directory <include dir>
1335  PKG_CONFIG  path to pkg-config utility
1336  PKG_CONFIG_PATH
1337              directories to add to pkg-config's search path
1338  PKG_CONFIG_LIBDIR
1339              path overriding pkg-config's built-in search path
1340  SDL_CFLAGS  C compiler flags for SDL, overriding pkg-config
1341  SDL_LIBS    linker flags for SDL, overriding pkg-config
1342  SDL_IMAGE_CFLAGS
1343              C compiler flags for SDL_IMAGE, overriding pkg-config
1344  SDL_IMAGE_LIBS
1345              linker flags for SDL_IMAGE, overriding pkg-config
1346  SDL_MIXER_CFLAGS
1347              C compiler flags for SDL_MIXER, overriding pkg-config
1348  SDL_MIXER_LIBS
1349              linker flags for SDL_MIXER, overriding pkg-config
1350  CPP         C preprocessor
1351
1352Use these variables to override the choices made by `configure' or to help
1353it to find libraries and programs with nonstandard names/locations.
1354
1355Report bugs to <jason@jasonwoof.com>.
1356_ACEOF
1357ac_status=$?
1358fi
1359
1360if test "$ac_init_help" = "recursive"; then
1361  # If there are subdirs, report their specific --help.
1362  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1363    test -d "$ac_dir" ||
1364      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1365      continue
1366    ac_builddir=.
1367
1368case "$ac_dir" in
1369.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1370*)
1371  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1372  # A ".." for each directory in $ac_dir_suffix.
1373  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1374  case $ac_top_builddir_sub in
1375  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1376  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1377  esac ;;
1378esac
1379ac_abs_top_builddir=$ac_pwd
1380ac_abs_builddir=$ac_pwd$ac_dir_suffix
1381# for backward compatibility:
1382ac_top_builddir=$ac_top_build_prefix
1383
1384case $srcdir in
1385  .)  # We are building in place.
1386    ac_srcdir=.
1387    ac_top_srcdir=$ac_top_builddir_sub
1388    ac_abs_top_srcdir=$ac_pwd ;;
1389  [\\/]* | ?:[\\/]* )  # Absolute name.
1390    ac_srcdir=$srcdir$ac_dir_suffix;
1391    ac_top_srcdir=$srcdir
1392    ac_abs_top_srcdir=$srcdir ;;
1393  *) # Relative name.
1394    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1395    ac_top_srcdir=$ac_top_build_prefix$srcdir
1396    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1397esac
1398ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1399
1400    cd "$ac_dir" || { ac_status=$?; continue; }
1401    # Check for guested configure.
1402    if test -f "$ac_srcdir/configure.gnu"; then
1403      echo &&
1404      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1405    elif test -f "$ac_srcdir/configure"; then
1406      echo &&
1407      $SHELL "$ac_srcdir/configure" --help=recursive
1408    else
1409      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1410    fi || ac_status=$?
1411    cd "$ac_pwd" || { ac_status=$?; break; }
1412  done
1413fi
1414
1415test -n "$ac_init_help" && exit $ac_status
1416if $ac_init_version; then
1417  cat <<\_ACEOF
1418VoR configure 0.5.8
1419generated by GNU Autoconf 2.69
1420
1421Copyright (C) 2012 Free Software Foundation, Inc.
1422This configure script is free software; the Free Software Foundation
1423gives unlimited permission to copy, distribute and modify it.
1424_ACEOF
1425  exit
1426fi
1427
1428## ------------------------ ##
1429## Autoconf initialization. ##
1430## ------------------------ ##
1431
1432# ac_fn_c_try_compile LINENO
1433# --------------------------
1434# Try to compile conftest.$ac_ext, and return whether this succeeded.
1435ac_fn_c_try_compile ()
1436{
1437  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1438  rm -f conftest.$ac_objext
1439  if { { ac_try="$ac_compile"
1440case "(($ac_try" in
1441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1442  *) ac_try_echo=$ac_try;;
1443esac
1444eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1445$as_echo "$ac_try_echo"; } >&5
1446  (eval "$ac_compile") 2>conftest.err
1447  ac_status=$?
1448  if test -s conftest.err; then
1449    grep -v '^ *+' conftest.err >conftest.er1
1450    cat conftest.er1 >&5
1451    mv -f conftest.er1 conftest.err
1452  fi
1453  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1454  test $ac_status = 0; } && {
1455	 test -z "$ac_c_werror_flag" ||
1456	 test ! -s conftest.err
1457       } && test -s conftest.$ac_objext; then :
1458  ac_retval=0
1459else
1460  $as_echo "$as_me: failed program was:" >&5
1461sed 's/^/| /' conftest.$ac_ext >&5
1462
1463	ac_retval=1
1464fi
1465  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1466  as_fn_set_status $ac_retval
1467
1468} # ac_fn_c_try_compile
1469
1470# ac_fn_c_try_link LINENO
1471# -----------------------
1472# Try to link conftest.$ac_ext, and return whether this succeeded.
1473ac_fn_c_try_link ()
1474{
1475  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1476  rm -f conftest.$ac_objext conftest$ac_exeext
1477  if { { ac_try="$ac_link"
1478case "(($ac_try" in
1479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1480  *) ac_try_echo=$ac_try;;
1481esac
1482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1483$as_echo "$ac_try_echo"; } >&5
1484  (eval "$ac_link") 2>conftest.err
1485  ac_status=$?
1486  if test -s conftest.err; then
1487    grep -v '^ *+' conftest.err >conftest.er1
1488    cat conftest.er1 >&5
1489    mv -f conftest.er1 conftest.err
1490  fi
1491  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1492  test $ac_status = 0; } && {
1493	 test -z "$ac_c_werror_flag" ||
1494	 test ! -s conftest.err
1495       } && test -s conftest$ac_exeext && {
1496	 test "$cross_compiling" = yes ||
1497	 test -x conftest$ac_exeext
1498       }; then :
1499  ac_retval=0
1500else
1501  $as_echo "$as_me: failed program was:" >&5
1502sed 's/^/| /' conftest.$ac_ext >&5
1503
1504	ac_retval=1
1505fi
1506  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1507  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1508  # interfere with the next link command; also delete a directory that is
1509  # left behind by Apple's compiler.  We do this before executing the actions.
1510  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1511  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1512  as_fn_set_status $ac_retval
1513
1514} # ac_fn_c_try_link
1515
1516# ac_fn_c_try_cpp LINENO
1517# ----------------------
1518# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1519ac_fn_c_try_cpp ()
1520{
1521  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522  if { { ac_try="$ac_cpp conftest.$ac_ext"
1523case "(($ac_try" in
1524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525  *) ac_try_echo=$ac_try;;
1526esac
1527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528$as_echo "$ac_try_echo"; } >&5
1529  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1530  ac_status=$?
1531  if test -s conftest.err; then
1532    grep -v '^ *+' conftest.err >conftest.er1
1533    cat conftest.er1 >&5
1534    mv -f conftest.er1 conftest.err
1535  fi
1536  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537  test $ac_status = 0; } > conftest.i && {
1538	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1539	 test ! -s conftest.err
1540       }; then :
1541  ac_retval=0
1542else
1543  $as_echo "$as_me: failed program was:" >&5
1544sed 's/^/| /' conftest.$ac_ext >&5
1545
1546    ac_retval=1
1547fi
1548  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1549  as_fn_set_status $ac_retval
1550
1551} # ac_fn_c_try_cpp
1552
1553# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1554# -------------------------------------------------------
1555# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1556# the include files in INCLUDES and setting the cache variable VAR
1557# accordingly.
1558ac_fn_c_check_header_mongrel ()
1559{
1560  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561  if eval \${$3+:} false; then :
1562  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1563$as_echo_n "checking for $2... " >&6; }
1564if eval \${$3+:} false; then :
1565  $as_echo_n "(cached) " >&6
1566fi
1567eval ac_res=\$$3
1568	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1569$as_echo "$ac_res" >&6; }
1570else
1571  # Is the header compilable?
1572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1573$as_echo_n "checking $2 usability... " >&6; }
1574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1575/* end confdefs.h.  */
1576$4
1577#include <$2>
1578_ACEOF
1579if ac_fn_c_try_compile "$LINENO"; then :
1580  ac_header_compiler=yes
1581else
1582  ac_header_compiler=no
1583fi
1584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1586$as_echo "$ac_header_compiler" >&6; }
1587
1588# Is the header present?
1589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1590$as_echo_n "checking $2 presence... " >&6; }
1591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1592/* end confdefs.h.  */
1593#include <$2>
1594_ACEOF
1595if ac_fn_c_try_cpp "$LINENO"; then :
1596  ac_header_preproc=yes
1597else
1598  ac_header_preproc=no
1599fi
1600rm -f conftest.err conftest.i conftest.$ac_ext
1601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1602$as_echo "$ac_header_preproc" >&6; }
1603
1604# So?  What about this header?
1605case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1606  yes:no: )
1607    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1608$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1609    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1610$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1611    ;;
1612  no:yes:* )
1613    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1614$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1615    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1616$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1617    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1618$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1619    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1620$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1621    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1622$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1623( $as_echo "## ---------------------------------- ##
1624## Report this to jason@jasonwoof.com ##
1625## ---------------------------------- ##"
1626     ) | sed "s/^/$as_me: WARNING:     /" >&2
1627    ;;
1628esac
1629  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1630$as_echo_n "checking for $2... " >&6; }
1631if eval \${$3+:} false; then :
1632  $as_echo_n "(cached) " >&6
1633else
1634  eval "$3=\$ac_header_compiler"
1635fi
1636eval ac_res=\$$3
1637	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638$as_echo "$ac_res" >&6; }
1639fi
1640  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641
1642} # ac_fn_c_check_header_mongrel
1643
1644# ac_fn_c_try_run LINENO
1645# ----------------------
1646# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1647# that executables *can* be run.
1648ac_fn_c_try_run ()
1649{
1650  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651  if { { ac_try="$ac_link"
1652case "(($ac_try" in
1653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654  *) ac_try_echo=$ac_try;;
1655esac
1656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657$as_echo "$ac_try_echo"; } >&5
1658  (eval "$ac_link") 2>&5
1659  ac_status=$?
1660  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1662  { { case "(($ac_try" in
1663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664  *) ac_try_echo=$ac_try;;
1665esac
1666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667$as_echo "$ac_try_echo"; } >&5
1668  (eval "$ac_try") 2>&5
1669  ac_status=$?
1670  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671  test $ac_status = 0; }; }; then :
1672  ac_retval=0
1673else
1674  $as_echo "$as_me: program exited with status $ac_status" >&5
1675       $as_echo "$as_me: failed program was:" >&5
1676sed 's/^/| /' conftest.$ac_ext >&5
1677
1678       ac_retval=$ac_status
1679fi
1680  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1681  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682  as_fn_set_status $ac_retval
1683
1684} # ac_fn_c_try_run
1685
1686# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1687# -------------------------------------------------------
1688# Tests whether HEADER exists and can be compiled using the include files in
1689# INCLUDES, setting the cache variable VAR accordingly.
1690ac_fn_c_check_header_compile ()
1691{
1692  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1694$as_echo_n "checking for $2... " >&6; }
1695if eval \${$3+:} false; then :
1696  $as_echo_n "(cached) " >&6
1697else
1698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1699/* end confdefs.h.  */
1700$4
1701#include <$2>
1702_ACEOF
1703if ac_fn_c_try_compile "$LINENO"; then :
1704  eval "$3=yes"
1705else
1706  eval "$3=no"
1707fi
1708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1709fi
1710eval ac_res=\$$3
1711	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1712$as_echo "$ac_res" >&6; }
1713  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714
1715} # ac_fn_c_check_header_compile
1716
1717# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1718# -------------------------------------------
1719# Tests whether TYPE exists after having included INCLUDES, setting cache
1720# variable VAR accordingly.
1721ac_fn_c_check_type ()
1722{
1723  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725$as_echo_n "checking for $2... " >&6; }
1726if eval \${$3+:} false; then :
1727  $as_echo_n "(cached) " >&6
1728else
1729  eval "$3=no"
1730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731/* end confdefs.h.  */
1732$4
1733int
1734main ()
1735{
1736if (sizeof ($2))
1737	 return 0;
1738  ;
1739  return 0;
1740}
1741_ACEOF
1742if ac_fn_c_try_compile "$LINENO"; then :
1743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744/* end confdefs.h.  */
1745$4
1746int
1747main ()
1748{
1749if (sizeof (($2)))
1750	    return 0;
1751  ;
1752  return 0;
1753}
1754_ACEOF
1755if ac_fn_c_try_compile "$LINENO"; then :
1756
1757else
1758  eval "$3=yes"
1759fi
1760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1761fi
1762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1763fi
1764eval ac_res=\$$3
1765	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1766$as_echo "$ac_res" >&6; }
1767  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768
1769} # ac_fn_c_check_type
1770
1771# ac_fn_c_find_intX_t LINENO BITS VAR
1772# -----------------------------------
1773# Finds a signed integer type with width BITS, setting cache variable VAR
1774# accordingly.
1775ac_fn_c_find_intX_t ()
1776{
1777  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1779$as_echo_n "checking for int$2_t... " >&6; }
1780if eval \${$3+:} false; then :
1781  $as_echo_n "(cached) " >&6
1782else
1783  eval "$3=no"
1784     # Order is important - never check a type that is potentially smaller
1785     # than half of the expected target width.
1786     for ac_type in int$2_t 'int' 'long int' \
1787	 'long long int' 'short int' 'signed char'; do
1788       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789/* end confdefs.h.  */
1790$ac_includes_default
1791	     enum { N = $2 / 2 - 1 };
1792int
1793main ()
1794{
1795static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1796test_array [0] = 0;
1797return test_array [0];
1798
1799  ;
1800  return 0;
1801}
1802_ACEOF
1803if ac_fn_c_try_compile "$LINENO"; then :
1804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805/* end confdefs.h.  */
1806$ac_includes_default
1807	        enum { N = $2 / 2 - 1 };
1808int
1809main ()
1810{
1811static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1812		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1813test_array [0] = 0;
1814return test_array [0];
1815
1816  ;
1817  return 0;
1818}
1819_ACEOF
1820if ac_fn_c_try_compile "$LINENO"; then :
1821
1822else
1823  case $ac_type in #(
1824  int$2_t) :
1825    eval "$3=yes" ;; #(
1826  *) :
1827    eval "$3=\$ac_type" ;;
1828esac
1829fi
1830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1831fi
1832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1833       if eval test \"x\$"$3"\" = x"no"; then :
1834
1835else
1836  break
1837fi
1838     done
1839fi
1840eval ac_res=\$$3
1841	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842$as_echo "$ac_res" >&6; }
1843  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844
1845} # ac_fn_c_find_intX_t
1846
1847# ac_fn_c_find_uintX_t LINENO BITS VAR
1848# ------------------------------------
1849# Finds an unsigned integer type with width BITS, setting cache variable VAR
1850# accordingly.
1851ac_fn_c_find_uintX_t ()
1852{
1853  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1855$as_echo_n "checking for uint$2_t... " >&6; }
1856if eval \${$3+:} false; then :
1857  $as_echo_n "(cached) " >&6
1858else
1859  eval "$3=no"
1860     # Order is important - never check a type that is potentially smaller
1861     # than half of the expected target width.
1862     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1863	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1864       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865/* end confdefs.h.  */
1866$ac_includes_default
1867int
1868main ()
1869{
1870static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1871test_array [0] = 0;
1872return test_array [0];
1873
1874  ;
1875  return 0;
1876}
1877_ACEOF
1878if ac_fn_c_try_compile "$LINENO"; then :
1879  case $ac_type in #(
1880  uint$2_t) :
1881    eval "$3=yes" ;; #(
1882  *) :
1883    eval "$3=\$ac_type" ;;
1884esac
1885fi
1886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1887       if eval test \"x\$"$3"\" = x"no"; then :
1888
1889else
1890  break
1891fi
1892     done
1893fi
1894eval ac_res=\$$3
1895	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896$as_echo "$ac_res" >&6; }
1897  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898
1899} # ac_fn_c_find_uintX_t
1900
1901# ac_fn_c_check_func LINENO FUNC VAR
1902# ----------------------------------
1903# Tests whether FUNC exists, setting the cache variable VAR accordingly
1904ac_fn_c_check_func ()
1905{
1906  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1908$as_echo_n "checking for $2... " >&6; }
1909if eval \${$3+:} false; then :
1910  $as_echo_n "(cached) " >&6
1911else
1912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913/* end confdefs.h.  */
1914/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1915   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1916#define $2 innocuous_$2
1917
1918/* System header to define __stub macros and hopefully few prototypes,
1919    which can conflict with char $2 (); below.
1920    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1921    <limits.h> exists even on freestanding compilers.  */
1922
1923#ifdef __STDC__
1924# include <limits.h>
1925#else
1926# include <assert.h>
1927#endif
1928
1929#undef $2
1930
1931/* Override any GCC internal prototype to avoid an error.
1932   Use char because int might match the return type of a GCC
1933   builtin and then its argument prototype would still apply.  */
1934#ifdef __cplusplus
1935extern "C"
1936#endif
1937char $2 ();
1938/* The GNU C library defines this for functions which it implements
1939    to always fail with ENOSYS.  Some functions are actually named
1940    something starting with __ and the normal name is an alias.  */
1941#if defined __stub_$2 || defined __stub___$2
1942choke me
1943#endif
1944
1945int
1946main ()
1947{
1948return $2 ();
1949  ;
1950  return 0;
1951}
1952_ACEOF
1953if ac_fn_c_try_link "$LINENO"; then :
1954  eval "$3=yes"
1955else
1956  eval "$3=no"
1957fi
1958rm -f core conftest.err conftest.$ac_objext \
1959    conftest$ac_exeext conftest.$ac_ext
1960fi
1961eval ac_res=\$$3
1962	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963$as_echo "$ac_res" >&6; }
1964  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965
1966} # ac_fn_c_check_func
1967cat >config.log <<_ACEOF
1968This file contains any messages produced by compilers while
1969running configure, to aid debugging if configure makes a mistake.
1970
1971It was created by VoR $as_me 0.5.8, which was
1972generated by GNU Autoconf 2.69.  Invocation command line was
1973
1974  $ $0 $@
1975
1976_ACEOF
1977exec 5>>config.log
1978{
1979cat <<_ASUNAME
1980## --------- ##
1981## Platform. ##
1982## --------- ##
1983
1984hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1985uname -m = `(uname -m) 2>/dev/null || echo unknown`
1986uname -r = `(uname -r) 2>/dev/null || echo unknown`
1987uname -s = `(uname -s) 2>/dev/null || echo unknown`
1988uname -v = `(uname -v) 2>/dev/null || echo unknown`
1989
1990/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1991/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1992
1993/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1994/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1995/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1996/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1997/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1998/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1999/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2000
2001_ASUNAME
2002
2003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004for as_dir in $PATH
2005do
2006  IFS=$as_save_IFS
2007  test -z "$as_dir" && as_dir=.
2008    $as_echo "PATH: $as_dir"
2009  done
2010IFS=$as_save_IFS
2011
2012} >&5
2013
2014cat >&5 <<_ACEOF
2015
2016
2017## ----------- ##
2018## Core tests. ##
2019## ----------- ##
2020
2021_ACEOF
2022
2023
2024# Keep a trace of the command line.
2025# Strip out --no-create and --no-recursion so they do not pile up.
2026# Strip out --silent because we don't want to record it for future runs.
2027# Also quote any args containing shell meta-characters.
2028# Make two passes to allow for proper duplicate-argument suppression.
2029ac_configure_args=
2030ac_configure_args0=
2031ac_configure_args1=
2032ac_must_keep_next=false
2033for ac_pass in 1 2
2034do
2035  for ac_arg
2036  do
2037    case $ac_arg in
2038    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2039    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2040    | -silent | --silent | --silen | --sile | --sil)
2041      continue ;;
2042    *\'*)
2043      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2044    esac
2045    case $ac_pass in
2046    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2047    2)
2048      as_fn_append ac_configure_args1 " '$ac_arg'"
2049      if test $ac_must_keep_next = true; then
2050	ac_must_keep_next=false # Got value, back to normal.
2051      else
2052	case $ac_arg in
2053	  *=* | --config-cache | -C | -disable-* | --disable-* \
2054	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2055	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2056	  | -with-* | --with-* | -without-* | --without-* | --x)
2057	    case "$ac_configure_args0 " in
2058	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2059	    esac
2060	    ;;
2061	  -* ) ac_must_keep_next=true ;;
2062	esac
2063      fi
2064      as_fn_append ac_configure_args " '$ac_arg'"
2065      ;;
2066    esac
2067  done
2068done
2069{ ac_configure_args0=; unset ac_configure_args0;}
2070{ ac_configure_args1=; unset ac_configure_args1;}
2071
2072# When interrupted or exit'd, cleanup temporary files, and complete
2073# config.log.  We remove comments because anyway the quotes in there
2074# would cause problems or look ugly.
2075# WARNING: Use '\'' to represent an apostrophe within the trap.
2076# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2077trap 'exit_status=$?
2078  # Save into config.log some information that might help in debugging.
2079  {
2080    echo
2081
2082    $as_echo "## ---------------- ##
2083## Cache variables. ##
2084## ---------------- ##"
2085    echo
2086    # The following way of writing the cache mishandles newlines in values,
2087(
2088  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2089    eval ac_val=\$$ac_var
2090    case $ac_val in #(
2091    *${as_nl}*)
2092      case $ac_var in #(
2093      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2094$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2095      esac
2096      case $ac_var in #(
2097      _ | IFS | as_nl) ;; #(
2098      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2099      *) { eval $ac_var=; unset $ac_var;} ;;
2100      esac ;;
2101    esac
2102  done
2103  (set) 2>&1 |
2104    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2105    *${as_nl}ac_space=\ *)
2106      sed -n \
2107	"s/'\''/'\''\\\\'\'''\''/g;
2108	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2109      ;; #(
2110    *)
2111      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2112      ;;
2113    esac |
2114    sort
2115)
2116    echo
2117
2118    $as_echo "## ----------------- ##
2119## Output variables. ##
2120## ----------------- ##"
2121    echo
2122    for ac_var in $ac_subst_vars
2123    do
2124      eval ac_val=\$$ac_var
2125      case $ac_val in
2126      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2127      esac
2128      $as_echo "$ac_var='\''$ac_val'\''"
2129    done | sort
2130    echo
2131
2132    if test -n "$ac_subst_files"; then
2133      $as_echo "## ------------------- ##
2134## File substitutions. ##
2135## ------------------- ##"
2136      echo
2137      for ac_var in $ac_subst_files
2138      do
2139	eval ac_val=\$$ac_var
2140	case $ac_val in
2141	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2142	esac
2143	$as_echo "$ac_var='\''$ac_val'\''"
2144      done | sort
2145      echo
2146    fi
2147
2148    if test -s confdefs.h; then
2149      $as_echo "## ----------- ##
2150## confdefs.h. ##
2151## ----------- ##"
2152      echo
2153      cat confdefs.h
2154      echo
2155    fi
2156    test "$ac_signal" != 0 &&
2157      $as_echo "$as_me: caught signal $ac_signal"
2158    $as_echo "$as_me: exit $exit_status"
2159  } >&5
2160  rm -f core *.core core.conftest.* &&
2161    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2162    exit $exit_status
2163' 0
2164for ac_signal in 1 2 13 15; do
2165  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2166done
2167ac_signal=0
2168
2169# confdefs.h avoids OS command line length limits that DEFS can exceed.
2170rm -f -r conftest* confdefs.h
2171
2172$as_echo "/* confdefs.h */" > confdefs.h
2173
2174# Predefined preprocessor variables.
2175
2176cat >>confdefs.h <<_ACEOF
2177#define PACKAGE_NAME "$PACKAGE_NAME"
2178_ACEOF
2179
2180cat >>confdefs.h <<_ACEOF
2181#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2182_ACEOF
2183
2184cat >>confdefs.h <<_ACEOF
2185#define PACKAGE_VERSION "$PACKAGE_VERSION"
2186_ACEOF
2187
2188cat >>confdefs.h <<_ACEOF
2189#define PACKAGE_STRING "$PACKAGE_STRING"
2190_ACEOF
2191
2192cat >>confdefs.h <<_ACEOF
2193#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2194_ACEOF
2195
2196cat >>confdefs.h <<_ACEOF
2197#define PACKAGE_URL "$PACKAGE_URL"
2198_ACEOF
2199
2200
2201# Let the site file select an alternate cache file if it wants to.
2202# Prefer an explicitly selected file to automatically selected ones.
2203ac_site_file1=NONE
2204ac_site_file2=NONE
2205if test -n "$CONFIG_SITE"; then
2206  # We do not want a PATH search for config.site.
2207  case $CONFIG_SITE in #((
2208    -*)  ac_site_file1=./$CONFIG_SITE;;
2209    */*) ac_site_file1=$CONFIG_SITE;;
2210    *)   ac_site_file1=./$CONFIG_SITE;;
2211  esac
2212elif test "x$prefix" != xNONE; then
2213  ac_site_file1=$prefix/share/config.site
2214  ac_site_file2=$prefix/etc/config.site
2215else
2216  ac_site_file1=$ac_default_prefix/share/config.site
2217  ac_site_file2=$ac_default_prefix/etc/config.site
2218fi
2219for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2220do
2221  test "x$ac_site_file" = xNONE && continue
2222  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2223    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2224$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2225    sed 's/^/| /' "$ac_site_file" >&5
2226    . "$ac_site_file" \
2227      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2228$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2229as_fn_error $? "failed to load site script $ac_site_file
2230See \`config.log' for more details" "$LINENO" 5; }
2231  fi
2232done
2233
2234if test -r "$cache_file"; then
2235  # Some versions of bash will fail to source /dev/null (special files
2236  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2237  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2238    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2239$as_echo "$as_me: loading cache $cache_file" >&6;}
2240    case $cache_file in
2241      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2242      *)                      . "./$cache_file";;
2243    esac
2244  fi
2245else
2246  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2247$as_echo "$as_me: creating cache $cache_file" >&6;}
2248  >$cache_file
2249fi
2250
2251# Check that the precious variables saved in the cache have kept the same
2252# value.
2253ac_cache_corrupted=false
2254for ac_var in $ac_precious_vars; do
2255  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2256  eval ac_new_set=\$ac_env_${ac_var}_set
2257  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2258  eval ac_new_val=\$ac_env_${ac_var}_value
2259  case $ac_old_set,$ac_new_set in
2260    set,)
2261      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2262$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2263      ac_cache_corrupted=: ;;
2264    ,set)
2265      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2266$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2267      ac_cache_corrupted=: ;;
2268    ,);;
2269    *)
2270      if test "x$ac_old_val" != "x$ac_new_val"; then
2271	# differences in whitespace do not lead to failure.
2272	ac_old_val_w=`echo x $ac_old_val`
2273	ac_new_val_w=`echo x $ac_new_val`
2274	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2275	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2276$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2277	  ac_cache_corrupted=:
2278	else
2279	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2280$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2281	  eval $ac_var=\$ac_old_val
2282	fi
2283	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2284$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2285	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2286$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2287      fi;;
2288  esac
2289  # Pass precious variables to config.status.
2290  if test "$ac_new_set" = set; then
2291    case $ac_new_val in
2292    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2293    *) ac_arg=$ac_var=$ac_new_val ;;
2294    esac
2295    case " $ac_configure_args " in
2296      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2297      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2298    esac
2299  fi
2300done
2301if $ac_cache_corrupted; then
2302  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2303$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2304  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2305$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2306  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2307fi
2308## -------------------- ##
2309## Main body of script. ##
2310## -------------------- ##
2311
2312ac_ext=c
2313ac_cpp='$CPP $CPPFLAGS'
2314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2316ac_compiler_gnu=$ac_cv_c_compiler_gnu
2317
2318
2319
2320ac_config_headers="$ac_config_headers config.h"
2321
2322
2323# Checks for programs.
2324ac_ext=c
2325ac_cpp='$CPP $CPPFLAGS'
2326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2328ac_compiler_gnu=$ac_cv_c_compiler_gnu
2329if test -n "$ac_tool_prefix"; then
2330  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2331set dummy ${ac_tool_prefix}gcc; ac_word=$2
2332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2333$as_echo_n "checking for $ac_word... " >&6; }
2334if ${ac_cv_prog_CC+:} false; then :
2335  $as_echo_n "(cached) " >&6
2336else
2337  if test -n "$CC"; then
2338  ac_cv_prog_CC="$CC" # Let the user override the test.
2339else
2340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341for as_dir in $PATH
2342do
2343  IFS=$as_save_IFS
2344  test -z "$as_dir" && as_dir=.
2345    for ac_exec_ext in '' $ac_executable_extensions; do
2346  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2347    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2348    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2349    break 2
2350  fi
2351done
2352  done
2353IFS=$as_save_IFS
2354
2355fi
2356fi
2357CC=$ac_cv_prog_CC
2358if test -n "$CC"; then
2359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2360$as_echo "$CC" >&6; }
2361else
2362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2363$as_echo "no" >&6; }
2364fi
2365
2366
2367fi
2368if test -z "$ac_cv_prog_CC"; then
2369  ac_ct_CC=$CC
2370  # Extract the first word of "gcc", so it can be a program name with args.
2371set dummy gcc; ac_word=$2
2372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2373$as_echo_n "checking for $ac_word... " >&6; }
2374if ${ac_cv_prog_ac_ct_CC+:} false; then :
2375  $as_echo_n "(cached) " >&6
2376else
2377  if test -n "$ac_ct_CC"; then
2378  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2379else
2380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381for as_dir in $PATH
2382do
2383  IFS=$as_save_IFS
2384  test -z "$as_dir" && as_dir=.
2385    for ac_exec_ext in '' $ac_executable_extensions; do
2386  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2387    ac_cv_prog_ac_ct_CC="gcc"
2388    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2389    break 2
2390  fi
2391done
2392  done
2393IFS=$as_save_IFS
2394
2395fi
2396fi
2397ac_ct_CC=$ac_cv_prog_ac_ct_CC
2398if test -n "$ac_ct_CC"; then
2399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2400$as_echo "$ac_ct_CC" >&6; }
2401else
2402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2403$as_echo "no" >&6; }
2404fi
2405
2406  if test "x$ac_ct_CC" = x; then
2407    CC=""
2408  else
2409    case $cross_compiling:$ac_tool_warned in
2410yes:)
2411{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2412$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2413ac_tool_warned=yes ;;
2414esac
2415    CC=$ac_ct_CC
2416  fi
2417else
2418  CC="$ac_cv_prog_CC"
2419fi
2420
2421if test -z "$CC"; then
2422          if test -n "$ac_tool_prefix"; then
2423    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2424set dummy ${ac_tool_prefix}cc; ac_word=$2
2425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2426$as_echo_n "checking for $ac_word... " >&6; }
2427if ${ac_cv_prog_CC+:} false; then :
2428  $as_echo_n "(cached) " >&6
2429else
2430  if test -n "$CC"; then
2431  ac_cv_prog_CC="$CC" # Let the user override the test.
2432else
2433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434for as_dir in $PATH
2435do
2436  IFS=$as_save_IFS
2437  test -z "$as_dir" && as_dir=.
2438    for ac_exec_ext in '' $ac_executable_extensions; do
2439  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2440    ac_cv_prog_CC="${ac_tool_prefix}cc"
2441    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2442    break 2
2443  fi
2444done
2445  done
2446IFS=$as_save_IFS
2447
2448fi
2449fi
2450CC=$ac_cv_prog_CC
2451if test -n "$CC"; then
2452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2453$as_echo "$CC" >&6; }
2454else
2455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2456$as_echo "no" >&6; }
2457fi
2458
2459
2460  fi
2461fi
2462if test -z "$CC"; then
2463  # Extract the first word of "cc", so it can be a program name with args.
2464set dummy cc; ac_word=$2
2465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2466$as_echo_n "checking for $ac_word... " >&6; }
2467if ${ac_cv_prog_CC+:} false; then :
2468  $as_echo_n "(cached) " >&6
2469else
2470  if test -n "$CC"; then
2471  ac_cv_prog_CC="$CC" # Let the user override the test.
2472else
2473  ac_prog_rejected=no
2474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475for as_dir in $PATH
2476do
2477  IFS=$as_save_IFS
2478  test -z "$as_dir" && as_dir=.
2479    for ac_exec_ext in '' $ac_executable_extensions; do
2480  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2481    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2482       ac_prog_rejected=yes
2483       continue
2484     fi
2485    ac_cv_prog_CC="cc"
2486    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2487    break 2
2488  fi
2489done
2490  done
2491IFS=$as_save_IFS
2492
2493if test $ac_prog_rejected = yes; then
2494  # We found a bogon in the path, so make sure we never use it.
2495  set dummy $ac_cv_prog_CC
2496  shift
2497  if test $# != 0; then
2498    # We chose a different compiler from the bogus one.
2499    # However, it has the same basename, so the bogon will be chosen
2500    # first if we set CC to just the basename; use the full file name.
2501    shift
2502    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2503  fi
2504fi
2505fi
2506fi
2507CC=$ac_cv_prog_CC
2508if test -n "$CC"; then
2509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2510$as_echo "$CC" >&6; }
2511else
2512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2513$as_echo "no" >&6; }
2514fi
2515
2516
2517fi
2518if test -z "$CC"; then
2519  if test -n "$ac_tool_prefix"; then
2520  for ac_prog in cl.exe
2521  do
2522    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2523set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2525$as_echo_n "checking for $ac_word... " >&6; }
2526if ${ac_cv_prog_CC+:} false; then :
2527  $as_echo_n "(cached) " >&6
2528else
2529  if test -n "$CC"; then
2530  ac_cv_prog_CC="$CC" # Let the user override the test.
2531else
2532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533for as_dir in $PATH
2534do
2535  IFS=$as_save_IFS
2536  test -z "$as_dir" && as_dir=.
2537    for ac_exec_ext in '' $ac_executable_extensions; do
2538  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2539    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2540    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2541    break 2
2542  fi
2543done
2544  done
2545IFS=$as_save_IFS
2546
2547fi
2548fi
2549CC=$ac_cv_prog_CC
2550if test -n "$CC"; then
2551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2552$as_echo "$CC" >&6; }
2553else
2554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2555$as_echo "no" >&6; }
2556fi
2557
2558
2559    test -n "$CC" && break
2560  done
2561fi
2562if test -z "$CC"; then
2563  ac_ct_CC=$CC
2564  for ac_prog in cl.exe
2565do
2566  # Extract the first word of "$ac_prog", so it can be a program name with args.
2567set dummy $ac_prog; ac_word=$2
2568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2569$as_echo_n "checking for $ac_word... " >&6; }
2570if ${ac_cv_prog_ac_ct_CC+:} false; then :
2571  $as_echo_n "(cached) " >&6
2572else
2573  if test -n "$ac_ct_CC"; then
2574  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2575else
2576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577for as_dir in $PATH
2578do
2579  IFS=$as_save_IFS
2580  test -z "$as_dir" && as_dir=.
2581    for ac_exec_ext in '' $ac_executable_extensions; do
2582  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2583    ac_cv_prog_ac_ct_CC="$ac_prog"
2584    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2585    break 2
2586  fi
2587done
2588  done
2589IFS=$as_save_IFS
2590
2591fi
2592fi
2593ac_ct_CC=$ac_cv_prog_ac_ct_CC
2594if test -n "$ac_ct_CC"; then
2595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2596$as_echo "$ac_ct_CC" >&6; }
2597else
2598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2599$as_echo "no" >&6; }
2600fi
2601
2602
2603  test -n "$ac_ct_CC" && break
2604done
2605
2606  if test "x$ac_ct_CC" = x; then
2607    CC=""
2608  else
2609    case $cross_compiling:$ac_tool_warned in
2610yes:)
2611{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2612$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2613ac_tool_warned=yes ;;
2614esac
2615    CC=$ac_ct_CC
2616  fi
2617fi
2618
2619fi
2620
2621
2622test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2623$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2624as_fn_error $? "no acceptable C compiler found in \$PATH
2625See \`config.log' for more details" "$LINENO" 5; }
2626
2627# Provide some information about the compiler.
2628$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2629set X $ac_compile
2630ac_compiler=$2
2631for ac_option in --version -v -V -qversion; do
2632  { { ac_try="$ac_compiler $ac_option >&5"
2633case "(($ac_try" in
2634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635  *) ac_try_echo=$ac_try;;
2636esac
2637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2638$as_echo "$ac_try_echo"; } >&5
2639  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2640  ac_status=$?
2641  if test -s conftest.err; then
2642    sed '10a\
2643... rest of stderr output deleted ...
2644         10q' conftest.err >conftest.er1
2645    cat conftest.er1 >&5
2646  fi
2647  rm -f conftest.er1 conftest.err
2648  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2649  test $ac_status = 0; }
2650done
2651
2652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2653/* end confdefs.h.  */
2654
2655int
2656main ()
2657{
2658
2659  ;
2660  return 0;
2661}
2662_ACEOF
2663ac_clean_files_save=$ac_clean_files
2664ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2665# Try to create an executable without -o first, disregard a.out.
2666# It will help us diagnose broken compilers, and finding out an intuition
2667# of exeext.
2668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2669$as_echo_n "checking whether the C compiler works... " >&6; }
2670ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2671
2672# The possible output files:
2673ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2674
2675ac_rmfiles=
2676for ac_file in $ac_files
2677do
2678  case $ac_file in
2679    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2680    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2681  esac
2682done
2683rm -f $ac_rmfiles
2684
2685if { { ac_try="$ac_link_default"
2686case "(($ac_try" in
2687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688  *) ac_try_echo=$ac_try;;
2689esac
2690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2691$as_echo "$ac_try_echo"; } >&5
2692  (eval "$ac_link_default") 2>&5
2693  ac_status=$?
2694  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2695  test $ac_status = 0; }; then :
2696  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2697# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2698# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2699# so that the user can short-circuit this test for compilers unknown to
2700# Autoconf.
2701for ac_file in $ac_files ''
2702do
2703  test -f "$ac_file" || continue
2704  case $ac_file in
2705    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2706	;;
2707    [ab].out )
2708	# We found the default executable, but exeext='' is most
2709	# certainly right.
2710	break;;
2711    *.* )
2712	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2713	then :; else
2714	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2715	fi
2716	# We set ac_cv_exeext here because the later test for it is not
2717	# safe: cross compilers may not add the suffix if given an `-o'
2718	# argument, so we may need to know it at that point already.
2719	# Even if this section looks crufty: it has the advantage of
2720	# actually working.
2721	break;;
2722    * )
2723	break;;
2724  esac
2725done
2726test "$ac_cv_exeext" = no && ac_cv_exeext=
2727
2728else
2729  ac_file=''
2730fi
2731if test -z "$ac_file"; then :
2732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2733$as_echo "no" >&6; }
2734$as_echo "$as_me: failed program was:" >&5
2735sed 's/^/| /' conftest.$ac_ext >&5
2736
2737{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2738$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2739as_fn_error 77 "C compiler cannot create executables
2740See \`config.log' for more details" "$LINENO" 5; }
2741else
2742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2743$as_echo "yes" >&6; }
2744fi
2745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2746$as_echo_n "checking for C compiler default output file name... " >&6; }
2747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2748$as_echo "$ac_file" >&6; }
2749ac_exeext=$ac_cv_exeext
2750
2751rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2752ac_clean_files=$ac_clean_files_save
2753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2754$as_echo_n "checking for suffix of executables... " >&6; }
2755if { { ac_try="$ac_link"
2756case "(($ac_try" in
2757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758  *) ac_try_echo=$ac_try;;
2759esac
2760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2761$as_echo "$ac_try_echo"; } >&5
2762  (eval "$ac_link") 2>&5
2763  ac_status=$?
2764  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2765  test $ac_status = 0; }; then :
2766  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2767# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2768# work properly (i.e., refer to `conftest.exe'), while it won't with
2769# `rm'.
2770for ac_file in conftest.exe conftest conftest.*; do
2771  test -f "$ac_file" || continue
2772  case $ac_file in
2773    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2774    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2775	  break;;
2776    * ) break;;
2777  esac
2778done
2779else
2780  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2781$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2782as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2783See \`config.log' for more details" "$LINENO" 5; }
2784fi
2785rm -f conftest conftest$ac_cv_exeext
2786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2787$as_echo "$ac_cv_exeext" >&6; }
2788
2789rm -f conftest.$ac_ext
2790EXEEXT=$ac_cv_exeext
2791ac_exeext=$EXEEXT
2792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2793/* end confdefs.h.  */
2794#include <stdio.h>
2795int
2796main ()
2797{
2798FILE *f = fopen ("conftest.out", "w");
2799 return ferror (f) || fclose (f) != 0;
2800
2801  ;
2802  return 0;
2803}
2804_ACEOF
2805ac_clean_files="$ac_clean_files conftest.out"
2806# Check that the compiler produces executables we can run.  If not, either
2807# the compiler is broken, or we cross compile.
2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2809$as_echo_n "checking whether we are cross compiling... " >&6; }
2810if test "$cross_compiling" != yes; then
2811  { { ac_try="$ac_link"
2812case "(($ac_try" in
2813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814  *) ac_try_echo=$ac_try;;
2815esac
2816eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2817$as_echo "$ac_try_echo"; } >&5
2818  (eval "$ac_link") 2>&5
2819  ac_status=$?
2820  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2821  test $ac_status = 0; }
2822  if { ac_try='./conftest$ac_cv_exeext'
2823  { { case "(($ac_try" in
2824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825  *) ac_try_echo=$ac_try;;
2826esac
2827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2828$as_echo "$ac_try_echo"; } >&5
2829  (eval "$ac_try") 2>&5
2830  ac_status=$?
2831  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2832  test $ac_status = 0; }; }; then
2833    cross_compiling=no
2834  else
2835    if test "$cross_compiling" = maybe; then
2836	cross_compiling=yes
2837    else
2838	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2839$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2840as_fn_error $? "cannot run C compiled programs.
2841If you meant to cross compile, use \`--host'.
2842See \`config.log' for more details" "$LINENO" 5; }
2843    fi
2844  fi
2845fi
2846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2847$as_echo "$cross_compiling" >&6; }
2848
2849rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2850ac_clean_files=$ac_clean_files_save
2851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2852$as_echo_n "checking for suffix of object files... " >&6; }
2853if ${ac_cv_objext+:} false; then :
2854  $as_echo_n "(cached) " >&6
2855else
2856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2857/* end confdefs.h.  */
2858
2859int
2860main ()
2861{
2862
2863  ;
2864  return 0;
2865}
2866_ACEOF
2867rm -f conftest.o conftest.obj
2868if { { ac_try="$ac_compile"
2869case "(($ac_try" in
2870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871  *) ac_try_echo=$ac_try;;
2872esac
2873eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2874$as_echo "$ac_try_echo"; } >&5
2875  (eval "$ac_compile") 2>&5
2876  ac_status=$?
2877  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2878  test $ac_status = 0; }; then :
2879  for ac_file in conftest.o conftest.obj conftest.*; do
2880  test -f "$ac_file" || continue;
2881  case $ac_file in
2882    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2883    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2884       break;;
2885  esac
2886done
2887else
2888  $as_echo "$as_me: failed program was:" >&5
2889sed 's/^/| /' conftest.$ac_ext >&5
2890
2891{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2892$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2893as_fn_error $? "cannot compute suffix of object files: cannot compile
2894See \`config.log' for more details" "$LINENO" 5; }
2895fi
2896rm -f conftest.$ac_cv_objext conftest.$ac_ext
2897fi
2898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2899$as_echo "$ac_cv_objext" >&6; }
2900OBJEXT=$ac_cv_objext
2901ac_objext=$OBJEXT
2902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2903$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2904if ${ac_cv_c_compiler_gnu+:} false; then :
2905  $as_echo_n "(cached) " >&6
2906else
2907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2908/* end confdefs.h.  */
2909
2910int
2911main ()
2912{
2913#ifndef __GNUC__
2914       choke me
2915#endif
2916
2917  ;
2918  return 0;
2919}
2920_ACEOF
2921if ac_fn_c_try_compile "$LINENO"; then :
2922  ac_compiler_gnu=yes
2923else
2924  ac_compiler_gnu=no
2925fi
2926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2927ac_cv_c_compiler_gnu=$ac_compiler_gnu
2928
2929fi
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2931$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2932if test $ac_compiler_gnu = yes; then
2933  GCC=yes
2934else
2935  GCC=
2936fi
2937ac_test_CFLAGS=${CFLAGS+set}
2938ac_save_CFLAGS=$CFLAGS
2939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2940$as_echo_n "checking whether $CC accepts -g... " >&6; }
2941if ${ac_cv_prog_cc_g+:} false; then :
2942  $as_echo_n "(cached) " >&6
2943else
2944  ac_save_c_werror_flag=$ac_c_werror_flag
2945   ac_c_werror_flag=yes
2946   ac_cv_prog_cc_g=no
2947   CFLAGS="-g"
2948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2949/* end confdefs.h.  */
2950
2951int
2952main ()
2953{
2954
2955  ;
2956  return 0;
2957}
2958_ACEOF
2959if ac_fn_c_try_compile "$LINENO"; then :
2960  ac_cv_prog_cc_g=yes
2961else
2962  CFLAGS=""
2963      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2964/* end confdefs.h.  */
2965
2966int
2967main ()
2968{
2969
2970  ;
2971  return 0;
2972}
2973_ACEOF
2974if ac_fn_c_try_compile "$LINENO"; then :
2975
2976else
2977  ac_c_werror_flag=$ac_save_c_werror_flag
2978	 CFLAGS="-g"
2979	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2980/* end confdefs.h.  */
2981
2982int
2983main ()
2984{
2985
2986  ;
2987  return 0;
2988}
2989_ACEOF
2990if ac_fn_c_try_compile "$LINENO"; then :
2991  ac_cv_prog_cc_g=yes
2992fi
2993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2994fi
2995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2996fi
2997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2998   ac_c_werror_flag=$ac_save_c_werror_flag
2999fi
3000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3001$as_echo "$ac_cv_prog_cc_g" >&6; }
3002if test "$ac_test_CFLAGS" = set; then
3003  CFLAGS=$ac_save_CFLAGS
3004elif test $ac_cv_prog_cc_g = yes; then
3005  if test "$GCC" = yes; then
3006    CFLAGS="-g -O2"
3007  else
3008    CFLAGS="-g"
3009  fi
3010else
3011  if test "$GCC" = yes; then
3012    CFLAGS="-O2"
3013  else
3014    CFLAGS=
3015  fi
3016fi
3017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3018$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3019if ${ac_cv_prog_cc_c89+:} false; then :
3020  $as_echo_n "(cached) " >&6
3021else
3022  ac_cv_prog_cc_c89=no
3023ac_save_CC=$CC
3024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3025/* end confdefs.h.  */
3026#include <stdarg.h>
3027#include <stdio.h>
3028struct stat;
3029/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3030struct buf { int x; };
3031FILE * (*rcsopen) (struct buf *, struct stat *, int);
3032static char *e (p, i)
3033     char **p;
3034     int i;
3035{
3036  return p[i];
3037}
3038static char *f (char * (*g) (char **, int), char **p, ...)
3039{
3040  char *s;
3041  va_list v;
3042  va_start (v,p);
3043  s = g (p, va_arg (v,int));
3044  va_end (v);
3045  return s;
3046}
3047
3048/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3049   function prototypes and stuff, but not '\xHH' hex character constants.
3050   These don't provoke an error unfortunately, instead are silently treated
3051   as 'x'.  The following induces an error, until -std is added to get
3052   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3053   array size at least.  It's necessary to write '\x00'==0 to get something
3054   that's true only with -std.  */
3055int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3056
3057/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3058   inside strings and character constants.  */
3059#define FOO(x) 'x'
3060int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3061
3062int test (int i, double x);
3063struct s1 {int (*f) (int a);};
3064struct s2 {int (*f) (double a);};
3065int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3066int argc;
3067char **argv;
3068int
3069main ()
3070{
3071return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3072  ;
3073  return 0;
3074}
3075_ACEOF
3076for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3077	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3078do
3079  CC="$ac_save_CC $ac_arg"
3080  if ac_fn_c_try_compile "$LINENO"; then :
3081  ac_cv_prog_cc_c89=$ac_arg
3082fi
3083rm -f core conftest.err conftest.$ac_objext
3084  test "x$ac_cv_prog_cc_c89" != "xno" && break
3085done
3086rm -f conftest.$ac_ext
3087CC=$ac_save_CC
3088
3089fi
3090# AC_CACHE_VAL
3091case "x$ac_cv_prog_cc_c89" in
3092  x)
3093    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3094$as_echo "none needed" >&6; } ;;
3095  xno)
3096    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3097$as_echo "unsupported" >&6; } ;;
3098  *)
3099    CC="$CC $ac_cv_prog_cc_c89"
3100    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3101$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3102esac
3103if test "x$ac_cv_prog_cc_c89" != xno; then :
3104
3105fi
3106
3107ac_ext=c
3108ac_cpp='$CPP $CPPFLAGS'
3109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3111ac_compiler_gnu=$ac_cv_c_compiler_gnu
3112
3113ac_aux_dir=
3114for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3115  if test -f "$ac_dir/install-sh"; then
3116    ac_aux_dir=$ac_dir
3117    ac_install_sh="$ac_aux_dir/install-sh -c"
3118    break
3119  elif test -f "$ac_dir/install.sh"; then
3120    ac_aux_dir=$ac_dir
3121    ac_install_sh="$ac_aux_dir/install.sh -c"
3122    break
3123  elif test -f "$ac_dir/shtool"; then
3124    ac_aux_dir=$ac_dir
3125    ac_install_sh="$ac_aux_dir/shtool install -c"
3126    break
3127  fi
3128done
3129if test -z "$ac_aux_dir"; then
3130  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3131fi
3132
3133# These three variables are undocumented and unsupported,
3134# and are intended to be withdrawn in a future Autoconf release.
3135# They can cause serious problems if a builder's source tree is in a directory
3136# whose full name contains unusual characters.
3137ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3138ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3139ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3140
3141
3142# Find a good install program.  We prefer a C program (faster),
3143# so one script is as good as another.  But avoid the broken or
3144# incompatible versions:
3145# SysV /etc/install, /usr/sbin/install
3146# SunOS /usr/etc/install
3147# IRIX /sbin/install
3148# AIX /bin/install
3149# AmigaOS /C/install, which installs bootblocks on floppy discs
3150# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3151# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3152# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3153# OS/2's system install, which has a completely different semantic
3154# ./install, which can be erroneously created by make from ./install.sh.
3155# Reject install programs that cannot install multiple files.
3156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3157$as_echo_n "checking for a BSD-compatible install... " >&6; }
3158if test -z "$INSTALL"; then
3159if ${ac_cv_path_install+:} false; then :
3160  $as_echo_n "(cached) " >&6
3161else
3162  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163for as_dir in $PATH
3164do
3165  IFS=$as_save_IFS
3166  test -z "$as_dir" && as_dir=.
3167    # Account for people who put trailing slashes in PATH elements.
3168case $as_dir/ in #((
3169  ./ | .// | /[cC]/* | \
3170  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3171  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3172  /usr/ucb/* ) ;;
3173  *)
3174    # OSF1 and SCO ODT 3.0 have their own names for install.
3175    # Don't use installbsd from OSF since it installs stuff as root
3176    # by default.
3177    for ac_prog in ginstall scoinst install; do
3178      for ac_exec_ext in '' $ac_executable_extensions; do
3179	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3180	  if test $ac_prog = install &&
3181	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3182	    # AIX install.  It has an incompatible calling convention.
3183	    :
3184	  elif test $ac_prog = install &&
3185	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3186	    # program-specific install script used by HP pwplus--don't use.
3187	    :
3188	  else
3189	    rm -rf conftest.one conftest.two conftest.dir
3190	    echo one > conftest.one
3191	    echo two > conftest.two
3192	    mkdir conftest.dir
3193	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3194	      test -s conftest.one && test -s conftest.two &&
3195	      test -s conftest.dir/conftest.one &&
3196	      test -s conftest.dir/conftest.two
3197	    then
3198	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3199	      break 3
3200	    fi
3201	  fi
3202	fi
3203      done
3204    done
3205    ;;
3206esac
3207
3208  done
3209IFS=$as_save_IFS
3210
3211rm -rf conftest.one conftest.two conftest.dir
3212
3213fi
3214  if test "${ac_cv_path_install+set}" = set; then
3215    INSTALL=$ac_cv_path_install
3216  else
3217    # As a last resort, use the slow shell script.  Don't cache a
3218    # value for INSTALL within a source directory, because that will
3219    # break other packages using the cache if that directory is
3220    # removed, or if the value is a relative name.
3221    INSTALL=$ac_install_sh
3222  fi
3223fi
3224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3225$as_echo "$INSTALL" >&6; }
3226
3227# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3228# It thinks the first close brace ends the variable substitution.
3229test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3230
3231test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3232
3233test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3234
3235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3236$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3237set x ${MAKE-make}
3238ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3239if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3240  $as_echo_n "(cached) " >&6
3241else
3242  cat >conftest.make <<\_ACEOF
3243SHELL = /bin/sh
3244all:
3245	@echo '@@@%%%=$(MAKE)=@@@%%%'
3246_ACEOF
3247# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3248case `${MAKE-make} -f conftest.make 2>/dev/null` in
3249  *@@@%%%=?*=@@@%%%*)
3250    eval ac_cv_prog_make_${ac_make}_set=yes;;
3251  *)
3252    eval ac_cv_prog_make_${ac_make}_set=no;;
3253esac
3254rm -f conftest.make
3255fi
3256if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3258$as_echo "yes" >&6; }
3259  SET_MAKE=
3260else
3261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262$as_echo "no" >&6; }
3263  SET_MAKE="MAKE=${MAKE-make}"
3264fi
3265
3266
3267# Checks for libraries.
3268
3269
3270
3271
3272
3273
3274
3275if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3276	if test -n "$ac_tool_prefix"; then
3277  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3278set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280$as_echo_n "checking for $ac_word... " >&6; }
3281if ${ac_cv_path_PKG_CONFIG+:} false; then :
3282  $as_echo_n "(cached) " >&6
3283else
3284  case $PKG_CONFIG in
3285  [\\/]* | ?:[\\/]*)
3286  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3287  ;;
3288  *)
3289  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290for as_dir in $PATH
3291do
3292  IFS=$as_save_IFS
3293  test -z "$as_dir" && as_dir=.
3294    for ac_exec_ext in '' $ac_executable_extensions; do
3295  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3296    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3297    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3298    break 2
3299  fi
3300done
3301  done
3302IFS=$as_save_IFS
3303
3304  ;;
3305esac
3306fi
3307PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3308if test -n "$PKG_CONFIG"; then
3309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3310$as_echo "$PKG_CONFIG" >&6; }
3311else
3312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313$as_echo "no" >&6; }
3314fi
3315
3316
3317fi
3318if test -z "$ac_cv_path_PKG_CONFIG"; then
3319  ac_pt_PKG_CONFIG=$PKG_CONFIG
3320  # Extract the first word of "pkg-config", so it can be a program name with args.
3321set dummy pkg-config; ac_word=$2
3322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323$as_echo_n "checking for $ac_word... " >&6; }
3324if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3325  $as_echo_n "(cached) " >&6
3326else
3327  case $ac_pt_PKG_CONFIG in
3328  [\\/]* | ?:[\\/]*)
3329  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3330  ;;
3331  *)
3332  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3333for as_dir in $PATH
3334do
3335  IFS=$as_save_IFS
3336  test -z "$as_dir" && as_dir=.
3337    for ac_exec_ext in '' $ac_executable_extensions; do
3338  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3339    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3340    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3341    break 2
3342  fi
3343done
3344  done
3345IFS=$as_save_IFS
3346
3347  ;;
3348esac
3349fi
3350ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3351if test -n "$ac_pt_PKG_CONFIG"; then
3352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3353$as_echo "$ac_pt_PKG_CONFIG" >&6; }
3354else
3355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356$as_echo "no" >&6; }
3357fi
3358
3359  if test "x$ac_pt_PKG_CONFIG" = x; then
3360    PKG_CONFIG=""
3361  else
3362    case $cross_compiling:$ac_tool_warned in
3363yes:)
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3365$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3366ac_tool_warned=yes ;;
3367esac
3368    PKG_CONFIG=$ac_pt_PKG_CONFIG
3369  fi
3370else
3371  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3372fi
3373
3374fi
3375if test -n "$PKG_CONFIG"; then
3376	_pkg_min_version=0.9.0
3377	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3378$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3379	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3380		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3381$as_echo "yes" >&6; }
3382	else
3383		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384$as_echo "no" >&6; }
3385		PKG_CONFIG=""
3386	fi
3387fi
3388
3389pkg_failed=no
3390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5
3391$as_echo_n "checking for SDL... " >&6; }
3392
3393if test -n "$SDL_CFLAGS"; then
3394    pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
3395 elif test -n "$PKG_CONFIG"; then
3396    if test -n "$PKG_CONFIG" && \
3397    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2\""; } >&5
3398  ($PKG_CONFIG --exists --print-errors "sdl >= 1.2") 2>&5
3399  ac_status=$?
3400  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401  test $ac_status = 0; }; then
3402  pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl >= 1.2" 2>/dev/null`
3403		      test "x$?" != "x0" && pkg_failed=yes
3404else
3405  pkg_failed=yes
3406fi
3407 else
3408    pkg_failed=untried
3409fi
3410if test -n "$SDL_LIBS"; then
3411    pkg_cv_SDL_LIBS="$SDL_LIBS"
3412 elif test -n "$PKG_CONFIG"; then
3413    if test -n "$PKG_CONFIG" && \
3414    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2\""; } >&5
3415  ($PKG_CONFIG --exists --print-errors "sdl >= 1.2") 2>&5
3416  ac_status=$?
3417  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418  test $ac_status = 0; }; then
3419  pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl >= 1.2" 2>/dev/null`
3420		      test "x$?" != "x0" && pkg_failed=yes
3421else
3422  pkg_failed=yes
3423fi
3424 else
3425    pkg_failed=untried
3426fi
3427
3428
3429
3430if test $pkg_failed = yes; then
3431   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3432$as_echo "no" >&6; }
3433
3434if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3435        _pkg_short_errors_supported=yes
3436else
3437        _pkg_short_errors_supported=no
3438fi
3439        if test $_pkg_short_errors_supported = yes; then
3440	        SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl >= 1.2" 2>&1`
3441        else
3442	        SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl >= 1.2" 2>&1`
3443        fi
3444	# Put the nasty error message in config.log where it belongs
3445	echo "$SDL_PKG_ERRORS" >&5
3446
3447	as_fn_error $? "Package requirements (sdl >= 1.2) were not met:
3448
3449$SDL_PKG_ERRORS
3450
3451Consider adjusting the PKG_CONFIG_PATH environment variable if you
3452installed software in a non-standard prefix.
3453
3454Alternatively, you may set the environment variables SDL_CFLAGS
3455and SDL_LIBS to avoid the need to call pkg-config.
3456See the pkg-config man page for more details." "$LINENO" 5
3457elif test $pkg_failed = untried; then
3458     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459$as_echo "no" >&6; }
3460	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3461$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3462as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
3463is in your PATH or set the PKG_CONFIG environment variable to the full
3464path to pkg-config.
3465
3466Alternatively, you may set the environment variables SDL_CFLAGS
3467and SDL_LIBS to avoid the need to call pkg-config.
3468See the pkg-config man page for more details.
3469
3470To get pkg-config, see <http://pkg-config.freedesktop.org/>.
3471See \`config.log' for more details" "$LINENO" 5; }
3472else
3473	SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
3474	SDL_LIBS=$pkg_cv_SDL_LIBS
3475        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3476$as_echo "yes" >&6; }
3477
3478fi
3479
3480pkg_failed=no
3481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_IMAGE" >&5
3482$as_echo_n "checking for SDL_IMAGE... " >&6; }
3483
3484if test -n "$SDL_IMAGE_CFLAGS"; then
3485    pkg_cv_SDL_IMAGE_CFLAGS="$SDL_IMAGE_CFLAGS"
3486 elif test -n "$PKG_CONFIG"; then
3487    if test -n "$PKG_CONFIG" && \
3488    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_image >= 1.2\""; } >&5
3489  ($PKG_CONFIG --exists --print-errors "SDL_image >= 1.2") 2>&5
3490  ac_status=$?
3491  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3492  test $ac_status = 0; }; then
3493  pkg_cv_SDL_IMAGE_CFLAGS=`$PKG_CONFIG --cflags "SDL_image >= 1.2" 2>/dev/null`
3494		      test "x$?" != "x0" && pkg_failed=yes
3495else
3496  pkg_failed=yes
3497fi
3498 else
3499    pkg_failed=untried
3500fi
3501if test -n "$SDL_IMAGE_LIBS"; then
3502    pkg_cv_SDL_IMAGE_LIBS="$SDL_IMAGE_LIBS"
3503 elif test -n "$PKG_CONFIG"; then
3504    if test -n "$PKG_CONFIG" && \
3505    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_image >= 1.2\""; } >&5
3506  ($PKG_CONFIG --exists --print-errors "SDL_image >= 1.2") 2>&5
3507  ac_status=$?
3508  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3509  test $ac_status = 0; }; then
3510  pkg_cv_SDL_IMAGE_LIBS=`$PKG_CONFIG --libs "SDL_image >= 1.2" 2>/dev/null`
3511		      test "x$?" != "x0" && pkg_failed=yes
3512else
3513  pkg_failed=yes
3514fi
3515 else
3516    pkg_failed=untried
3517fi
3518
3519
3520
3521if test $pkg_failed = yes; then
3522   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3523$as_echo "no" >&6; }
3524
3525if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3526        _pkg_short_errors_supported=yes
3527else
3528        _pkg_short_errors_supported=no
3529fi
3530        if test $_pkg_short_errors_supported = yes; then
3531	        SDL_IMAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "SDL_image >= 1.2" 2>&1`
3532        else
3533	        SDL_IMAGE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "SDL_image >= 1.2" 2>&1`
3534        fi
3535	# Put the nasty error message in config.log where it belongs
3536	echo "$SDL_IMAGE_PKG_ERRORS" >&5
3537
3538	SDL_IMAGE_LIBS="-lSDL_image"
3539elif test $pkg_failed = untried; then
3540     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541$as_echo "no" >&6; }
3542	SDL_IMAGE_LIBS="-lSDL_image"
3543else
3544	SDL_IMAGE_CFLAGS=$pkg_cv_SDL_IMAGE_CFLAGS
3545	SDL_IMAGE_LIBS=$pkg_cv_SDL_IMAGE_LIBS
3546        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3547$as_echo "yes" >&6; }
3548
3549fi # <-- else
3550
3551pkg_failed=no
3552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_MIXER" >&5
3553$as_echo_n "checking for SDL_MIXER... " >&6; }
3554
3555if test -n "$SDL_MIXER_CFLAGS"; then
3556    pkg_cv_SDL_MIXER_CFLAGS="$SDL_MIXER_CFLAGS"
3557 elif test -n "$PKG_CONFIG"; then
3558    if test -n "$PKG_CONFIG" && \
3559    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_mixer >= 1.2\""; } >&5
3560  ($PKG_CONFIG --exists --print-errors "SDL_mixer >= 1.2") 2>&5
3561  ac_status=$?
3562  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3563  test $ac_status = 0; }; then
3564  pkg_cv_SDL_MIXER_CFLAGS=`$PKG_CONFIG --cflags "SDL_mixer >= 1.2" 2>/dev/null`
3565		      test "x$?" != "x0" && pkg_failed=yes
3566else
3567  pkg_failed=yes
3568fi
3569 else
3570    pkg_failed=untried
3571fi
3572if test -n "$SDL_MIXER_LIBS"; then
3573    pkg_cv_SDL_MIXER_LIBS="$SDL_MIXER_LIBS"
3574 elif test -n "$PKG_CONFIG"; then
3575    if test -n "$PKG_CONFIG" && \
3576    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_mixer >= 1.2\""; } >&5
3577  ($PKG_CONFIG --exists --print-errors "SDL_mixer >= 1.2") 2>&5
3578  ac_status=$?
3579  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3580  test $ac_status = 0; }; then
3581  pkg_cv_SDL_MIXER_LIBS=`$PKG_CONFIG --libs "SDL_mixer >= 1.2" 2>/dev/null`
3582		      test "x$?" != "x0" && pkg_failed=yes
3583else
3584  pkg_failed=yes
3585fi
3586 else
3587    pkg_failed=untried
3588fi
3589
3590
3591
3592if test $pkg_failed = yes; then
3593   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594$as_echo "no" >&6; }
3595
3596if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3597        _pkg_short_errors_supported=yes
3598else
3599        _pkg_short_errors_supported=no
3600fi
3601        if test $_pkg_short_errors_supported = yes; then
3602	        SDL_MIXER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "SDL_mixer >= 1.2" 2>&1`
3603        else
3604	        SDL_MIXER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "SDL_mixer >= 1.2" 2>&1`
3605        fi
3606	# Put the nasty error message in config.log where it belongs
3607	echo "$SDL_MIXER_PKG_ERRORS" >&5
3608
3609	SDL_MIXER_LIBS="-lSDL_mixer"
3610elif test $pkg_failed = untried; then
3611     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3612$as_echo "no" >&6; }
3613	SDL_MIXER_LIBS="-lSDL_mixer"
3614else
3615	SDL_MIXER_CFLAGS=$pkg_cv_SDL_MIXER_CFLAGS
3616	SDL_MIXER_LIBS=$pkg_cv_SDL_MIXER_LIBS
3617        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3618$as_echo "yes" >&6; }
3619
3620fi # <-- else
3621# Make sure SDL_image was compiled with png support
3622
3623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMG_LoadPNG_RW in -lSDL_image" >&5
3624$as_echo_n "checking for IMG_LoadPNG_RW in -lSDL_image... " >&6; }
3625if ${ac_cv_lib_SDL_image_IMG_LoadPNG_RW+:} false; then :
3626  $as_echo_n "(cached) " >&6
3627else
3628  ac_check_lib_save_LIBS=$LIBS
3629LIBS="-lSDL_image  $LIBS"
3630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3631/* end confdefs.h.  */
3632
3633/* Override any GCC internal prototype to avoid an error.
3634   Use char because int might match the return type of a GCC
3635   builtin and then its argument prototype would still apply.  */
3636#ifdef __cplusplus
3637extern "C"
3638#endif
3639char IMG_LoadPNG_RW ();
3640int
3641main ()
3642{
3643return IMG_LoadPNG_RW ();
3644  ;
3645  return 0;
3646}
3647_ACEOF
3648if ac_fn_c_try_link "$LINENO"; then :
3649  ac_cv_lib_SDL_image_IMG_LoadPNG_RW=yes
3650else
3651  ac_cv_lib_SDL_image_IMG_LoadPNG_RW=no
3652fi
3653rm -f core conftest.err conftest.$ac_objext \
3654    conftest$ac_exeext conftest.$ac_ext
3655LIBS=$ac_check_lib_save_LIBS
3656fi
3657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_image_IMG_LoadPNG_RW" >&5
3658$as_echo "$ac_cv_lib_SDL_image_IMG_LoadPNG_RW" >&6; }
3659if test "x$ac_cv_lib_SDL_image_IMG_LoadPNG_RW" = xyes; then :
3660  cat >>confdefs.h <<_ACEOF
3661#define HAVE_LIBSDL_IMAGE 1
3662_ACEOF
3663
3664  LIBS="-lSDL_image $LIBS"
3665
3666fi
3667
3668# Make sure SDL_mixer was compiled with ogg vorbis support
3669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mix_InitOgg in -lSDL_mixer" >&5
3670$as_echo_n "checking for Mix_InitOgg in -lSDL_mixer... " >&6; }
3671if ${ac_cv_lib_SDL_mixer_Mix_InitOgg+:} false; then :
3672  $as_echo_n "(cached) " >&6
3673else
3674  ac_check_lib_save_LIBS=$LIBS
3675LIBS="-lSDL_mixer  $LIBS"
3676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677/* end confdefs.h.  */
3678
3679/* Override any GCC internal prototype to avoid an error.
3680   Use char because int might match the return type of a GCC
3681   builtin and then its argument prototype would still apply.  */
3682#ifdef __cplusplus
3683extern "C"
3684#endif
3685char Mix_InitOgg ();
3686int
3687main ()
3688{
3689return Mix_InitOgg ();
3690  ;
3691  return 0;
3692}
3693_ACEOF
3694if ac_fn_c_try_link "$LINENO"; then :
3695  ac_cv_lib_SDL_mixer_Mix_InitOgg=yes
3696else
3697  ac_cv_lib_SDL_mixer_Mix_InitOgg=no
3698fi
3699rm -f core conftest.err conftest.$ac_objext \
3700    conftest$ac_exeext conftest.$ac_ext
3701LIBS=$ac_check_lib_save_LIBS
3702fi
3703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_mixer_Mix_InitOgg" >&5
3704$as_echo "$ac_cv_lib_SDL_mixer_Mix_InitOgg" >&6; }
3705if test "x$ac_cv_lib_SDL_mixer_Mix_InitOgg" = xyes; then :
3706  cat >>confdefs.h <<_ACEOF
3707#define HAVE_LIBSDL_MIXER 1
3708_ACEOF
3709
3710  LIBS="-lSDL_mixer $LIBS"
3711
3712fi
3713
3714
3715# Checks for header files.
3716ac_ext=c
3717ac_cpp='$CPP $CPPFLAGS'
3718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720ac_compiler_gnu=$ac_cv_c_compiler_gnu
3721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3722$as_echo_n "checking how to run the C preprocessor... " >&6; }
3723# On Suns, sometimes $CPP names a directory.
3724if test -n "$CPP" && test -d "$CPP"; then
3725  CPP=
3726fi
3727if test -z "$CPP"; then
3728  if ${ac_cv_prog_CPP+:} false; then :
3729  $as_echo_n "(cached) " >&6
3730else
3731      # Double quotes because CPP needs to be expanded
3732    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3733    do
3734      ac_preproc_ok=false
3735for ac_c_preproc_warn_flag in '' yes
3736do
3737  # Use a header file that comes with gcc, so configuring glibc
3738  # with a fresh cross-compiler works.
3739  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3740  # <limits.h> exists even on freestanding compilers.
3741  # On the NeXT, cc -E runs the code through the compiler's parser,
3742  # not just through cpp. "Syntax error" is here to catch this case.
3743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744/* end confdefs.h.  */
3745#ifdef __STDC__
3746# include <limits.h>
3747#else
3748# include <assert.h>
3749#endif
3750		     Syntax error
3751_ACEOF
3752if ac_fn_c_try_cpp "$LINENO"; then :
3753
3754else
3755  # Broken: fails on valid input.
3756continue
3757fi
3758rm -f conftest.err conftest.i conftest.$ac_ext
3759
3760  # OK, works on sane cases.  Now check whether nonexistent headers
3761  # can be detected and how.
3762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763/* end confdefs.h.  */
3764#include <ac_nonexistent.h>
3765_ACEOF
3766if ac_fn_c_try_cpp "$LINENO"; then :
3767  # Broken: success on invalid input.
3768continue
3769else
3770  # Passes both tests.
3771ac_preproc_ok=:
3772break
3773fi
3774rm -f conftest.err conftest.i conftest.$ac_ext
3775
3776done
3777# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3778rm -f conftest.i conftest.err conftest.$ac_ext
3779if $ac_preproc_ok; then :
3780  break
3781fi
3782
3783    done
3784    ac_cv_prog_CPP=$CPP
3785
3786fi
3787  CPP=$ac_cv_prog_CPP
3788else
3789  ac_cv_prog_CPP=$CPP
3790fi
3791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3792$as_echo "$CPP" >&6; }
3793ac_preproc_ok=false
3794for ac_c_preproc_warn_flag in '' yes
3795do
3796  # Use a header file that comes with gcc, so configuring glibc
3797  # with a fresh cross-compiler works.
3798  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3799  # <limits.h> exists even on freestanding compilers.
3800  # On the NeXT, cc -E runs the code through the compiler's parser,
3801  # not just through cpp. "Syntax error" is here to catch this case.
3802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803/* end confdefs.h.  */
3804#ifdef __STDC__
3805# include <limits.h>
3806#else
3807# include <assert.h>
3808#endif
3809		     Syntax error
3810_ACEOF
3811if ac_fn_c_try_cpp "$LINENO"; then :
3812
3813else
3814  # Broken: fails on valid input.
3815continue
3816fi
3817rm -f conftest.err conftest.i conftest.$ac_ext
3818
3819  # OK, works on sane cases.  Now check whether nonexistent headers
3820  # can be detected and how.
3821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822/* end confdefs.h.  */
3823#include <ac_nonexistent.h>
3824_ACEOF
3825if ac_fn_c_try_cpp "$LINENO"; then :
3826  # Broken: success on invalid input.
3827continue
3828else
3829  # Passes both tests.
3830ac_preproc_ok=:
3831break
3832fi
3833rm -f conftest.err conftest.i conftest.$ac_ext
3834
3835done
3836# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3837rm -f conftest.i conftest.err conftest.$ac_ext
3838if $ac_preproc_ok; then :
3839
3840else
3841  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3842$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3843as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3844See \`config.log' for more details" "$LINENO" 5; }
3845fi
3846
3847ac_ext=c
3848ac_cpp='$CPP $CPPFLAGS'
3849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3851ac_compiler_gnu=$ac_cv_c_compiler_gnu
3852
3853
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3855$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3856if ${ac_cv_path_GREP+:} false; then :
3857  $as_echo_n "(cached) " >&6
3858else
3859  if test -z "$GREP"; then
3860  ac_path_GREP_found=false
3861  # Loop through the user's path and test for each of PROGNAME-LIST
3862  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3864do
3865  IFS=$as_save_IFS
3866  test -z "$as_dir" && as_dir=.
3867    for ac_prog in grep ggrep; do
3868    for ac_exec_ext in '' $ac_executable_extensions; do
3869      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3870      as_fn_executable_p "$ac_path_GREP" || continue
3871# Check for GNU ac_path_GREP and select it if it is found.
3872  # Check for GNU $ac_path_GREP
3873case `"$ac_path_GREP" --version 2>&1` in
3874*GNU*)
3875  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3876*)
3877  ac_count=0
3878  $as_echo_n 0123456789 >"conftest.in"
3879  while :
3880  do
3881    cat "conftest.in" "conftest.in" >"conftest.tmp"
3882    mv "conftest.tmp" "conftest.in"
3883    cp "conftest.in" "conftest.nl"
3884    $as_echo 'GREP' >> "conftest.nl"
3885    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3886    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3887    as_fn_arith $ac_count + 1 && ac_count=$as_val
3888    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3889      # Best one so far, save it but keep looking for a better one
3890      ac_cv_path_GREP="$ac_path_GREP"
3891      ac_path_GREP_max=$ac_count
3892    fi
3893    # 10*(2^10) chars as input seems more than enough
3894    test $ac_count -gt 10 && break
3895  done
3896  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3897esac
3898
3899      $ac_path_GREP_found && break 3
3900    done
3901  done
3902  done
3903IFS=$as_save_IFS
3904  if test -z "$ac_cv_path_GREP"; then
3905    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3906  fi
3907else
3908  ac_cv_path_GREP=$GREP
3909fi
3910
3911fi
3912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3913$as_echo "$ac_cv_path_GREP" >&6; }
3914 GREP="$ac_cv_path_GREP"
3915
3916
3917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3918$as_echo_n "checking for egrep... " >&6; }
3919if ${ac_cv_path_EGREP+:} false; then :
3920  $as_echo_n "(cached) " >&6
3921else
3922  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3923   then ac_cv_path_EGREP="$GREP -E"
3924   else
3925     if test -z "$EGREP"; then
3926  ac_path_EGREP_found=false
3927  # Loop through the user's path and test for each of PROGNAME-LIST
3928  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3930do
3931  IFS=$as_save_IFS
3932  test -z "$as_dir" && as_dir=.
3933    for ac_prog in egrep; do
3934    for ac_exec_ext in '' $ac_executable_extensions; do
3935      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3936      as_fn_executable_p "$ac_path_EGREP" || continue
3937# Check for GNU ac_path_EGREP and select it if it is found.
3938  # Check for GNU $ac_path_EGREP
3939case `"$ac_path_EGREP" --version 2>&1` in
3940*GNU*)
3941  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3942*)
3943  ac_count=0
3944  $as_echo_n 0123456789 >"conftest.in"
3945  while :
3946  do
3947    cat "conftest.in" "conftest.in" >"conftest.tmp"
3948    mv "conftest.tmp" "conftest.in"
3949    cp "conftest.in" "conftest.nl"
3950    $as_echo 'EGREP' >> "conftest.nl"
3951    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3952    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3953    as_fn_arith $ac_count + 1 && ac_count=$as_val
3954    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3955      # Best one so far, save it but keep looking for a better one
3956      ac_cv_path_EGREP="$ac_path_EGREP"
3957      ac_path_EGREP_max=$ac_count
3958    fi
3959    # 10*(2^10) chars as input seems more than enough
3960    test $ac_count -gt 10 && break
3961  done
3962  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3963esac
3964
3965      $ac_path_EGREP_found && break 3
3966    done
3967  done
3968  done
3969IFS=$as_save_IFS
3970  if test -z "$ac_cv_path_EGREP"; then
3971    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3972  fi
3973else
3974  ac_cv_path_EGREP=$EGREP
3975fi
3976
3977   fi
3978fi
3979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3980$as_echo "$ac_cv_path_EGREP" >&6; }
3981 EGREP="$ac_cv_path_EGREP"
3982
3983
3984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3985$as_echo_n "checking for ANSI C header files... " >&6; }
3986if ${ac_cv_header_stdc+:} false; then :
3987  $as_echo_n "(cached) " >&6
3988else
3989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990/* end confdefs.h.  */
3991#include <stdlib.h>
3992#include <stdarg.h>
3993#include <string.h>
3994#include <float.h>
3995
3996int
3997main ()
3998{
3999
4000  ;
4001  return 0;
4002}
4003_ACEOF
4004if ac_fn_c_try_compile "$LINENO"; then :
4005  ac_cv_header_stdc=yes
4006else
4007  ac_cv_header_stdc=no
4008fi
4009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4010
4011if test $ac_cv_header_stdc = yes; then
4012  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014/* end confdefs.h.  */
4015#include <string.h>
4016
4017_ACEOF
4018if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4019  $EGREP "memchr" >/dev/null 2>&1; then :
4020
4021else
4022  ac_cv_header_stdc=no
4023fi
4024rm -f conftest*
4025
4026fi
4027
4028if test $ac_cv_header_stdc = yes; then
4029  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031/* end confdefs.h.  */
4032#include <stdlib.h>
4033
4034_ACEOF
4035if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4036  $EGREP "free" >/dev/null 2>&1; then :
4037
4038else
4039  ac_cv_header_stdc=no
4040fi
4041rm -f conftest*
4042
4043fi
4044
4045if test $ac_cv_header_stdc = yes; then
4046  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4047  if test "$cross_compiling" = yes; then :
4048  :
4049else
4050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051/* end confdefs.h.  */
4052#include <ctype.h>
4053#include <stdlib.h>
4054#if ((' ' & 0x0FF) == 0x020)
4055# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4056# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4057#else
4058# define ISLOWER(c) \
4059		   (('a' <= (c) && (c) <= 'i') \
4060		     || ('j' <= (c) && (c) <= 'r') \
4061		     || ('s' <= (c) && (c) <= 'z'))
4062# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4063#endif
4064
4065#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4066int
4067main ()
4068{
4069  int i;
4070  for (i = 0; i < 256; i++)
4071    if (XOR (islower (i), ISLOWER (i))
4072	|| toupper (i) != TOUPPER (i))
4073      return 2;
4074  return 0;
4075}
4076_ACEOF
4077if ac_fn_c_try_run "$LINENO"; then :
4078
4079else
4080  ac_cv_header_stdc=no
4081fi
4082rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4083  conftest.$ac_objext conftest.beam conftest.$ac_ext
4084fi
4085
4086fi
4087fi
4088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4089$as_echo "$ac_cv_header_stdc" >&6; }
4090if test $ac_cv_header_stdc = yes; then
4091
4092$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4093
4094fi
4095
4096# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4097for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4098		  inttypes.h stdint.h unistd.h
4099do :
4100  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4101ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4102"
4103if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4104  cat >>confdefs.h <<_ACEOF
4105#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4106_ACEOF
4107
4108fi
4109
4110done
4111
4112
4113for ac_header in inttypes.h stddef.h stdlib.h string.h unistd.h time.h
4114do :
4115  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4116ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4117if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4118  cat >>confdefs.h <<_ACEOF
4119#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4120_ACEOF
4121
4122fi
4123
4124done
4125
4126
4127# Checks for typedefs, structures, and compiler characteristics.
4128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
4129$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
4130if ${ac_cv_header_stdbool_h+:} false; then :
4131  $as_echo_n "(cached) " >&6
4132else
4133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134/* end confdefs.h.  */
4135
4136             #include <stdbool.h>
4137             #ifndef bool
4138              "error: bool is not defined"
4139             #endif
4140             #ifndef false
4141              "error: false is not defined"
4142             #endif
4143             #if false
4144              "error: false is not 0"
4145             #endif
4146             #ifndef true
4147              "error: true is not defined"
4148             #endif
4149             #if true != 1
4150              "error: true is not 1"
4151             #endif
4152             #ifndef __bool_true_false_are_defined
4153              "error: __bool_true_false_are_defined is not defined"
4154             #endif
4155
4156             struct s { _Bool s: 1; _Bool t; } s;
4157
4158             char a[true == 1 ? 1 : -1];
4159             char b[false == 0 ? 1 : -1];
4160             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4161             char d[(bool) 0.5 == true ? 1 : -1];
4162             /* See body of main program for 'e'.  */
4163             char f[(_Bool) 0.0 == false ? 1 : -1];
4164             char g[true];
4165             char h[sizeof (_Bool)];
4166             char i[sizeof s.t];
4167             enum { j = false, k = true, l = false * true, m = true * 256 };
4168             /* The following fails for
4169                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
4170             _Bool n[m];
4171             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
4172             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
4173             /* Catch a bug in an HP-UX C compiler.  See
4174                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
4175                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
4176              */
4177             _Bool q = true;
4178             _Bool *pq = &q;
4179
4180int
4181main ()
4182{
4183
4184             bool e = &s;
4185             *pq |= q;
4186             *pq |= ! q;
4187             /* Refer to every declared value, to avoid compiler optimizations.  */
4188             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
4189                     + !m + !n + !o + !p + !q + !pq);
4190
4191  ;
4192  return 0;
4193}
4194_ACEOF
4195if ac_fn_c_try_compile "$LINENO"; then :
4196  ac_cv_header_stdbool_h=yes
4197else
4198  ac_cv_header_stdbool_h=no
4199fi
4200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4201fi
4202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
4203$as_echo "$ac_cv_header_stdbool_h" >&6; }
4204   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
4205if test "x$ac_cv_type__Bool" = xyes; then :
4206
4207cat >>confdefs.h <<_ACEOF
4208#define HAVE__BOOL 1
4209_ACEOF
4210
4211
4212fi
4213
4214
4215if test $ac_cv_header_stdbool_h = yes; then
4216
4217$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
4218
4219fi
4220
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4222$as_echo_n "checking for inline... " >&6; }
4223if ${ac_cv_c_inline+:} false; then :
4224  $as_echo_n "(cached) " >&6
4225else
4226  ac_cv_c_inline=no
4227for ac_kw in inline __inline__ __inline; do
4228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229/* end confdefs.h.  */
4230#ifndef __cplusplus
4231typedef int foo_t;
4232static $ac_kw foo_t static_foo () {return 0; }
4233$ac_kw foo_t foo () {return 0; }
4234#endif
4235
4236_ACEOF
4237if ac_fn_c_try_compile "$LINENO"; then :
4238  ac_cv_c_inline=$ac_kw
4239fi
4240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4241  test "$ac_cv_c_inline" != no && break
4242done
4243
4244fi
4245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4246$as_echo "$ac_cv_c_inline" >&6; }
4247
4248case $ac_cv_c_inline in
4249  inline | yes) ;;
4250  *)
4251    case $ac_cv_c_inline in
4252      no) ac_val=;;
4253      *) ac_val=$ac_cv_c_inline;;
4254    esac
4255    cat >>confdefs.h <<_ACEOF
4256#ifndef __cplusplus
4257#define inline $ac_val
4258#endif
4259_ACEOF
4260    ;;
4261esac
4262
4263ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
4264case $ac_cv_c_int8_t in #(
4265  no|yes) ;; #(
4266  *)
4267
4268cat >>confdefs.h <<_ACEOF
4269#define int8_t $ac_cv_c_int8_t
4270_ACEOF
4271;;
4272esac
4273
4274ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4275if test "x$ac_cv_type_size_t" = xyes; then :
4276
4277else
4278
4279cat >>confdefs.h <<_ACEOF
4280#define size_t unsigned int
4281_ACEOF
4282
4283fi
4284
4285ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
4286case $ac_cv_c_uint16_t in #(
4287  no|yes) ;; #(
4288  *)
4289
4290
4291cat >>confdefs.h <<_ACEOF
4292#define uint16_t $ac_cv_c_uint16_t
4293_ACEOF
4294;;
4295  esac
4296
4297ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
4298case $ac_cv_c_uint32_t in #(
4299  no|yes) ;; #(
4300  *)
4301
4302$as_echo "#define _UINT32_T 1" >>confdefs.h
4303
4304
4305cat >>confdefs.h <<_ACEOF
4306#define uint32_t $ac_cv_c_uint32_t
4307_ACEOF
4308;;
4309  esac
4310
4311ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
4312case $ac_cv_c_uint8_t in #(
4313  no|yes) ;; #(
4314  *)
4315
4316$as_echo "#define _UINT8_T 1" >>confdefs.h
4317
4318
4319cat >>confdefs.h <<_ACEOF
4320#define uint8_t $ac_cv_c_uint8_t
4321_ACEOF
4322;;
4323  esac
4324
4325
4326# Checks for library functions.
4327for ac_header in stdlib.h
4328do :
4329  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4330if test "x$ac_cv_header_stdlib_h" = xyes; then :
4331  cat >>confdefs.h <<_ACEOF
4332#define HAVE_STDLIB_H 1
4333_ACEOF
4334
4335fi
4336
4337done
4338
4339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
4340$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
4341if ${ac_cv_func_malloc_0_nonnull+:} false; then :
4342  $as_echo_n "(cached) " >&6
4343else
4344  if test "$cross_compiling" = yes; then :
4345  ac_cv_func_malloc_0_nonnull=no
4346else
4347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348/* end confdefs.h.  */
4349#if defined STDC_HEADERS || defined HAVE_STDLIB_H
4350# include <stdlib.h>
4351#else
4352char *malloc ();
4353#endif
4354
4355int
4356main ()
4357{
4358return ! malloc (0);
4359  ;
4360  return 0;
4361}
4362_ACEOF
4363if ac_fn_c_try_run "$LINENO"; then :
4364  ac_cv_func_malloc_0_nonnull=yes
4365else
4366  ac_cv_func_malloc_0_nonnull=no
4367fi
4368rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4369  conftest.$ac_objext conftest.beam conftest.$ac_ext
4370fi
4371
4372fi
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
4374$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
4375if test $ac_cv_func_malloc_0_nonnull = yes; then :
4376
4377$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
4378
4379else
4380  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
4381
4382   case " $LIBOBJS " in
4383  *" malloc.$ac_objext "* ) ;;
4384  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
4385 ;;
4386esac
4387
4388
4389$as_echo "#define malloc rpl_malloc" >>confdefs.h
4390
4391fi
4392
4393
4394for ac_func in atexit memset sqrt strdup nanosleep
4395do :
4396  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4397ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4398if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4399  cat >>confdefs.h <<_ACEOF
4400#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4401_ACEOF
4402
4403fi
4404done
4405
4406
4407ac_config_files="$ac_config_files Makefile"
4408
4409cat >confcache <<\_ACEOF
4410# This file is a shell script that caches the results of configure
4411# tests run on this system so they can be shared between configure
4412# scripts and configure runs, see configure's option --config-cache.
4413# It is not useful on other systems.  If it contains results you don't
4414# want to keep, you may remove or edit it.
4415#
4416# config.status only pays attention to the cache file if you give it
4417# the --recheck option to rerun configure.
4418#
4419# `ac_cv_env_foo' variables (set or unset) will be overridden when
4420# loading this file, other *unset* `ac_cv_foo' will be assigned the
4421# following values.
4422
4423_ACEOF
4424
4425# The following way of writing the cache mishandles newlines in values,
4426# but we know of no workaround that is simple, portable, and efficient.
4427# So, we kill variables containing newlines.
4428# Ultrix sh set writes to stderr and can't be redirected directly,
4429# and sets the high bit in the cache file unless we assign to the vars.
4430(
4431  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4432    eval ac_val=\$$ac_var
4433    case $ac_val in #(
4434    *${as_nl}*)
4435      case $ac_var in #(
4436      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4437$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4438      esac
4439      case $ac_var in #(
4440      _ | IFS | as_nl) ;; #(
4441      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4442      *) { eval $ac_var=; unset $ac_var;} ;;
4443      esac ;;
4444    esac
4445  done
4446
4447  (set) 2>&1 |
4448    case $as_nl`(ac_space=' '; set) 2>&1` in #(
4449    *${as_nl}ac_space=\ *)
4450      # `set' does not quote correctly, so add quotes: double-quote
4451      # substitution turns \\\\ into \\, and sed turns \\ into \.
4452      sed -n \
4453	"s/'/'\\\\''/g;
4454	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4455      ;; #(
4456    *)
4457      # `set' quotes correctly as required by POSIX, so do not add quotes.
4458      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4459      ;;
4460    esac |
4461    sort
4462) |
4463  sed '
4464     /^ac_cv_env_/b end
4465     t clear
4466     :clear
4467     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4468     t end
4469     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4470     :end' >>confcache
4471if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4472  if test -w "$cache_file"; then
4473    if test "x$cache_file" != "x/dev/null"; then
4474      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4475$as_echo "$as_me: updating cache $cache_file" >&6;}
4476      if test ! -f "$cache_file" || test -h "$cache_file"; then
4477	cat confcache >"$cache_file"
4478      else
4479        case $cache_file in #(
4480        */* | ?:*)
4481	  mv -f confcache "$cache_file"$$ &&
4482	  mv -f "$cache_file"$$ "$cache_file" ;; #(
4483        *)
4484	  mv -f confcache "$cache_file" ;;
4485	esac
4486      fi
4487    fi
4488  else
4489    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4490$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4491  fi
4492fi
4493rm -f confcache
4494
4495test "x$prefix" = xNONE && prefix=$ac_default_prefix
4496# Let make expand exec_prefix.
4497test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4498
4499DEFS=-DHAVE_CONFIG_H
4500
4501ac_libobjs=
4502ac_ltlibobjs=
4503U=
4504for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4505  # 1. Remove the extension, and $U if already installed.
4506  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4507  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4508  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
4509  #    will be set to the directory where LIBOBJS objects are built.
4510  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4511  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4512done
4513LIBOBJS=$ac_libobjs
4514
4515LTLIBOBJS=$ac_ltlibobjs
4516
4517
4518
4519: "${CONFIG_STATUS=./config.status}"
4520ac_write_fail=0
4521ac_clean_files_save=$ac_clean_files
4522ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4523{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4524$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4525as_write_fail=0
4526cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4527#! $SHELL
4528# Generated by $as_me.
4529# Run this file to recreate the current configuration.
4530# Compiler output produced by configure, useful for debugging
4531# configure, is in config.log if it exists.
4532
4533debug=false
4534ac_cs_recheck=false
4535ac_cs_silent=false
4536
4537SHELL=\${CONFIG_SHELL-$SHELL}
4538export SHELL
4539_ASEOF
4540cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4541## -------------------- ##
4542## M4sh Initialization. ##
4543## -------------------- ##
4544
4545# Be more Bourne compatible
4546DUALCASE=1; export DUALCASE # for MKS sh
4547if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4548  emulate sh
4549  NULLCMD=:
4550  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4551  # is contrary to our usage.  Disable this feature.
4552  alias -g '${1+"$@"}'='"$@"'
4553  setopt NO_GLOB_SUBST
4554else
4555  case `(set -o) 2>/dev/null` in #(
4556  *posix*) :
4557    set -o posix ;; #(
4558  *) :
4559     ;;
4560esac
4561fi
4562
4563
4564as_nl='
4565'
4566export as_nl
4567# Printing a long string crashes Solaris 7 /usr/bin/printf.
4568as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4569as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4570as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4571# Prefer a ksh shell builtin over an external printf program on Solaris,
4572# but without wasting forks for bash or zsh.
4573if test -z "$BASH_VERSION$ZSH_VERSION" \
4574    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4575  as_echo='print -r --'
4576  as_echo_n='print -rn --'
4577elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4578  as_echo='printf %s\n'
4579  as_echo_n='printf %s'
4580else
4581  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4582    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4583    as_echo_n='/usr/ucb/echo -n'
4584  else
4585    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4586    as_echo_n_body='eval
4587      arg=$1;
4588      case $arg in #(
4589      *"$as_nl"*)
4590	expr "X$arg" : "X\\(.*\\)$as_nl";
4591	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4592      esac;
4593      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4594    '
4595    export as_echo_n_body
4596    as_echo_n='sh -c $as_echo_n_body as_echo'
4597  fi
4598  export as_echo_body
4599  as_echo='sh -c $as_echo_body as_echo'
4600fi
4601
4602# The user is always right.
4603if test "${PATH_SEPARATOR+set}" != set; then
4604  PATH_SEPARATOR=:
4605  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4606    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4607      PATH_SEPARATOR=';'
4608  }
4609fi
4610
4611
4612# IFS
4613# We need space, tab and new line, in precisely that order.  Quoting is
4614# there to prevent editors from complaining about space-tab.
4615# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4616# splitting by setting IFS to empty value.)
4617IFS=" ""	$as_nl"
4618
4619# Find who we are.  Look in the path if we contain no directory separator.
4620as_myself=
4621case $0 in #((
4622  *[\\/]* ) as_myself=$0 ;;
4623  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624for as_dir in $PATH
4625do
4626  IFS=$as_save_IFS
4627  test -z "$as_dir" && as_dir=.
4628    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4629  done
4630IFS=$as_save_IFS
4631
4632     ;;
4633esac
4634# We did not find ourselves, most probably we were run as `sh COMMAND'
4635# in which case we are not to be found in the path.
4636if test "x$as_myself" = x; then
4637  as_myself=$0
4638fi
4639if test ! -f "$as_myself"; then
4640  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4641  exit 1
4642fi
4643
4644# Unset variables that we do not need and which cause bugs (e.g. in
4645# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
4646# suppresses any "Segmentation fault" message there.  '((' could
4647# trigger a bug in pdksh 5.2.14.
4648for as_var in BASH_ENV ENV MAIL MAILPATH
4649do eval test x\${$as_var+set} = xset \
4650  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4651done
4652PS1='$ '
4653PS2='> '
4654PS4='+ '
4655
4656# NLS nuisances.
4657LC_ALL=C
4658export LC_ALL
4659LANGUAGE=C
4660export LANGUAGE
4661
4662# CDPATH.
4663(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4664
4665
4666# as_fn_error STATUS ERROR [LINENO LOG_FD]
4667# ----------------------------------------
4668# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4669# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4670# script with STATUS, using 1 if that was 0.
4671as_fn_error ()
4672{
4673  as_status=$1; test $as_status -eq 0 && as_status=1
4674  if test "$4"; then
4675    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4676    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4677  fi
4678  $as_echo "$as_me: error: $2" >&2
4679  as_fn_exit $as_status
4680} # as_fn_error
4681
4682
4683# as_fn_set_status STATUS
4684# -----------------------
4685# Set $? to STATUS, without forking.
4686as_fn_set_status ()
4687{
4688  return $1
4689} # as_fn_set_status
4690
4691# as_fn_exit STATUS
4692# -----------------
4693# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4694as_fn_exit ()
4695{
4696  set +e
4697  as_fn_set_status $1
4698  exit $1
4699} # as_fn_exit
4700
4701# as_fn_unset VAR
4702# ---------------
4703# Portably unset VAR.
4704as_fn_unset ()
4705{
4706  { eval $1=; unset $1;}
4707}
4708as_unset=as_fn_unset
4709# as_fn_append VAR VALUE
4710# ----------------------
4711# Append the text in VALUE to the end of the definition contained in VAR. Take
4712# advantage of any shell optimizations that allow amortized linear growth over
4713# repeated appends, instead of the typical quadratic growth present in naive
4714# implementations.
4715if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4716  eval 'as_fn_append ()
4717  {
4718    eval $1+=\$2
4719  }'
4720else
4721  as_fn_append ()
4722  {
4723    eval $1=\$$1\$2
4724  }
4725fi # as_fn_append
4726
4727# as_fn_arith ARG...
4728# ------------------
4729# Perform arithmetic evaluation on the ARGs, and store the result in the
4730# global $as_val. Take advantage of shells that can avoid forks. The arguments
4731# must be portable across $(()) and expr.
4732if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4733  eval 'as_fn_arith ()
4734  {
4735    as_val=$(( $* ))
4736  }'
4737else
4738  as_fn_arith ()
4739  {
4740    as_val=`expr "$@" || test $? -eq 1`
4741  }
4742fi # as_fn_arith
4743
4744
4745if expr a : '\(a\)' >/dev/null 2>&1 &&
4746   test "X`expr 00001 : '.*\(...\)'`" = X001; then
4747  as_expr=expr
4748else
4749  as_expr=false
4750fi
4751
4752if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4753  as_basename=basename
4754else
4755  as_basename=false
4756fi
4757
4758if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4759  as_dirname=dirname
4760else
4761  as_dirname=false
4762fi
4763
4764as_me=`$as_basename -- "$0" ||
4765$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4766	 X"$0" : 'X\(//\)$' \| \
4767	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4768$as_echo X/"$0" |
4769    sed '/^.*\/\([^/][^/]*\)\/*$/{
4770	    s//\1/
4771	    q
4772	  }
4773	  /^X\/\(\/\/\)$/{
4774	    s//\1/
4775	    q
4776	  }
4777	  /^X\/\(\/\).*/{
4778	    s//\1/
4779	    q
4780	  }
4781	  s/.*/./; q'`
4782
4783# Avoid depending upon Character Ranges.
4784as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4785as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4786as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4787as_cr_digits='0123456789'
4788as_cr_alnum=$as_cr_Letters$as_cr_digits
4789
4790ECHO_C= ECHO_N= ECHO_T=
4791case `echo -n x` in #(((((
4792-n*)
4793  case `echo 'xy\c'` in
4794  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
4795  xy)  ECHO_C='\c';;
4796  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
4797       ECHO_T='	';;
4798  esac;;
4799*)
4800  ECHO_N='-n';;
4801esac
4802
4803rm -f conf$$ conf$$.exe conf$$.file
4804if test -d conf$$.dir; then
4805  rm -f conf$$.dir/conf$$.file
4806else
4807  rm -f conf$$.dir
4808  mkdir conf$$.dir 2>/dev/null
4809fi
4810if (echo >conf$$.file) 2>/dev/null; then
4811  if ln -s conf$$.file conf$$ 2>/dev/null; then
4812    as_ln_s='ln -s'
4813    # ... but there are two gotchas:
4814    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4815    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4816    # In both cases, we have to default to `cp -pR'.
4817    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4818      as_ln_s='cp -pR'
4819  elif ln conf$$.file conf$$ 2>/dev/null; then
4820    as_ln_s=ln
4821  else
4822    as_ln_s='cp -pR'
4823  fi
4824else
4825  as_ln_s='cp -pR'
4826fi
4827rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4828rmdir conf$$.dir 2>/dev/null
4829
4830
4831# as_fn_mkdir_p
4832# -------------
4833# Create "$as_dir" as a directory, including parents if necessary.
4834as_fn_mkdir_p ()
4835{
4836
4837  case $as_dir in #(
4838  -*) as_dir=./$as_dir;;
4839  esac
4840  test -d "$as_dir" || eval $as_mkdir_p || {
4841    as_dirs=
4842    while :; do
4843      case $as_dir in #(
4844      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4845      *) as_qdir=$as_dir;;
4846      esac
4847      as_dirs="'$as_qdir' $as_dirs"
4848      as_dir=`$as_dirname -- "$as_dir" ||
4849$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4850	 X"$as_dir" : 'X\(//\)[^/]' \| \
4851	 X"$as_dir" : 'X\(//\)$' \| \
4852	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4853$as_echo X"$as_dir" |
4854    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4855	    s//\1/
4856	    q
4857	  }
4858	  /^X\(\/\/\)[^/].*/{
4859	    s//\1/
4860	    q
4861	  }
4862	  /^X\(\/\/\)$/{
4863	    s//\1/
4864	    q
4865	  }
4866	  /^X\(\/\).*/{
4867	    s//\1/
4868	    q
4869	  }
4870	  s/.*/./; q'`
4871      test -d "$as_dir" && break
4872    done
4873    test -z "$as_dirs" || eval "mkdir $as_dirs"
4874  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4875
4876
4877} # as_fn_mkdir_p
4878if mkdir -p . 2>/dev/null; then
4879  as_mkdir_p='mkdir -p "$as_dir"'
4880else
4881  test -d ./-p && rmdir ./-p
4882  as_mkdir_p=false
4883fi
4884
4885
4886# as_fn_executable_p FILE
4887# -----------------------
4888# Test if FILE is an executable regular file.
4889as_fn_executable_p ()
4890{
4891  test -f "$1" && test -x "$1"
4892} # as_fn_executable_p
4893as_test_x='test -x'
4894as_executable_p=as_fn_executable_p
4895
4896# Sed expression to map a string onto a valid CPP name.
4897as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4898
4899# Sed expression to map a string onto a valid variable name.
4900as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4901
4902
4903exec 6>&1
4904## ----------------------------------- ##
4905## Main body of $CONFIG_STATUS script. ##
4906## ----------------------------------- ##
4907_ASEOF
4908test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4909
4910cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4911# Save the log message, to keep $0 and so on meaningful, and to
4912# report actual input values of CONFIG_FILES etc. instead of their
4913# values after options handling.
4914ac_log="
4915This file was extended by VoR $as_me 0.5.8, which was
4916generated by GNU Autoconf 2.69.  Invocation command line was
4917
4918  CONFIG_FILES    = $CONFIG_FILES
4919  CONFIG_HEADERS  = $CONFIG_HEADERS
4920  CONFIG_LINKS    = $CONFIG_LINKS
4921  CONFIG_COMMANDS = $CONFIG_COMMANDS
4922  $ $0 $@
4923
4924on `(hostname || uname -n) 2>/dev/null | sed 1q`
4925"
4926
4927_ACEOF
4928
4929case $ac_config_files in *"
4930"*) set x $ac_config_files; shift; ac_config_files=$*;;
4931esac
4932
4933case $ac_config_headers in *"
4934"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4935esac
4936
4937
4938cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4939# Files that config.status was made for.
4940config_files="$ac_config_files"
4941config_headers="$ac_config_headers"
4942
4943_ACEOF
4944
4945cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4946ac_cs_usage="\
4947\`$as_me' instantiates files and other configuration actions
4948from templates according to the current configuration.  Unless the files
4949and actions are specified as TAGs, all are instantiated by default.
4950
4951Usage: $0 [OPTION]... [TAG]...
4952
4953  -h, --help       print this help, then exit
4954  -V, --version    print version number and configuration settings, then exit
4955      --config     print configuration, then exit
4956  -q, --quiet, --silent
4957                   do not print progress messages
4958  -d, --debug      don't remove temporary files
4959      --recheck    update $as_me by reconfiguring in the same conditions
4960      --file=FILE[:TEMPLATE]
4961                   instantiate the configuration file FILE
4962      --header=FILE[:TEMPLATE]
4963                   instantiate the configuration header FILE
4964
4965Configuration files:
4966$config_files
4967
4968Configuration headers:
4969$config_headers
4970
4971Report bugs to <jason@jasonwoof.com>."
4972
4973_ACEOF
4974cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4975ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4976ac_cs_version="\\
4977VoR config.status 0.5.8
4978configured by $0, generated by GNU Autoconf 2.69,
4979  with options \\"\$ac_cs_config\\"
4980
4981Copyright (C) 2012 Free Software Foundation, Inc.
4982This config.status script is free software; the Free Software Foundation
4983gives unlimited permission to copy, distribute and modify it."
4984
4985ac_pwd='$ac_pwd'
4986srcdir='$srcdir'
4987INSTALL='$INSTALL'
4988test -n "\$AWK" || AWK=awk
4989_ACEOF
4990
4991cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4992# The default lists apply if the user does not specify any file.
4993ac_need_defaults=:
4994while test $# != 0
4995do
4996  case $1 in
4997  --*=?*)
4998    ac_option=`expr "X$1" : 'X\([^=]*\)='`
4999    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5000    ac_shift=:
5001    ;;
5002  --*=)
5003    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5004    ac_optarg=
5005    ac_shift=:
5006    ;;
5007  *)
5008    ac_option=$1
5009    ac_optarg=$2
5010    ac_shift=shift
5011    ;;
5012  esac
5013
5014  case $ac_option in
5015  # Handling of the options.
5016  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5017    ac_cs_recheck=: ;;
5018  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5019    $as_echo "$ac_cs_version"; exit ;;
5020  --config | --confi | --conf | --con | --co | --c )
5021    $as_echo "$ac_cs_config"; exit ;;
5022  --debug | --debu | --deb | --de | --d | -d )
5023    debug=: ;;
5024  --file | --fil | --fi | --f )
5025    $ac_shift
5026    case $ac_optarg in
5027    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5028    '') as_fn_error $? "missing file argument" ;;
5029    esac
5030    as_fn_append CONFIG_FILES " '$ac_optarg'"
5031    ac_need_defaults=false;;
5032  --header | --heade | --head | --hea )
5033    $ac_shift
5034    case $ac_optarg in
5035    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5036    esac
5037    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5038    ac_need_defaults=false;;
5039  --he | --h)
5040    # Conflict between --help and --header
5041    as_fn_error $? "ambiguous option: \`$1'
5042Try \`$0 --help' for more information.";;
5043  --help | --hel | -h )
5044    $as_echo "$ac_cs_usage"; exit ;;
5045  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5046  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5047    ac_cs_silent=: ;;
5048
5049  # This is an error.
5050  -*) as_fn_error $? "unrecognized option: \`$1'
5051Try \`$0 --help' for more information." ;;
5052
5053  *) as_fn_append ac_config_targets " $1"
5054     ac_need_defaults=false ;;
5055
5056  esac
5057  shift
5058done
5059
5060ac_configure_extra_args=
5061
5062if $ac_cs_silent; then
5063  exec 6>/dev/null
5064  ac_configure_extra_args="$ac_configure_extra_args --silent"
5065fi
5066
5067_ACEOF
5068cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5069if \$ac_cs_recheck; then
5070  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5071  shift
5072  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5073  CONFIG_SHELL='$SHELL'
5074  export CONFIG_SHELL
5075  exec "\$@"
5076fi
5077
5078_ACEOF
5079cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5080exec 5>>config.log
5081{
5082  echo
5083  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5084## Running $as_me. ##
5085_ASBOX
5086  $as_echo "$ac_log"
5087} >&5
5088
5089_ACEOF
5090cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5091_ACEOF
5092
5093cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5094
5095# Handling of arguments.
5096for ac_config_target in $ac_config_targets
5097do
5098  case $ac_config_target in
5099    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5100    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5101
5102  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5103  esac
5104done
5105
5106
5107# If the user did not use the arguments to specify the items to instantiate,
5108# then the envvar interface is used.  Set only those that are not.
5109# We use the long form for the default assignment because of an extremely
5110# bizarre bug on SunOS 4.1.3.
5111if $ac_need_defaults; then
5112  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5113  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5114fi
5115
5116# Have a temporary directory for convenience.  Make it in the build tree
5117# simply because there is no reason against having it here, and in addition,
5118# creating and moving files from /tmp can sometimes cause problems.
5119# Hook for its removal unless debugging.
5120# Note that there is a small window in which the directory will not be cleaned:
5121# after its creation but before its name has been assigned to `$tmp'.
5122$debug ||
5123{
5124  tmp= ac_tmp=
5125  trap 'exit_status=$?
5126  : "${ac_tmp:=$tmp}"
5127  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5128' 0
5129  trap 'as_fn_exit 1' 1 2 13 15
5130}
5131# Create a (secure) tmp directory for tmp files.
5132
5133{
5134  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5135  test -d "$tmp"
5136}  ||
5137{
5138  tmp=./conf$$-$RANDOM
5139  (umask 077 && mkdir "$tmp")
5140} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5141ac_tmp=$tmp
5142
5143# Set up the scripts for CONFIG_FILES section.
5144# No need to generate them if there are no CONFIG_FILES.
5145# This happens for instance with `./config.status config.h'.
5146if test -n "$CONFIG_FILES"; then
5147
5148
5149ac_cr=`echo X | tr X '\015'`
5150# On cygwin, bash can eat \r inside `` if the user requested igncr.
5151# But we know of no other shell where ac_cr would be empty at this
5152# point, so we can use a bashism as a fallback.
5153if test "x$ac_cr" = x; then
5154  eval ac_cr=\$\'\\r\'
5155fi
5156ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5157if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5158  ac_cs_awk_cr='\\r'
5159else
5160  ac_cs_awk_cr=$ac_cr
5161fi
5162
5163echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5164_ACEOF
5165
5166
5167{
5168  echo "cat >conf$$subs.awk <<_ACEOF" &&
5169  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5170  echo "_ACEOF"
5171} >conf$$subs.sh ||
5172  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5173ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5174ac_delim='%!_!# '
5175for ac_last_try in false false false false false :; do
5176  . ./conf$$subs.sh ||
5177    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5178
5179  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5180  if test $ac_delim_n = $ac_delim_num; then
5181    break
5182  elif $ac_last_try; then
5183    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5184  else
5185    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5186  fi
5187done
5188rm -f conf$$subs.sh
5189
5190cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5191cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5192_ACEOF
5193sed -n '
5194h
5195s/^/S["/; s/!.*/"]=/
5196p
5197g
5198s/^[^!]*!//
5199:repl
5200t repl
5201s/'"$ac_delim"'$//
5202t delim
5203:nl
5204h
5205s/\(.\{148\}\)..*/\1/
5206t more1
5207s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5208p
5209n
5210b repl
5211:more1
5212s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5213p
5214g
5215s/.\{148\}//
5216t nl
5217:delim
5218h
5219s/\(.\{148\}\)..*/\1/
5220t more2
5221s/["\\]/\\&/g; s/^/"/; s/$/"/
5222p
5223b
5224:more2
5225s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5226p
5227g
5228s/.\{148\}//
5229t delim
5230' <conf$$subs.awk | sed '
5231/^[^""]/{
5232  N
5233  s/\n//
5234}
5235' >>$CONFIG_STATUS || ac_write_fail=1
5236rm -f conf$$subs.awk
5237cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5238_ACAWK
5239cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5240  for (key in S) S_is_set[key] = 1
5241  FS = ""
5242
5243}
5244{
5245  line = $ 0
5246  nfields = split(line, field, "@")
5247  substed = 0
5248  len = length(field[1])
5249  for (i = 2; i < nfields; i++) {
5250    key = field[i]
5251    keylen = length(key)
5252    if (S_is_set[key]) {
5253      value = S[key]
5254      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5255      len += length(value) + length(field[++i])
5256      substed = 1
5257    } else
5258      len += 1 + keylen
5259  }
5260
5261  print line
5262}
5263
5264_ACAWK
5265_ACEOF
5266cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5267if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5268  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5269else
5270  cat
5271fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5272  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5273_ACEOF
5274
5275# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5276# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5277# trailing colons and then remove the whole line if VPATH becomes empty
5278# (actually we leave an empty line to preserve line numbers).
5279if test "x$srcdir" = x.; then
5280  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
5281h
5282s///
5283s/^/:/
5284s/[	 ]*$/:/
5285s/:\$(srcdir):/:/g
5286s/:\${srcdir}:/:/g
5287s/:@srcdir@:/:/g
5288s/^:*//
5289s/:*$//
5290x
5291s/\(=[	 ]*\).*/\1/
5292G
5293s/\n//
5294s/^[^=]*=[	 ]*$//
5295}'
5296fi
5297
5298cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5299fi # test -n "$CONFIG_FILES"
5300
5301# Set up the scripts for CONFIG_HEADERS section.
5302# No need to generate them if there are no CONFIG_HEADERS.
5303# This happens for instance with `./config.status Makefile'.
5304if test -n "$CONFIG_HEADERS"; then
5305cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5306BEGIN {
5307_ACEOF
5308
5309# Transform confdefs.h into an awk script `defines.awk', embedded as
5310# here-document in config.status, that substitutes the proper values into
5311# config.h.in to produce config.h.
5312
5313# Create a delimiter string that does not exist in confdefs.h, to ease
5314# handling of long lines.
5315ac_delim='%!_!# '
5316for ac_last_try in false false :; do
5317  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5318  if test -z "$ac_tt"; then
5319    break
5320  elif $ac_last_try; then
5321    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5322  else
5323    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5324  fi
5325done
5326
5327# For the awk script, D is an array of macro values keyed by name,
5328# likewise P contains macro parameters if any.  Preserve backslash
5329# newline sequences.
5330
5331ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5332sed -n '
5333s/.\{148\}/&'"$ac_delim"'/g
5334t rset
5335:rset
5336s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
5337t def
5338d
5339:def
5340s/\\$//
5341t bsnl
5342s/["\\]/\\&/g
5343s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
5344D["\1"]=" \3"/p
5345s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
5346d
5347:bsnl
5348s/["\\]/\\&/g
5349s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
5350D["\1"]=" \3\\\\\\n"\\/p
5351t cont
5352s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5353t cont
5354d
5355:cont
5356n
5357s/.\{148\}/&'"$ac_delim"'/g
5358t clear
5359:clear
5360s/\\$//
5361t bsnlc
5362s/["\\]/\\&/g; s/^/"/; s/$/"/p
5363d
5364:bsnlc
5365s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5366b cont
5367' <confdefs.h | sed '
5368s/'"$ac_delim"'/"\\\
5369"/g' >>$CONFIG_STATUS || ac_write_fail=1
5370
5371cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5372  for (key in D) D_is_set[key] = 1
5373  FS = ""
5374}
5375/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5376  line = \$ 0
5377  split(line, arg, " ")
5378  if (arg[1] == "#") {
5379    defundef = arg[2]
5380    mac1 = arg[3]
5381  } else {
5382    defundef = substr(arg[1], 2)
5383    mac1 = arg[2]
5384  }
5385  split(mac1, mac2, "(") #)
5386  macro = mac2[1]
5387  prefix = substr(line, 1, index(line, defundef) - 1)
5388  if (D_is_set[macro]) {
5389    # Preserve the white space surrounding the "#".
5390    print prefix "define", macro P[macro] D[macro]
5391    next
5392  } else {
5393    # Replace #undef with comments.  This is necessary, for example,
5394    # in the case of _POSIX_SOURCE, which is predefined and required
5395    # on some systems where configure will not decide to define it.
5396    if (defundef == "undef") {
5397      print "/*", prefix defundef, macro, "*/"
5398      next
5399    }
5400  }
5401}
5402{ print }
5403_ACAWK
5404_ACEOF
5405cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5406  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5407fi # test -n "$CONFIG_HEADERS"
5408
5409
5410eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
5411shift
5412for ac_tag
5413do
5414  case $ac_tag in
5415  :[FHLC]) ac_mode=$ac_tag; continue;;
5416  esac
5417  case $ac_mode$ac_tag in
5418  :[FHL]*:*);;
5419  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5420  :[FH]-) ac_tag=-:-;;
5421  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5422  esac
5423  ac_save_IFS=$IFS
5424  IFS=:
5425  set x $ac_tag
5426  IFS=$ac_save_IFS
5427  shift
5428  ac_file=$1
5429  shift
5430
5431  case $ac_mode in
5432  :L) ac_source=$1;;
5433  :[FH])
5434    ac_file_inputs=
5435    for ac_f
5436    do
5437      case $ac_f in
5438      -) ac_f="$ac_tmp/stdin";;
5439      *) # Look for the file first in the build tree, then in the source tree
5440	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
5441	 # because $ac_f cannot contain `:'.
5442	 test -f "$ac_f" ||
5443	   case $ac_f in
5444	   [\\/$]*) false;;
5445	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5446	   esac ||
5447	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5448      esac
5449      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5450      as_fn_append ac_file_inputs " '$ac_f'"
5451    done
5452
5453    # Let's still pretend it is `configure' which instantiates (i.e., don't
5454    # use $as_me), people would be surprised to read:
5455    #    /* config.h.  Generated by config.status.  */
5456    configure_input='Generated from '`
5457	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5458	`' by configure.'
5459    if test x"$ac_file" != x-; then
5460      configure_input="$ac_file.  $configure_input"
5461      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5462$as_echo "$as_me: creating $ac_file" >&6;}
5463    fi
5464    # Neutralize special characters interpreted by sed in replacement strings.
5465    case $configure_input in #(
5466    *\&* | *\|* | *\\* )
5467       ac_sed_conf_input=`$as_echo "$configure_input" |
5468       sed 's/[\\\\&|]/\\\\&/g'`;; #(
5469    *) ac_sed_conf_input=$configure_input;;
5470    esac
5471
5472    case $ac_tag in
5473    *:-:* | *:-) cat >"$ac_tmp/stdin" \
5474      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5475    esac
5476    ;;
5477  esac
5478
5479  ac_dir=`$as_dirname -- "$ac_file" ||
5480$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5481	 X"$ac_file" : 'X\(//\)[^/]' \| \
5482	 X"$ac_file" : 'X\(//\)$' \| \
5483	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5484$as_echo X"$ac_file" |
5485    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5486	    s//\1/
5487	    q
5488	  }
5489	  /^X\(\/\/\)[^/].*/{
5490	    s//\1/
5491	    q
5492	  }
5493	  /^X\(\/\/\)$/{
5494	    s//\1/
5495	    q
5496	  }
5497	  /^X\(\/\).*/{
5498	    s//\1/
5499	    q
5500	  }
5501	  s/.*/./; q'`
5502  as_dir="$ac_dir"; as_fn_mkdir_p
5503  ac_builddir=.
5504
5505case "$ac_dir" in
5506.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5507*)
5508  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5509  # A ".." for each directory in $ac_dir_suffix.
5510  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5511  case $ac_top_builddir_sub in
5512  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5513  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5514  esac ;;
5515esac
5516ac_abs_top_builddir=$ac_pwd
5517ac_abs_builddir=$ac_pwd$ac_dir_suffix
5518# for backward compatibility:
5519ac_top_builddir=$ac_top_build_prefix
5520
5521case $srcdir in
5522  .)  # We are building in place.
5523    ac_srcdir=.
5524    ac_top_srcdir=$ac_top_builddir_sub
5525    ac_abs_top_srcdir=$ac_pwd ;;
5526  [\\/]* | ?:[\\/]* )  # Absolute name.
5527    ac_srcdir=$srcdir$ac_dir_suffix;
5528    ac_top_srcdir=$srcdir
5529    ac_abs_top_srcdir=$srcdir ;;
5530  *) # Relative name.
5531    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5532    ac_top_srcdir=$ac_top_build_prefix$srcdir
5533    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5534esac
5535ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5536
5537
5538  case $ac_mode in
5539  :F)
5540  #
5541  # CONFIG_FILE
5542  #
5543
5544  case $INSTALL in
5545  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5546  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5547  esac
5548_ACEOF
5549
5550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5551# If the template does not know about datarootdir, expand it.
5552# FIXME: This hack should be removed a few years after 2.60.
5553ac_datarootdir_hack=; ac_datarootdir_seen=
5554ac_sed_dataroot='
5555/datarootdir/ {
5556  p
5557  q
5558}
5559/@datadir@/p
5560/@docdir@/p
5561/@infodir@/p
5562/@localedir@/p
5563/@mandir@/p'
5564case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5565*datarootdir*) ac_datarootdir_seen=yes;;
5566*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5567  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5568$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5569_ACEOF
5570cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5571  ac_datarootdir_hack='
5572  s&@datadir@&$datadir&g
5573  s&@docdir@&$docdir&g
5574  s&@infodir@&$infodir&g
5575  s&@localedir@&$localedir&g
5576  s&@mandir@&$mandir&g
5577  s&\\\${datarootdir}&$datarootdir&g' ;;
5578esac
5579_ACEOF
5580
5581# Neutralize VPATH when `$srcdir' = `.'.
5582# Shell code in configure.ac might set extrasub.
5583# FIXME: do we really want to maintain this feature?
5584cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5585ac_sed_extra="$ac_vpsub
5586$extrasub
5587_ACEOF
5588cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5589:t
5590/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5591s|@configure_input@|$ac_sed_conf_input|;t t
5592s&@top_builddir@&$ac_top_builddir_sub&;t t
5593s&@top_build_prefix@&$ac_top_build_prefix&;t t
5594s&@srcdir@&$ac_srcdir&;t t
5595s&@abs_srcdir@&$ac_abs_srcdir&;t t
5596s&@top_srcdir@&$ac_top_srcdir&;t t
5597s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5598s&@builddir@&$ac_builddir&;t t
5599s&@abs_builddir@&$ac_abs_builddir&;t t
5600s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5601s&@INSTALL@&$ac_INSTALL&;t t
5602$ac_datarootdir_hack
5603"
5604eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5605  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5606
5607test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5608  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5609  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
5610      "$ac_tmp/out"`; test -z "$ac_out"; } &&
5611  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5612which seems to be undefined.  Please make sure it is defined" >&5
5613$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5614which seems to be undefined.  Please make sure it is defined" >&2;}
5615
5616  rm -f "$ac_tmp/stdin"
5617  case $ac_file in
5618  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5619  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5620  esac \
5621  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5622 ;;
5623  :H)
5624  #
5625  # CONFIG_HEADER
5626  #
5627  if test x"$ac_file" != x-; then
5628    {
5629      $as_echo "/* $configure_input  */" \
5630      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5631    } >"$ac_tmp/config.h" \
5632      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5633    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5634      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5635$as_echo "$as_me: $ac_file is unchanged" >&6;}
5636    else
5637      rm -f "$ac_file"
5638      mv "$ac_tmp/config.h" "$ac_file" \
5639	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
5640    fi
5641  else
5642    $as_echo "/* $configure_input  */" \
5643      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5644      || as_fn_error $? "could not create -" "$LINENO" 5
5645  fi
5646 ;;
5647
5648
5649  esac
5650
5651done # for ac_tag
5652
5653
5654as_fn_exit 0
5655_ACEOF
5656ac_clean_files=$ac_clean_files_save
5657
5658test $ac_write_fail = 0 ||
5659  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5660
5661
5662# configure is writing to config.log, and then calls config.status.
5663# config.status does its own redirection, appending to config.log.
5664# Unfortunately, on DOS this fails, as config.log is still kept open
5665# by configure, so config.status won't be able to write to it; its
5666# output is simply discarded.  So we exec the FD to /dev/null,
5667# effectively closing config.log, so it can be properly (re)opened and
5668# appended to by config.status.  When coming back to configure, we
5669# need to make the FD available again.
5670if test "$no_create" != yes; then
5671  ac_cs_success=:
5672  ac_config_status_args=
5673  test "$silent" = yes &&
5674    ac_config_status_args="$ac_config_status_args --quiet"
5675  exec 5>/dev/null
5676  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5677  exec 5>>config.log
5678  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5679  # would make configure fail if this is the last instruction.
5680  $ac_cs_success || as_fn_exit 1
5681fi
5682if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5683  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5684$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5685fi
5686
5687