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