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