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