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