1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for aterm 1.00.01.
4#
5# Report bugs to <as-bugs@afterstep.org>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44  echo "#! /bin/sh" >conf$$.sh
45  echo  "exit 0"   >>conf$$.sh
46  chmod +x conf$$.sh
47  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48    PATH_SEPARATOR=';'
49  else
50    PATH_SEPARATOR=:
51  fi
52  rm -f conf$$.sh
53fi
54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57  as_unset=unset
58else
59  as_unset=false
60fi
61
62
63# IFS
64# We need space, tab and new line, in precisely that order.  Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" ""	$as_nl"
71
72# Find who we are.  Look in the path if we contain no directory separator.
73case $0 in
74  *[\\/]* ) as_myself=$0 ;;
75  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78  IFS=$as_save_IFS
79  test -z "$as_dir" && as_dir=.
80  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84     ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89  as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93  { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108  LC_TELEPHONE LC_TIME
109do
110  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111    eval $as_var=C; export $as_var
112  else
113    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114  fi
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120  as_expr=expr
121else
122  as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126  as_basename=basename
127else
128  as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135	 X"$0" : 'X\(//\)$' \| \
136	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138    sed '/^.*\/\([^/][^/]*\)\/*$/{
139	    s//\1/
140	    q
141	  }
142	  /^X\/\(\/\/\)$/{
143	    s//\1/
144	    q
145	  }
146	  /^X\/\(\/\).*/{
147	    s//\1/
148	    q
149	  }
150	  s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157  if (eval ":") 2>/dev/null; then
158  as_have_required=yes
159else
160  as_have_required=no
161fi
162
163  if test $as_have_required = yes && 	 (eval ":
164(as_func_return () {
165  (exit \$1)
166}
167as_func_success () {
168  as_func_return 0
169}
170as_func_failure () {
171  as_func_return 1
172}
173as_func_ret_success () {
174  return 0
175}
176as_func_ret_failure () {
177  return 1
178}
179
180exitcode=0
181if as_func_success; then
182  :
183else
184  exitcode=1
185  echo as_func_success failed.
186fi
187
188if as_func_failure; then
189  exitcode=1
190  echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194  :
195else
196  exitcode=1
197  echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201  exitcode=1
202  echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206  :
207else
208  exitcode=1
209  echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215  as_lineno_1=\$LINENO
216  as_lineno_2=\$LINENO
217  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220  :
221else
222  as_candidate_shells=
223    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226  IFS=$as_save_IFS
227  test -z "$as_dir" && as_dir=.
228  case $as_dir in
229	 /*)
230	   for as_base in sh bash ksh sh5; do
231	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232	   done;;
233       esac
234done
235IFS=$as_save_IFS
236
237
238      for as_shell in $as_candidate_shells $SHELL; do
239	 # Try only shells that exist, to save several forks.
240	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241		{ ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243  emulate sh
244  NULLCMD=:
245  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246  # is contrary to our usage.  Disable this feature.
247  alias -g '${1+"$@"}'='"$@"'
248  setopt NO_GLOB_SUBST
249else
250  case `(set -o) 2>/dev/null` in
251  *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260  CONFIG_SHELL=$as_shell
261	       as_have_required=yes
262	       if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264  emulate sh
265  NULLCMD=:
266  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267  # is contrary to our usage.  Disable this feature.
268  alias -g '${1+"$@"}'='"$@"'
269  setopt NO_GLOB_SUBST
270else
271  case `(set -o) 2>/dev/null` in
272  *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280  (exit $1)
281}
282as_func_success () {
283  as_func_return 0
284}
285as_func_failure () {
286  as_func_return 1
287}
288as_func_ret_success () {
289  return 0
290}
291as_func_ret_failure () {
292  return 1
293}
294
295exitcode=0
296if as_func_success; then
297  :
298else
299  exitcode=1
300  echo as_func_success failed.
301fi
302
303if as_func_failure; then
304  exitcode=1
305  echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309  :
310else
311  exitcode=1
312  echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316  exitcode=1
317  echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321  :
322else
323  exitcode=1
324  echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
330  as_lineno_1=$LINENO
331  as_lineno_2=$LINENO
332  test "x$as_lineno_1" != "x$as_lineno_2" &&
333  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337  break
338fi
339
340fi
341
342      done
343
344      if test "x$CONFIG_SHELL" != x; then
345  for as_var in BASH_ENV ENV
346        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347        done
348        export CONFIG_SHELL
349        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353    if test $as_have_required = no; then
354  echo This script requires a shell more modern than all the
355      echo shells that I found on your system.  Please install a
356      echo modern shell, or manually run the script under such a
357      echo shell if you do have one.
358      { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369  (exit \$1)
370}
371as_func_success () {
372  as_func_return 0
373}
374as_func_failure () {
375  as_func_return 1
376}
377as_func_ret_success () {
378  return 0
379}
380as_func_ret_failure () {
381  return 1
382}
383
384exitcode=0
385if as_func_success; then
386  :
387else
388  exitcode=1
389  echo as_func_success failed.
390fi
391
392if as_func_failure; then
393  exitcode=1
394  echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398  :
399else
400  exitcode=1
401  echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405  exitcode=1
406  echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410  :
411else
412  exitcode=1
413  echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417  echo No shell found that supports shell functions.
418  echo Please tell autoconf@gnu.org about your system,
419  echo including any error possibly output before this
420  echo message
421}
422
423
424
425  as_lineno_1=$LINENO
426  as_lineno_2=$LINENO
427  test "x$as_lineno_1" != "x$as_lineno_2" &&
428  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431  # uniformly replaced by the line number.  The first 'sed' inserts a
432  # line-number line after each line using $LINENO; the second 'sed'
433  # does the real work.  The second script uses 'N' to pair each
434  # line-number line with the line containing $LINENO, and appends
435  # trailing '-' during substitution so that $LINENO is not a special
436  # case at line end.
437  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438  # scripts with optimization help from Paolo Bonzini.  Blame Lee
439  # E. McMahon (1931-1989) for sed's syntax.  :-)
440  sed -n '
441    p
442    /[$]LINENO/=
443  ' <$as_myself |
444    sed '
445      s/[$]LINENO.*/&-/
446      t lineno
447      b
448      :lineno
449      N
450      :loop
451      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452      t loop
453      s/-\n.*//
454    ' >$as_me.lineno &&
455  chmod +x "$as_me.lineno" ||
456    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457   { (exit 1); exit 1; }; }
458
459  # Don't try to exec as it changes $[0], causing all sort of problems
460  # (the dirname of $[0] is not the place where we might find the
461  # original and so on.  Autoconf is especially sensitive to this).
462  . "./$as_me.lineno"
463  # Exit status is that of the last command.
464  exit
465}
466
467
468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469  as_dirname=dirname
470else
471  as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477  case `echo 'x\c'` in
478  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
479  *)   ECHO_C='\c';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486   test "X`expr 00001 : '.*\(...\)'`" = X001; then
487  as_expr=expr
488else
489  as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494  rm -f conf$$.dir/conf$$.file
495else
496  rm -f conf$$.dir
497  mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
501  as_ln_s='ln -s'
502  # ... but there are two gotchas:
503  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505  # In both cases, we have to default to `cp -p'.
506  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507    as_ln_s='cp -p'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509  as_ln_s=ln
510else
511  as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
515
516if mkdir -p . 2>/dev/null; then
517  as_mkdir_p=:
518else
519  test -d ./-p && rmdir ./-p
520  as_mkdir_p=false
521fi
522
523if test -x / >/dev/null 2>&1; then
524  as_test_x='test -x'
525else
526  if ls -dL / >/dev/null 2>&1; then
527    as_ls_L_option=L
528  else
529    as_ls_L_option=
530  fi
531  as_test_x='
532    eval sh -c '\''
533      if test -d "$1"; then
534        test -d "$1/.";
535      else
536	case $1 in
537        -*)set "./$1";;
538	esac;
539	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540	???[sx]*):;;*)false;;esac;fi
541    '\'' sh
542  '
543fi
544as_executable_p=$as_test_x
545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554exec 7<&0 </dev/null 6>&1
555
556# Name of the host.
557# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558# so uname gets run too.
559ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561#
562# Initializations.
563#
564ac_default_prefix=/usr/local
565ac_clean_files=
566ac_config_libobj_dir=.
567LIBOBJS=
568cross_compiling=no
569subdirs=
570MFLAGS=
571MAKEFLAGS=
572SHELL=${CONFIG_SHELL-/bin/sh}
573
574# Identity of this package.
575PACKAGE_NAME='aterm'
576PACKAGE_TARNAME='aterm.tar'
577PACKAGE_VERSION='1.00.01'
578PACKAGE_STRING='aterm 1.00.01'
579PACKAGE_BUGREPORT='as-bugs@afterstep.org'
580
581# Factoring default headers for most tests.
582ac_includes_default="\
583#include <stdio.h>
584#ifdef HAVE_SYS_TYPES_H
585# include <sys/types.h>
586#endif
587#ifdef HAVE_SYS_STAT_H
588# include <sys/stat.h>
589#endif
590#ifdef STDC_HEADERS
591# include <stdlib.h>
592# include <stddef.h>
593#else
594# ifdef HAVE_STDLIB_H
595#  include <stdlib.h>
596# endif
597#endif
598#ifdef HAVE_STRING_H
599# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600#  include <memory.h>
601# endif
602# include <string.h>
603#endif
604#ifdef HAVE_STRINGS_H
605# include <strings.h>
606#endif
607#ifdef HAVE_INTTYPES_H
608# include <inttypes.h>
609#endif
610#ifdef HAVE_STDINT_H
611# include <stdint.h>
612#endif
613#ifdef HAVE_UNISTD_H
614# include <unistd.h>
615#endif"
616
617ac_subst_vars='SHELL
618PATH_SEPARATOR
619PACKAGE_NAME
620PACKAGE_TARNAME
621PACKAGE_VERSION
622PACKAGE_STRING
623PACKAGE_BUGREPORT
624exec_prefix
625prefix
626program_transform_name
627bindir
628sbindir
629libexecdir
630datarootdir
631datadir
632sysconfdir
633sharedstatedir
634localstatedir
635includedir
636oldincludedir
637docdir
638infodir
639htmldir
640dvidir
641pdfdir
642psdir
643libdir
644localedir
645mandir
646DEFS
647ECHO_C
648ECHO_N
649ECHO_T
650LIBS
651build_alias
652host_alias
653target_alias
654VERSION
655DATE
656LSMDATE
657CC
658CFLAGS
659LDFLAGS
660CPPFLAGS
661ac_ct_CC
662EXEEXT
663OBJEXT
664CPP
665GREP
666EGREP
667INSTALL_PROGRAM
668INSTALL_SCRIPT
669INSTALL_DATA
670build
671build_cpu
672build_vendor
673build_os
674host
675host_cpu
676host_vendor
677host_os
678RANLIB
679RM
680MV
681CP
682MKDIR
683PERL
684FIND
685XARGS
686LDCONFIG
687SED
688XMKMF
689X_CFLAGS
690X_PRE_LIBS
691X_LIBS
692X_EXTRA_LIBS
693LIBAFTERIMAGE_CFLAGS
694LIBAFTERSTEP_CFLAGS
695AFTERIMAGE_LIBS
696AFTERSTEP_LIBS
697DEBUG
698DLIB
699DINCLUDE
700XEXTENTIONS_LIBS
701LIBOBJS
702LTLIBOBJS'
703ac_subst_files='MCOMMON'
704      ac_precious_vars='build_alias
705host_alias
706target_alias
707CC
708CFLAGS
709LDFLAGS
710LIBS
711CPPFLAGS
712CPP
713XMKMF'
714
715
716# Initialize some variables set by options.
717ac_init_help=
718ac_init_version=false
719# The variables have the same names as the options, with
720# dashes changed to underlines.
721cache_file=/dev/null
722exec_prefix=NONE
723no_create=
724no_recursion=
725prefix=NONE
726program_prefix=NONE
727program_suffix=NONE
728program_transform_name=s,x,x,
729silent=
730site=
731srcdir=
732verbose=
733x_includes=NONE
734x_libraries=NONE
735
736# Installation directory options.
737# These are left unexpanded so users can "make install exec_prefix=/foo"
738# and all the variables that are supposed to be based on exec_prefix
739# by default will actually change.
740# Use braces instead of parens because sh, perl, etc. also accept them.
741# (The list follows the same order as the GNU Coding Standards.)
742bindir='${exec_prefix}/bin'
743sbindir='${exec_prefix}/sbin'
744libexecdir='${exec_prefix}/libexec'
745datarootdir='${prefix}/share'
746datadir='${datarootdir}'
747sysconfdir='${prefix}/etc'
748sharedstatedir='${prefix}/com'
749localstatedir='${prefix}/var'
750includedir='${prefix}/include'
751oldincludedir='/usr/include'
752docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
753infodir='${datarootdir}/info'
754htmldir='${docdir}'
755dvidir='${docdir}'
756pdfdir='${docdir}'
757psdir='${docdir}'
758libdir='${exec_prefix}/lib'
759localedir='${datarootdir}/locale'
760mandir='${datarootdir}/man'
761
762ac_prev=
763ac_dashdash=
764for ac_option
765do
766  # If the previous option needs an argument, assign it.
767  if test -n "$ac_prev"; then
768    eval $ac_prev=\$ac_option
769    ac_prev=
770    continue
771  fi
772
773  case $ac_option in
774  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
775  *)	ac_optarg=yes ;;
776  esac
777
778  # Accept the important Cygnus configure options, so we can diagnose typos.
779
780  case $ac_dashdash$ac_option in
781  --)
782    ac_dashdash=yes ;;
783
784  -bindir | --bindir | --bindi | --bind | --bin | --bi)
785    ac_prev=bindir ;;
786  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
787    bindir=$ac_optarg ;;
788
789  -build | --build | --buil | --bui | --bu)
790    ac_prev=build_alias ;;
791  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
792    build_alias=$ac_optarg ;;
793
794  -cache-file | --cache-file | --cache-fil | --cache-fi \
795  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
796    ac_prev=cache_file ;;
797  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
798  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
799    cache_file=$ac_optarg ;;
800
801  --config-cache | -C)
802    cache_file=config.cache ;;
803
804  -datadir | --datadir | --datadi | --datad)
805    ac_prev=datadir ;;
806  -datadir=* | --datadir=* | --datadi=* | --datad=*)
807    datadir=$ac_optarg ;;
808
809  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
810  | --dataroo | --dataro | --datar)
811    ac_prev=datarootdir ;;
812  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
813  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
814    datarootdir=$ac_optarg ;;
815
816  -disable-* | --disable-*)
817    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
818    # Reject names that are not valid shell variable names.
819    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
820      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
821   { (exit 1); exit 1; }; }
822    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
823    eval enable_$ac_feature=no ;;
824
825  -docdir | --docdir | --docdi | --doc | --do)
826    ac_prev=docdir ;;
827  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
828    docdir=$ac_optarg ;;
829
830  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
831    ac_prev=dvidir ;;
832  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
833    dvidir=$ac_optarg ;;
834
835  -enable-* | --enable-*)
836    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
837    # Reject names that are not valid shell variable names.
838    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
839      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
840   { (exit 1); exit 1; }; }
841    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
842    eval enable_$ac_feature=\$ac_optarg ;;
843
844  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
845  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
846  | --exec | --exe | --ex)
847    ac_prev=exec_prefix ;;
848  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
849  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
850  | --exec=* | --exe=* | --ex=*)
851    exec_prefix=$ac_optarg ;;
852
853  -gas | --gas | --ga | --g)
854    # Obsolete; use --with-gas.
855    with_gas=yes ;;
856
857  -help | --help | --hel | --he | -h)
858    ac_init_help=long ;;
859  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
860    ac_init_help=recursive ;;
861  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
862    ac_init_help=short ;;
863
864  -host | --host | --hos | --ho)
865    ac_prev=host_alias ;;
866  -host=* | --host=* | --hos=* | --ho=*)
867    host_alias=$ac_optarg ;;
868
869  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
870    ac_prev=htmldir ;;
871  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
872  | --ht=*)
873    htmldir=$ac_optarg ;;
874
875  -includedir | --includedir | --includedi | --included | --include \
876  | --includ | --inclu | --incl | --inc)
877    ac_prev=includedir ;;
878  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
879  | --includ=* | --inclu=* | --incl=* | --inc=*)
880    includedir=$ac_optarg ;;
881
882  -infodir | --infodir | --infodi | --infod | --info | --inf)
883    ac_prev=infodir ;;
884  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
885    infodir=$ac_optarg ;;
886
887  -libdir | --libdir | --libdi | --libd)
888    ac_prev=libdir ;;
889  -libdir=* | --libdir=* | --libdi=* | --libd=*)
890    libdir=$ac_optarg ;;
891
892  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
893  | --libexe | --libex | --libe)
894    ac_prev=libexecdir ;;
895  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
896  | --libexe=* | --libex=* | --libe=*)
897    libexecdir=$ac_optarg ;;
898
899  -localedir | --localedir | --localedi | --localed | --locale)
900    ac_prev=localedir ;;
901  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
902    localedir=$ac_optarg ;;
903
904  -localstatedir | --localstatedir | --localstatedi | --localstated \
905  | --localstate | --localstat | --localsta | --localst | --locals)
906    ac_prev=localstatedir ;;
907  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
908  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
909    localstatedir=$ac_optarg ;;
910
911  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
912    ac_prev=mandir ;;
913  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
914    mandir=$ac_optarg ;;
915
916  -nfp | --nfp | --nf)
917    # Obsolete; use --without-fp.
918    with_fp=no ;;
919
920  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
921  | --no-cr | --no-c | -n)
922    no_create=yes ;;
923
924  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
925  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
926    no_recursion=yes ;;
927
928  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
929  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
930  | --oldin | --oldi | --old | --ol | --o)
931    ac_prev=oldincludedir ;;
932  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
933  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
934  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
935    oldincludedir=$ac_optarg ;;
936
937  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
938    ac_prev=prefix ;;
939  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
940    prefix=$ac_optarg ;;
941
942  -program-prefix | --program-prefix | --program-prefi | --program-pref \
943  | --program-pre | --program-pr | --program-p)
944    ac_prev=program_prefix ;;
945  -program-prefix=* | --program-prefix=* | --program-prefi=* \
946  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
947    program_prefix=$ac_optarg ;;
948
949  -program-suffix | --program-suffix | --program-suffi | --program-suff \
950  | --program-suf | --program-su | --program-s)
951    ac_prev=program_suffix ;;
952  -program-suffix=* | --program-suffix=* | --program-suffi=* \
953  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
954    program_suffix=$ac_optarg ;;
955
956  -program-transform-name | --program-transform-name \
957  | --program-transform-nam | --program-transform-na \
958  | --program-transform-n | --program-transform- \
959  | --program-transform | --program-transfor \
960  | --program-transfo | --program-transf \
961  | --program-trans | --program-tran \
962  | --progr-tra | --program-tr | --program-t)
963    ac_prev=program_transform_name ;;
964  -program-transform-name=* | --program-transform-name=* \
965  | --program-transform-nam=* | --program-transform-na=* \
966  | --program-transform-n=* | --program-transform-=* \
967  | --program-transform=* | --program-transfor=* \
968  | --program-transfo=* | --program-transf=* \
969  | --program-trans=* | --program-tran=* \
970  | --progr-tra=* | --program-tr=* | --program-t=*)
971    program_transform_name=$ac_optarg ;;
972
973  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
974    ac_prev=pdfdir ;;
975  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
976    pdfdir=$ac_optarg ;;
977
978  -psdir | --psdir | --psdi | --psd | --ps)
979    ac_prev=psdir ;;
980  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
981    psdir=$ac_optarg ;;
982
983  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
984  | -silent | --silent | --silen | --sile | --sil)
985    silent=yes ;;
986
987  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
988    ac_prev=sbindir ;;
989  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
990  | --sbi=* | --sb=*)
991    sbindir=$ac_optarg ;;
992
993  -sharedstatedir | --sharedstatedir | --sharedstatedi \
994  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
995  | --sharedst | --shareds | --shared | --share | --shar \
996  | --sha | --sh)
997    ac_prev=sharedstatedir ;;
998  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
999  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1000  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1001  | --sha=* | --sh=*)
1002    sharedstatedir=$ac_optarg ;;
1003
1004  -site | --site | --sit)
1005    ac_prev=site ;;
1006  -site=* | --site=* | --sit=*)
1007    site=$ac_optarg ;;
1008
1009  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1010    ac_prev=srcdir ;;
1011  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1012    srcdir=$ac_optarg ;;
1013
1014  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1015  | --syscon | --sysco | --sysc | --sys | --sy)
1016    ac_prev=sysconfdir ;;
1017  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1018  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1019    sysconfdir=$ac_optarg ;;
1020
1021  -target | --target | --targe | --targ | --tar | --ta | --t)
1022    ac_prev=target_alias ;;
1023  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1024    target_alias=$ac_optarg ;;
1025
1026  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1027    verbose=yes ;;
1028
1029  -version | --version | --versio | --versi | --vers | -V)
1030    ac_init_version=: ;;
1031
1032  -with-* | --with-*)
1033    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1034    # Reject names that are not valid shell variable names.
1035    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1036      { echo "$as_me: error: invalid package name: $ac_package" >&2
1037   { (exit 1); exit 1; }; }
1038    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1039    eval with_$ac_package=\$ac_optarg ;;
1040
1041  -without-* | --without-*)
1042    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1043    # Reject names that are not valid shell variable names.
1044    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1045      { echo "$as_me: error: invalid package name: $ac_package" >&2
1046   { (exit 1); exit 1; }; }
1047    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1048    eval with_$ac_package=no ;;
1049
1050  --x)
1051    # Obsolete; use --with-x.
1052    with_x=yes ;;
1053
1054  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1055  | --x-incl | --x-inc | --x-in | --x-i)
1056    ac_prev=x_includes ;;
1057  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1058  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1059    x_includes=$ac_optarg ;;
1060
1061  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1062  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1063    ac_prev=x_libraries ;;
1064  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1065  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1066    x_libraries=$ac_optarg ;;
1067
1068  -*) { echo "$as_me: error: unrecognized option: $ac_option
1069Try \`$0 --help' for more information." >&2
1070   { (exit 1); exit 1; }; }
1071    ;;
1072
1073  *=*)
1074    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1075    # Reject names that are not valid shell variable names.
1076    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1077      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1078   { (exit 1); exit 1; }; }
1079    eval $ac_envvar=\$ac_optarg
1080    export $ac_envvar ;;
1081
1082  *)
1083    # FIXME: should be removed in autoconf 3.0.
1084    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1085    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1086      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1087    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1088    ;;
1089
1090  esac
1091done
1092
1093if test -n "$ac_prev"; then
1094  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1095  { echo "$as_me: error: missing argument to $ac_option" >&2
1096   { (exit 1); exit 1; }; }
1097fi
1098
1099# Be sure to have absolute directory names.
1100for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1101		datadir sysconfdir sharedstatedir localstatedir includedir \
1102		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1103		libdir localedir mandir
1104do
1105  eval ac_val=\$$ac_var
1106  case $ac_val in
1107    [\\/$]* | ?:[\\/]* )  continue;;
1108    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1109  esac
1110  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1111   { (exit 1); exit 1; }; }
1112done
1113
1114# There might be people who depend on the old broken behavior: `$host'
1115# used to hold the argument of --host etc.
1116# FIXME: To remove some day.
1117build=$build_alias
1118host=$host_alias
1119target=$target_alias
1120
1121# FIXME: To remove some day.
1122if test "x$host_alias" != x; then
1123  if test "x$build_alias" = x; then
1124    cross_compiling=maybe
1125    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1126    If a cross compiler is detected then cross compile mode will be used." >&2
1127  elif test "x$build_alias" != "x$host_alias"; then
1128    cross_compiling=yes
1129  fi
1130fi
1131
1132ac_tool_prefix=
1133test -n "$host_alias" && ac_tool_prefix=$host_alias-
1134
1135test "$silent" = yes && exec 6>/dev/null
1136
1137
1138ac_pwd=`pwd` && test -n "$ac_pwd" &&
1139ac_ls_di=`ls -di .` &&
1140ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1141  { echo "$as_me: error: Working directory cannot be determined" >&2
1142   { (exit 1); exit 1; }; }
1143test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1144  { echo "$as_me: error: pwd does not report name of working directory" >&2
1145   { (exit 1); exit 1; }; }
1146
1147
1148# Find the source files, if location was not specified.
1149if test -z "$srcdir"; then
1150  ac_srcdir_defaulted=yes
1151  # Try the directory containing this script, then the parent directory.
1152  ac_confdir=`$as_dirname -- "$0" ||
1153$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1154	 X"$0" : 'X\(//\)[^/]' \| \
1155	 X"$0" : 'X\(//\)$' \| \
1156	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1157echo X"$0" |
1158    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1159	    s//\1/
1160	    q
1161	  }
1162	  /^X\(\/\/\)[^/].*/{
1163	    s//\1/
1164	    q
1165	  }
1166	  /^X\(\/\/\)$/{
1167	    s//\1/
1168	    q
1169	  }
1170	  /^X\(\/\).*/{
1171	    s//\1/
1172	    q
1173	  }
1174	  s/.*/./; q'`
1175  srcdir=$ac_confdir
1176  if test ! -r "$srcdir/$ac_unique_file"; then
1177    srcdir=..
1178  fi
1179else
1180  ac_srcdir_defaulted=no
1181fi
1182if test ! -r "$srcdir/$ac_unique_file"; then
1183  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1184  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1185   { (exit 1); exit 1; }; }
1186fi
1187ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1188ac_abs_confdir=`(
1189	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1190   { (exit 1); exit 1; }; }
1191	pwd)`
1192# When building in place, set srcdir=.
1193if test "$ac_abs_confdir" = "$ac_pwd"; then
1194  srcdir=.
1195fi
1196# Remove unnecessary trailing slashes from srcdir.
1197# Double slashes in file names in object file debugging info
1198# mess up M-x gdb in Emacs.
1199case $srcdir in
1200*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1201esac
1202for ac_var in $ac_precious_vars; do
1203  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1204  eval ac_env_${ac_var}_value=\$${ac_var}
1205  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1206  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1207done
1208
1209#
1210# Report the --help message.
1211#
1212if test "$ac_init_help" = "long"; then
1213  # Omit some internal or obsolete options to make the list less imposing.
1214  # This message is too long to be a string in the A/UX 3.1 sh.
1215  cat <<_ACEOF
1216\`configure' configures aterm 1.00.01 to adapt to many kinds of systems.
1217
1218Usage: $0 [OPTION]... [VAR=VALUE]...
1219
1220To assign environment variables (e.g., CC, CFLAGS...), specify them as
1221VAR=VALUE.  See below for descriptions of some of the useful variables.
1222
1223Defaults for the options are specified in brackets.
1224
1225Configuration:
1226  -h, --help              display this help and exit
1227      --help=short        display options specific to this package
1228      --help=recursive    display the short help of all the included packages
1229  -V, --version           display version information and exit
1230  -q, --quiet, --silent   do not print \`checking...' messages
1231      --cache-file=FILE   cache test results in FILE [disabled]
1232  -C, --config-cache      alias for \`--cache-file=config.cache'
1233  -n, --no-create         do not create output files
1234      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1235
1236Installation directories:
1237  --prefix=PREFIX         install architecture-independent files in PREFIX
1238			  [$ac_default_prefix]
1239  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1240			  [PREFIX]
1241
1242By default, \`make install' will install all the files in
1243\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1244an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1245for instance \`--prefix=\$HOME'.
1246
1247For better control, use the options below.
1248
1249Fine tuning of the installation directories:
1250  --bindir=DIR           user executables [EPREFIX/bin]
1251  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1252  --libexecdir=DIR       program executables [EPREFIX/libexec]
1253  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1254  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1255  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1256  --libdir=DIR           object code libraries [EPREFIX/lib]
1257  --includedir=DIR       C header files [PREFIX/include]
1258  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1259  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1260  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1261  --infodir=DIR          info documentation [DATAROOTDIR/info]
1262  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1263  --mandir=DIR           man documentation [DATAROOTDIR/man]
1264  --docdir=DIR           documentation root [DATAROOTDIR/doc/aterm.tar]
1265  --htmldir=DIR          html documentation [DOCDIR]
1266  --dvidir=DIR           dvi documentation [DOCDIR]
1267  --pdfdir=DIR           pdf documentation [DOCDIR]
1268  --psdir=DIR            ps documentation [DOCDIR]
1269_ACEOF
1270
1271  cat <<\_ACEOF
1272
1273X features:
1274  --x-includes=DIR    X include files are in DIR
1275  --x-libraries=DIR   X library files are in DIR
1276
1277System types:
1278  --build=BUILD     configure for building on BUILD [guessed]
1279  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1280_ACEOF
1281fi
1282
1283if test -n "$ac_init_help"; then
1284  case $ac_init_help in
1285     short | recursive ) echo "Configuration of aterm 1.00.01:";;
1286   esac
1287  cat <<\_ACEOF
1288
1289Optional Features:
1290  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1291  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1292  --enable-utmp           enable utmp/utmpx support
1293  --enable-wtmp           enable wtmp support if you have utmp/utmpx support
1294  --enable-kanji          enable kanji support
1295  --enable-big5           enable big5 support
1296  --enable-xim            enable xim support
1297  --enable-greek          enable greek keyboard support
1298  --enable-thai           enable thai support
1299  --enable-ttygid         enable tty setting to group \"tty\" - use only if
1300                          your system uses this type of security
1301  --disable-backspace-key disable handling of the backspace key
1302  --disable-delete-key    disable handling of the delete key
1303  --disable-resources     disable all resource checking
1304  --enable-xgetdefault    enable resources via X instead of our small version
1305  --disable-memset        disable memset() function, use your system's instead
1306  --disable-swapscreen    disable swap screen support
1307  --disable-keepscrolling disable continual scrolling on scrollbar arrow press
1308  --disable-mousewheel    disable scrolling via mouse wheel or buttons 4 & 5
1309  --enable-old-selection  enable v2.20 (and prior) mouse selection
1310                          - this implies old word selection
1311  --enable-old-wordselect enable v2.20 (and prior) mouse selection of words
1312  --enable-dmalloc        enable Gray Watson's malloc - for debugging use
1313  --enable-dlmalloc       enable Doug Lea's malloc - for production use
1314                          - enable only one malloc package
1315  --enable-gdb            add gdb symbols (-g) (for debugging) no
1316  --enable-sigsegv        enable internal handler of Segmentation Fault (for self-diagnostics) yes
1317  --enable-transparency enable transparent background yes
1318
1319Optional Packages:
1320  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1321  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1322  --with-term=NAME        set the terminal to NAME (default \"xterm\")
1323  --with-terminfo=PATH    set the path to the terminfo tree to PATH
1324  --with-libefence        compile with libefence to debug buffer overruns no
1325  --with-afterimage-config=DIR  use libAfterImage config script in DIR
1326  --with-afterstep-config=DIR   use libAfterStep config script in DIR
1327  --with-x                use the X Window System
1328
1329Some influential environment variables:
1330  CC          C compiler command
1331  CFLAGS      C compiler flags
1332  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1333              nonstandard directory <lib dir>
1334  LIBS        libraries to pass to the linker, e.g. -l<library>
1335  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1336              you have headers in a nonstandard directory <include dir>
1337  CPP         C preprocessor
1338  XMKMF       Path to xmkmf, Makefile generator for X Window System
1339
1340Use these variables to override the choices made by `configure' or to help
1341it to find libraries and programs with nonstandard names/locations.
1342
1343Report bugs to <as-bugs@afterstep.org>.
1344_ACEOF
1345ac_status=$?
1346fi
1347
1348if test "$ac_init_help" = "recursive"; then
1349  # If there are subdirs, report their specific --help.
1350  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1351    test -d "$ac_dir" || continue
1352    ac_builddir=.
1353
1354case "$ac_dir" in
1355.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1356*)
1357  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1358  # A ".." for each directory in $ac_dir_suffix.
1359  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1360  case $ac_top_builddir_sub in
1361  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1362  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1363  esac ;;
1364esac
1365ac_abs_top_builddir=$ac_pwd
1366ac_abs_builddir=$ac_pwd$ac_dir_suffix
1367# for backward compatibility:
1368ac_top_builddir=$ac_top_build_prefix
1369
1370case $srcdir in
1371  .)  # We are building in place.
1372    ac_srcdir=.
1373    ac_top_srcdir=$ac_top_builddir_sub
1374    ac_abs_top_srcdir=$ac_pwd ;;
1375  [\\/]* | ?:[\\/]* )  # Absolute name.
1376    ac_srcdir=$srcdir$ac_dir_suffix;
1377    ac_top_srcdir=$srcdir
1378    ac_abs_top_srcdir=$srcdir ;;
1379  *) # Relative name.
1380    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1381    ac_top_srcdir=$ac_top_build_prefix$srcdir
1382    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1383esac
1384ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1385
1386    cd "$ac_dir" || { ac_status=$?; continue; }
1387    # Check for guested configure.
1388    if test -f "$ac_srcdir/configure.gnu"; then
1389      echo &&
1390      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1391    elif test -f "$ac_srcdir/configure"; then
1392      echo &&
1393      $SHELL "$ac_srcdir/configure" --help=recursive
1394    else
1395      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1396    fi || ac_status=$?
1397    cd "$ac_pwd" || { ac_status=$?; break; }
1398  done
1399fi
1400
1401test -n "$ac_init_help" && exit $ac_status
1402if $ac_init_version; then
1403  cat <<\_ACEOF
1404aterm configure 1.00.01
1405generated by GNU Autoconf 2.61
1406
1407Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14082002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1409This configure script is free software; the Free Software Foundation
1410gives unlimited permission to copy, distribute and modify it.
1411_ACEOF
1412  exit
1413fi
1414cat >config.log <<_ACEOF
1415This file contains any messages produced by compilers while
1416running configure, to aid debugging if configure makes a mistake.
1417
1418It was created by aterm $as_me 1.00.01, which was
1419generated by GNU Autoconf 2.61.  Invocation command line was
1420
1421  $ $0 $@
1422
1423_ACEOF
1424exec 5>>config.log
1425{
1426cat <<_ASUNAME
1427## --------- ##
1428## Platform. ##
1429## --------- ##
1430
1431hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1432uname -m = `(uname -m) 2>/dev/null || echo unknown`
1433uname -r = `(uname -r) 2>/dev/null || echo unknown`
1434uname -s = `(uname -s) 2>/dev/null || echo unknown`
1435uname -v = `(uname -v) 2>/dev/null || echo unknown`
1436
1437/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1438/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1439
1440/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1441/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1442/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1443/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1444/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1445/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1446/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1447
1448_ASUNAME
1449
1450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1451for as_dir in $PATH
1452do
1453  IFS=$as_save_IFS
1454  test -z "$as_dir" && as_dir=.
1455  echo "PATH: $as_dir"
1456done
1457IFS=$as_save_IFS
1458
1459} >&5
1460
1461cat >&5 <<_ACEOF
1462
1463
1464## ----------- ##
1465## Core tests. ##
1466## ----------- ##
1467
1468_ACEOF
1469
1470
1471# Keep a trace of the command line.
1472# Strip out --no-create and --no-recursion so they do not pile up.
1473# Strip out --silent because we don't want to record it for future runs.
1474# Also quote any args containing shell meta-characters.
1475# Make two passes to allow for proper duplicate-argument suppression.
1476ac_configure_args=
1477ac_configure_args0=
1478ac_configure_args1=
1479ac_must_keep_next=false
1480for ac_pass in 1 2
1481do
1482  for ac_arg
1483  do
1484    case $ac_arg in
1485    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1486    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1487    | -silent | --silent | --silen | --sile | --sil)
1488      continue ;;
1489    *\'*)
1490      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1491    esac
1492    case $ac_pass in
1493    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1494    2)
1495      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1496      if test $ac_must_keep_next = true; then
1497	ac_must_keep_next=false # Got value, back to normal.
1498      else
1499	case $ac_arg in
1500	  *=* | --config-cache | -C | -disable-* | --disable-* \
1501	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1502	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1503	  | -with-* | --with-* | -without-* | --without-* | --x)
1504	    case "$ac_configure_args0 " in
1505	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1506	    esac
1507	    ;;
1508	  -* ) ac_must_keep_next=true ;;
1509	esac
1510      fi
1511      ac_configure_args="$ac_configure_args '$ac_arg'"
1512      ;;
1513    esac
1514  done
1515done
1516$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1517$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1518
1519# When interrupted or exit'd, cleanup temporary files, and complete
1520# config.log.  We remove comments because anyway the quotes in there
1521# would cause problems or look ugly.
1522# WARNING: Use '\'' to represent an apostrophe within the trap.
1523# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1524trap 'exit_status=$?
1525  # Save into config.log some information that might help in debugging.
1526  {
1527    echo
1528
1529    cat <<\_ASBOX
1530## ---------------- ##
1531## Cache variables. ##
1532## ---------------- ##
1533_ASBOX
1534    echo
1535    # The following way of writing the cache mishandles newlines in values,
1536(
1537  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1538    eval ac_val=\$$ac_var
1539    case $ac_val in #(
1540    *${as_nl}*)
1541      case $ac_var in #(
1542      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1543echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1544      esac
1545      case $ac_var in #(
1546      _ | IFS | as_nl) ;; #(
1547      *) $as_unset $ac_var ;;
1548      esac ;;
1549    esac
1550  done
1551  (set) 2>&1 |
1552    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1553    *${as_nl}ac_space=\ *)
1554      sed -n \
1555	"s/'\''/'\''\\\\'\'''\''/g;
1556	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1557      ;; #(
1558    *)
1559      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1560      ;;
1561    esac |
1562    sort
1563)
1564    echo
1565
1566    cat <<\_ASBOX
1567## ----------------- ##
1568## Output variables. ##
1569## ----------------- ##
1570_ASBOX
1571    echo
1572    for ac_var in $ac_subst_vars
1573    do
1574      eval ac_val=\$$ac_var
1575      case $ac_val in
1576      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1577      esac
1578      echo "$ac_var='\''$ac_val'\''"
1579    done | sort
1580    echo
1581
1582    if test -n "$ac_subst_files"; then
1583      cat <<\_ASBOX
1584## ------------------- ##
1585## File substitutions. ##
1586## ------------------- ##
1587_ASBOX
1588      echo
1589      for ac_var in $ac_subst_files
1590      do
1591	eval ac_val=\$$ac_var
1592	case $ac_val in
1593	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1594	esac
1595	echo "$ac_var='\''$ac_val'\''"
1596      done | sort
1597      echo
1598    fi
1599
1600    if test -s confdefs.h; then
1601      cat <<\_ASBOX
1602## ----------- ##
1603## confdefs.h. ##
1604## ----------- ##
1605_ASBOX
1606      echo
1607      cat confdefs.h
1608      echo
1609    fi
1610    test "$ac_signal" != 0 &&
1611      echo "$as_me: caught signal $ac_signal"
1612    echo "$as_me: exit $exit_status"
1613  } >&5
1614  rm -f core *.core core.conftest.* &&
1615    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1616    exit $exit_status
1617' 0
1618for ac_signal in 1 2 13 15; do
1619  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1620done
1621ac_signal=0
1622
1623# confdefs.h avoids OS command line length limits that DEFS can exceed.
1624rm -f -r conftest* confdefs.h
1625
1626# Predefined preprocessor variables.
1627
1628cat >>confdefs.h <<_ACEOF
1629#define PACKAGE_NAME "$PACKAGE_NAME"
1630_ACEOF
1631
1632
1633cat >>confdefs.h <<_ACEOF
1634#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1635_ACEOF
1636
1637
1638cat >>confdefs.h <<_ACEOF
1639#define PACKAGE_VERSION "$PACKAGE_VERSION"
1640_ACEOF
1641
1642
1643cat >>confdefs.h <<_ACEOF
1644#define PACKAGE_STRING "$PACKAGE_STRING"
1645_ACEOF
1646
1647
1648cat >>confdefs.h <<_ACEOF
1649#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1650_ACEOF
1651
1652
1653# Let the site file select an alternate cache file if it wants to.
1654# Prefer explicitly selected file to automatically selected ones.
1655if test -n "$CONFIG_SITE"; then
1656  set x "$CONFIG_SITE"
1657elif test "x$prefix" != xNONE; then
1658  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1659else
1660  set x "$ac_default_prefix/share/config.site" \
1661	"$ac_default_prefix/etc/config.site"
1662fi
1663shift
1664for ac_site_file
1665do
1666  if test -r "$ac_site_file"; then
1667    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1668echo "$as_me: loading site script $ac_site_file" >&6;}
1669    sed 's/^/| /' "$ac_site_file" >&5
1670    . "$ac_site_file"
1671  fi
1672done
1673
1674if test -r "$cache_file"; then
1675  # Some versions of bash will fail to source /dev/null (special
1676  # files actually), so we avoid doing that.
1677  if test -f "$cache_file"; then
1678    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1679echo "$as_me: loading cache $cache_file" >&6;}
1680    case $cache_file in
1681      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1682      *)                      . "./$cache_file";;
1683    esac
1684  fi
1685else
1686  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1687echo "$as_me: creating cache $cache_file" >&6;}
1688  >$cache_file
1689fi
1690
1691# Check that the precious variables saved in the cache have kept the same
1692# value.
1693ac_cache_corrupted=false
1694for ac_var in $ac_precious_vars; do
1695  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1696  eval ac_new_set=\$ac_env_${ac_var}_set
1697  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1698  eval ac_new_val=\$ac_env_${ac_var}_value
1699  case $ac_old_set,$ac_new_set in
1700    set,)
1701      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1702echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1703      ac_cache_corrupted=: ;;
1704    ,set)
1705      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1706echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1707      ac_cache_corrupted=: ;;
1708    ,);;
1709    *)
1710      if test "x$ac_old_val" != "x$ac_new_val"; then
1711	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1712echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1713	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1714echo "$as_me:   former value:  $ac_old_val" >&2;}
1715	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1716echo "$as_me:   current value: $ac_new_val" >&2;}
1717	ac_cache_corrupted=:
1718      fi;;
1719  esac
1720  # Pass precious variables to config.status.
1721  if test "$ac_new_set" = set; then
1722    case $ac_new_val in
1723    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1724    *) ac_arg=$ac_var=$ac_new_val ;;
1725    esac
1726    case " $ac_configure_args " in
1727      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1728      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1729    esac
1730  fi
1731done
1732if $ac_cache_corrupted; then
1733  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1734echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1735  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1736echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1737   { (exit 1); exit 1; }; }
1738fi
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764ac_ext=c
1765ac_cpp='$CPP $CPPFLAGS'
1766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1768ac_compiler_gnu=$ac_cv_c_compiler_gnu
1769
1770
1771ac_aux_dir=
1772for ac_dir in autoconf "$srcdir"/autoconf; do
1773  if test -f "$ac_dir/install-sh"; then
1774    ac_aux_dir=$ac_dir
1775    ac_install_sh="$ac_aux_dir/install-sh -c"
1776    break
1777  elif test -f "$ac_dir/install.sh"; then
1778    ac_aux_dir=$ac_dir
1779    ac_install_sh="$ac_aux_dir/install.sh -c"
1780    break
1781  elif test -f "$ac_dir/shtool"; then
1782    ac_aux_dir=$ac_dir
1783    ac_install_sh="$ac_aux_dir/shtool install -c"
1784    break
1785  fi
1786done
1787if test -z "$ac_aux_dir"; then
1788  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1789echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1790   { (exit 1); exit 1; }; }
1791fi
1792
1793# These three variables are undocumented and unsupported,
1794# and are intended to be withdrawn in a future Autoconf release.
1795# They can cause serious problems if a builder's source tree is in a directory
1796# whose full name contains unusual characters.
1797ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1798ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1799ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1800
1801
1802ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in"
1803
1804
1805VERSION=$PACKAGE_VERSION
1806VERSION_MAJOR="1"
1807DATE="01 August 2007"
1808LSMDATE="01Aug07"
1809
1810
1811echo "#define VERSION \"$VERSION\"" > ${srcdir}/src/version.h
1812echo "#define DATE \"$DATE\"" >> ${srcdir}/src/version.h
1813
1814
1815
1816
1817
1818echo "configuring for aterm $VERSION"
1819
1820MALLOC_TYPE=S
1821
1822# Check whether --enable-utmp was given.
1823if test "${enable_utmp+set}" = set; then
1824  enableval=$enable_utmp; if test x$enableval = xyes; then
1825
1826cat >>confdefs.h <<\_ACEOF
1827#define UTMP_SUPPORT 1
1828_ACEOF
1829
1830                utmp_support=yes
1831         fi
1832fi
1833
1834
1835# Check whether --enable-wtmp was given.
1836if test "${enable_wtmp+set}" = set; then
1837  enableval=$enable_wtmp; if test x$enableval = xyes; then
1838
1839cat >>confdefs.h <<\_ACEOF
1840#define WTMP_SUPPORT 1
1841_ACEOF
1842
1843            wtmp_support=yes
1844         fi
1845fi
1846
1847
1848# Check whether --enable-kanji was given.
1849if test "${enable_kanji+set}" = set; then
1850  enableval=$enable_kanji; if test x$enableval = xyes; then
1851cat >>confdefs.h <<\_ACEOF
1852#define KANJI 1
1853_ACEOF
1854 fi
1855fi
1856
1857
1858# Check whether --enable-big5 was given.
1859if test "${enable_big5+set}" = set; then
1860  enableval=$enable_big5; if test x$enableval = xyes; then
1861cat >>confdefs.h <<\_ACEOF
1862#define ZH 1
1863_ACEOF
1864 fi
1865fi
1866
1867
1868# Check whether --enable-xim was given.
1869if test "${enable_xim+set}" = set; then
1870  enableval=$enable_xim; if test x$enableval = xyes; then
1871cat >> confdefs.h <<\_ACEOF
1872#define USE_XIM 1
1873_ACEOF
1874 fi
1875fi
1876
1877
1878# Check whether --enable-greek was given.
1879if test "${enable_greek+set}" = set; then
1880  enableval=$enable_greek; if test x$enableval = xyes; then
1881cat >>confdefs.h <<\_ACEOF
1882#define GREEK_SUPPORT 1
1883_ACEOF
1884 fi
1885fi
1886
1887
1888# Check whether --enable-thai was given.
1889if test "${enable_thai+set}" = set; then
1890  enableval=$enable_thai; if test x$enableval = xyes; then
1891cat >>confdefs.h <<\_ACEOF
1892#define THAI 1
1893_ACEOF
1894  fi
1895fi
1896
1897
1898# Check whether --enable-ttygid was given.
1899if test "${enable_ttygid+set}" = set; then
1900  enableval=$enable_ttygid; if test x$enableval = xyes; then
1901cat >>confdefs.h <<\_ACEOF
1902#define TTY_GID_SUPPORT 1
1903_ACEOF
1904 fi
1905fi
1906
1907
1908# Check whether --enable-backspace-key was given.
1909if test "${enable_backspace_key+set}" = set; then
1910  enableval=$enable_backspace_key; if test x$enableval = xno; then
1911cat >>confdefs.h <<\_ACEOF
1912#define NO_BACKSPACE_KEY 1
1913_ACEOF
1914 fi
1915fi
1916
1917
1918# Check whether --enable-delete-key was given.
1919if test "${enable_delete_key+set}" = set; then
1920  enableval=$enable_delete_key; if test x$enableval = xno; then
1921cat >>confdefs.h <<\_ACEOF
1922#define NO_DELETE_KEY 1
1923_ACEOF
1924 fi
1925fi
1926
1927
1928# Check whether --enable-resources was given.
1929if test "${enable_resources+set}" = set; then
1930  enableval=$enable_resources; if test x$enableval = xno; then
1931cat >>confdefs.h <<\_ACEOF
1932#define NO_RESOURCES 1
1933_ACEOF
1934 fi
1935fi
1936
1937
1938# Check whether --enable-xgetdefault was given.
1939if test "${enable_xgetdefault+set}" = set; then
1940  enableval=$enable_xgetdefault; if test x$enableval = xyes; then
1941cat >>confdefs.h <<\_ACEOF
1942#define USE_XGETDEFAULT 1
1943_ACEOF
1944 fi
1945fi
1946
1947
1948# Check whether --enable-memset was given.
1949if test "${enable_memset+set}" = set; then
1950  enableval=$enable_memset; if test x$enableval = xno; then
1951cat >>confdefs.h <<\_ACEOF
1952#define NO_RMEMSET 1
1953_ACEOF
1954 fi
1955fi
1956
1957
1958# Check whether --enable-swapscreen was given.
1959if test "${enable_swapscreen+set}" = set; then
1960  enableval=$enable_swapscreen; if test x$enableval = xno; then
1961cat >>confdefs.h <<\_ACEOF
1962#define NO_SECONDARY_SCREEN 1
1963_ACEOF
1964 fi
1965fi
1966
1967
1968# Check whether --enable-keepscrolling was given.
1969if test "${enable_keepscrolling+set}" = set; then
1970  enableval=$enable_keepscrolling; if test x$enableval = xno; then
1971cat >>confdefs.h <<\_ACEOF
1972#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
1973_ACEOF
1974  fi
1975fi
1976
1977
1978# Check whether --enable-mousewheel was given.
1979if test "${enable_mousewheel+set}" = set; then
1980  enableval=$enable_mousewheel; if test x$enableval = xno; then
1981cat >>confdefs.h <<\_ACEOF
1982#define NO_MOUSE_WHEEL 1
1983_ACEOF
1984  fi
1985fi
1986
1987
1988# Check whether --enable-old-selection was given.
1989if test "${enable_old_selection+set}" = set; then
1990  enableval=$enable_old_selection; if test x$enableval = xyes; then
1991cat >>confdefs.h <<\_ACEOF
1992#define OLD_SELECTION 1
1993_ACEOF
1994 fi
1995fi
1996
1997
1998# Check whether --enable-old-wordselect was given.
1999if test "${enable_old_wordselect+set}" = set; then
2000  enableval=$enable_old_wordselect; if test x$enableval = xyes; then
2001cat >>confdefs.h <<\_ACEOF
2002#define OLD_WORD_SELECTION 1
2003_ACEOF
2004  fi
2005fi
2006
2007
2008# Check whether --enable-dmalloc was given.
2009if test "${enable_dmalloc+set}" = set; then
2010  enableval=$enable_dmalloc; if test x$enableval = xyes;
2011   then MALLOC_TYPE=G
2012        DEBUG=-DDEBUG_MALLOC
2013        DLIB="-L/usr/local/lib -ldmalloc"
2014        DINCLUDE=-I/usr/local/include
2015        fi
2016fi
2017
2018
2019# Check whether --enable-dlmalloc was given.
2020if test "${enable_dlmalloc+set}" = set; then
2021  enableval=$enable_dlmalloc; if test x$enableval = xyes; then
2022    MALLOC_TYPE=D
2023    DEBUG=
2024    DLIB="-L/usr/local/lib -ldlmalloc"
2025    DINCLUDE=
2026  fi
2027fi
2028
2029
2030
2031# Check whether --with-term was given.
2032if test "${with_term+set}" = set; then
2033  withval=$with_term; if test x$withval != x;
2034      then
2035cat >>confdefs.h <<_ACEOF
2036#define TERMENV "$withval"
2037_ACEOF
2038 term="$withval"
2039   fi
2040fi
2041
2042
2043
2044# Check whether --with-terminfo was given.
2045if test "${with_terminfo+set}" = set; then
2046  withval=$with_terminfo; if test x$withval != x;
2047        then
2048cat >>confdefs.h <<_ACEOF
2049#define RXVT_TERMINFO "$withval"
2050_ACEOF
2051 terminfo="$withval"
2052   fi
2053fi
2054
2055
2056
2057# Check whether --with-libefence was given.
2058if test "${with_libefence+set}" = set; then
2059  withval=$with_libefence; with_libefence=$withval
2060else
2061  with_libefence=""
2062fi
2063
2064# Check whether --enable-gdb was given.
2065if test "${enable_gdb+set}" = set; then
2066  enableval=$enable_gdb; enable_gdb=$enableval
2067else
2068  enable_gdb="no"
2069fi
2070
2071# Check whether --enable-sigsegv was given.
2072if test "${enable_sigsegv+set}" = set; then
2073  enableval=$enable_sigsegv; enable_sigsegv=$enableval
2074else
2075  enable_sigsegv="yes"
2076fi
2077
2078
2079# Check whether --enable-transparency was given.
2080if test "${enable_transparency+set}" = set; then
2081  enableval=$enable_transparency; enable_transparency=$enableval
2082else
2083  enable_transparency="yes"
2084fi
2085
2086
2087if test "x$enable_transparency" = "xyes";
2088        then
2089cat >>confdefs.h <<\_ACEOF
2090#define TRANSPARENT 1
2091_ACEOF
2092 transparent=yes;
2093fi
2094
2095
2096
2097# Check whether --with-afterimage_config was given.
2098if test "${with_afterimage_config+set}" = set; then
2099  withval=$with_afterimage_config; afterimage_config="$withval"
2100else
2101  afterimage_config=NO
2102fi
2103
2104
2105# Check whether --with-afterstep_config was given.
2106if test "${with_afterstep_config+set}" = set; then
2107  withval=$with_afterstep_config; afterstep_config="$withval"
2108else
2109  afterstep_config=NO
2110fi
2111
2112
2113
2114ac_ext=c
2115ac_cpp='$CPP $CPPFLAGS'
2116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2118ac_compiler_gnu=$ac_cv_c_compiler_gnu
2119if test -n "$ac_tool_prefix"; then
2120  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2121set dummy ${ac_tool_prefix}gcc; ac_word=$2
2122{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2124if test "${ac_cv_prog_CC+set}" = set; then
2125  echo $ECHO_N "(cached) $ECHO_C" >&6
2126else
2127  if test -n "$CC"; then
2128  ac_cv_prog_CC="$CC" # Let the user override the test.
2129else
2130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2131for as_dir in $PATH
2132do
2133  IFS=$as_save_IFS
2134  test -z "$as_dir" && as_dir=.
2135  for ac_exec_ext in '' $ac_executable_extensions; do
2136  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2137    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2138    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2139    break 2
2140  fi
2141done
2142done
2143IFS=$as_save_IFS
2144
2145fi
2146fi
2147CC=$ac_cv_prog_CC
2148if test -n "$CC"; then
2149  { echo "$as_me:$LINENO: result: $CC" >&5
2150echo "${ECHO_T}$CC" >&6; }
2151else
2152  { echo "$as_me:$LINENO: result: no" >&5
2153echo "${ECHO_T}no" >&6; }
2154fi
2155
2156
2157fi
2158if test -z "$ac_cv_prog_CC"; then
2159  ac_ct_CC=$CC
2160  # Extract the first word of "gcc", so it can be a program name with args.
2161set dummy gcc; ac_word=$2
2162{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2164if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2165  echo $ECHO_N "(cached) $ECHO_C" >&6
2166else
2167  if test -n "$ac_ct_CC"; then
2168  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2169else
2170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171for as_dir in $PATH
2172do
2173  IFS=$as_save_IFS
2174  test -z "$as_dir" && as_dir=.
2175  for ac_exec_ext in '' $ac_executable_extensions; do
2176  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2177    ac_cv_prog_ac_ct_CC="gcc"
2178    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2179    break 2
2180  fi
2181done
2182done
2183IFS=$as_save_IFS
2184
2185fi
2186fi
2187ac_ct_CC=$ac_cv_prog_ac_ct_CC
2188if test -n "$ac_ct_CC"; then
2189  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2190echo "${ECHO_T}$ac_ct_CC" >&6; }
2191else
2192  { echo "$as_me:$LINENO: result: no" >&5
2193echo "${ECHO_T}no" >&6; }
2194fi
2195
2196  if test "x$ac_ct_CC" = x; then
2197    CC=""
2198  else
2199    case $cross_compiling:$ac_tool_warned in
2200yes:)
2201{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2202whose name does not start with the host triplet.  If you think this
2203configuration is useful to you, please write to autoconf@gnu.org." >&5
2204echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2205whose name does not start with the host triplet.  If you think this
2206configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2207ac_tool_warned=yes ;;
2208esac
2209    CC=$ac_ct_CC
2210  fi
2211else
2212  CC="$ac_cv_prog_CC"
2213fi
2214
2215if test -z "$CC"; then
2216          if test -n "$ac_tool_prefix"; then
2217    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2218set dummy ${ac_tool_prefix}cc; ac_word=$2
2219{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2221if test "${ac_cv_prog_CC+set}" = set; then
2222  echo $ECHO_N "(cached) $ECHO_C" >&6
2223else
2224  if test -n "$CC"; then
2225  ac_cv_prog_CC="$CC" # Let the user override the test.
2226else
2227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228for as_dir in $PATH
2229do
2230  IFS=$as_save_IFS
2231  test -z "$as_dir" && as_dir=.
2232  for ac_exec_ext in '' $ac_executable_extensions; do
2233  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2234    ac_cv_prog_CC="${ac_tool_prefix}cc"
2235    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236    break 2
2237  fi
2238done
2239done
2240IFS=$as_save_IFS
2241
2242fi
2243fi
2244CC=$ac_cv_prog_CC
2245if test -n "$CC"; then
2246  { echo "$as_me:$LINENO: result: $CC" >&5
2247echo "${ECHO_T}$CC" >&6; }
2248else
2249  { echo "$as_me:$LINENO: result: no" >&5
2250echo "${ECHO_T}no" >&6; }
2251fi
2252
2253
2254  fi
2255fi
2256if test -z "$CC"; then
2257  # Extract the first word of "cc", so it can be a program name with args.
2258set dummy cc; ac_word=$2
2259{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2261if test "${ac_cv_prog_CC+set}" = set; then
2262  echo $ECHO_N "(cached) $ECHO_C" >&6
2263else
2264  if test -n "$CC"; then
2265  ac_cv_prog_CC="$CC" # Let the user override the test.
2266else
2267  ac_prog_rejected=no
2268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269for as_dir in $PATH
2270do
2271  IFS=$as_save_IFS
2272  test -z "$as_dir" && as_dir=.
2273  for ac_exec_ext in '' $ac_executable_extensions; do
2274  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2275    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2276       ac_prog_rejected=yes
2277       continue
2278     fi
2279    ac_cv_prog_CC="cc"
2280    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281    break 2
2282  fi
2283done
2284done
2285IFS=$as_save_IFS
2286
2287if test $ac_prog_rejected = yes; then
2288  # We found a bogon in the path, so make sure we never use it.
2289  set dummy $ac_cv_prog_CC
2290  shift
2291  if test $# != 0; then
2292    # We chose a different compiler from the bogus one.
2293    # However, it has the same basename, so the bogon will be chosen
2294    # first if we set CC to just the basename; use the full file name.
2295    shift
2296    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2297  fi
2298fi
2299fi
2300fi
2301CC=$ac_cv_prog_CC
2302if test -n "$CC"; then
2303  { echo "$as_me:$LINENO: result: $CC" >&5
2304echo "${ECHO_T}$CC" >&6; }
2305else
2306  { echo "$as_me:$LINENO: result: no" >&5
2307echo "${ECHO_T}no" >&6; }
2308fi
2309
2310
2311fi
2312if test -z "$CC"; then
2313  if test -n "$ac_tool_prefix"; then
2314  for ac_prog in cl.exe
2315  do
2316    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2317set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2318{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2320if test "${ac_cv_prog_CC+set}" = set; then
2321  echo $ECHO_N "(cached) $ECHO_C" >&6
2322else
2323  if test -n "$CC"; then
2324  ac_cv_prog_CC="$CC" # Let the user override the test.
2325else
2326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327for as_dir in $PATH
2328do
2329  IFS=$as_save_IFS
2330  test -z "$as_dir" && as_dir=.
2331  for ac_exec_ext in '' $ac_executable_extensions; do
2332  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2333    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2334    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2335    break 2
2336  fi
2337done
2338done
2339IFS=$as_save_IFS
2340
2341fi
2342fi
2343CC=$ac_cv_prog_CC
2344if test -n "$CC"; then
2345  { echo "$as_me:$LINENO: result: $CC" >&5
2346echo "${ECHO_T}$CC" >&6; }
2347else
2348  { echo "$as_me:$LINENO: result: no" >&5
2349echo "${ECHO_T}no" >&6; }
2350fi
2351
2352
2353    test -n "$CC" && break
2354  done
2355fi
2356if test -z "$CC"; then
2357  ac_ct_CC=$CC
2358  for ac_prog in cl.exe
2359do
2360  # Extract the first word of "$ac_prog", so it can be a program name with args.
2361set dummy $ac_prog; ac_word=$2
2362{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2364if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2365  echo $ECHO_N "(cached) $ECHO_C" >&6
2366else
2367  if test -n "$ac_ct_CC"; then
2368  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2369else
2370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371for as_dir in $PATH
2372do
2373  IFS=$as_save_IFS
2374  test -z "$as_dir" && as_dir=.
2375  for ac_exec_ext in '' $ac_executable_extensions; do
2376  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2377    ac_cv_prog_ac_ct_CC="$ac_prog"
2378    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2379    break 2
2380  fi
2381done
2382done
2383IFS=$as_save_IFS
2384
2385fi
2386fi
2387ac_ct_CC=$ac_cv_prog_ac_ct_CC
2388if test -n "$ac_ct_CC"; then
2389  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2390echo "${ECHO_T}$ac_ct_CC" >&6; }
2391else
2392  { echo "$as_me:$LINENO: result: no" >&5
2393echo "${ECHO_T}no" >&6; }
2394fi
2395
2396
2397  test -n "$ac_ct_CC" && break
2398done
2399
2400  if test "x$ac_ct_CC" = x; then
2401    CC=""
2402  else
2403    case $cross_compiling:$ac_tool_warned in
2404yes:)
2405{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2406whose name does not start with the host triplet.  If you think this
2407configuration is useful to you, please write to autoconf@gnu.org." >&5
2408echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2409whose name does not start with the host triplet.  If you think this
2410configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2411ac_tool_warned=yes ;;
2412esac
2413    CC=$ac_ct_CC
2414  fi
2415fi
2416
2417fi
2418
2419
2420test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2421See \`config.log' for more details." >&5
2422echo "$as_me: error: no acceptable C compiler found in \$PATH
2423See \`config.log' for more details." >&2;}
2424   { (exit 1); exit 1; }; }
2425
2426# Provide some information about the compiler.
2427echo "$as_me:$LINENO: checking for C compiler version" >&5
2428ac_compiler=`set X $ac_compile; echo $2`
2429{ (ac_try="$ac_compiler --version >&5"
2430case "(($ac_try" in
2431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432  *) ac_try_echo=$ac_try;;
2433esac
2434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2435  (eval "$ac_compiler --version >&5") 2>&5
2436  ac_status=$?
2437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438  (exit $ac_status); }
2439{ (ac_try="$ac_compiler -v >&5"
2440case "(($ac_try" in
2441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442  *) ac_try_echo=$ac_try;;
2443esac
2444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2445  (eval "$ac_compiler -v >&5") 2>&5
2446  ac_status=$?
2447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448  (exit $ac_status); }
2449{ (ac_try="$ac_compiler -V >&5"
2450case "(($ac_try" in
2451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452  *) ac_try_echo=$ac_try;;
2453esac
2454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2455  (eval "$ac_compiler -V >&5") 2>&5
2456  ac_status=$?
2457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458  (exit $ac_status); }
2459
2460cat >conftest.$ac_ext <<_ACEOF
2461/* confdefs.h.  */
2462_ACEOF
2463cat confdefs.h >>conftest.$ac_ext
2464cat >>conftest.$ac_ext <<_ACEOF
2465/* end confdefs.h.  */
2466
2467int
2468main ()
2469{
2470
2471  ;
2472  return 0;
2473}
2474_ACEOF
2475ac_clean_files_save=$ac_clean_files
2476ac_clean_files="$ac_clean_files a.out a.exe b.out"
2477# Try to create an executable without -o first, disregard a.out.
2478# It will help us diagnose broken compilers, and finding out an intuition
2479# of exeext.
2480{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2481echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2482ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2483#
2484# List of possible output files, starting from the most likely.
2485# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2486# only as a last resort.  b.out is created by i960 compilers.
2487ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2488#
2489# The IRIX 6 linker writes into existing files which may not be
2490# executable, retaining their permissions.  Remove them first so a
2491# subsequent execution test works.
2492ac_rmfiles=
2493for ac_file in $ac_files
2494do
2495  case $ac_file in
2496    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2497    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2498  esac
2499done
2500rm -f $ac_rmfiles
2501
2502if { (ac_try="$ac_link_default"
2503case "(($ac_try" in
2504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505  *) ac_try_echo=$ac_try;;
2506esac
2507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2508  (eval "$ac_link_default") 2>&5
2509  ac_status=$?
2510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511  (exit $ac_status); }; then
2512  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2513# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2514# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2515# so that the user can short-circuit this test for compilers unknown to
2516# Autoconf.
2517for ac_file in $ac_files ''
2518do
2519  test -f "$ac_file" || continue
2520  case $ac_file in
2521    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2522	;;
2523    [ab].out )
2524	# We found the default executable, but exeext='' is most
2525	# certainly right.
2526	break;;
2527    *.* )
2528        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2529	then :; else
2530	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2531	fi
2532	# We set ac_cv_exeext here because the later test for it is not
2533	# safe: cross compilers may not add the suffix if given an `-o'
2534	# argument, so we may need to know it at that point already.
2535	# Even if this section looks crufty: it has the advantage of
2536	# actually working.
2537	break;;
2538    * )
2539	break;;
2540  esac
2541done
2542test "$ac_cv_exeext" = no && ac_cv_exeext=
2543
2544else
2545  ac_file=''
2546fi
2547
2548{ echo "$as_me:$LINENO: result: $ac_file" >&5
2549echo "${ECHO_T}$ac_file" >&6; }
2550if test -z "$ac_file"; then
2551  echo "$as_me: failed program was:" >&5
2552sed 's/^/| /' conftest.$ac_ext >&5
2553
2554{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2555See \`config.log' for more details." >&5
2556echo "$as_me: error: C compiler cannot create executables
2557See \`config.log' for more details." >&2;}
2558   { (exit 77); exit 77; }; }
2559fi
2560
2561ac_exeext=$ac_cv_exeext
2562
2563# Check that the compiler produces executables we can run.  If not, either
2564# the compiler is broken, or we cross compile.
2565{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2566echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2567# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2568# If not cross compiling, check that we can run a simple program.
2569if test "$cross_compiling" != yes; then
2570  if { ac_try='./$ac_file'
2571  { (case "(($ac_try" in
2572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573  *) ac_try_echo=$ac_try;;
2574esac
2575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2576  (eval "$ac_try") 2>&5
2577  ac_status=$?
2578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579  (exit $ac_status); }; }; then
2580    cross_compiling=no
2581  else
2582    if test "$cross_compiling" = maybe; then
2583	cross_compiling=yes
2584    else
2585	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2586If you meant to cross compile, use \`--host'.
2587See \`config.log' for more details." >&5
2588echo "$as_me: error: cannot run C compiled programs.
2589If you meant to cross compile, use \`--host'.
2590See \`config.log' for more details." >&2;}
2591   { (exit 1); exit 1; }; }
2592    fi
2593  fi
2594fi
2595{ echo "$as_me:$LINENO: result: yes" >&5
2596echo "${ECHO_T}yes" >&6; }
2597
2598rm -f a.out a.exe conftest$ac_cv_exeext b.out
2599ac_clean_files=$ac_clean_files_save
2600# Check that the compiler produces executables we can run.  If not, either
2601# the compiler is broken, or we cross compile.
2602{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2603echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2604{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2605echo "${ECHO_T}$cross_compiling" >&6; }
2606
2607{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2608echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2609if { (ac_try="$ac_link"
2610case "(($ac_try" in
2611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612  *) ac_try_echo=$ac_try;;
2613esac
2614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2615  (eval "$ac_link") 2>&5
2616  ac_status=$?
2617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618  (exit $ac_status); }; then
2619  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2620# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2621# work properly (i.e., refer to `conftest.exe'), while it won't with
2622# `rm'.
2623for ac_file in conftest.exe conftest conftest.*; do
2624  test -f "$ac_file" || continue
2625  case $ac_file in
2626    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2627    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2628	  break;;
2629    * ) break;;
2630  esac
2631done
2632else
2633  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2634See \`config.log' for more details." >&5
2635echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2636See \`config.log' for more details." >&2;}
2637   { (exit 1); exit 1; }; }
2638fi
2639
2640rm -f conftest$ac_cv_exeext
2641{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2642echo "${ECHO_T}$ac_cv_exeext" >&6; }
2643
2644rm -f conftest.$ac_ext
2645EXEEXT=$ac_cv_exeext
2646ac_exeext=$EXEEXT
2647{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2648echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2649if test "${ac_cv_objext+set}" = set; then
2650  echo $ECHO_N "(cached) $ECHO_C" >&6
2651else
2652  cat >conftest.$ac_ext <<_ACEOF
2653/* confdefs.h.  */
2654_ACEOF
2655cat confdefs.h >>conftest.$ac_ext
2656cat >>conftest.$ac_ext <<_ACEOF
2657/* end confdefs.h.  */
2658
2659int
2660main ()
2661{
2662
2663  ;
2664  return 0;
2665}
2666_ACEOF
2667rm -f conftest.o conftest.obj
2668if { (ac_try="$ac_compile"
2669case "(($ac_try" in
2670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2671  *) ac_try_echo=$ac_try;;
2672esac
2673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2674  (eval "$ac_compile") 2>&5
2675  ac_status=$?
2676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677  (exit $ac_status); }; then
2678  for ac_file in conftest.o conftest.obj conftest.*; do
2679  test -f "$ac_file" || continue;
2680  case $ac_file in
2681    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2682    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2683       break;;
2684  esac
2685done
2686else
2687  echo "$as_me: failed program was:" >&5
2688sed 's/^/| /' conftest.$ac_ext >&5
2689
2690{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2691See \`config.log' for more details." >&5
2692echo "$as_me: error: cannot compute suffix of object files: cannot compile
2693See \`config.log' for more details." >&2;}
2694   { (exit 1); exit 1; }; }
2695fi
2696
2697rm -f conftest.$ac_cv_objext conftest.$ac_ext
2698fi
2699{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2700echo "${ECHO_T}$ac_cv_objext" >&6; }
2701OBJEXT=$ac_cv_objext
2702ac_objext=$OBJEXT
2703{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2704echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2705if test "${ac_cv_c_compiler_gnu+set}" = set; then
2706  echo $ECHO_N "(cached) $ECHO_C" >&6
2707else
2708  cat >conftest.$ac_ext <<_ACEOF
2709/* confdefs.h.  */
2710_ACEOF
2711cat confdefs.h >>conftest.$ac_ext
2712cat >>conftest.$ac_ext <<_ACEOF
2713/* end confdefs.h.  */
2714
2715int
2716main ()
2717{
2718#ifndef __GNUC__
2719       choke me
2720#endif
2721
2722  ;
2723  return 0;
2724}
2725_ACEOF
2726rm -f conftest.$ac_objext
2727if { (ac_try="$ac_compile"
2728case "(($ac_try" in
2729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730  *) ac_try_echo=$ac_try;;
2731esac
2732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733  (eval "$ac_compile") 2>conftest.er1
2734  ac_status=$?
2735  grep -v '^ *+' conftest.er1 >conftest.err
2736  rm -f conftest.er1
2737  cat conftest.err >&5
2738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739  (exit $ac_status); } && {
2740	 test -z "$ac_c_werror_flag" ||
2741	 test ! -s conftest.err
2742       } && test -s conftest.$ac_objext; then
2743  ac_compiler_gnu=yes
2744else
2745  echo "$as_me: failed program was:" >&5
2746sed 's/^/| /' conftest.$ac_ext >&5
2747
2748	ac_compiler_gnu=no
2749fi
2750
2751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2752ac_cv_c_compiler_gnu=$ac_compiler_gnu
2753
2754fi
2755{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2756echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2757GCC=`test $ac_compiler_gnu = yes && echo yes`
2758ac_test_CFLAGS=${CFLAGS+set}
2759ac_save_CFLAGS=$CFLAGS
2760{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2761echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2762if test "${ac_cv_prog_cc_g+set}" = set; then
2763  echo $ECHO_N "(cached) $ECHO_C" >&6
2764else
2765  ac_save_c_werror_flag=$ac_c_werror_flag
2766   ac_c_werror_flag=yes
2767   ac_cv_prog_cc_g=no
2768   CFLAGS="-g"
2769   cat >conftest.$ac_ext <<_ACEOF
2770/* confdefs.h.  */
2771_ACEOF
2772cat confdefs.h >>conftest.$ac_ext
2773cat >>conftest.$ac_ext <<_ACEOF
2774/* end confdefs.h.  */
2775
2776int
2777main ()
2778{
2779
2780  ;
2781  return 0;
2782}
2783_ACEOF
2784rm -f conftest.$ac_objext
2785if { (ac_try="$ac_compile"
2786case "(($ac_try" in
2787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788  *) ac_try_echo=$ac_try;;
2789esac
2790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2791  (eval "$ac_compile") 2>conftest.er1
2792  ac_status=$?
2793  grep -v '^ *+' conftest.er1 >conftest.err
2794  rm -f conftest.er1
2795  cat conftest.err >&5
2796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797  (exit $ac_status); } && {
2798	 test -z "$ac_c_werror_flag" ||
2799	 test ! -s conftest.err
2800       } && test -s conftest.$ac_objext; then
2801  ac_cv_prog_cc_g=yes
2802else
2803  echo "$as_me: failed program was:" >&5
2804sed 's/^/| /' conftest.$ac_ext >&5
2805
2806	CFLAGS=""
2807      cat >conftest.$ac_ext <<_ACEOF
2808/* confdefs.h.  */
2809_ACEOF
2810cat confdefs.h >>conftest.$ac_ext
2811cat >>conftest.$ac_ext <<_ACEOF
2812/* end confdefs.h.  */
2813
2814int
2815main ()
2816{
2817
2818  ;
2819  return 0;
2820}
2821_ACEOF
2822rm -f conftest.$ac_objext
2823if { (ac_try="$ac_compile"
2824case "(($ac_try" in
2825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2826  *) ac_try_echo=$ac_try;;
2827esac
2828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2829  (eval "$ac_compile") 2>conftest.er1
2830  ac_status=$?
2831  grep -v '^ *+' conftest.er1 >conftest.err
2832  rm -f conftest.er1
2833  cat conftest.err >&5
2834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835  (exit $ac_status); } && {
2836	 test -z "$ac_c_werror_flag" ||
2837	 test ! -s conftest.err
2838       } && test -s conftest.$ac_objext; then
2839  :
2840else
2841  echo "$as_me: failed program was:" >&5
2842sed 's/^/| /' conftest.$ac_ext >&5
2843
2844	ac_c_werror_flag=$ac_save_c_werror_flag
2845	 CFLAGS="-g"
2846	 cat >conftest.$ac_ext <<_ACEOF
2847/* confdefs.h.  */
2848_ACEOF
2849cat confdefs.h >>conftest.$ac_ext
2850cat >>conftest.$ac_ext <<_ACEOF
2851/* end confdefs.h.  */
2852
2853int
2854main ()
2855{
2856
2857  ;
2858  return 0;
2859}
2860_ACEOF
2861rm -f conftest.$ac_objext
2862if { (ac_try="$ac_compile"
2863case "(($ac_try" in
2864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865  *) ac_try_echo=$ac_try;;
2866esac
2867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2868  (eval "$ac_compile") 2>conftest.er1
2869  ac_status=$?
2870  grep -v '^ *+' conftest.er1 >conftest.err
2871  rm -f conftest.er1
2872  cat conftest.err >&5
2873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874  (exit $ac_status); } && {
2875	 test -z "$ac_c_werror_flag" ||
2876	 test ! -s conftest.err
2877       } && test -s conftest.$ac_objext; then
2878  ac_cv_prog_cc_g=yes
2879else
2880  echo "$as_me: failed program was:" >&5
2881sed 's/^/| /' conftest.$ac_ext >&5
2882
2883
2884fi
2885
2886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2887fi
2888
2889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2890fi
2891
2892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2893   ac_c_werror_flag=$ac_save_c_werror_flag
2894fi
2895{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2896echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2897if test "$ac_test_CFLAGS" = set; then
2898  CFLAGS=$ac_save_CFLAGS
2899elif test $ac_cv_prog_cc_g = yes; then
2900  if test "$GCC" = yes; then
2901    CFLAGS="-g -O2"
2902  else
2903    CFLAGS="-g"
2904  fi
2905else
2906  if test "$GCC" = yes; then
2907    CFLAGS="-O2"
2908  else
2909    CFLAGS=
2910  fi
2911fi
2912{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2913echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2914if test "${ac_cv_prog_cc_c89+set}" = set; then
2915  echo $ECHO_N "(cached) $ECHO_C" >&6
2916else
2917  ac_cv_prog_cc_c89=no
2918ac_save_CC=$CC
2919cat >conftest.$ac_ext <<_ACEOF
2920/* confdefs.h.  */
2921_ACEOF
2922cat confdefs.h >>conftest.$ac_ext
2923cat >>conftest.$ac_ext <<_ACEOF
2924/* end confdefs.h.  */
2925#include <stdarg.h>
2926#include <stdio.h>
2927#include <sys/types.h>
2928#include <sys/stat.h>
2929/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2930struct buf { int x; };
2931FILE * (*rcsopen) (struct buf *, struct stat *, int);
2932static char *e (p, i)
2933     char **p;
2934     int i;
2935{
2936  return p[i];
2937}
2938static char *f (char * (*g) (char **, int), char **p, ...)
2939{
2940  char *s;
2941  va_list v;
2942  va_start (v,p);
2943  s = g (p, va_arg (v,int));
2944  va_end (v);
2945  return s;
2946}
2947
2948/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2949   function prototypes and stuff, but not '\xHH' hex character constants.
2950   These don't provoke an error unfortunately, instead are silently treated
2951   as 'x'.  The following induces an error, until -std is added to get
2952   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2953   array size at least.  It's necessary to write '\x00'==0 to get something
2954   that's true only with -std.  */
2955int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2956
2957/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2958   inside strings and character constants.  */
2959#define FOO(x) 'x'
2960int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2961
2962int test (int i, double x);
2963struct s1 {int (*f) (int a);};
2964struct s2 {int (*f) (double a);};
2965int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2966int argc;
2967char **argv;
2968int
2969main ()
2970{
2971return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2972  ;
2973  return 0;
2974}
2975_ACEOF
2976for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2977	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2978do
2979  CC="$ac_save_CC $ac_arg"
2980  rm -f conftest.$ac_objext
2981if { (ac_try="$ac_compile"
2982case "(($ac_try" in
2983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984  *) ac_try_echo=$ac_try;;
2985esac
2986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987  (eval "$ac_compile") 2>conftest.er1
2988  ac_status=$?
2989  grep -v '^ *+' conftest.er1 >conftest.err
2990  rm -f conftest.er1
2991  cat conftest.err >&5
2992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993  (exit $ac_status); } && {
2994	 test -z "$ac_c_werror_flag" ||
2995	 test ! -s conftest.err
2996       } && test -s conftest.$ac_objext; then
2997  ac_cv_prog_cc_c89=$ac_arg
2998else
2999  echo "$as_me: failed program was:" >&5
3000sed 's/^/| /' conftest.$ac_ext >&5
3001
3002
3003fi
3004
3005rm -f core conftest.err conftest.$ac_objext
3006  test "x$ac_cv_prog_cc_c89" != "xno" && break
3007done
3008rm -f conftest.$ac_ext
3009CC=$ac_save_CC
3010
3011fi
3012# AC_CACHE_VAL
3013case "x$ac_cv_prog_cc_c89" in
3014  x)
3015    { echo "$as_me:$LINENO: result: none needed" >&5
3016echo "${ECHO_T}none needed" >&6; } ;;
3017  xno)
3018    { echo "$as_me:$LINENO: result: unsupported" >&5
3019echo "${ECHO_T}unsupported" >&6; } ;;
3020  *)
3021    CC="$CC $ac_cv_prog_cc_c89"
3022    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3023echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3024esac
3025
3026
3027ac_ext=c
3028ac_cpp='$CPP $CPPFLAGS'
3029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031ac_compiler_gnu=$ac_cv_c_compiler_gnu
3032
3033
3034ac_ext=c
3035ac_cpp='$CPP $CPPFLAGS'
3036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3038ac_compiler_gnu=$ac_cv_c_compiler_gnu
3039{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3040echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3041# On Suns, sometimes $CPP names a directory.
3042if test -n "$CPP" && test -d "$CPP"; then
3043  CPP=
3044fi
3045if test -z "$CPP"; then
3046  if test "${ac_cv_prog_CPP+set}" = set; then
3047  echo $ECHO_N "(cached) $ECHO_C" >&6
3048else
3049      # Double quotes because CPP needs to be expanded
3050    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3051    do
3052      ac_preproc_ok=false
3053for ac_c_preproc_warn_flag in '' yes
3054do
3055  # Use a header file that comes with gcc, so configuring glibc
3056  # with a fresh cross-compiler works.
3057  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3058  # <limits.h> exists even on freestanding compilers.
3059  # On the NeXT, cc -E runs the code through the compiler's parser,
3060  # not just through cpp. "Syntax error" is here to catch this case.
3061  cat >conftest.$ac_ext <<_ACEOF
3062/* confdefs.h.  */
3063_ACEOF
3064cat confdefs.h >>conftest.$ac_ext
3065cat >>conftest.$ac_ext <<_ACEOF
3066/* end confdefs.h.  */
3067#ifdef __STDC__
3068# include <limits.h>
3069#else
3070# include <assert.h>
3071#endif
3072		     Syntax error
3073_ACEOF
3074if { (ac_try="$ac_cpp conftest.$ac_ext"
3075case "(($ac_try" in
3076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077  *) ac_try_echo=$ac_try;;
3078esac
3079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3081  ac_status=$?
3082  grep -v '^ *+' conftest.er1 >conftest.err
3083  rm -f conftest.er1
3084  cat conftest.err >&5
3085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086  (exit $ac_status); } >/dev/null && {
3087	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3088	 test ! -s conftest.err
3089       }; then
3090  :
3091else
3092  echo "$as_me: failed program was:" >&5
3093sed 's/^/| /' conftest.$ac_ext >&5
3094
3095  # Broken: fails on valid input.
3096continue
3097fi
3098
3099rm -f conftest.err conftest.$ac_ext
3100
3101  # OK, works on sane cases.  Now check whether nonexistent headers
3102  # can be detected and how.
3103  cat >conftest.$ac_ext <<_ACEOF
3104/* confdefs.h.  */
3105_ACEOF
3106cat confdefs.h >>conftest.$ac_ext
3107cat >>conftest.$ac_ext <<_ACEOF
3108/* end confdefs.h.  */
3109#include <ac_nonexistent.h>
3110_ACEOF
3111if { (ac_try="$ac_cpp conftest.$ac_ext"
3112case "(($ac_try" in
3113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114  *) ac_try_echo=$ac_try;;
3115esac
3116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3118  ac_status=$?
3119  grep -v '^ *+' conftest.er1 >conftest.err
3120  rm -f conftest.er1
3121  cat conftest.err >&5
3122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123  (exit $ac_status); } >/dev/null && {
3124	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3125	 test ! -s conftest.err
3126       }; then
3127  # Broken: success on invalid input.
3128continue
3129else
3130  echo "$as_me: failed program was:" >&5
3131sed 's/^/| /' conftest.$ac_ext >&5
3132
3133  # Passes both tests.
3134ac_preproc_ok=:
3135break
3136fi
3137
3138rm -f conftest.err conftest.$ac_ext
3139
3140done
3141# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3142rm -f conftest.err conftest.$ac_ext
3143if $ac_preproc_ok; then
3144  break
3145fi
3146
3147    done
3148    ac_cv_prog_CPP=$CPP
3149
3150fi
3151  CPP=$ac_cv_prog_CPP
3152else
3153  ac_cv_prog_CPP=$CPP
3154fi
3155{ echo "$as_me:$LINENO: result: $CPP" >&5
3156echo "${ECHO_T}$CPP" >&6; }
3157ac_preproc_ok=false
3158for ac_c_preproc_warn_flag in '' yes
3159do
3160  # Use a header file that comes with gcc, so configuring glibc
3161  # with a fresh cross-compiler works.
3162  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3163  # <limits.h> exists even on freestanding compilers.
3164  # On the NeXT, cc -E runs the code through the compiler's parser,
3165  # not just through cpp. "Syntax error" is here to catch this case.
3166  cat >conftest.$ac_ext <<_ACEOF
3167/* confdefs.h.  */
3168_ACEOF
3169cat confdefs.h >>conftest.$ac_ext
3170cat >>conftest.$ac_ext <<_ACEOF
3171/* end confdefs.h.  */
3172#ifdef __STDC__
3173# include <limits.h>
3174#else
3175# include <assert.h>
3176#endif
3177		     Syntax error
3178_ACEOF
3179if { (ac_try="$ac_cpp conftest.$ac_ext"
3180case "(($ac_try" in
3181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182  *) ac_try_echo=$ac_try;;
3183esac
3184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3186  ac_status=$?
3187  grep -v '^ *+' conftest.er1 >conftest.err
3188  rm -f conftest.er1
3189  cat conftest.err >&5
3190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191  (exit $ac_status); } >/dev/null && {
3192	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3193	 test ! -s conftest.err
3194       }; then
3195  :
3196else
3197  echo "$as_me: failed program was:" >&5
3198sed 's/^/| /' conftest.$ac_ext >&5
3199
3200  # Broken: fails on valid input.
3201continue
3202fi
3203
3204rm -f conftest.err conftest.$ac_ext
3205
3206  # OK, works on sane cases.  Now check whether nonexistent headers
3207  # can be detected and how.
3208  cat >conftest.$ac_ext <<_ACEOF
3209/* confdefs.h.  */
3210_ACEOF
3211cat confdefs.h >>conftest.$ac_ext
3212cat >>conftest.$ac_ext <<_ACEOF
3213/* end confdefs.h.  */
3214#include <ac_nonexistent.h>
3215_ACEOF
3216if { (ac_try="$ac_cpp conftest.$ac_ext"
3217case "(($ac_try" in
3218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219  *) ac_try_echo=$ac_try;;
3220esac
3221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3222  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3223  ac_status=$?
3224  grep -v '^ *+' conftest.er1 >conftest.err
3225  rm -f conftest.er1
3226  cat conftest.err >&5
3227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228  (exit $ac_status); } >/dev/null && {
3229	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3230	 test ! -s conftest.err
3231       }; then
3232  # Broken: success on invalid input.
3233continue
3234else
3235  echo "$as_me: failed program was:" >&5
3236sed 's/^/| /' conftest.$ac_ext >&5
3237
3238  # Passes both tests.
3239ac_preproc_ok=:
3240break
3241fi
3242
3243rm -f conftest.err conftest.$ac_ext
3244
3245done
3246# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3247rm -f conftest.err conftest.$ac_ext
3248if $ac_preproc_ok; then
3249  :
3250else
3251  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3252See \`config.log' for more details." >&5
3253echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3254See \`config.log' for more details." >&2;}
3255   { (exit 1); exit 1; }; }
3256fi
3257
3258ac_ext=c
3259ac_cpp='$CPP $CPPFLAGS'
3260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3262ac_compiler_gnu=$ac_cv_c_compiler_gnu
3263
3264
3265{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3266echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3267if test "${ac_cv_path_GREP+set}" = set; then
3268  echo $ECHO_N "(cached) $ECHO_C" >&6
3269else
3270  # Extract the first word of "grep ggrep" to use in msg output
3271if test -z "$GREP"; then
3272set dummy grep ggrep; ac_prog_name=$2
3273if test "${ac_cv_path_GREP+set}" = set; then
3274  echo $ECHO_N "(cached) $ECHO_C" >&6
3275else
3276  ac_path_GREP_found=false
3277# Loop through the user's path and test for each of PROGNAME-LIST
3278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3280do
3281  IFS=$as_save_IFS
3282  test -z "$as_dir" && as_dir=.
3283  for ac_prog in grep ggrep; do
3284  for ac_exec_ext in '' $ac_executable_extensions; do
3285    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3286    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3287    # Check for GNU ac_path_GREP and select it if it is found.
3288  # Check for GNU $ac_path_GREP
3289case `"$ac_path_GREP" --version 2>&1` in
3290*GNU*)
3291  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3292*)
3293  ac_count=0
3294  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3295  while :
3296  do
3297    cat "conftest.in" "conftest.in" >"conftest.tmp"
3298    mv "conftest.tmp" "conftest.in"
3299    cp "conftest.in" "conftest.nl"
3300    echo 'GREP' >> "conftest.nl"
3301    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3302    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3303    ac_count=`expr $ac_count + 1`
3304    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3305      # Best one so far, save it but keep looking for a better one
3306      ac_cv_path_GREP="$ac_path_GREP"
3307      ac_path_GREP_max=$ac_count
3308    fi
3309    # 10*(2^10) chars as input seems more than enough
3310    test $ac_count -gt 10 && break
3311  done
3312  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3313esac
3314
3315
3316    $ac_path_GREP_found && break 3
3317  done
3318done
3319
3320done
3321IFS=$as_save_IFS
3322
3323
3324fi
3325
3326GREP="$ac_cv_path_GREP"
3327if test -z "$GREP"; then
3328  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3329echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3330   { (exit 1); exit 1; }; }
3331fi
3332
3333else
3334  ac_cv_path_GREP=$GREP
3335fi
3336
3337
3338fi
3339{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3340echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3341 GREP="$ac_cv_path_GREP"
3342
3343
3344{ echo "$as_me:$LINENO: checking for egrep" >&5
3345echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3346if test "${ac_cv_path_EGREP+set}" = set; then
3347  echo $ECHO_N "(cached) $ECHO_C" >&6
3348else
3349  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3350   then ac_cv_path_EGREP="$GREP -E"
3351   else
3352     # Extract the first word of "egrep" to use in msg output
3353if test -z "$EGREP"; then
3354set dummy egrep; ac_prog_name=$2
3355if test "${ac_cv_path_EGREP+set}" = set; then
3356  echo $ECHO_N "(cached) $ECHO_C" >&6
3357else
3358  ac_path_EGREP_found=false
3359# Loop through the user's path and test for each of PROGNAME-LIST
3360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3362do
3363  IFS=$as_save_IFS
3364  test -z "$as_dir" && as_dir=.
3365  for ac_prog in egrep; do
3366  for ac_exec_ext in '' $ac_executable_extensions; do
3367    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3368    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3369    # Check for GNU ac_path_EGREP and select it if it is found.
3370  # Check for GNU $ac_path_EGREP
3371case `"$ac_path_EGREP" --version 2>&1` in
3372*GNU*)
3373  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3374*)
3375  ac_count=0
3376  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3377  while :
3378  do
3379    cat "conftest.in" "conftest.in" >"conftest.tmp"
3380    mv "conftest.tmp" "conftest.in"
3381    cp "conftest.in" "conftest.nl"
3382    echo 'EGREP' >> "conftest.nl"
3383    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3384    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3385    ac_count=`expr $ac_count + 1`
3386    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3387      # Best one so far, save it but keep looking for a better one
3388      ac_cv_path_EGREP="$ac_path_EGREP"
3389      ac_path_EGREP_max=$ac_count
3390    fi
3391    # 10*(2^10) chars as input seems more than enough
3392    test $ac_count -gt 10 && break
3393  done
3394  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3395esac
3396
3397
3398    $ac_path_EGREP_found && break 3
3399  done
3400done
3401
3402done
3403IFS=$as_save_IFS
3404
3405
3406fi
3407
3408EGREP="$ac_cv_path_EGREP"
3409if test -z "$EGREP"; then
3410  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3411echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3412   { (exit 1); exit 1; }; }
3413fi
3414
3415else
3416  ac_cv_path_EGREP=$EGREP
3417fi
3418
3419
3420   fi
3421fi
3422{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3423echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3424 EGREP="$ac_cv_path_EGREP"
3425
3426
3427
3428{ echo "$as_me:$LINENO: checking for AIX" >&5
3429echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3430cat >conftest.$ac_ext <<_ACEOF
3431/* confdefs.h.  */
3432_ACEOF
3433cat confdefs.h >>conftest.$ac_ext
3434cat >>conftest.$ac_ext <<_ACEOF
3435/* end confdefs.h.  */
3436#ifdef _AIX
3437  yes
3438#endif
3439
3440_ACEOF
3441if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3442  $EGREP "yes" >/dev/null 2>&1; then
3443  { echo "$as_me:$LINENO: result: yes" >&5
3444echo "${ECHO_T}yes" >&6; }
3445cat >>confdefs.h <<\_ACEOF
3446#define _ALL_SOURCE 1
3447_ACEOF
3448
3449else
3450  { echo "$as_me:$LINENO: result: no" >&5
3451echo "${ECHO_T}no" >&6; }
3452fi
3453rm -f conftest*
3454
3455
3456
3457
3458
3459cat >>confdefs.h <<\_ACEOF
3460#define PROTOTYPES 1
3461_ACEOF
3462
3463
3464if test -z "$CFLAGS"; then
3465    if test -z "$CCOPTS"; then
3466	CCOPTS='-O'
3467    fi
3468    CFLAGS="$CCOPTS"
3469fi
3470
3471
3472ac_ext=c
3473ac_cpp='$CPP $CPPFLAGS'
3474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3476ac_compiler_gnu=$ac_cv_c_compiler_gnu
3477if test -n "$ac_tool_prefix"; then
3478  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3479set dummy ${ac_tool_prefix}gcc; ac_word=$2
3480{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3482if test "${ac_cv_prog_CC+set}" = set; then
3483  echo $ECHO_N "(cached) $ECHO_C" >&6
3484else
3485  if test -n "$CC"; then
3486  ac_cv_prog_CC="$CC" # Let the user override the test.
3487else
3488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489for as_dir in $PATH
3490do
3491  IFS=$as_save_IFS
3492  test -z "$as_dir" && as_dir=.
3493  for ac_exec_ext in '' $ac_executable_extensions; do
3494  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3495    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3496    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3497    break 2
3498  fi
3499done
3500done
3501IFS=$as_save_IFS
3502
3503fi
3504fi
3505CC=$ac_cv_prog_CC
3506if test -n "$CC"; then
3507  { echo "$as_me:$LINENO: result: $CC" >&5
3508echo "${ECHO_T}$CC" >&6; }
3509else
3510  { echo "$as_me:$LINENO: result: no" >&5
3511echo "${ECHO_T}no" >&6; }
3512fi
3513
3514
3515fi
3516if test -z "$ac_cv_prog_CC"; then
3517  ac_ct_CC=$CC
3518  # Extract the first word of "gcc", so it can be a program name with args.
3519set dummy gcc; ac_word=$2
3520{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3522if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3523  echo $ECHO_N "(cached) $ECHO_C" >&6
3524else
3525  if test -n "$ac_ct_CC"; then
3526  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3527else
3528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529for as_dir in $PATH
3530do
3531  IFS=$as_save_IFS
3532  test -z "$as_dir" && as_dir=.
3533  for ac_exec_ext in '' $ac_executable_extensions; do
3534  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3535    ac_cv_prog_ac_ct_CC="gcc"
3536    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3537    break 2
3538  fi
3539done
3540done
3541IFS=$as_save_IFS
3542
3543fi
3544fi
3545ac_ct_CC=$ac_cv_prog_ac_ct_CC
3546if test -n "$ac_ct_CC"; then
3547  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3548echo "${ECHO_T}$ac_ct_CC" >&6; }
3549else
3550  { echo "$as_me:$LINENO: result: no" >&5
3551echo "${ECHO_T}no" >&6; }
3552fi
3553
3554  if test "x$ac_ct_CC" = x; then
3555    CC=""
3556  else
3557    case $cross_compiling:$ac_tool_warned in
3558yes:)
3559{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3560whose name does not start with the host triplet.  If you think this
3561configuration is useful to you, please write to autoconf@gnu.org." >&5
3562echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3563whose name does not start with the host triplet.  If you think this
3564configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3565ac_tool_warned=yes ;;
3566esac
3567    CC=$ac_ct_CC
3568  fi
3569else
3570  CC="$ac_cv_prog_CC"
3571fi
3572
3573if test -z "$CC"; then
3574          if test -n "$ac_tool_prefix"; then
3575    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3576set dummy ${ac_tool_prefix}cc; ac_word=$2
3577{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3579if test "${ac_cv_prog_CC+set}" = set; then
3580  echo $ECHO_N "(cached) $ECHO_C" >&6
3581else
3582  if test -n "$CC"; then
3583  ac_cv_prog_CC="$CC" # Let the user override the test.
3584else
3585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586for as_dir in $PATH
3587do
3588  IFS=$as_save_IFS
3589  test -z "$as_dir" && as_dir=.
3590  for ac_exec_ext in '' $ac_executable_extensions; do
3591  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3592    ac_cv_prog_CC="${ac_tool_prefix}cc"
3593    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3594    break 2
3595  fi
3596done
3597done
3598IFS=$as_save_IFS
3599
3600fi
3601fi
3602CC=$ac_cv_prog_CC
3603if test -n "$CC"; then
3604  { echo "$as_me:$LINENO: result: $CC" >&5
3605echo "${ECHO_T}$CC" >&6; }
3606else
3607  { echo "$as_me:$LINENO: result: no" >&5
3608echo "${ECHO_T}no" >&6; }
3609fi
3610
3611
3612  fi
3613fi
3614if test -z "$CC"; then
3615  # Extract the first word of "cc", so it can be a program name with args.
3616set dummy cc; ac_word=$2
3617{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3619if test "${ac_cv_prog_CC+set}" = set; then
3620  echo $ECHO_N "(cached) $ECHO_C" >&6
3621else
3622  if test -n "$CC"; then
3623  ac_cv_prog_CC="$CC" # Let the user override the test.
3624else
3625  ac_prog_rejected=no
3626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627for as_dir in $PATH
3628do
3629  IFS=$as_save_IFS
3630  test -z "$as_dir" && as_dir=.
3631  for ac_exec_ext in '' $ac_executable_extensions; do
3632  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3633    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3634       ac_prog_rejected=yes
3635       continue
3636     fi
3637    ac_cv_prog_CC="cc"
3638    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3639    break 2
3640  fi
3641done
3642done
3643IFS=$as_save_IFS
3644
3645if test $ac_prog_rejected = yes; then
3646  # We found a bogon in the path, so make sure we never use it.
3647  set dummy $ac_cv_prog_CC
3648  shift
3649  if test $# != 0; then
3650    # We chose a different compiler from the bogus one.
3651    # However, it has the same basename, so the bogon will be chosen
3652    # first if we set CC to just the basename; use the full file name.
3653    shift
3654    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3655  fi
3656fi
3657fi
3658fi
3659CC=$ac_cv_prog_CC
3660if test -n "$CC"; then
3661  { echo "$as_me:$LINENO: result: $CC" >&5
3662echo "${ECHO_T}$CC" >&6; }
3663else
3664  { echo "$as_me:$LINENO: result: no" >&5
3665echo "${ECHO_T}no" >&6; }
3666fi
3667
3668
3669fi
3670if test -z "$CC"; then
3671  if test -n "$ac_tool_prefix"; then
3672  for ac_prog in cl.exe
3673  do
3674    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3675set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3676{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3678if test "${ac_cv_prog_CC+set}" = set; then
3679  echo $ECHO_N "(cached) $ECHO_C" >&6
3680else
3681  if test -n "$CC"; then
3682  ac_cv_prog_CC="$CC" # Let the user override the test.
3683else
3684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685for as_dir in $PATH
3686do
3687  IFS=$as_save_IFS
3688  test -z "$as_dir" && as_dir=.
3689  for ac_exec_ext in '' $ac_executable_extensions; do
3690  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3691    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3692    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3693    break 2
3694  fi
3695done
3696done
3697IFS=$as_save_IFS
3698
3699fi
3700fi
3701CC=$ac_cv_prog_CC
3702if test -n "$CC"; then
3703  { echo "$as_me:$LINENO: result: $CC" >&5
3704echo "${ECHO_T}$CC" >&6; }
3705else
3706  { echo "$as_me:$LINENO: result: no" >&5
3707echo "${ECHO_T}no" >&6; }
3708fi
3709
3710
3711    test -n "$CC" && break
3712  done
3713fi
3714if test -z "$CC"; then
3715  ac_ct_CC=$CC
3716  for ac_prog in cl.exe
3717do
3718  # Extract the first word of "$ac_prog", so it can be a program name with args.
3719set dummy $ac_prog; ac_word=$2
3720{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3722if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3723  echo $ECHO_N "(cached) $ECHO_C" >&6
3724else
3725  if test -n "$ac_ct_CC"; then
3726  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3727else
3728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3729for as_dir in $PATH
3730do
3731  IFS=$as_save_IFS
3732  test -z "$as_dir" && as_dir=.
3733  for ac_exec_ext in '' $ac_executable_extensions; do
3734  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3735    ac_cv_prog_ac_ct_CC="$ac_prog"
3736    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3737    break 2
3738  fi
3739done
3740done
3741IFS=$as_save_IFS
3742
3743fi
3744fi
3745ac_ct_CC=$ac_cv_prog_ac_ct_CC
3746if test -n "$ac_ct_CC"; then
3747  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3748echo "${ECHO_T}$ac_ct_CC" >&6; }
3749else
3750  { echo "$as_me:$LINENO: result: no" >&5
3751echo "${ECHO_T}no" >&6; }
3752fi
3753
3754
3755  test -n "$ac_ct_CC" && break
3756done
3757
3758  if test "x$ac_ct_CC" = x; then
3759    CC=""
3760  else
3761    case $cross_compiling:$ac_tool_warned in
3762yes:)
3763{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3764whose name does not start with the host triplet.  If you think this
3765configuration is useful to you, please write to autoconf@gnu.org." >&5
3766echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3767whose name does not start with the host triplet.  If you think this
3768configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3769ac_tool_warned=yes ;;
3770esac
3771    CC=$ac_ct_CC
3772  fi
3773fi
3774
3775fi
3776
3777
3778test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3779See \`config.log' for more details." >&5
3780echo "$as_me: error: no acceptable C compiler found in \$PATH
3781See \`config.log' for more details." >&2;}
3782   { (exit 1); exit 1; }; }
3783
3784# Provide some information about the compiler.
3785echo "$as_me:$LINENO: checking for C compiler version" >&5
3786ac_compiler=`set X $ac_compile; echo $2`
3787{ (ac_try="$ac_compiler --version >&5"
3788case "(($ac_try" in
3789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790  *) ac_try_echo=$ac_try;;
3791esac
3792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3793  (eval "$ac_compiler --version >&5") 2>&5
3794  ac_status=$?
3795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796  (exit $ac_status); }
3797{ (ac_try="$ac_compiler -v >&5"
3798case "(($ac_try" in
3799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800  *) ac_try_echo=$ac_try;;
3801esac
3802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3803  (eval "$ac_compiler -v >&5") 2>&5
3804  ac_status=$?
3805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806  (exit $ac_status); }
3807{ (ac_try="$ac_compiler -V >&5"
3808case "(($ac_try" in
3809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810  *) ac_try_echo=$ac_try;;
3811esac
3812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3813  (eval "$ac_compiler -V >&5") 2>&5
3814  ac_status=$?
3815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816  (exit $ac_status); }
3817
3818{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3819echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3820if test "${ac_cv_c_compiler_gnu+set}" = set; then
3821  echo $ECHO_N "(cached) $ECHO_C" >&6
3822else
3823  cat >conftest.$ac_ext <<_ACEOF
3824/* confdefs.h.  */
3825_ACEOF
3826cat confdefs.h >>conftest.$ac_ext
3827cat >>conftest.$ac_ext <<_ACEOF
3828/* end confdefs.h.  */
3829
3830int
3831main ()
3832{
3833#ifndef __GNUC__
3834       choke me
3835#endif
3836
3837  ;
3838  return 0;
3839}
3840_ACEOF
3841rm -f conftest.$ac_objext
3842if { (ac_try="$ac_compile"
3843case "(($ac_try" in
3844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845  *) ac_try_echo=$ac_try;;
3846esac
3847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3848  (eval "$ac_compile") 2>conftest.er1
3849  ac_status=$?
3850  grep -v '^ *+' conftest.er1 >conftest.err
3851  rm -f conftest.er1
3852  cat conftest.err >&5
3853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854  (exit $ac_status); } && {
3855	 test -z "$ac_c_werror_flag" ||
3856	 test ! -s conftest.err
3857       } && test -s conftest.$ac_objext; then
3858  ac_compiler_gnu=yes
3859else
3860  echo "$as_me: failed program was:" >&5
3861sed 's/^/| /' conftest.$ac_ext >&5
3862
3863	ac_compiler_gnu=no
3864fi
3865
3866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3867ac_cv_c_compiler_gnu=$ac_compiler_gnu
3868
3869fi
3870{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3871echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3872GCC=`test $ac_compiler_gnu = yes && echo yes`
3873ac_test_CFLAGS=${CFLAGS+set}
3874ac_save_CFLAGS=$CFLAGS
3875{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3876echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3877if test "${ac_cv_prog_cc_g+set}" = set; then
3878  echo $ECHO_N "(cached) $ECHO_C" >&6
3879else
3880  ac_save_c_werror_flag=$ac_c_werror_flag
3881   ac_c_werror_flag=yes
3882   ac_cv_prog_cc_g=no
3883   CFLAGS="-g"
3884   cat >conftest.$ac_ext <<_ACEOF
3885/* confdefs.h.  */
3886_ACEOF
3887cat confdefs.h >>conftest.$ac_ext
3888cat >>conftest.$ac_ext <<_ACEOF
3889/* end confdefs.h.  */
3890
3891int
3892main ()
3893{
3894
3895  ;
3896  return 0;
3897}
3898_ACEOF
3899rm -f conftest.$ac_objext
3900if { (ac_try="$ac_compile"
3901case "(($ac_try" in
3902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903  *) ac_try_echo=$ac_try;;
3904esac
3905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906  (eval "$ac_compile") 2>conftest.er1
3907  ac_status=$?
3908  grep -v '^ *+' conftest.er1 >conftest.err
3909  rm -f conftest.er1
3910  cat conftest.err >&5
3911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912  (exit $ac_status); } && {
3913	 test -z "$ac_c_werror_flag" ||
3914	 test ! -s conftest.err
3915       } && test -s conftest.$ac_objext; then
3916  ac_cv_prog_cc_g=yes
3917else
3918  echo "$as_me: failed program was:" >&5
3919sed 's/^/| /' conftest.$ac_ext >&5
3920
3921	CFLAGS=""
3922      cat >conftest.$ac_ext <<_ACEOF
3923/* confdefs.h.  */
3924_ACEOF
3925cat confdefs.h >>conftest.$ac_ext
3926cat >>conftest.$ac_ext <<_ACEOF
3927/* end confdefs.h.  */
3928
3929int
3930main ()
3931{
3932
3933  ;
3934  return 0;
3935}
3936_ACEOF
3937rm -f conftest.$ac_objext
3938if { (ac_try="$ac_compile"
3939case "(($ac_try" in
3940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941  *) ac_try_echo=$ac_try;;
3942esac
3943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3944  (eval "$ac_compile") 2>conftest.er1
3945  ac_status=$?
3946  grep -v '^ *+' conftest.er1 >conftest.err
3947  rm -f conftest.er1
3948  cat conftest.err >&5
3949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950  (exit $ac_status); } && {
3951	 test -z "$ac_c_werror_flag" ||
3952	 test ! -s conftest.err
3953       } && test -s conftest.$ac_objext; then
3954  :
3955else
3956  echo "$as_me: failed program was:" >&5
3957sed 's/^/| /' conftest.$ac_ext >&5
3958
3959	ac_c_werror_flag=$ac_save_c_werror_flag
3960	 CFLAGS="-g"
3961	 cat >conftest.$ac_ext <<_ACEOF
3962/* confdefs.h.  */
3963_ACEOF
3964cat confdefs.h >>conftest.$ac_ext
3965cat >>conftest.$ac_ext <<_ACEOF
3966/* end confdefs.h.  */
3967
3968int
3969main ()
3970{
3971
3972  ;
3973  return 0;
3974}
3975_ACEOF
3976rm -f conftest.$ac_objext
3977if { (ac_try="$ac_compile"
3978case "(($ac_try" in
3979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980  *) ac_try_echo=$ac_try;;
3981esac
3982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3983  (eval "$ac_compile") 2>conftest.er1
3984  ac_status=$?
3985  grep -v '^ *+' conftest.er1 >conftest.err
3986  rm -f conftest.er1
3987  cat conftest.err >&5
3988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989  (exit $ac_status); } && {
3990	 test -z "$ac_c_werror_flag" ||
3991	 test ! -s conftest.err
3992       } && test -s conftest.$ac_objext; then
3993  ac_cv_prog_cc_g=yes
3994else
3995  echo "$as_me: failed program was:" >&5
3996sed 's/^/| /' conftest.$ac_ext >&5
3997
3998
3999fi
4000
4001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4002fi
4003
4004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4005fi
4006
4007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4008   ac_c_werror_flag=$ac_save_c_werror_flag
4009fi
4010{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4011echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4012if test "$ac_test_CFLAGS" = set; then
4013  CFLAGS=$ac_save_CFLAGS
4014elif test $ac_cv_prog_cc_g = yes; then
4015  if test "$GCC" = yes; then
4016    CFLAGS="-g -O2"
4017  else
4018    CFLAGS="-g"
4019  fi
4020else
4021  if test "$GCC" = yes; then
4022    CFLAGS="-O2"
4023  else
4024    CFLAGS=
4025  fi
4026fi
4027{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4028echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4029if test "${ac_cv_prog_cc_c89+set}" = set; then
4030  echo $ECHO_N "(cached) $ECHO_C" >&6
4031else
4032  ac_cv_prog_cc_c89=no
4033ac_save_CC=$CC
4034cat >conftest.$ac_ext <<_ACEOF
4035/* confdefs.h.  */
4036_ACEOF
4037cat confdefs.h >>conftest.$ac_ext
4038cat >>conftest.$ac_ext <<_ACEOF
4039/* end confdefs.h.  */
4040#include <stdarg.h>
4041#include <stdio.h>
4042#include <sys/types.h>
4043#include <sys/stat.h>
4044/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4045struct buf { int x; };
4046FILE * (*rcsopen) (struct buf *, struct stat *, int);
4047static char *e (p, i)
4048     char **p;
4049     int i;
4050{
4051  return p[i];
4052}
4053static char *f (char * (*g) (char **, int), char **p, ...)
4054{
4055  char *s;
4056  va_list v;
4057  va_start (v,p);
4058  s = g (p, va_arg (v,int));
4059  va_end (v);
4060  return s;
4061}
4062
4063/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4064   function prototypes and stuff, but not '\xHH' hex character constants.
4065   These don't provoke an error unfortunately, instead are silently treated
4066   as 'x'.  The following induces an error, until -std is added to get
4067   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4068   array size at least.  It's necessary to write '\x00'==0 to get something
4069   that's true only with -std.  */
4070int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4071
4072/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4073   inside strings and character constants.  */
4074#define FOO(x) 'x'
4075int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4076
4077int test (int i, double x);
4078struct s1 {int (*f) (int a);};
4079struct s2 {int (*f) (double a);};
4080int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4081int argc;
4082char **argv;
4083int
4084main ()
4085{
4086return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4087  ;
4088  return 0;
4089}
4090_ACEOF
4091for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4092	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4093do
4094  CC="$ac_save_CC $ac_arg"
4095  rm -f conftest.$ac_objext
4096if { (ac_try="$ac_compile"
4097case "(($ac_try" in
4098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099  *) ac_try_echo=$ac_try;;
4100esac
4101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102  (eval "$ac_compile") 2>conftest.er1
4103  ac_status=$?
4104  grep -v '^ *+' conftest.er1 >conftest.err
4105  rm -f conftest.er1
4106  cat conftest.err >&5
4107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108  (exit $ac_status); } && {
4109	 test -z "$ac_c_werror_flag" ||
4110	 test ! -s conftest.err
4111       } && test -s conftest.$ac_objext; then
4112  ac_cv_prog_cc_c89=$ac_arg
4113else
4114  echo "$as_me: failed program was:" >&5
4115sed 's/^/| /' conftest.$ac_ext >&5
4116
4117
4118fi
4119
4120rm -f core conftest.err conftest.$ac_objext
4121  test "x$ac_cv_prog_cc_c89" != "xno" && break
4122done
4123rm -f conftest.$ac_ext
4124CC=$ac_save_CC
4125
4126fi
4127# AC_CACHE_VAL
4128case "x$ac_cv_prog_cc_c89" in
4129  x)
4130    { echo "$as_me:$LINENO: result: none needed" >&5
4131echo "${ECHO_T}none needed" >&6; } ;;
4132  xno)
4133    { echo "$as_me:$LINENO: result: unsupported" >&5
4134echo "${ECHO_T}unsupported" >&6; } ;;
4135  *)
4136    CC="$CC $ac_cv_prog_cc_c89"
4137    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4138echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4139esac
4140
4141
4142ac_ext=c
4143ac_cpp='$CPP $CPPFLAGS'
4144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146ac_compiler_gnu=$ac_cv_c_compiler_gnu
4147
4148ac_ext=c
4149ac_cpp='$CPP $CPPFLAGS'
4150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4152ac_compiler_gnu=$ac_cv_c_compiler_gnu
4153{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4154echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4155# On Suns, sometimes $CPP names a directory.
4156if test -n "$CPP" && test -d "$CPP"; then
4157  CPP=
4158fi
4159if test -z "$CPP"; then
4160  if test "${ac_cv_prog_CPP+set}" = set; then
4161  echo $ECHO_N "(cached) $ECHO_C" >&6
4162else
4163      # Double quotes because CPP needs to be expanded
4164    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4165    do
4166      ac_preproc_ok=false
4167for ac_c_preproc_warn_flag in '' yes
4168do
4169  # Use a header file that comes with gcc, so configuring glibc
4170  # with a fresh cross-compiler works.
4171  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4172  # <limits.h> exists even on freestanding compilers.
4173  # On the NeXT, cc -E runs the code through the compiler's parser,
4174  # not just through cpp. "Syntax error" is here to catch this case.
4175  cat >conftest.$ac_ext <<_ACEOF
4176/* confdefs.h.  */
4177_ACEOF
4178cat confdefs.h >>conftest.$ac_ext
4179cat >>conftest.$ac_ext <<_ACEOF
4180/* end confdefs.h.  */
4181#ifdef __STDC__
4182# include <limits.h>
4183#else
4184# include <assert.h>
4185#endif
4186		     Syntax error
4187_ACEOF
4188if { (ac_try="$ac_cpp conftest.$ac_ext"
4189case "(($ac_try" in
4190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4191  *) ac_try_echo=$ac_try;;
4192esac
4193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4194  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4195  ac_status=$?
4196  grep -v '^ *+' conftest.er1 >conftest.err
4197  rm -f conftest.er1
4198  cat conftest.err >&5
4199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200  (exit $ac_status); } >/dev/null && {
4201	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4202	 test ! -s conftest.err
4203       }; then
4204  :
4205else
4206  echo "$as_me: failed program was:" >&5
4207sed 's/^/| /' conftest.$ac_ext >&5
4208
4209  # Broken: fails on valid input.
4210continue
4211fi
4212
4213rm -f conftest.err conftest.$ac_ext
4214
4215  # OK, works on sane cases.  Now check whether nonexistent headers
4216  # can be detected and how.
4217  cat >conftest.$ac_ext <<_ACEOF
4218/* confdefs.h.  */
4219_ACEOF
4220cat confdefs.h >>conftest.$ac_ext
4221cat >>conftest.$ac_ext <<_ACEOF
4222/* end confdefs.h.  */
4223#include <ac_nonexistent.h>
4224_ACEOF
4225if { (ac_try="$ac_cpp conftest.$ac_ext"
4226case "(($ac_try" in
4227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228  *) ac_try_echo=$ac_try;;
4229esac
4230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4231  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4232  ac_status=$?
4233  grep -v '^ *+' conftest.er1 >conftest.err
4234  rm -f conftest.er1
4235  cat conftest.err >&5
4236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237  (exit $ac_status); } >/dev/null && {
4238	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4239	 test ! -s conftest.err
4240       }; then
4241  # Broken: success on invalid input.
4242continue
4243else
4244  echo "$as_me: failed program was:" >&5
4245sed 's/^/| /' conftest.$ac_ext >&5
4246
4247  # Passes both tests.
4248ac_preproc_ok=:
4249break
4250fi
4251
4252rm -f conftest.err conftest.$ac_ext
4253
4254done
4255# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4256rm -f conftest.err conftest.$ac_ext
4257if $ac_preproc_ok; then
4258  break
4259fi
4260
4261    done
4262    ac_cv_prog_CPP=$CPP
4263
4264fi
4265  CPP=$ac_cv_prog_CPP
4266else
4267  ac_cv_prog_CPP=$CPP
4268fi
4269{ echo "$as_me:$LINENO: result: $CPP" >&5
4270echo "${ECHO_T}$CPP" >&6; }
4271ac_preproc_ok=false
4272for ac_c_preproc_warn_flag in '' yes
4273do
4274  # Use a header file that comes with gcc, so configuring glibc
4275  # with a fresh cross-compiler works.
4276  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4277  # <limits.h> exists even on freestanding compilers.
4278  # On the NeXT, cc -E runs the code through the compiler's parser,
4279  # not just through cpp. "Syntax error" is here to catch this case.
4280  cat >conftest.$ac_ext <<_ACEOF
4281/* confdefs.h.  */
4282_ACEOF
4283cat confdefs.h >>conftest.$ac_ext
4284cat >>conftest.$ac_ext <<_ACEOF
4285/* end confdefs.h.  */
4286#ifdef __STDC__
4287# include <limits.h>
4288#else
4289# include <assert.h>
4290#endif
4291		     Syntax error
4292_ACEOF
4293if { (ac_try="$ac_cpp conftest.$ac_ext"
4294case "(($ac_try" in
4295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296  *) ac_try_echo=$ac_try;;
4297esac
4298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4299  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4300  ac_status=$?
4301  grep -v '^ *+' conftest.er1 >conftest.err
4302  rm -f conftest.er1
4303  cat conftest.err >&5
4304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305  (exit $ac_status); } >/dev/null && {
4306	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4307	 test ! -s conftest.err
4308       }; then
4309  :
4310else
4311  echo "$as_me: failed program was:" >&5
4312sed 's/^/| /' conftest.$ac_ext >&5
4313
4314  # Broken: fails on valid input.
4315continue
4316fi
4317
4318rm -f conftest.err conftest.$ac_ext
4319
4320  # OK, works on sane cases.  Now check whether nonexistent headers
4321  # can be detected and how.
4322  cat >conftest.$ac_ext <<_ACEOF
4323/* confdefs.h.  */
4324_ACEOF
4325cat confdefs.h >>conftest.$ac_ext
4326cat >>conftest.$ac_ext <<_ACEOF
4327/* end confdefs.h.  */
4328#include <ac_nonexistent.h>
4329_ACEOF
4330if { (ac_try="$ac_cpp conftest.$ac_ext"
4331case "(($ac_try" in
4332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333  *) ac_try_echo=$ac_try;;
4334esac
4335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4336  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4337  ac_status=$?
4338  grep -v '^ *+' conftest.er1 >conftest.err
4339  rm -f conftest.er1
4340  cat conftest.err >&5
4341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342  (exit $ac_status); } >/dev/null && {
4343	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4344	 test ! -s conftest.err
4345       }; then
4346  # Broken: success on invalid input.
4347continue
4348else
4349  echo "$as_me: failed program was:" >&5
4350sed 's/^/| /' conftest.$ac_ext >&5
4351
4352  # Passes both tests.
4353ac_preproc_ok=:
4354break
4355fi
4356
4357rm -f conftest.err conftest.$ac_ext
4358
4359done
4360# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4361rm -f conftest.err conftest.$ac_ext
4362if $ac_preproc_ok; then
4363  :
4364else
4365  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4366See \`config.log' for more details." >&5
4367echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4368See \`config.log' for more details." >&2;}
4369   { (exit 1); exit 1; }; }
4370fi
4371
4372ac_ext=c
4373ac_cpp='$CPP $CPPFLAGS'
4374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4376ac_compiler_gnu=$ac_cv_c_compiler_gnu
4377
4378export CC
4379export GCC
4380export prefix
4381export exec_prefix
4382
4383# Find a good install program.  We prefer a C program (faster),
4384# so one script is as good as another.  But avoid the broken or
4385# incompatible versions:
4386# SysV /etc/install, /usr/sbin/install
4387# SunOS /usr/etc/install
4388# IRIX /sbin/install
4389# AIX /bin/install
4390# AmigaOS /C/install, which installs bootblocks on floppy discs
4391# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4392# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4393# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4394# OS/2's system install, which has a completely different semantic
4395# ./install, which can be erroneously created by make from ./install.sh.
4396{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4397echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4398if test -z "$INSTALL"; then
4399if test "${ac_cv_path_install+set}" = set; then
4400  echo $ECHO_N "(cached) $ECHO_C" >&6
4401else
4402  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403for as_dir in $PATH
4404do
4405  IFS=$as_save_IFS
4406  test -z "$as_dir" && as_dir=.
4407  # Account for people who put trailing slashes in PATH elements.
4408case $as_dir/ in
4409  ./ | .// | /cC/* | \
4410  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4411  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4412  /usr/ucb/* ) ;;
4413  *)
4414    # OSF1 and SCO ODT 3.0 have their own names for install.
4415    # Don't use installbsd from OSF since it installs stuff as root
4416    # by default.
4417    for ac_prog in ginstall scoinst install; do
4418      for ac_exec_ext in '' $ac_executable_extensions; do
4419	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4420	  if test $ac_prog = install &&
4421	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4422	    # AIX install.  It has an incompatible calling convention.
4423	    :
4424	  elif test $ac_prog = install &&
4425	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4426	    # program-specific install script used by HP pwplus--don't use.
4427	    :
4428	  else
4429	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4430	    break 3
4431	  fi
4432	fi
4433      done
4434    done
4435    ;;
4436esac
4437done
4438IFS=$as_save_IFS
4439
4440
4441fi
4442  if test "${ac_cv_path_install+set}" = set; then
4443    INSTALL=$ac_cv_path_install
4444  else
4445    # As a last resort, use the slow shell script.  Don't cache a
4446    # value for INSTALL within a source directory, because that will
4447    # break other packages using the cache if that directory is
4448    # removed, or if the value is a relative name.
4449    INSTALL=$ac_install_sh
4450  fi
4451fi
4452{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4453echo "${ECHO_T}$INSTALL" >&6; }
4454
4455# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4456# It thinks the first close brace ends the variable substitution.
4457test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4458
4459test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4460
4461test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4462
4463
4464
4465if test -n "`echo $CFLAGS' ' | grep '\-g ' 2> /dev/null`" ; then
4466  CFLAGS=`echo "$CFLAGS " | sed "s/-g / /"`
4467fi
4468
4469if test "x$GCC" = "xyes"; then
4470  if test -z "`echo $CFLAGS | grep '\-Wall' 2> /dev/null`" ; then
4471    CFLAGS="$CFLAGS -Wall"
4472  fi
4473fi
4474
4475# Make sure we can run config.sub.
4476$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4477  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4478echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4479   { (exit 1); exit 1; }; }
4480
4481{ echo "$as_me:$LINENO: checking build system type" >&5
4482echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4483if test "${ac_cv_build+set}" = set; then
4484  echo $ECHO_N "(cached) $ECHO_C" >&6
4485else
4486  ac_build_alias=$build_alias
4487test "x$ac_build_alias" = x &&
4488  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4489test "x$ac_build_alias" = x &&
4490  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4491echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4492   { (exit 1); exit 1; }; }
4493ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4494  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4495echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4496   { (exit 1); exit 1; }; }
4497
4498fi
4499{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4500echo "${ECHO_T}$ac_cv_build" >&6; }
4501case $ac_cv_build in
4502*-*-*) ;;
4503*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4504echo "$as_me: error: invalid value of canonical build" >&2;}
4505   { (exit 1); exit 1; }; };;
4506esac
4507build=$ac_cv_build
4508ac_save_IFS=$IFS; IFS='-'
4509set x $ac_cv_build
4510shift
4511build_cpu=$1
4512build_vendor=$2
4513shift; shift
4514# Remember, the first character of IFS is used to create $*,
4515# except with old shells:
4516build_os=$*
4517IFS=$ac_save_IFS
4518case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4519
4520
4521{ echo "$as_me:$LINENO: checking host system type" >&5
4522echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4523if test "${ac_cv_host+set}" = set; then
4524  echo $ECHO_N "(cached) $ECHO_C" >&6
4525else
4526  if test "x$host_alias" = x; then
4527  ac_cv_host=$ac_cv_build
4528else
4529  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4530    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4531echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4532   { (exit 1); exit 1; }; }
4533fi
4534
4535fi
4536{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4537echo "${ECHO_T}$ac_cv_host" >&6; }
4538case $ac_cv_host in
4539*-*-*) ;;
4540*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4541echo "$as_me: error: invalid value of canonical host" >&2;}
4542   { (exit 1); exit 1; }; };;
4543esac
4544host=$ac_cv_host
4545ac_save_IFS=$IFS; IFS='-'
4546set x $ac_cv_host
4547shift
4548host_cpu=$1
4549host_vendor=$2
4550shift; shift
4551# Remember, the first character of IFS is used to create $*,
4552# except with old shells:
4553host_os=$*
4554IFS=$ac_save_IFS
4555case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4556
4557
4558case $host_os in
4559  *cygwin* ) CYGWIN=yes;;
4560	 * ) CYGWIN=no;;
4561esac
4562
4563if test "x$CYGWIN" = "x" -a "x$GCC" = "xyes" ; then
4564  if test -z "`echo $CFLAGS | grep '\-fPIC' 2> /dev/null`" ; then
4565    CFLAGS="$CFLAGS -fPIC"
4566  fi
4567fi
4568
4569if test "x$enable_gdb" = "xyes"; then
4570  CFLAGS="$CFLAGS -g -DDEBUG_STRICT"
4571  LDFLAGS="$LDFLAGS -g"
4572else
4573  CFLAGS="$CFLAGS -DNO_DEBUG_OUTPUT"
4574fi
4575
4576if test "x$enable_gprof" = "xyes"; then
4577  CFLAGS="$CFLAGS -pg"
4578  LDFLAGS="$LDFLAGS -pg"
4579fi
4580
4581if test "x$enable_warn" = "xyes"; then
4582  CFLAGS="$CFLAGS -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wconversion -Wcomment -Wcast-align -Winline -Wshadow -Wredundant-decls -Wid-clash-31"
4583fi
4584
4585if test "x$GCC" = "xyes"; then
4586   LDFLAGS="$LDFLAGS -rdynamic"
4587fi
4588
4589export CFLAGS
4590export LDFLAGS
4591
4592# Find a good install program.  We prefer a C program (faster),
4593# so one script is as good as another.  But avoid the broken or
4594# incompatible versions:
4595# SysV /etc/install, /usr/sbin/install
4596# SunOS /usr/etc/install
4597# IRIX /sbin/install
4598# AIX /bin/install
4599# AmigaOS /C/install, which installs bootblocks on floppy discs
4600# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4601# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4602# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4603# OS/2's system install, which has a completely different semantic
4604# ./install, which can be erroneously created by make from ./install.sh.
4605{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4606echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4607if test -z "$INSTALL"; then
4608if test "${ac_cv_path_install+set}" = set; then
4609  echo $ECHO_N "(cached) $ECHO_C" >&6
4610else
4611  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612for as_dir in $PATH
4613do
4614  IFS=$as_save_IFS
4615  test -z "$as_dir" && as_dir=.
4616  # Account for people who put trailing slashes in PATH elements.
4617case $as_dir/ in
4618  ./ | .// | /cC/* | \
4619  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4620  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4621  /usr/ucb/* ) ;;
4622  *)
4623    # OSF1 and SCO ODT 3.0 have their own names for install.
4624    # Don't use installbsd from OSF since it installs stuff as root
4625    # by default.
4626    for ac_prog in ginstall scoinst install; do
4627      for ac_exec_ext in '' $ac_executable_extensions; do
4628	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4629	  if test $ac_prog = install &&
4630	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4631	    # AIX install.  It has an incompatible calling convention.
4632	    :
4633	  elif test $ac_prog = install &&
4634	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4635	    # program-specific install script used by HP pwplus--don't use.
4636	    :
4637	  else
4638	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4639	    break 3
4640	  fi
4641	fi
4642      done
4643    done
4644    ;;
4645esac
4646done
4647IFS=$as_save_IFS
4648
4649
4650fi
4651  if test "${ac_cv_path_install+set}" = set; then
4652    INSTALL=$ac_cv_path_install
4653  else
4654    # As a last resort, use the slow shell script.  Don't cache a
4655    # value for INSTALL within a source directory, because that will
4656    # break other packages using the cache if that directory is
4657    # removed, or if the value is a relative name.
4658    INSTALL=$ac_install_sh
4659  fi
4660fi
4661{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4662echo "${ECHO_T}$INSTALL" >&6; }
4663
4664# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4665# It thinks the first close brace ends the variable substitution.
4666test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4667
4668test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4669
4670test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4671
4672currdir=`pwd`
4673INSTALL=`echo $INSTALL|sed -e "s@\^\.\.@${currdir}@" -e "s@^autoconf@${currdir}/autoconf@"`
4674INSTALL_PROGRAM=`echo $INSTALL_PROGRAM|sed -e "s@\^\.\.@${currdir}@" -e "s@^autoconf@${currdir}/autoconf@"`
4675INSTALL_DATA=`echo $INSTALL_DATA|sed -e "s@\^\.\.@${currdir}@" -e "s@^autoconf@${currdir}/autoconf@"`
4676INSTALL_LIB=`echo $INSTALL_LIB|sed -e "s@\^\.\.@${currdir}@" -e "s@^autoconf@${currdir}/autoconf@"`
4677
4678export INSTALL
4679export INSTALL_PROGRAM
4680export INSTALL_DATA
4681export INSTALL_LIB
4682
4683if test -n "$ac_tool_prefix"; then
4684  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4685set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4686{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4688if test "${ac_cv_prog_RANLIB+set}" = set; then
4689  echo $ECHO_N "(cached) $ECHO_C" >&6
4690else
4691  if test -n "$RANLIB"; then
4692  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4693else
4694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695for as_dir in $PATH
4696do
4697  IFS=$as_save_IFS
4698  test -z "$as_dir" && as_dir=.
4699  for ac_exec_ext in '' $ac_executable_extensions; do
4700  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4701    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4702    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4703    break 2
4704  fi
4705done
4706done
4707IFS=$as_save_IFS
4708
4709fi
4710fi
4711RANLIB=$ac_cv_prog_RANLIB
4712if test -n "$RANLIB"; then
4713  { echo "$as_me:$LINENO: result: $RANLIB" >&5
4714echo "${ECHO_T}$RANLIB" >&6; }
4715else
4716  { echo "$as_me:$LINENO: result: no" >&5
4717echo "${ECHO_T}no" >&6; }
4718fi
4719
4720
4721fi
4722if test -z "$ac_cv_prog_RANLIB"; then
4723  ac_ct_RANLIB=$RANLIB
4724  # Extract the first word of "ranlib", so it can be a program name with args.
4725set dummy ranlib; ac_word=$2
4726{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4728if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4729  echo $ECHO_N "(cached) $ECHO_C" >&6
4730else
4731  if test -n "$ac_ct_RANLIB"; then
4732  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4733else
4734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735for as_dir in $PATH
4736do
4737  IFS=$as_save_IFS
4738  test -z "$as_dir" && as_dir=.
4739  for ac_exec_ext in '' $ac_executable_extensions; do
4740  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4741    ac_cv_prog_ac_ct_RANLIB="ranlib"
4742    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4743    break 2
4744  fi
4745done
4746done
4747IFS=$as_save_IFS
4748
4749fi
4750fi
4751ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4752if test -n "$ac_ct_RANLIB"; then
4753  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4754echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4755else
4756  { echo "$as_me:$LINENO: result: no" >&5
4757echo "${ECHO_T}no" >&6; }
4758fi
4759
4760  if test "x$ac_ct_RANLIB" = x; then
4761    RANLIB=":"
4762  else
4763    case $cross_compiling:$ac_tool_warned in
4764yes:)
4765{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4766whose name does not start with the host triplet.  If you think this
4767configuration is useful to you, please write to autoconf@gnu.org." >&5
4768echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4769whose name does not start with the host triplet.  If you think this
4770configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4771ac_tool_warned=yes ;;
4772esac
4773    RANLIB=$ac_ct_RANLIB
4774  fi
4775else
4776  RANLIB="$ac_cv_prog_RANLIB"
4777fi
4778
4779export RANLIB
4780
4781# Extract the first word of "rm", so it can be a program name with args.
4782set dummy rm; ac_word=$2
4783{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4785if test "${ac_cv_path_RM+set}" = set; then
4786  echo $ECHO_N "(cached) $ECHO_C" >&6
4787else
4788  case $RM in
4789  [\\/]* | ?:[\\/]*)
4790  ac_cv_path_RM="$RM" # Let the user override the test with a path.
4791  ;;
4792  *)
4793  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794for as_dir in $PATH
4795do
4796  IFS=$as_save_IFS
4797  test -z "$as_dir" && as_dir=.
4798  for ac_exec_ext in '' $ac_executable_extensions; do
4799  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4800    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4801    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4802    break 2
4803  fi
4804done
4805done
4806IFS=$as_save_IFS
4807
4808  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4809  ;;
4810esac
4811fi
4812RM=$ac_cv_path_RM
4813if test -n "$RM"; then
4814  { echo "$as_me:$LINENO: result: $RM" >&5
4815echo "${ECHO_T}$RM" >&6; }
4816else
4817  { echo "$as_me:$LINENO: result: no" >&5
4818echo "${ECHO_T}no" >&6; }
4819fi
4820
4821
4822export RM
4823# Extract the first word of "mv", so it can be a program name with args.
4824set dummy mv; ac_word=$2
4825{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4827if test "${ac_cv_path_MV+set}" = set; then
4828  echo $ECHO_N "(cached) $ECHO_C" >&6
4829else
4830  case $MV in
4831  [\\/]* | ?:[\\/]*)
4832  ac_cv_path_MV="$MV" # Let the user override the test with a path.
4833  ;;
4834  *)
4835  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836for as_dir in $PATH
4837do
4838  IFS=$as_save_IFS
4839  test -z "$as_dir" && as_dir=.
4840  for ac_exec_ext in '' $ac_executable_extensions; do
4841  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4842    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4843    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4844    break 2
4845  fi
4846done
4847done
4848IFS=$as_save_IFS
4849
4850  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4851  ;;
4852esac
4853fi
4854MV=$ac_cv_path_MV
4855if test -n "$MV"; then
4856  { echo "$as_me:$LINENO: result: $MV" >&5
4857echo "${ECHO_T}$MV" >&6; }
4858else
4859  { echo "$as_me:$LINENO: result: no" >&5
4860echo "${ECHO_T}no" >&6; }
4861fi
4862
4863
4864export MV
4865# Extract the first word of "cp", so it can be a program name with args.
4866set dummy cp; ac_word=$2
4867{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4869if test "${ac_cv_path_CP+set}" = set; then
4870  echo $ECHO_N "(cached) $ECHO_C" >&6
4871else
4872  case $CP in
4873  [\\/]* | ?:[\\/]*)
4874  ac_cv_path_CP="$CP" # Let the user override the test with a path.
4875  ;;
4876  *)
4877  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878for as_dir in $PATH
4879do
4880  IFS=$as_save_IFS
4881  test -z "$as_dir" && as_dir=.
4882  for ac_exec_ext in '' $ac_executable_extensions; do
4883  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4884    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4885    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4886    break 2
4887  fi
4888done
4889done
4890IFS=$as_save_IFS
4891
4892  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4893  ;;
4894esac
4895fi
4896CP=$ac_cv_path_CP
4897if test -n "$CP"; then
4898  { echo "$as_me:$LINENO: result: $CP" >&5
4899echo "${ECHO_T}$CP" >&6; }
4900else
4901  { echo "$as_me:$LINENO: result: no" >&5
4902echo "${ECHO_T}no" >&6; }
4903fi
4904
4905
4906export CP
4907# Extract the first word of "mkdir", so it can be a program name with args.
4908set dummy mkdir; ac_word=$2
4909{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4911if test "${ac_cv_path_MKDIR+set}" = set; then
4912  echo $ECHO_N "(cached) $ECHO_C" >&6
4913else
4914  case $MKDIR in
4915  [\\/]* | ?:[\\/]*)
4916  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4917  ;;
4918  *)
4919  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920for as_dir in $PATH
4921do
4922  IFS=$as_save_IFS
4923  test -z "$as_dir" && as_dir=.
4924  for ac_exec_ext in '' $ac_executable_extensions; do
4925  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4926    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4927    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4928    break 2
4929  fi
4930done
4931done
4932IFS=$as_save_IFS
4933
4934  test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4935  ;;
4936esac
4937fi
4938MKDIR=$ac_cv_path_MKDIR
4939if test -n "$MKDIR"; then
4940  { echo "$as_me:$LINENO: result: $MKDIR" >&5
4941echo "${ECHO_T}$MKDIR" >&6; }
4942else
4943  { echo "$as_me:$LINENO: result: no" >&5
4944echo "${ECHO_T}no" >&6; }
4945fi
4946
4947
4948export MKDIR
4949# Extract the first word of "perl", so it can be a program name with args.
4950set dummy perl; ac_word=$2
4951{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4953if test "${ac_cv_path_PERL+set}" = set; then
4954  echo $ECHO_N "(cached) $ECHO_C" >&6
4955else
4956  case $PERL in
4957  [\\/]* | ?:[\\/]*)
4958  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4959  ;;
4960  *)
4961  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962for as_dir in $PATH
4963do
4964  IFS=$as_save_IFS
4965  test -z "$as_dir" && as_dir=.
4966  for ac_exec_ext in '' $ac_executable_extensions; do
4967  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4968    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4969    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4970    break 2
4971  fi
4972done
4973done
4974IFS=$as_save_IFS
4975
4976  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
4977  ;;
4978esac
4979fi
4980PERL=$ac_cv_path_PERL
4981if test -n "$PERL"; then
4982  { echo "$as_me:$LINENO: result: $PERL" >&5
4983echo "${ECHO_T}$PERL" >&6; }
4984else
4985  { echo "$as_me:$LINENO: result: no" >&5
4986echo "${ECHO_T}no" >&6; }
4987fi
4988
4989
4990export PERL
4991# Extract the first word of "find", so it can be a program name with args.
4992set dummy find; ac_word=$2
4993{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4995if test "${ac_cv_path_FIND+set}" = set; then
4996  echo $ECHO_N "(cached) $ECHO_C" >&6
4997else
4998  case $FIND in
4999  [\\/]* | ?:[\\/]*)
5000  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5001  ;;
5002  *)
5003  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004for as_dir in $PATH
5005do
5006  IFS=$as_save_IFS
5007  test -z "$as_dir" && as_dir=.
5008  for ac_exec_ext in '' $ac_executable_extensions; do
5009  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5010    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5011    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5012    break 2
5013  fi
5014done
5015done
5016IFS=$as_save_IFS
5017
5018  test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5019  ;;
5020esac
5021fi
5022FIND=$ac_cv_path_FIND
5023if test -n "$FIND"; then
5024  { echo "$as_me:$LINENO: result: $FIND" >&5
5025echo "${ECHO_T}$FIND" >&6; }
5026else
5027  { echo "$as_me:$LINENO: result: no" >&5
5028echo "${ECHO_T}no" >&6; }
5029fi
5030
5031
5032export FIND
5033# Extract the first word of "xargs", so it can be a program name with args.
5034set dummy xargs; ac_word=$2
5035{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5037if test "${ac_cv_path_XARGS+set}" = set; then
5038  echo $ECHO_N "(cached) $ECHO_C" >&6
5039else
5040  case $XARGS in
5041  [\\/]* | ?:[\\/]*)
5042  ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
5043  ;;
5044  *)
5045  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046for as_dir in $PATH
5047do
5048  IFS=$as_save_IFS
5049  test -z "$as_dir" && as_dir=.
5050  for ac_exec_ext in '' $ac_executable_extensions; do
5051  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5052    ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
5053    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5054    break 2
5055  fi
5056done
5057done
5058IFS=$as_save_IFS
5059
5060  test -z "$ac_cv_path_XARGS" && ac_cv_path_XARGS="xargs"
5061  ;;
5062esac
5063fi
5064XARGS=$ac_cv_path_XARGS
5065if test -n "$XARGS"; then
5066  { echo "$as_me:$LINENO: result: $XARGS" >&5
5067echo "${ECHO_T}$XARGS" >&6; }
5068else
5069  { echo "$as_me:$LINENO: result: no" >&5
5070echo "${ECHO_T}no" >&6; }
5071fi
5072
5073
5074export XARGS
5075# Extract the first word of "ldconfig", so it can be a program name with args.
5076set dummy ldconfig; ac_word=$2
5077{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5079if test "${ac_cv_path_LDCONFIG+set}" = set; then
5080  echo $ECHO_N "(cached) $ECHO_C" >&6
5081else
5082  case $LDCONFIG in
5083  [\\/]* | ?:[\\/]*)
5084  ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5085  ;;
5086  *)
5087  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088as_dummy="$PATH:/sbin:/usr/local/sbin"
5089for as_dir in $as_dummy
5090do
5091  IFS=$as_save_IFS
5092  test -z "$as_dir" && as_dir=.
5093  for ac_exec_ext in '' $ac_executable_extensions; do
5094  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5095    ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5096    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5097    break 2
5098  fi
5099done
5100done
5101IFS=$as_save_IFS
5102
5103  test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="ldconfig"
5104  ;;
5105esac
5106fi
5107LDCONFIG=$ac_cv_path_LDCONFIG
5108if test -n "$LDCONFIG"; then
5109  { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
5110echo "${ECHO_T}$LDCONFIG" >&6; }
5111else
5112  { echo "$as_me:$LINENO: result: no" >&5
5113echo "${ECHO_T}no" >&6; }
5114fi
5115
5116
5117export LDCONFIG
5118# Extract the first word of "sed", so it can be a program name with args.
5119set dummy sed; ac_word=$2
5120{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5122if test "${ac_cv_path_SED+set}" = set; then
5123  echo $ECHO_N "(cached) $ECHO_C" >&6
5124else
5125  case $SED in
5126  [\\/]* | ?:[\\/]*)
5127  ac_cv_path_SED="$SED" # Let the user override the test with a path.
5128  ;;
5129  *)
5130  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131for as_dir in $PATH
5132do
5133  IFS=$as_save_IFS
5134  test -z "$as_dir" && as_dir=.
5135  for ac_exec_ext in '' $ac_executable_extensions; do
5136  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5137    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5138    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5139    break 2
5140  fi
5141done
5142done
5143IFS=$as_save_IFS
5144
5145  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5146  ;;
5147esac
5148fi
5149SED=$ac_cv_path_SED
5150if test -n "$SED"; then
5151  { echo "$as_me:$LINENO: result: $SED" >&5
5152echo "${ECHO_T}$SED" >&6; }
5153else
5154  { echo "$as_me:$LINENO: result: no" >&5
5155echo "${ECHO_T}no" >&6; }
5156fi
5157
5158
5159export SED
5160
5161
5162{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5163echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5164if test "${ac_cv_header_stdc+set}" = set; then
5165  echo $ECHO_N "(cached) $ECHO_C" >&6
5166else
5167  cat >conftest.$ac_ext <<_ACEOF
5168/* confdefs.h.  */
5169_ACEOF
5170cat confdefs.h >>conftest.$ac_ext
5171cat >>conftest.$ac_ext <<_ACEOF
5172/* end confdefs.h.  */
5173#include <stdlib.h>
5174#include <stdarg.h>
5175#include <string.h>
5176#include <float.h>
5177
5178int
5179main ()
5180{
5181
5182  ;
5183  return 0;
5184}
5185_ACEOF
5186rm -f conftest.$ac_objext
5187if { (ac_try="$ac_compile"
5188case "(($ac_try" in
5189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5190  *) ac_try_echo=$ac_try;;
5191esac
5192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5193  (eval "$ac_compile") 2>conftest.er1
5194  ac_status=$?
5195  grep -v '^ *+' conftest.er1 >conftest.err
5196  rm -f conftest.er1
5197  cat conftest.err >&5
5198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199  (exit $ac_status); } && {
5200	 test -z "$ac_c_werror_flag" ||
5201	 test ! -s conftest.err
5202       } && test -s conftest.$ac_objext; then
5203  ac_cv_header_stdc=yes
5204else
5205  echo "$as_me: failed program was:" >&5
5206sed 's/^/| /' conftest.$ac_ext >&5
5207
5208	ac_cv_header_stdc=no
5209fi
5210
5211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5212
5213if test $ac_cv_header_stdc = yes; then
5214  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5215  cat >conftest.$ac_ext <<_ACEOF
5216/* confdefs.h.  */
5217_ACEOF
5218cat confdefs.h >>conftest.$ac_ext
5219cat >>conftest.$ac_ext <<_ACEOF
5220/* end confdefs.h.  */
5221#include <string.h>
5222
5223_ACEOF
5224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5225  $EGREP "memchr" >/dev/null 2>&1; then
5226  :
5227else
5228  ac_cv_header_stdc=no
5229fi
5230rm -f conftest*
5231
5232fi
5233
5234if test $ac_cv_header_stdc = yes; then
5235  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5236  cat >conftest.$ac_ext <<_ACEOF
5237/* confdefs.h.  */
5238_ACEOF
5239cat confdefs.h >>conftest.$ac_ext
5240cat >>conftest.$ac_ext <<_ACEOF
5241/* end confdefs.h.  */
5242#include <stdlib.h>
5243
5244_ACEOF
5245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5246  $EGREP "free" >/dev/null 2>&1; then
5247  :
5248else
5249  ac_cv_header_stdc=no
5250fi
5251rm -f conftest*
5252
5253fi
5254
5255if test $ac_cv_header_stdc = yes; then
5256  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5257  if test "$cross_compiling" = yes; then
5258  :
5259else
5260  cat >conftest.$ac_ext <<_ACEOF
5261/* confdefs.h.  */
5262_ACEOF
5263cat confdefs.h >>conftest.$ac_ext
5264cat >>conftest.$ac_ext <<_ACEOF
5265/* end confdefs.h.  */
5266#include <ctype.h>
5267#include <stdlib.h>
5268#if ((' ' & 0x0FF) == 0x020)
5269# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5270# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5271#else
5272# define ISLOWER(c) \
5273		   (('a' <= (c) && (c) <= 'i') \
5274		     || ('j' <= (c) && (c) <= 'r') \
5275		     || ('s' <= (c) && (c) <= 'z'))
5276# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5277#endif
5278
5279#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5280int
5281main ()
5282{
5283  int i;
5284  for (i = 0; i < 256; i++)
5285    if (XOR (islower (i), ISLOWER (i))
5286	|| toupper (i) != TOUPPER (i))
5287      return 2;
5288  return 0;
5289}
5290_ACEOF
5291rm -f conftest$ac_exeext
5292if { (ac_try="$ac_link"
5293case "(($ac_try" in
5294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5295  *) ac_try_echo=$ac_try;;
5296esac
5297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5298  (eval "$ac_link") 2>&5
5299  ac_status=$?
5300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5302  { (case "(($ac_try" in
5303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5304  *) ac_try_echo=$ac_try;;
5305esac
5306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5307  (eval "$ac_try") 2>&5
5308  ac_status=$?
5309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310  (exit $ac_status); }; }; then
5311  :
5312else
5313  echo "$as_me: program exited with status $ac_status" >&5
5314echo "$as_me: failed program was:" >&5
5315sed 's/^/| /' conftest.$ac_ext >&5
5316
5317( exit $ac_status )
5318ac_cv_header_stdc=no
5319fi
5320rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5321fi
5322
5323
5324fi
5325fi
5326{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5327echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5328if test $ac_cv_header_stdc = yes; then
5329
5330cat >>confdefs.h <<\_ACEOF
5331#define STDC_HEADERS 1
5332_ACEOF
5333
5334fi
5335
5336# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5347		  inttypes.h stdint.h unistd.h
5348do
5349as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5350{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5351echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5352if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5353  echo $ECHO_N "(cached) $ECHO_C" >&6
5354else
5355  cat >conftest.$ac_ext <<_ACEOF
5356/* confdefs.h.  */
5357_ACEOF
5358cat confdefs.h >>conftest.$ac_ext
5359cat >>conftest.$ac_ext <<_ACEOF
5360/* end confdefs.h.  */
5361$ac_includes_default
5362
5363#include <$ac_header>
5364_ACEOF
5365rm -f conftest.$ac_objext
5366if { (ac_try="$ac_compile"
5367case "(($ac_try" in
5368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369  *) ac_try_echo=$ac_try;;
5370esac
5371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5372  (eval "$ac_compile") 2>conftest.er1
5373  ac_status=$?
5374  grep -v '^ *+' conftest.er1 >conftest.err
5375  rm -f conftest.er1
5376  cat conftest.err >&5
5377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378  (exit $ac_status); } && {
5379	 test -z "$ac_c_werror_flag" ||
5380	 test ! -s conftest.err
5381       } && test -s conftest.$ac_objext; then
5382  eval "$as_ac_Header=yes"
5383else
5384  echo "$as_me: failed program was:" >&5
5385sed 's/^/| /' conftest.$ac_ext >&5
5386
5387	eval "$as_ac_Header=no"
5388fi
5389
5390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391fi
5392ac_res=`eval echo '${'$as_ac_Header'}'`
5393	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5394echo "${ECHO_T}$ac_res" >&6; }
5395if test `eval echo '${'$as_ac_Header'}'` = yes; then
5396  cat >>confdefs.h <<_ACEOF
5397#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5398_ACEOF
5399
5400fi
5401
5402done
5403
5404
5405{ echo "$as_me:$LINENO: checking for wait3 that fills in rusage" >&5
5406echo $ECHO_N "checking for wait3 that fills in rusage... $ECHO_C" >&6; }
5407if test "${ac_cv_func_wait3_rusage+set}" = set; then
5408  echo $ECHO_N "(cached) $ECHO_C" >&6
5409else
5410  if test "$cross_compiling" = yes; then
5411  ac_cv_func_wait3_rusage=no
5412else
5413  cat >conftest.$ac_ext <<_ACEOF
5414/* confdefs.h.  */
5415_ACEOF
5416cat confdefs.h >>conftest.$ac_ext
5417cat >>conftest.$ac_ext <<_ACEOF
5418/* end confdefs.h.  */
5419$ac_includes_default
5420#include <sys/time.h>
5421#include <sys/resource.h>
5422#include <sys/wait.h>
5423/* HP-UX has wait3 but does not fill in rusage at all.  */
5424int
5425main ()
5426{
5427  struct rusage r;
5428  int i;
5429  /* Use a field that we can force nonzero --
5430     voluntary context switches.
5431     For systems like NeXT and OSF/1 that don't set it,
5432     also use the system CPU time.  And page faults (I/O) for Linux.  */
5433  r.ru_nvcsw = 0;
5434  r.ru_stime.tv_sec = 0;
5435  r.ru_stime.tv_usec = 0;
5436  r.ru_majflt = r.ru_minflt = 0;
5437  switch (fork ())
5438    {
5439    case 0: /* Child.  */
5440      sleep(1); /* Give up the CPU.  */
5441      _exit(0);
5442      break;
5443    case -1: /* What can we do?  */
5444      _exit(0);
5445      break;
5446    default: /* Parent.  */
5447      wait3(&i, 0, &r);
5448      /* Avoid "text file busy" from rm on fast HP-UX machines.  */
5449      sleep(2);
5450      return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
5451	      && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
5452    }
5453}
5454_ACEOF
5455rm -f conftest$ac_exeext
5456if { (ac_try="$ac_link"
5457case "(($ac_try" in
5458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5459  *) ac_try_echo=$ac_try;;
5460esac
5461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5462  (eval "$ac_link") 2>&5
5463  ac_status=$?
5464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5466  { (case "(($ac_try" in
5467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5468  *) ac_try_echo=$ac_try;;
5469esac
5470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5471  (eval "$ac_try") 2>&5
5472  ac_status=$?
5473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474  (exit $ac_status); }; }; then
5475  ac_cv_func_wait3_rusage=yes
5476else
5477  echo "$as_me: program exited with status $ac_status" >&5
5478echo "$as_me: failed program was:" >&5
5479sed 's/^/| /' conftest.$ac_ext >&5
5480
5481( exit $ac_status )
5482ac_cv_func_wait3_rusage=no
5483fi
5484rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5485fi
5486
5487
5488fi
5489{ echo "$as_me:$LINENO: result: $ac_cv_func_wait3_rusage" >&5
5490echo "${ECHO_T}$ac_cv_func_wait3_rusage" >&6; }
5491if test $ac_cv_func_wait3_rusage = yes; then
5492
5493cat >>confdefs.h <<\_ACEOF
5494#define HAVE_WAIT3 1
5495_ACEOF
5496
5497fi
5498
5499if test "x$ac_cv_func_wait3_rusage" = "xyes"; then
5500	DO_HAVE_WAIT3=yes
5501	export DO_HAVE_WAIT3
5502fi
5503
5504{ echo "$as_me:$LINENO: checking for X" >&5
5505echo $ECHO_N "checking for X... $ECHO_C" >&6; }
5506
5507
5508# Check whether --with-x was given.
5509if test "${with_x+set}" = set; then
5510  withval=$with_x;
5511fi
5512
5513# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5514if test "x$with_x" = xno; then
5515  # The user explicitly disabled X.
5516  have_x=disabled
5517else
5518  case $x_includes,$x_libraries in #(
5519    *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
5520echo "$as_me: error: Cannot use X directory names containing '" >&2;}
5521   { (exit 1); exit 1; }; };; #(
5522    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
5523  echo $ECHO_N "(cached) $ECHO_C" >&6
5524else
5525  # One or both of the vars are not set, and there is no cached value.
5526ac_x_includes=no ac_x_libraries=no
5527rm -f -r conftest.dir
5528if mkdir conftest.dir; then
5529  cd conftest.dir
5530  cat >Imakefile <<'_ACEOF'
5531incroot:
5532	@echo incroot='${INCROOT}'
5533usrlibdir:
5534	@echo usrlibdir='${USRLIBDIR}'
5535libdir:
5536	@echo libdir='${LIBDIR}'
5537_ACEOF
5538  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5539    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5540    for ac_var in incroot usrlibdir libdir; do
5541      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5542    done
5543    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5544    for ac_extension in a so sl; do
5545      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5546	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5547	ac_im_usrlibdir=$ac_im_libdir; break
5548      fi
5549    done
5550    # Screen out bogus values from the imake configuration.  They are
5551    # bogus both because they are the default anyway, and because
5552    # using them would break gcc on systems where it needs fixed includes.
5553    case $ac_im_incroot in
5554	/usr/include) ac_x_includes= ;;
5555	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5556    esac
5557    case $ac_im_usrlibdir in
5558	/usr/lib | /lib) ;;
5559	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5560    esac
5561  fi
5562  cd ..
5563  rm -f -r conftest.dir
5564fi
5565
5566# Standard set of common directories for X headers.
5567# Check X11 before X11Rn because it is often a symlink to the current release.
5568ac_x_header_dirs='
5569/usr/X11/include
5570/usr/X11R6/include
5571/usr/X11R5/include
5572/usr/X11R4/include
5573
5574/usr/include/X11
5575/usr/include/X11R6
5576/usr/include/X11R5
5577/usr/include/X11R4
5578
5579/usr/local/X11/include
5580/usr/local/X11R6/include
5581/usr/local/X11R5/include
5582/usr/local/X11R4/include
5583
5584/usr/local/include/X11
5585/usr/local/include/X11R6
5586/usr/local/include/X11R5
5587/usr/local/include/X11R4
5588
5589/usr/X386/include
5590/usr/x386/include
5591/usr/XFree86/include/X11
5592
5593/usr/include
5594/usr/local/include
5595/usr/unsupported/include
5596/usr/athena/include
5597/usr/local/x11r5/include
5598/usr/lpp/Xamples/include
5599
5600/usr/openwin/include
5601/usr/openwin/share/include'
5602
5603if test "$ac_x_includes" = no; then
5604  # Guess where to find include files, by looking for Xlib.h.
5605  # First, try using that file with no special directory specified.
5606  cat >conftest.$ac_ext <<_ACEOF
5607/* confdefs.h.  */
5608_ACEOF
5609cat confdefs.h >>conftest.$ac_ext
5610cat >>conftest.$ac_ext <<_ACEOF
5611/* end confdefs.h.  */
5612#include <X11/Xlib.h>
5613_ACEOF
5614if { (ac_try="$ac_cpp conftest.$ac_ext"
5615case "(($ac_try" in
5616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617  *) ac_try_echo=$ac_try;;
5618esac
5619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5620  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5621  ac_status=$?
5622  grep -v '^ *+' conftest.er1 >conftest.err
5623  rm -f conftest.er1
5624  cat conftest.err >&5
5625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626  (exit $ac_status); } >/dev/null && {
5627	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5628	 test ! -s conftest.err
5629       }; then
5630  # We can compile using X headers with no special include directory.
5631ac_x_includes=
5632else
5633  echo "$as_me: failed program was:" >&5
5634sed 's/^/| /' conftest.$ac_ext >&5
5635
5636  for ac_dir in $ac_x_header_dirs; do
5637  if test -r "$ac_dir/X11/Xlib.h"; then
5638    ac_x_includes=$ac_dir
5639    break
5640  fi
5641done
5642fi
5643
5644rm -f conftest.err conftest.$ac_ext
5645fi # $ac_x_includes = no
5646
5647if test "$ac_x_libraries" = no; then
5648  # Check for the libraries.
5649  # See if we find them without any special options.
5650  # Don't add to $LIBS permanently.
5651  ac_save_LIBS=$LIBS
5652  LIBS="-lX11 $LIBS"
5653  cat >conftest.$ac_ext <<_ACEOF
5654/* confdefs.h.  */
5655_ACEOF
5656cat confdefs.h >>conftest.$ac_ext
5657cat >>conftest.$ac_ext <<_ACEOF
5658/* end confdefs.h.  */
5659#include <X11/Xlib.h>
5660int
5661main ()
5662{
5663XrmInitialize ()
5664  ;
5665  return 0;
5666}
5667_ACEOF
5668rm -f conftest.$ac_objext conftest$ac_exeext
5669if { (ac_try="$ac_link"
5670case "(($ac_try" in
5671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672  *) ac_try_echo=$ac_try;;
5673esac
5674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5675  (eval "$ac_link") 2>conftest.er1
5676  ac_status=$?
5677  grep -v '^ *+' conftest.er1 >conftest.err
5678  rm -f conftest.er1
5679  cat conftest.err >&5
5680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681  (exit $ac_status); } && {
5682	 test -z "$ac_c_werror_flag" ||
5683	 test ! -s conftest.err
5684       } && test -s conftest$ac_exeext &&
5685       $as_test_x conftest$ac_exeext; then
5686  LIBS=$ac_save_LIBS
5687# We can link X programs with no special library path.
5688ac_x_libraries=
5689else
5690  echo "$as_me: failed program was:" >&5
5691sed 's/^/| /' conftest.$ac_ext >&5
5692
5693	LIBS=$ac_save_LIBS
5694for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5695do
5696  # Don't even attempt the hair of trying to link an X program!
5697  for ac_extension in a so sl; do
5698    if test -r "$ac_dir/libX11.$ac_extension"; then
5699      ac_x_libraries=$ac_dir
5700      break 2
5701    fi
5702  done
5703done
5704fi
5705
5706rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5707      conftest$ac_exeext conftest.$ac_ext
5708fi # $ac_x_libraries = no
5709
5710case $ac_x_includes,$ac_x_libraries in #(
5711  no,* | *,no | *\'*)
5712    # Didn't find X, or a directory has "'" in its name.
5713    ac_cv_have_x="have_x=no";; #(
5714  *)
5715    # Record where we found X for the cache.
5716    ac_cv_have_x="have_x=yes\
5717	ac_x_includes='$ac_x_includes'\
5718	ac_x_libraries='$ac_x_libraries'"
5719esac
5720fi
5721;; #(
5722    *) have_x=yes;;
5723  esac
5724  eval "$ac_cv_have_x"
5725fi # $with_x != no
5726
5727if test "$have_x" != yes; then
5728  { echo "$as_me:$LINENO: result: $have_x" >&5
5729echo "${ECHO_T}$have_x" >&6; }
5730  no_x=yes
5731else
5732  # If each of the values was on the command line, it overrides each guess.
5733  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5734  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5735  # Update the cache value to reflect the command line values.
5736  ac_cv_have_x="have_x=yes\
5737	ac_x_includes='$x_includes'\
5738	ac_x_libraries='$x_libraries'"
5739  { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5740echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
5741fi
5742
5743if test "$no_x" = yes; then
5744  # Not all programs may use this symbol, but it does not hurt to define it.
5745
5746cat >>confdefs.h <<\_ACEOF
5747#define X_DISPLAY_MISSING 1
5748_ACEOF
5749
5750  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5751else
5752  if test -n "$x_includes"; then
5753    X_CFLAGS="$X_CFLAGS -I$x_includes"
5754  fi
5755
5756  # It would also be nice to do this for all -L options, not just this one.
5757  if test -n "$x_libraries"; then
5758    X_LIBS="$X_LIBS -L$x_libraries"
5759    # For Solaris; some versions of Sun CC require a space after -R and
5760    # others require no space.  Words are not sufficient . . . .
5761    { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5762echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
5763    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5764    ac_xsave_c_werror_flag=$ac_c_werror_flag
5765    ac_c_werror_flag=yes
5766    cat >conftest.$ac_ext <<_ACEOF
5767/* confdefs.h.  */
5768_ACEOF
5769cat confdefs.h >>conftest.$ac_ext
5770cat >>conftest.$ac_ext <<_ACEOF
5771/* end confdefs.h.  */
5772
5773int
5774main ()
5775{
5776
5777  ;
5778  return 0;
5779}
5780_ACEOF
5781rm -f conftest.$ac_objext conftest$ac_exeext
5782if { (ac_try="$ac_link"
5783case "(($ac_try" in
5784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5785  *) ac_try_echo=$ac_try;;
5786esac
5787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5788  (eval "$ac_link") 2>conftest.er1
5789  ac_status=$?
5790  grep -v '^ *+' conftest.er1 >conftest.err
5791  rm -f conftest.er1
5792  cat conftest.err >&5
5793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794  (exit $ac_status); } && {
5795	 test -z "$ac_c_werror_flag" ||
5796	 test ! -s conftest.err
5797       } && test -s conftest$ac_exeext &&
5798       $as_test_x conftest$ac_exeext; then
5799  { echo "$as_me:$LINENO: result: no" >&5
5800echo "${ECHO_T}no" >&6; }
5801       X_LIBS="$X_LIBS -R$x_libraries"
5802else
5803  echo "$as_me: failed program was:" >&5
5804sed 's/^/| /' conftest.$ac_ext >&5
5805
5806	LIBS="$ac_xsave_LIBS -R $x_libraries"
5807       cat >conftest.$ac_ext <<_ACEOF
5808/* confdefs.h.  */
5809_ACEOF
5810cat confdefs.h >>conftest.$ac_ext
5811cat >>conftest.$ac_ext <<_ACEOF
5812/* end confdefs.h.  */
5813
5814int
5815main ()
5816{
5817
5818  ;
5819  return 0;
5820}
5821_ACEOF
5822rm -f conftest.$ac_objext conftest$ac_exeext
5823if { (ac_try="$ac_link"
5824case "(($ac_try" in
5825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826  *) ac_try_echo=$ac_try;;
5827esac
5828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5829  (eval "$ac_link") 2>conftest.er1
5830  ac_status=$?
5831  grep -v '^ *+' conftest.er1 >conftest.err
5832  rm -f conftest.er1
5833  cat conftest.err >&5
5834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835  (exit $ac_status); } && {
5836	 test -z "$ac_c_werror_flag" ||
5837	 test ! -s conftest.err
5838       } && test -s conftest$ac_exeext &&
5839       $as_test_x conftest$ac_exeext; then
5840  { echo "$as_me:$LINENO: result: yes" >&5
5841echo "${ECHO_T}yes" >&6; }
5842	  X_LIBS="$X_LIBS -R $x_libraries"
5843else
5844  echo "$as_me: failed program was:" >&5
5845sed 's/^/| /' conftest.$ac_ext >&5
5846
5847	{ echo "$as_me:$LINENO: result: neither works" >&5
5848echo "${ECHO_T}neither works" >&6; }
5849fi
5850
5851rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5852      conftest$ac_exeext conftest.$ac_ext
5853fi
5854
5855rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5856      conftest$ac_exeext conftest.$ac_ext
5857    ac_c_werror_flag=$ac_xsave_c_werror_flag
5858    LIBS=$ac_xsave_LIBS
5859  fi
5860
5861  # Check for system-dependent libraries X programs must link with.
5862  # Do this before checking for the system-independent R6 libraries
5863  # (-lICE), since we may need -lsocket or whatever for X linking.
5864
5865  if test "$ISC" = yes; then
5866    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5867  else
5868    # Martyn Johnson says this is needed for Ultrix, if the X
5869    # libraries were built with DECnet support.  And Karl Berry says
5870    # the Alpha needs dnet_stub (dnet does not exist).
5871    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5872    cat >conftest.$ac_ext <<_ACEOF
5873/* confdefs.h.  */
5874_ACEOF
5875cat confdefs.h >>conftest.$ac_ext
5876cat >>conftest.$ac_ext <<_ACEOF
5877/* end confdefs.h.  */
5878
5879/* Override any GCC internal prototype to avoid an error.
5880   Use char because int might match the return type of a GCC
5881   builtin and then its argument prototype would still apply.  */
5882#ifdef __cplusplus
5883extern "C"
5884#endif
5885char XOpenDisplay ();
5886int
5887main ()
5888{
5889return XOpenDisplay ();
5890  ;
5891  return 0;
5892}
5893_ACEOF
5894rm -f conftest.$ac_objext conftest$ac_exeext
5895if { (ac_try="$ac_link"
5896case "(($ac_try" in
5897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898  *) ac_try_echo=$ac_try;;
5899esac
5900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5901  (eval "$ac_link") 2>conftest.er1
5902  ac_status=$?
5903  grep -v '^ *+' conftest.er1 >conftest.err
5904  rm -f conftest.er1
5905  cat conftest.err >&5
5906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907  (exit $ac_status); } && {
5908	 test -z "$ac_c_werror_flag" ||
5909	 test ! -s conftest.err
5910       } && test -s conftest$ac_exeext &&
5911       $as_test_x conftest$ac_exeext; then
5912  :
5913else
5914  echo "$as_me: failed program was:" >&5
5915sed 's/^/| /' conftest.$ac_ext >&5
5916
5917	{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5918echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
5919if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5920  echo $ECHO_N "(cached) $ECHO_C" >&6
5921else
5922  ac_check_lib_save_LIBS=$LIBS
5923LIBS="-ldnet  $LIBS"
5924cat >conftest.$ac_ext <<_ACEOF
5925/* confdefs.h.  */
5926_ACEOF
5927cat confdefs.h >>conftest.$ac_ext
5928cat >>conftest.$ac_ext <<_ACEOF
5929/* end confdefs.h.  */
5930
5931/* Override any GCC internal prototype to avoid an error.
5932   Use char because int might match the return type of a GCC
5933   builtin and then its argument prototype would still apply.  */
5934#ifdef __cplusplus
5935extern "C"
5936#endif
5937char dnet_ntoa ();
5938int
5939main ()
5940{
5941return dnet_ntoa ();
5942  ;
5943  return 0;
5944}
5945_ACEOF
5946rm -f conftest.$ac_objext conftest$ac_exeext
5947if { (ac_try="$ac_link"
5948case "(($ac_try" in
5949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950  *) ac_try_echo=$ac_try;;
5951esac
5952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5953  (eval "$ac_link") 2>conftest.er1
5954  ac_status=$?
5955  grep -v '^ *+' conftest.er1 >conftest.err
5956  rm -f conftest.er1
5957  cat conftest.err >&5
5958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959  (exit $ac_status); } && {
5960	 test -z "$ac_c_werror_flag" ||
5961	 test ! -s conftest.err
5962       } && test -s conftest$ac_exeext &&
5963       $as_test_x conftest$ac_exeext; then
5964  ac_cv_lib_dnet_dnet_ntoa=yes
5965else
5966  echo "$as_me: failed program was:" >&5
5967sed 's/^/| /' conftest.$ac_ext >&5
5968
5969	ac_cv_lib_dnet_dnet_ntoa=no
5970fi
5971
5972rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5973      conftest$ac_exeext conftest.$ac_ext
5974LIBS=$ac_check_lib_save_LIBS
5975fi
5976{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5977echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5978if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5979  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5980fi
5981
5982    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5983      { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5984echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
5985if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5986  echo $ECHO_N "(cached) $ECHO_C" >&6
5987else
5988  ac_check_lib_save_LIBS=$LIBS
5989LIBS="-ldnet_stub  $LIBS"
5990cat >conftest.$ac_ext <<_ACEOF
5991/* confdefs.h.  */
5992_ACEOF
5993cat confdefs.h >>conftest.$ac_ext
5994cat >>conftest.$ac_ext <<_ACEOF
5995/* end confdefs.h.  */
5996
5997/* Override any GCC internal prototype to avoid an error.
5998   Use char because int might match the return type of a GCC
5999   builtin and then its argument prototype would still apply.  */
6000#ifdef __cplusplus
6001extern "C"
6002#endif
6003char dnet_ntoa ();
6004int
6005main ()
6006{
6007return dnet_ntoa ();
6008  ;
6009  return 0;
6010}
6011_ACEOF
6012rm -f conftest.$ac_objext conftest$ac_exeext
6013if { (ac_try="$ac_link"
6014case "(($ac_try" in
6015  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6016  *) ac_try_echo=$ac_try;;
6017esac
6018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6019  (eval "$ac_link") 2>conftest.er1
6020  ac_status=$?
6021  grep -v '^ *+' conftest.er1 >conftest.err
6022  rm -f conftest.er1
6023  cat conftest.err >&5
6024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025  (exit $ac_status); } && {
6026	 test -z "$ac_c_werror_flag" ||
6027	 test ! -s conftest.err
6028       } && test -s conftest$ac_exeext &&
6029       $as_test_x conftest$ac_exeext; then
6030  ac_cv_lib_dnet_stub_dnet_ntoa=yes
6031else
6032  echo "$as_me: failed program was:" >&5
6033sed 's/^/| /' conftest.$ac_ext >&5
6034
6035	ac_cv_lib_dnet_stub_dnet_ntoa=no
6036fi
6037
6038rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6039      conftest$ac_exeext conftest.$ac_ext
6040LIBS=$ac_check_lib_save_LIBS
6041fi
6042{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6043echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6044if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6045  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6046fi
6047
6048    fi
6049fi
6050
6051rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6052      conftest$ac_exeext conftest.$ac_ext
6053    LIBS="$ac_xsave_LIBS"
6054
6055    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6056    # to get the SysV transport functions.
6057    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6058    # needs -lnsl.
6059    # The nsl library prevents programs from opening the X display
6060    # on Irix 5.2, according to T.E. Dickey.
6061    # The functions gethostbyname, getservbyname, and inet_addr are
6062    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6063    { echo "$as_me:$LINENO: checking for gethostbyname" >&5
6064echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
6065if test "${ac_cv_func_gethostbyname+set}" = set; then
6066  echo $ECHO_N "(cached) $ECHO_C" >&6
6067else
6068  cat >conftest.$ac_ext <<_ACEOF
6069/* confdefs.h.  */
6070_ACEOF
6071cat confdefs.h >>conftest.$ac_ext
6072cat >>conftest.$ac_ext <<_ACEOF
6073/* end confdefs.h.  */
6074/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6075   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6076#define gethostbyname innocuous_gethostbyname
6077
6078/* System header to define __stub macros and hopefully few prototypes,
6079    which can conflict with char gethostbyname (); below.
6080    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6081    <limits.h> exists even on freestanding compilers.  */
6082
6083#ifdef __STDC__
6084# include <limits.h>
6085#else
6086# include <assert.h>
6087#endif
6088
6089#undef gethostbyname
6090
6091/* Override any GCC internal prototype to avoid an error.
6092   Use char because int might match the return type of a GCC
6093   builtin and then its argument prototype would still apply.  */
6094#ifdef __cplusplus
6095extern "C"
6096#endif
6097char gethostbyname ();
6098/* The GNU C library defines this for functions which it implements
6099    to always fail with ENOSYS.  Some functions are actually named
6100    something starting with __ and the normal name is an alias.  */
6101#if defined __stub_gethostbyname || defined __stub___gethostbyname
6102choke me
6103#endif
6104
6105int
6106main ()
6107{
6108return gethostbyname ();
6109  ;
6110  return 0;
6111}
6112_ACEOF
6113rm -f conftest.$ac_objext conftest$ac_exeext
6114if { (ac_try="$ac_link"
6115case "(($ac_try" in
6116  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6117  *) ac_try_echo=$ac_try;;
6118esac
6119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6120  (eval "$ac_link") 2>conftest.er1
6121  ac_status=$?
6122  grep -v '^ *+' conftest.er1 >conftest.err
6123  rm -f conftest.er1
6124  cat conftest.err >&5
6125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126  (exit $ac_status); } && {
6127	 test -z "$ac_c_werror_flag" ||
6128	 test ! -s conftest.err
6129       } && test -s conftest$ac_exeext &&
6130       $as_test_x conftest$ac_exeext; then
6131  ac_cv_func_gethostbyname=yes
6132else
6133  echo "$as_me: failed program was:" >&5
6134sed 's/^/| /' conftest.$ac_ext >&5
6135
6136	ac_cv_func_gethostbyname=no
6137fi
6138
6139rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6140      conftest$ac_exeext conftest.$ac_ext
6141fi
6142{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6143echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
6144
6145    if test $ac_cv_func_gethostbyname = no; then
6146      { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6147echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
6148if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6149  echo $ECHO_N "(cached) $ECHO_C" >&6
6150else
6151  ac_check_lib_save_LIBS=$LIBS
6152LIBS="-lnsl  $LIBS"
6153cat >conftest.$ac_ext <<_ACEOF
6154/* confdefs.h.  */
6155_ACEOF
6156cat confdefs.h >>conftest.$ac_ext
6157cat >>conftest.$ac_ext <<_ACEOF
6158/* end confdefs.h.  */
6159
6160/* Override any GCC internal prototype to avoid an error.
6161   Use char because int might match the return type of a GCC
6162   builtin and then its argument prototype would still apply.  */
6163#ifdef __cplusplus
6164extern "C"
6165#endif
6166char gethostbyname ();
6167int
6168main ()
6169{
6170return gethostbyname ();
6171  ;
6172  return 0;
6173}
6174_ACEOF
6175rm -f conftest.$ac_objext conftest$ac_exeext
6176if { (ac_try="$ac_link"
6177case "(($ac_try" in
6178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179  *) ac_try_echo=$ac_try;;
6180esac
6181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6182  (eval "$ac_link") 2>conftest.er1
6183  ac_status=$?
6184  grep -v '^ *+' conftest.er1 >conftest.err
6185  rm -f conftest.er1
6186  cat conftest.err >&5
6187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188  (exit $ac_status); } && {
6189	 test -z "$ac_c_werror_flag" ||
6190	 test ! -s conftest.err
6191       } && test -s conftest$ac_exeext &&
6192       $as_test_x conftest$ac_exeext; then
6193  ac_cv_lib_nsl_gethostbyname=yes
6194else
6195  echo "$as_me: failed program was:" >&5
6196sed 's/^/| /' conftest.$ac_ext >&5
6197
6198	ac_cv_lib_nsl_gethostbyname=no
6199fi
6200
6201rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6202      conftest$ac_exeext conftest.$ac_ext
6203LIBS=$ac_check_lib_save_LIBS
6204fi
6205{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6206echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
6207if test $ac_cv_lib_nsl_gethostbyname = yes; then
6208  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6209fi
6210
6211      if test $ac_cv_lib_nsl_gethostbyname = no; then
6212	{ echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6213echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
6214if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6215  echo $ECHO_N "(cached) $ECHO_C" >&6
6216else
6217  ac_check_lib_save_LIBS=$LIBS
6218LIBS="-lbsd  $LIBS"
6219cat >conftest.$ac_ext <<_ACEOF
6220/* confdefs.h.  */
6221_ACEOF
6222cat confdefs.h >>conftest.$ac_ext
6223cat >>conftest.$ac_ext <<_ACEOF
6224/* end confdefs.h.  */
6225
6226/* Override any GCC internal prototype to avoid an error.
6227   Use char because int might match the return type of a GCC
6228   builtin and then its argument prototype would still apply.  */
6229#ifdef __cplusplus
6230extern "C"
6231#endif
6232char gethostbyname ();
6233int
6234main ()
6235{
6236return gethostbyname ();
6237  ;
6238  return 0;
6239}
6240_ACEOF
6241rm -f conftest.$ac_objext conftest$ac_exeext
6242if { (ac_try="$ac_link"
6243case "(($ac_try" in
6244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6245  *) ac_try_echo=$ac_try;;
6246esac
6247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6248  (eval "$ac_link") 2>conftest.er1
6249  ac_status=$?
6250  grep -v '^ *+' conftest.er1 >conftest.err
6251  rm -f conftest.er1
6252  cat conftest.err >&5
6253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254  (exit $ac_status); } && {
6255	 test -z "$ac_c_werror_flag" ||
6256	 test ! -s conftest.err
6257       } && test -s conftest$ac_exeext &&
6258       $as_test_x conftest$ac_exeext; then
6259  ac_cv_lib_bsd_gethostbyname=yes
6260else
6261  echo "$as_me: failed program was:" >&5
6262sed 's/^/| /' conftest.$ac_ext >&5
6263
6264	ac_cv_lib_bsd_gethostbyname=no
6265fi
6266
6267rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6268      conftest$ac_exeext conftest.$ac_ext
6269LIBS=$ac_check_lib_save_LIBS
6270fi
6271{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6272echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
6273if test $ac_cv_lib_bsd_gethostbyname = yes; then
6274  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6275fi
6276
6277      fi
6278    fi
6279
6280    # lieder@skyler.mavd.honeywell.com says without -lsocket,
6281    # socket/setsockopt and other routines are undefined under SCO ODT
6282    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
6283    # on later versions), says Simon Leinen: it contains gethostby*
6284    # variants that don't use the name server (or something).  -lsocket
6285    # must be given before -lnsl if both are needed.  We assume that
6286    # if connect needs -lnsl, so does gethostbyname.
6287    { echo "$as_me:$LINENO: checking for connect" >&5
6288echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
6289if test "${ac_cv_func_connect+set}" = set; then
6290  echo $ECHO_N "(cached) $ECHO_C" >&6
6291else
6292  cat >conftest.$ac_ext <<_ACEOF
6293/* confdefs.h.  */
6294_ACEOF
6295cat confdefs.h >>conftest.$ac_ext
6296cat >>conftest.$ac_ext <<_ACEOF
6297/* end confdefs.h.  */
6298/* Define connect to an innocuous variant, in case <limits.h> declares connect.
6299   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6300#define connect innocuous_connect
6301
6302/* System header to define __stub macros and hopefully few prototypes,
6303    which can conflict with char connect (); below.
6304    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6305    <limits.h> exists even on freestanding compilers.  */
6306
6307#ifdef __STDC__
6308# include <limits.h>
6309#else
6310# include <assert.h>
6311#endif
6312
6313#undef connect
6314
6315/* Override any GCC internal prototype to avoid an error.
6316   Use char because int might match the return type of a GCC
6317   builtin and then its argument prototype would still apply.  */
6318#ifdef __cplusplus
6319extern "C"
6320#endif
6321char connect ();
6322/* The GNU C library defines this for functions which it implements
6323    to always fail with ENOSYS.  Some functions are actually named
6324    something starting with __ and the normal name is an alias.  */
6325#if defined __stub_connect || defined __stub___connect
6326choke me
6327#endif
6328
6329int
6330main ()
6331{
6332return connect ();
6333  ;
6334  return 0;
6335}
6336_ACEOF
6337rm -f conftest.$ac_objext conftest$ac_exeext
6338if { (ac_try="$ac_link"
6339case "(($ac_try" in
6340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6341  *) ac_try_echo=$ac_try;;
6342esac
6343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6344  (eval "$ac_link") 2>conftest.er1
6345  ac_status=$?
6346  grep -v '^ *+' conftest.er1 >conftest.err
6347  rm -f conftest.er1
6348  cat conftest.err >&5
6349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350  (exit $ac_status); } && {
6351	 test -z "$ac_c_werror_flag" ||
6352	 test ! -s conftest.err
6353       } && test -s conftest$ac_exeext &&
6354       $as_test_x conftest$ac_exeext; then
6355  ac_cv_func_connect=yes
6356else
6357  echo "$as_me: failed program was:" >&5
6358sed 's/^/| /' conftest.$ac_ext >&5
6359
6360	ac_cv_func_connect=no
6361fi
6362
6363rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6364      conftest$ac_exeext conftest.$ac_ext
6365fi
6366{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6367echo "${ECHO_T}$ac_cv_func_connect" >&6; }
6368
6369    if test $ac_cv_func_connect = no; then
6370      { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6371echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
6372if test "${ac_cv_lib_socket_connect+set}" = set; then
6373  echo $ECHO_N "(cached) $ECHO_C" >&6
6374else
6375  ac_check_lib_save_LIBS=$LIBS
6376LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6377cat >conftest.$ac_ext <<_ACEOF
6378/* confdefs.h.  */
6379_ACEOF
6380cat confdefs.h >>conftest.$ac_ext
6381cat >>conftest.$ac_ext <<_ACEOF
6382/* end confdefs.h.  */
6383
6384/* Override any GCC internal prototype to avoid an error.
6385   Use char because int might match the return type of a GCC
6386   builtin and then its argument prototype would still apply.  */
6387#ifdef __cplusplus
6388extern "C"
6389#endif
6390char connect ();
6391int
6392main ()
6393{
6394return connect ();
6395  ;
6396  return 0;
6397}
6398_ACEOF
6399rm -f conftest.$ac_objext conftest$ac_exeext
6400if { (ac_try="$ac_link"
6401case "(($ac_try" in
6402  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6403  *) ac_try_echo=$ac_try;;
6404esac
6405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6406  (eval "$ac_link") 2>conftest.er1
6407  ac_status=$?
6408  grep -v '^ *+' conftest.er1 >conftest.err
6409  rm -f conftest.er1
6410  cat conftest.err >&5
6411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412  (exit $ac_status); } && {
6413	 test -z "$ac_c_werror_flag" ||
6414	 test ! -s conftest.err
6415       } && test -s conftest$ac_exeext &&
6416       $as_test_x conftest$ac_exeext; then
6417  ac_cv_lib_socket_connect=yes
6418else
6419  echo "$as_me: failed program was:" >&5
6420sed 's/^/| /' conftest.$ac_ext >&5
6421
6422	ac_cv_lib_socket_connect=no
6423fi
6424
6425rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6426      conftest$ac_exeext conftest.$ac_ext
6427LIBS=$ac_check_lib_save_LIBS
6428fi
6429{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6430echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
6431if test $ac_cv_lib_socket_connect = yes; then
6432  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6433fi
6434
6435    fi
6436
6437    # Guillermo Gomez says -lposix is necessary on A/UX.
6438    { echo "$as_me:$LINENO: checking for remove" >&5
6439echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
6440if test "${ac_cv_func_remove+set}" = set; then
6441  echo $ECHO_N "(cached) $ECHO_C" >&6
6442else
6443  cat >conftest.$ac_ext <<_ACEOF
6444/* confdefs.h.  */
6445_ACEOF
6446cat confdefs.h >>conftest.$ac_ext
6447cat >>conftest.$ac_ext <<_ACEOF
6448/* end confdefs.h.  */
6449/* Define remove to an innocuous variant, in case <limits.h> declares remove.
6450   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6451#define remove innocuous_remove
6452
6453/* System header to define __stub macros and hopefully few prototypes,
6454    which can conflict with char remove (); below.
6455    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6456    <limits.h> exists even on freestanding compilers.  */
6457
6458#ifdef __STDC__
6459# include <limits.h>
6460#else
6461# include <assert.h>
6462#endif
6463
6464#undef remove
6465
6466/* Override any GCC internal prototype to avoid an error.
6467   Use char because int might match the return type of a GCC
6468   builtin and then its argument prototype would still apply.  */
6469#ifdef __cplusplus
6470extern "C"
6471#endif
6472char remove ();
6473/* The GNU C library defines this for functions which it implements
6474    to always fail with ENOSYS.  Some functions are actually named
6475    something starting with __ and the normal name is an alias.  */
6476#if defined __stub_remove || defined __stub___remove
6477choke me
6478#endif
6479
6480int
6481main ()
6482{
6483return remove ();
6484  ;
6485  return 0;
6486}
6487_ACEOF
6488rm -f conftest.$ac_objext conftest$ac_exeext
6489if { (ac_try="$ac_link"
6490case "(($ac_try" in
6491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6492  *) ac_try_echo=$ac_try;;
6493esac
6494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6495  (eval "$ac_link") 2>conftest.er1
6496  ac_status=$?
6497  grep -v '^ *+' conftest.er1 >conftest.err
6498  rm -f conftest.er1
6499  cat conftest.err >&5
6500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501  (exit $ac_status); } && {
6502	 test -z "$ac_c_werror_flag" ||
6503	 test ! -s conftest.err
6504       } && test -s conftest$ac_exeext &&
6505       $as_test_x conftest$ac_exeext; then
6506  ac_cv_func_remove=yes
6507else
6508  echo "$as_me: failed program was:" >&5
6509sed 's/^/| /' conftest.$ac_ext >&5
6510
6511	ac_cv_func_remove=no
6512fi
6513
6514rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6515      conftest$ac_exeext conftest.$ac_ext
6516fi
6517{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6518echo "${ECHO_T}$ac_cv_func_remove" >&6; }
6519
6520    if test $ac_cv_func_remove = no; then
6521      { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6522echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
6523if test "${ac_cv_lib_posix_remove+set}" = set; then
6524  echo $ECHO_N "(cached) $ECHO_C" >&6
6525else
6526  ac_check_lib_save_LIBS=$LIBS
6527LIBS="-lposix  $LIBS"
6528cat >conftest.$ac_ext <<_ACEOF
6529/* confdefs.h.  */
6530_ACEOF
6531cat confdefs.h >>conftest.$ac_ext
6532cat >>conftest.$ac_ext <<_ACEOF
6533/* end confdefs.h.  */
6534
6535/* Override any GCC internal prototype to avoid an error.
6536   Use char because int might match the return type of a GCC
6537   builtin and then its argument prototype would still apply.  */
6538#ifdef __cplusplus
6539extern "C"
6540#endif
6541char remove ();
6542int
6543main ()
6544{
6545return remove ();
6546  ;
6547  return 0;
6548}
6549_ACEOF
6550rm -f conftest.$ac_objext conftest$ac_exeext
6551if { (ac_try="$ac_link"
6552case "(($ac_try" in
6553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6554  *) ac_try_echo=$ac_try;;
6555esac
6556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6557  (eval "$ac_link") 2>conftest.er1
6558  ac_status=$?
6559  grep -v '^ *+' conftest.er1 >conftest.err
6560  rm -f conftest.er1
6561  cat conftest.err >&5
6562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563  (exit $ac_status); } && {
6564	 test -z "$ac_c_werror_flag" ||
6565	 test ! -s conftest.err
6566       } && test -s conftest$ac_exeext &&
6567       $as_test_x conftest$ac_exeext; then
6568  ac_cv_lib_posix_remove=yes
6569else
6570  echo "$as_me: failed program was:" >&5
6571sed 's/^/| /' conftest.$ac_ext >&5
6572
6573	ac_cv_lib_posix_remove=no
6574fi
6575
6576rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6577      conftest$ac_exeext conftest.$ac_ext
6578LIBS=$ac_check_lib_save_LIBS
6579fi
6580{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6581echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
6582if test $ac_cv_lib_posix_remove = yes; then
6583  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6584fi
6585
6586    fi
6587
6588    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6589    { echo "$as_me:$LINENO: checking for shmat" >&5
6590echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
6591if test "${ac_cv_func_shmat+set}" = set; then
6592  echo $ECHO_N "(cached) $ECHO_C" >&6
6593else
6594  cat >conftest.$ac_ext <<_ACEOF
6595/* confdefs.h.  */
6596_ACEOF
6597cat confdefs.h >>conftest.$ac_ext
6598cat >>conftest.$ac_ext <<_ACEOF
6599/* end confdefs.h.  */
6600/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6601   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6602#define shmat innocuous_shmat
6603
6604/* System header to define __stub macros and hopefully few prototypes,
6605    which can conflict with char shmat (); below.
6606    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6607    <limits.h> exists even on freestanding compilers.  */
6608
6609#ifdef __STDC__
6610# include <limits.h>
6611#else
6612# include <assert.h>
6613#endif
6614
6615#undef shmat
6616
6617/* Override any GCC internal prototype to avoid an error.
6618   Use char because int might match the return type of a GCC
6619   builtin and then its argument prototype would still apply.  */
6620#ifdef __cplusplus
6621extern "C"
6622#endif
6623char shmat ();
6624/* The GNU C library defines this for functions which it implements
6625    to always fail with ENOSYS.  Some functions are actually named
6626    something starting with __ and the normal name is an alias.  */
6627#if defined __stub_shmat || defined __stub___shmat
6628choke me
6629#endif
6630
6631int
6632main ()
6633{
6634return shmat ();
6635  ;
6636  return 0;
6637}
6638_ACEOF
6639rm -f conftest.$ac_objext conftest$ac_exeext
6640if { (ac_try="$ac_link"
6641case "(($ac_try" in
6642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6643  *) ac_try_echo=$ac_try;;
6644esac
6645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6646  (eval "$ac_link") 2>conftest.er1
6647  ac_status=$?
6648  grep -v '^ *+' conftest.er1 >conftest.err
6649  rm -f conftest.er1
6650  cat conftest.err >&5
6651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652  (exit $ac_status); } && {
6653	 test -z "$ac_c_werror_flag" ||
6654	 test ! -s conftest.err
6655       } && test -s conftest$ac_exeext &&
6656       $as_test_x conftest$ac_exeext; then
6657  ac_cv_func_shmat=yes
6658else
6659  echo "$as_me: failed program was:" >&5
6660sed 's/^/| /' conftest.$ac_ext >&5
6661
6662	ac_cv_func_shmat=no
6663fi
6664
6665rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6666      conftest$ac_exeext conftest.$ac_ext
6667fi
6668{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6669echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
6670
6671    if test $ac_cv_func_shmat = no; then
6672      { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6673echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
6674if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6675  echo $ECHO_N "(cached) $ECHO_C" >&6
6676else
6677  ac_check_lib_save_LIBS=$LIBS
6678LIBS="-lipc  $LIBS"
6679cat >conftest.$ac_ext <<_ACEOF
6680/* confdefs.h.  */
6681_ACEOF
6682cat confdefs.h >>conftest.$ac_ext
6683cat >>conftest.$ac_ext <<_ACEOF
6684/* end confdefs.h.  */
6685
6686/* Override any GCC internal prototype to avoid an error.
6687   Use char because int might match the return type of a GCC
6688   builtin and then its argument prototype would still apply.  */
6689#ifdef __cplusplus
6690extern "C"
6691#endif
6692char shmat ();
6693int
6694main ()
6695{
6696return shmat ();
6697  ;
6698  return 0;
6699}
6700_ACEOF
6701rm -f conftest.$ac_objext conftest$ac_exeext
6702if { (ac_try="$ac_link"
6703case "(($ac_try" in
6704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6705  *) ac_try_echo=$ac_try;;
6706esac
6707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6708  (eval "$ac_link") 2>conftest.er1
6709  ac_status=$?
6710  grep -v '^ *+' conftest.er1 >conftest.err
6711  rm -f conftest.er1
6712  cat conftest.err >&5
6713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714  (exit $ac_status); } && {
6715	 test -z "$ac_c_werror_flag" ||
6716	 test ! -s conftest.err
6717       } && test -s conftest$ac_exeext &&
6718       $as_test_x conftest$ac_exeext; then
6719  ac_cv_lib_ipc_shmat=yes
6720else
6721  echo "$as_me: failed program was:" >&5
6722sed 's/^/| /' conftest.$ac_ext >&5
6723
6724	ac_cv_lib_ipc_shmat=no
6725fi
6726
6727rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6728      conftest$ac_exeext conftest.$ac_ext
6729LIBS=$ac_check_lib_save_LIBS
6730fi
6731{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6732echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
6733if test $ac_cv_lib_ipc_shmat = yes; then
6734  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6735fi
6736
6737    fi
6738  fi
6739
6740  # Check for libraries that X11R6 Xt/Xaw programs need.
6741  ac_save_LDFLAGS=$LDFLAGS
6742  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6743  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6744  # check for ICE first), but we must link in the order -lSM -lICE or
6745  # we get undefined symbols.  So assume we have SM if we have ICE.
6746  # These have to be linked with before -lX11, unlike the other
6747  # libraries we check for below, so use a different variable.
6748  # John Interrante, Karl Berry
6749  { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6750echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
6751if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6752  echo $ECHO_N "(cached) $ECHO_C" >&6
6753else
6754  ac_check_lib_save_LIBS=$LIBS
6755LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6756cat >conftest.$ac_ext <<_ACEOF
6757/* confdefs.h.  */
6758_ACEOF
6759cat confdefs.h >>conftest.$ac_ext
6760cat >>conftest.$ac_ext <<_ACEOF
6761/* end confdefs.h.  */
6762
6763/* Override any GCC internal prototype to avoid an error.
6764   Use char because int might match the return type of a GCC
6765   builtin and then its argument prototype would still apply.  */
6766#ifdef __cplusplus
6767extern "C"
6768#endif
6769char IceConnectionNumber ();
6770int
6771main ()
6772{
6773return IceConnectionNumber ();
6774  ;
6775  return 0;
6776}
6777_ACEOF
6778rm -f conftest.$ac_objext conftest$ac_exeext
6779if { (ac_try="$ac_link"
6780case "(($ac_try" in
6781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6782  *) ac_try_echo=$ac_try;;
6783esac
6784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6785  (eval "$ac_link") 2>conftest.er1
6786  ac_status=$?
6787  grep -v '^ *+' conftest.er1 >conftest.err
6788  rm -f conftest.er1
6789  cat conftest.err >&5
6790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791  (exit $ac_status); } && {
6792	 test -z "$ac_c_werror_flag" ||
6793	 test ! -s conftest.err
6794       } && test -s conftest$ac_exeext &&
6795       $as_test_x conftest$ac_exeext; then
6796  ac_cv_lib_ICE_IceConnectionNumber=yes
6797else
6798  echo "$as_me: failed program was:" >&5
6799sed 's/^/| /' conftest.$ac_ext >&5
6800
6801	ac_cv_lib_ICE_IceConnectionNumber=no
6802fi
6803
6804rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6805      conftest$ac_exeext conftest.$ac_ext
6806LIBS=$ac_check_lib_save_LIBS
6807fi
6808{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6809echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6810if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6811  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6812fi
6813
6814  LDFLAGS=$ac_save_LDFLAGS
6815
6816fi
6817
6818x_libs="$LDFLAGS $X_LIBS $X_EXTRA_LIBS $X_PRE_LIBS"
6819XEXTENTIONS_LIBS=
6820{ echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
6821echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6; }
6822if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
6823  echo $ECHO_N "(cached) $ECHO_C" >&6
6824else
6825  ac_check_lib_save_LIBS=$LIBS
6826LIBS="-lX11 $x_libs $LIBS"
6827cat >conftest.$ac_ext <<_ACEOF
6828/* confdefs.h.  */
6829_ACEOF
6830cat confdefs.h >>conftest.$ac_ext
6831cat >>conftest.$ac_ext <<_ACEOF
6832/* end confdefs.h.  */
6833
6834/* Override any GCC internal prototype to avoid an error.
6835   Use char because int might match the return type of a GCC
6836   builtin and then its argument prototype would still apply.  */
6837#ifdef __cplusplus
6838extern "C"
6839#endif
6840char XOpenDisplay ();
6841int
6842main ()
6843{
6844return XOpenDisplay ();
6845  ;
6846  return 0;
6847}
6848_ACEOF
6849rm -f conftest.$ac_objext conftest$ac_exeext
6850if { (ac_try="$ac_link"
6851case "(($ac_try" in
6852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6853  *) ac_try_echo=$ac_try;;
6854esac
6855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6856  (eval "$ac_link") 2>conftest.er1
6857  ac_status=$?
6858  grep -v '^ *+' conftest.er1 >conftest.err
6859  rm -f conftest.er1
6860  cat conftest.err >&5
6861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862  (exit $ac_status); } && {
6863	 test -z "$ac_c_werror_flag" ||
6864	 test ! -s conftest.err
6865       } && test -s conftest$ac_exeext &&
6866       $as_test_x conftest$ac_exeext; then
6867  ac_cv_lib_X11_XOpenDisplay=yes
6868else
6869  echo "$as_me: failed program was:" >&5
6870sed 's/^/| /' conftest.$ac_ext >&5
6871
6872	ac_cv_lib_X11_XOpenDisplay=no
6873fi
6874
6875rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6876      conftest$ac_exeext conftest.$ac_ext
6877LIBS=$ac_check_lib_save_LIBS
6878fi
6879{ echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
6880echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6; }
6881if test $ac_cv_lib_X11_XOpenDisplay = yes; then
6882  x_libs="-lX11 $x_libs"
6883fi
6884
6885{ echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
6886echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6; }
6887if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
6888  echo $ECHO_N "(cached) $ECHO_C" >&6
6889else
6890  ac_check_lib_save_LIBS=$LIBS
6891LIBS="-lXext $x_libs $LIBS"
6892cat >conftest.$ac_ext <<_ACEOF
6893/* confdefs.h.  */
6894_ACEOF
6895cat confdefs.h >>conftest.$ac_ext
6896cat >>conftest.$ac_ext <<_ACEOF
6897/* end confdefs.h.  */
6898
6899/* Override any GCC internal prototype to avoid an error.
6900   Use char because int might match the return type of a GCC
6901   builtin and then its argument prototype would still apply.  */
6902#ifdef __cplusplus
6903extern "C"
6904#endif
6905char XShapeCombineMask ();
6906int
6907main ()
6908{
6909return XShapeCombineMask ();
6910  ;
6911  return 0;
6912}
6913_ACEOF
6914rm -f conftest.$ac_objext conftest$ac_exeext
6915if { (ac_try="$ac_link"
6916case "(($ac_try" in
6917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6918  *) ac_try_echo=$ac_try;;
6919esac
6920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6921  (eval "$ac_link") 2>conftest.er1
6922  ac_status=$?
6923  grep -v '^ *+' conftest.er1 >conftest.err
6924  rm -f conftest.er1
6925  cat conftest.err >&5
6926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927  (exit $ac_status); } && {
6928	 test -z "$ac_c_werror_flag" ||
6929	 test ! -s conftest.err
6930       } && test -s conftest$ac_exeext &&
6931       $as_test_x conftest$ac_exeext; then
6932  ac_cv_lib_Xext_XShapeCombineMask=yes
6933else
6934  echo "$as_me: failed program was:" >&5
6935sed 's/^/| /' conftest.$ac_ext >&5
6936
6937	ac_cv_lib_Xext_XShapeCombineMask=no
6938fi
6939
6940rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6941      conftest$ac_exeext conftest.$ac_ext
6942LIBS=$ac_check_lib_save_LIBS
6943fi
6944{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
6945echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
6946if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
6947  XEXTENTIONS_LIBS="-lXext";
6948cat >>confdefs.h <<\_ACEOF
6949#define SHAPE 1
6950_ACEOF
6951
6952fi
6953
6954
6955PATH_XTRA_CHECKED=yes
6956export PATH_XTRA_CHECKED
6957export x_includes
6958export X_CFLAGS
6959export X_LIBS
6960export X_EXTRA_LIBS
6961export X_PRE_LIBS
6962export CPP
6963export have_x
6964
6965
6966have_afterbase=no
6967have_afterimage=no
6968have_afterstep=no
6969
6970LIBAFTERIMAGE_CFLAGS=
6971LIBAFTERSTEP_CFLAGS=
6972AFTERIMAGE_LIBS=
6973AFTERSTEP_LIB=
6974
6975
6976{ echo "$as_me:$LINENO: checking if distributed as part of AfterStep" >&5
6977echo $ECHO_N "checking if distributed as part of AfterStep... $ECHO_C" >&6; }
6978if test -d ../../libAfterBase && -d ../../libAfterImage && -d ../../libAfterStep ; then
6979	LIBAFTERIMAGE_CFLAGS=
6980	LIBAFTERSTEP_CFLAGS=-I../../..
6981	AFTERIMAGE_LIBS=-L../../../libAfterImage -L../../../libAfterBase -lAfterImage -lAfterBase `../../libAfterImage/afterimage-config --libs --external-only`
6982	AFTERSTEP_LIB=-L../../../libAfterStep -lAfterStep
6983	have_afterbase=yes
6984	have_afterimage=yes
6985	have_afterstep=yes
6986	{ echo "$as_me:$LINENO: result: yes" >&5
6987echo "${ECHO_T}yes" >&6; }
6988else
6989	{ echo "$as_me:$LINENO: result: no" >&5
6990echo "${ECHO_T}no" >&6; }
6991	{ echo "$as_me:$LINENO: checking installed libAfterImage" >&5
6992echo $ECHO_N "checking installed libAfterImage... $ECHO_C" >&6; }
6993	if test "$afterimage_config" = "NO" ; then
6994		if afterimage-config --version > /dev/null 2>&1 ; then
6995			afterimage_config=afterimage-config
6996		else
6997			if test -x /usr/local/bin/afterimage-config; then
6998				afterimage_config=/usr/local/bin/afterimage-config
6999			fi
7000		fi
7001	else
7002	    afterimage_config=$afterimage_config/afterimage-config
7003	fi
7004	if $afterimage_config --version > /dev/null 2>&1 ; then
7005		LIBAFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
7006		AFTERIMAGE_LIBS=`$afterimage_config --libs`
7007		have_afterbase=`$afterimage_config --have-afterbase`
7008		if test "x$AFTERIMAGE_LIBS" != "x"; then
7009			have_afterimage=yes
7010		fi
7011	fi
7012
7013	if test "x$have_afterimage" = "xyes"; then
7014		{ echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5
7015echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6; }
7016		{ echo "$as_me:$LINENO: checking libAfterStep" >&5
7017echo $ECHO_N "checking libAfterStep... $ECHO_C" >&6; }
7018		if test "$afterstep_config" = "NO" ; then
7019			if afterstep-config --version > /dev/null 2>&1 ; then
7020				afterstep_config=afterstep-config
7021			else
7022				if test -x /usr/local/bin/afterstep-config; then
7023					afterstep_config=/usr/local/bin/afterstep-config
7024				fi
7025			fi
7026		else
7027		    afterstep_config=$afterstep_config/afterstep-config
7028		fi
7029		if test "$afterstep_config" != "NO" ; then
7030			if $afterstep_config --version >/dev/null 2>&1 ; then
7031				LIBAFTERSTEP_CFLAGS=`$afterstep_config --cflags`
7032				AFTERSTEP_LIBS=`$afterstep_config --libs`
7033				have_afterbase=yes
7034				if test "x$AFTERSTEP_LIBS" != "x"; then
7035					have_afterstep=yes
7036				fi
7037			fi
7038		fi
7039		if test "x$have_afterstep" = "xyes"; then
7040			{ echo "$as_me:$LINENO: result: $AFTERSTEP_LIBS" >&5
7041echo "${ECHO_T}$AFTERSTEP_LIBS" >&6; }
7042		else
7043	    	    if test "$afterstep_config" != "NO" ; then
7044		   { echo "$as_me:$LINENO: result: afterstep-config not found in $afterstep_config" >&5
7045echo "${ECHO_T}afterstep-config not found in $afterstep_config" >&6; }
7046		    else
7047			{ echo "$as_me:$LINENO: result: afterstep-config not found" >&5
7048echo "${ECHO_T}afterstep-config not found" >&6; }
7049		    fi
7050		fi
7051	else
7052		if test "$afterstep_config" != "NO" ; then
7053			{ echo "$as_me:$LINENO: result: afterimage-config not found in $afterimage_config - no AfterStep integration available." >&5
7054echo "${ECHO_T}afterimage-config not found in $afterimage_config - no AfterStep integration available." >&6; }
7055		else
7056			{ echo "$as_me:$LINENO: result: afterimage-config not found - no AfterStep integration available." >&5
7057echo "${ECHO_T}afterimage-config not found - no AfterStep integration available." >&6; }
7058		fi
7059		{ echo "$as_me:$LINENO: result: AfterStep integration" >&5
7060echo "${ECHO_T}AfterStep integration" >&6; }
7061		{ echo "$as_me:$LINENO: result: To enable background image support you will need to download and install" >&5
7062echo "${ECHO_T}To enable background image support you will need to download and install" >&6; }
7063		{ echo "$as_me:$LINENO: result: libAfterImage from ftp://ftp.afterstep.org/stable/libAfterImage/ and then re-run this script." >&5
7064echo "${ECHO_T}libAfterImage from ftp://ftp.afterstep.org/stable/libAfterImage/ and then re-run this script." >&6; }
7065	fi
7066
7067fi
7068
7069
7070if test "x$have_afterbase" = "xyes"; then
7071
7072cat >>confdefs.h <<\_ACEOF
7073#define HAVE_AFTERBASE 1
7074_ACEOF
7075
7076fi
7077
7078if test "x$have_afterimage" = "xyes"; then
7079
7080cat >>confdefs.h <<\_ACEOF
7081#define HAVE_AFTERIMAGE 1
7082_ACEOF
7083
7084
7085cat >>confdefs.h <<\_ACEOF
7086#define BACKGROUND_IMAGE 1
7087_ACEOF
7088
7089fi
7090
7091if test "x$have_afterstep" = "xyes"; then
7092
7093cat >>confdefs.h <<\_ACEOF
7094#define HAVE_AFTERSTEP 1
7095_ACEOF
7096
7097fi
7098
7099if test "x$LIBAFTERIMAGE_CFLAGS" = "x$LIBAFTERSTEP_CFLAGS"; then
7100        LIBAFTERIMAGE_CFLAGS=
7101fi
7102
7103
7104
7105
7106
7107
7108
7109{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
7110echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
7111if test "${ac_cv_search_strerror+set}" = set; then
7112  echo $ECHO_N "(cached) $ECHO_C" >&6
7113else
7114  ac_func_search_save_LIBS=$LIBS
7115cat >conftest.$ac_ext <<_ACEOF
7116/* confdefs.h.  */
7117_ACEOF
7118cat confdefs.h >>conftest.$ac_ext
7119cat >>conftest.$ac_ext <<_ACEOF
7120/* end confdefs.h.  */
7121
7122/* Override any GCC internal prototype to avoid an error.
7123   Use char because int might match the return type of a GCC
7124   builtin and then its argument prototype would still apply.  */
7125#ifdef __cplusplus
7126extern "C"
7127#endif
7128char strerror ();
7129int
7130main ()
7131{
7132return strerror ();
7133  ;
7134  return 0;
7135}
7136_ACEOF
7137for ac_lib in '' cposix; do
7138  if test -z "$ac_lib"; then
7139    ac_res="none required"
7140  else
7141    ac_res=-l$ac_lib
7142    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7143  fi
7144  rm -f conftest.$ac_objext conftest$ac_exeext
7145if { (ac_try="$ac_link"
7146case "(($ac_try" in
7147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7148  *) ac_try_echo=$ac_try;;
7149esac
7150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7151  (eval "$ac_link") 2>conftest.er1
7152  ac_status=$?
7153  grep -v '^ *+' conftest.er1 >conftest.err
7154  rm -f conftest.er1
7155  cat conftest.err >&5
7156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157  (exit $ac_status); } && {
7158	 test -z "$ac_c_werror_flag" ||
7159	 test ! -s conftest.err
7160       } && test -s conftest$ac_exeext &&
7161       $as_test_x conftest$ac_exeext; then
7162  ac_cv_search_strerror=$ac_res
7163else
7164  echo "$as_me: failed program was:" >&5
7165sed 's/^/| /' conftest.$ac_ext >&5
7166
7167
7168fi
7169
7170rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7171      conftest$ac_exeext
7172  if test "${ac_cv_search_strerror+set}" = set; then
7173  break
7174fi
7175done
7176if test "${ac_cv_search_strerror+set}" = set; then
7177  :
7178else
7179  ac_cv_search_strerror=no
7180fi
7181rm conftest.$ac_ext
7182LIBS=$ac_func_search_save_LIBS
7183fi
7184{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
7185echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
7186ac_res=$ac_cv_search_strerror
7187if test "$ac_res" != no; then
7188  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7189
7190fi
7191
7192
7193{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7194echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7195if test "${ac_cv_header_sys_wait_h+set}" = set; then
7196  echo $ECHO_N "(cached) $ECHO_C" >&6
7197else
7198  cat >conftest.$ac_ext <<_ACEOF
7199/* confdefs.h.  */
7200_ACEOF
7201cat confdefs.h >>conftest.$ac_ext
7202cat >>conftest.$ac_ext <<_ACEOF
7203/* end confdefs.h.  */
7204#include <sys/types.h>
7205#include <sys/wait.h>
7206#ifndef WEXITSTATUS
7207# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7208#endif
7209#ifndef WIFEXITED
7210# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7211#endif
7212
7213int
7214main ()
7215{
7216  int s;
7217  wait (&s);
7218  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7219  ;
7220  return 0;
7221}
7222_ACEOF
7223rm -f conftest.$ac_objext
7224if { (ac_try="$ac_compile"
7225case "(($ac_try" in
7226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7227  *) ac_try_echo=$ac_try;;
7228esac
7229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7230  (eval "$ac_compile") 2>conftest.er1
7231  ac_status=$?
7232  grep -v '^ *+' conftest.er1 >conftest.err
7233  rm -f conftest.er1
7234  cat conftest.err >&5
7235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236  (exit $ac_status); } && {
7237	 test -z "$ac_c_werror_flag" ||
7238	 test ! -s conftest.err
7239       } && test -s conftest.$ac_objext; then
7240  ac_cv_header_sys_wait_h=yes
7241else
7242  echo "$as_me: failed program was:" >&5
7243sed 's/^/| /' conftest.$ac_ext >&5
7244
7245	ac_cv_header_sys_wait_h=no
7246fi
7247
7248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7249fi
7250{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7251echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7252if test $ac_cv_header_sys_wait_h = yes; then
7253
7254cat >>confdefs.h <<\_ACEOF
7255#define HAVE_SYS_WAIT_H 1
7256_ACEOF
7257
7258fi
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276for ac_header in \
7277	assert.h \
7278	fcntl.h \
7279	grp.h \
7280	libc.h \
7281	lastlog.h \
7282	stdarg.h \
7283	stdlib.h \
7284	string.h \
7285	termios.h \
7286	unistd.h \
7287	utmpx.h \
7288	sys/byteorder.h \
7289	sys/ioctl.h \
7290	sys/select.h \
7291	sys/sockio.h \
7292	sys/time.h \
7293
7294do
7295as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7296if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7297  { echo "$as_me:$LINENO: checking for $ac_header" >&5
7298echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7299if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7300  echo $ECHO_N "(cached) $ECHO_C" >&6
7301fi
7302ac_res=`eval echo '${'$as_ac_Header'}'`
7303	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7304echo "${ECHO_T}$ac_res" >&6; }
7305else
7306  # Is the header compilable?
7307{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7308echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7309cat >conftest.$ac_ext <<_ACEOF
7310/* confdefs.h.  */
7311_ACEOF
7312cat confdefs.h >>conftest.$ac_ext
7313cat >>conftest.$ac_ext <<_ACEOF
7314/* end confdefs.h.  */
7315$ac_includes_default
7316#include <$ac_header>
7317_ACEOF
7318rm -f conftest.$ac_objext
7319if { (ac_try="$ac_compile"
7320case "(($ac_try" in
7321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7322  *) ac_try_echo=$ac_try;;
7323esac
7324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7325  (eval "$ac_compile") 2>conftest.er1
7326  ac_status=$?
7327  grep -v '^ *+' conftest.er1 >conftest.err
7328  rm -f conftest.er1
7329  cat conftest.err >&5
7330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331  (exit $ac_status); } && {
7332	 test -z "$ac_c_werror_flag" ||
7333	 test ! -s conftest.err
7334       } && test -s conftest.$ac_objext; then
7335  ac_header_compiler=yes
7336else
7337  echo "$as_me: failed program was:" >&5
7338sed 's/^/| /' conftest.$ac_ext >&5
7339
7340	ac_header_compiler=no
7341fi
7342
7343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7344{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7345echo "${ECHO_T}$ac_header_compiler" >&6; }
7346
7347# Is the header present?
7348{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7349echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7350cat >conftest.$ac_ext <<_ACEOF
7351/* confdefs.h.  */
7352_ACEOF
7353cat confdefs.h >>conftest.$ac_ext
7354cat >>conftest.$ac_ext <<_ACEOF
7355/* end confdefs.h.  */
7356#include <$ac_header>
7357_ACEOF
7358if { (ac_try="$ac_cpp conftest.$ac_ext"
7359case "(($ac_try" in
7360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7361  *) ac_try_echo=$ac_try;;
7362esac
7363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7364  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7365  ac_status=$?
7366  grep -v '^ *+' conftest.er1 >conftest.err
7367  rm -f conftest.er1
7368  cat conftest.err >&5
7369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370  (exit $ac_status); } >/dev/null && {
7371	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7372	 test ! -s conftest.err
7373       }; then
7374  ac_header_preproc=yes
7375else
7376  echo "$as_me: failed program was:" >&5
7377sed 's/^/| /' conftest.$ac_ext >&5
7378
7379  ac_header_preproc=no
7380fi
7381
7382rm -f conftest.err conftest.$ac_ext
7383{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7384echo "${ECHO_T}$ac_header_preproc" >&6; }
7385
7386# So?  What about this header?
7387case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7388  yes:no: )
7389    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7390echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7391    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7392echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7393    ac_header_preproc=yes
7394    ;;
7395  no:yes:* )
7396    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7397echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7398    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7399echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7400    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7401echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7402    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7403echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7404    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7405echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7406    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7407echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7408    ( cat <<\_ASBOX
7409## ------------------------------------ ##
7410## Report this to as-bugs@afterstep.org ##
7411## ------------------------------------ ##
7412_ASBOX
7413     ) | sed "s/^/$as_me: WARNING:     /" >&2
7414    ;;
7415esac
7416{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7417echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7418if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7419  echo $ECHO_N "(cached) $ECHO_C" >&6
7420else
7421  eval "$as_ac_Header=\$ac_header_preproc"
7422fi
7423ac_res=`eval echo '${'$as_ac_Header'}'`
7424	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7425echo "${ECHO_T}$ac_res" >&6; }
7426
7427fi
7428if test `eval echo '${'$as_ac_Header'}'` = yes; then
7429  cat >>confdefs.h <<_ACEOF
7430#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7431_ACEOF
7432
7433fi
7434
7435done
7436
7437
7438{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7439echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7440if test "${ac_cv_header_time+set}" = set; then
7441  echo $ECHO_N "(cached) $ECHO_C" >&6
7442else
7443  cat >conftest.$ac_ext <<_ACEOF
7444/* confdefs.h.  */
7445_ACEOF
7446cat confdefs.h >>conftest.$ac_ext
7447cat >>conftest.$ac_ext <<_ACEOF
7448/* end confdefs.h.  */
7449#include <sys/types.h>
7450#include <sys/time.h>
7451#include <time.h>
7452
7453int
7454main ()
7455{
7456if ((struct tm *) 0)
7457return 0;
7458  ;
7459  return 0;
7460}
7461_ACEOF
7462rm -f conftest.$ac_objext
7463if { (ac_try="$ac_compile"
7464case "(($ac_try" in
7465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7466  *) ac_try_echo=$ac_try;;
7467esac
7468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7469  (eval "$ac_compile") 2>conftest.er1
7470  ac_status=$?
7471  grep -v '^ *+' conftest.er1 >conftest.err
7472  rm -f conftest.er1
7473  cat conftest.err >&5
7474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475  (exit $ac_status); } && {
7476	 test -z "$ac_c_werror_flag" ||
7477	 test ! -s conftest.err
7478       } && test -s conftest.$ac_objext; then
7479  ac_cv_header_time=yes
7480else
7481  echo "$as_me: failed program was:" >&5
7482sed 's/^/| /' conftest.$ac_ext >&5
7483
7484	ac_cv_header_time=no
7485fi
7486
7487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7488fi
7489{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7490echo "${ECHO_T}$ac_cv_header_time" >&6; }
7491if test $ac_cv_header_time = yes; then
7492
7493cat >>confdefs.h <<\_ACEOF
7494#define TIME_WITH_SYS_TIME 1
7495_ACEOF
7496
7497fi
7498
7499
7500
7501for ac_func in getpt
7502do
7503as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7504{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7505echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7506if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7507  echo $ECHO_N "(cached) $ECHO_C" >&6
7508else
7509  cat >conftest.$ac_ext <<_ACEOF
7510/* confdefs.h.  */
7511_ACEOF
7512cat confdefs.h >>conftest.$ac_ext
7513cat >>conftest.$ac_ext <<_ACEOF
7514/* end confdefs.h.  */
7515/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7516   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7517#define $ac_func innocuous_$ac_func
7518
7519/* System header to define __stub macros and hopefully few prototypes,
7520    which can conflict with char $ac_func (); below.
7521    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7522    <limits.h> exists even on freestanding compilers.  */
7523
7524#ifdef __STDC__
7525# include <limits.h>
7526#else
7527# include <assert.h>
7528#endif
7529
7530#undef $ac_func
7531
7532/* Override any GCC internal prototype to avoid an error.
7533   Use char because int might match the return type of a GCC
7534   builtin and then its argument prototype would still apply.  */
7535#ifdef __cplusplus
7536extern "C"
7537#endif
7538char $ac_func ();
7539/* The GNU C library defines this for functions which it implements
7540    to always fail with ENOSYS.  Some functions are actually named
7541    something starting with __ and the normal name is an alias.  */
7542#if defined __stub_$ac_func || defined __stub___$ac_func
7543choke me
7544#endif
7545
7546int
7547main ()
7548{
7549return $ac_func ();
7550  ;
7551  return 0;
7552}
7553_ACEOF
7554rm -f conftest.$ac_objext conftest$ac_exeext
7555if { (ac_try="$ac_link"
7556case "(($ac_try" in
7557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7558  *) ac_try_echo=$ac_try;;
7559esac
7560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7561  (eval "$ac_link") 2>conftest.er1
7562  ac_status=$?
7563  grep -v '^ *+' conftest.er1 >conftest.err
7564  rm -f conftest.er1
7565  cat conftest.err >&5
7566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567  (exit $ac_status); } && {
7568	 test -z "$ac_c_werror_flag" ||
7569	 test ! -s conftest.err
7570       } && test -s conftest$ac_exeext &&
7571       $as_test_x conftest$ac_exeext; then
7572  eval "$as_ac_var=yes"
7573else
7574  echo "$as_me: failed program was:" >&5
7575sed 's/^/| /' conftest.$ac_ext >&5
7576
7577	eval "$as_ac_var=no"
7578fi
7579
7580rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7581      conftest$ac_exeext conftest.$ac_ext
7582fi
7583ac_res=`eval echo '${'$as_ac_var'}'`
7584	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7585echo "${ECHO_T}$ac_res" >&6; }
7586if test `eval echo '${'$as_ac_var'}'` = yes; then
7587  cat >>confdefs.h <<_ACEOF
7588#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7589_ACEOF
7590
7591fi
7592done
7593
7594
7595{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7596echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7597if test "${ac_cv_c_const+set}" = set; then
7598  echo $ECHO_N "(cached) $ECHO_C" >&6
7599else
7600  cat >conftest.$ac_ext <<_ACEOF
7601/* confdefs.h.  */
7602_ACEOF
7603cat confdefs.h >>conftest.$ac_ext
7604cat >>conftest.$ac_ext <<_ACEOF
7605/* end confdefs.h.  */
7606
7607int
7608main ()
7609{
7610/* FIXME: Include the comments suggested by Paul. */
7611#ifndef __cplusplus
7612  /* Ultrix mips cc rejects this.  */
7613  typedef int charset[2];
7614  const charset cs;
7615  /* SunOS 4.1.1 cc rejects this.  */
7616  char const *const *pcpcc;
7617  char **ppc;
7618  /* NEC SVR4.0.2 mips cc rejects this.  */
7619  struct point {int x, y;};
7620  static struct point const zero = {0,0};
7621  /* AIX XL C 1.02.0.0 rejects this.
7622     It does not let you subtract one const X* pointer from another in
7623     an arm of an if-expression whose if-part is not a constant
7624     expression */
7625  const char *g = "string";
7626  pcpcc = &g + (g ? g-g : 0);
7627  /* HPUX 7.0 cc rejects these. */
7628  ++pcpcc;
7629  ppc = (char**) pcpcc;
7630  pcpcc = (char const *const *) ppc;
7631  { /* SCO 3.2v4 cc rejects this.  */
7632    char *t;
7633    char const *s = 0 ? (char *) 0 : (char const *) 0;
7634
7635    *t++ = 0;
7636    if (s) return 0;
7637  }
7638  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7639    int x[] = {25, 17};
7640    const int *foo = &x[0];
7641    ++foo;
7642  }
7643  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7644    typedef const int *iptr;
7645    iptr p = 0;
7646    ++p;
7647  }
7648  { /* AIX XL C 1.02.0.0 rejects this saying
7649       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7650    struct s { int j; const int *ap[3]; };
7651    struct s *b; b->j = 5;
7652  }
7653  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7654    const int foo = 10;
7655    if (!foo) return 0;
7656  }
7657  return !cs[0] && !zero.x;
7658#endif
7659
7660  ;
7661  return 0;
7662}
7663_ACEOF
7664rm -f conftest.$ac_objext
7665if { (ac_try="$ac_compile"
7666case "(($ac_try" in
7667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7668  *) ac_try_echo=$ac_try;;
7669esac
7670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7671  (eval "$ac_compile") 2>conftest.er1
7672  ac_status=$?
7673  grep -v '^ *+' conftest.er1 >conftest.err
7674  rm -f conftest.er1
7675  cat conftest.err >&5
7676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677  (exit $ac_status); } && {
7678	 test -z "$ac_c_werror_flag" ||
7679	 test ! -s conftest.err
7680       } && test -s conftest.$ac_objext; then
7681  ac_cv_c_const=yes
7682else
7683  echo "$as_me: failed program was:" >&5
7684sed 's/^/| /' conftest.$ac_ext >&5
7685
7686	ac_cv_c_const=no
7687fi
7688
7689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7690fi
7691{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7692echo "${ECHO_T}$ac_cv_c_const" >&6; }
7693if test $ac_cv_c_const = no; then
7694
7695cat >>confdefs.h <<\_ACEOF
7696#define const
7697_ACEOF
7698
7699fi
7700
7701{ echo "$as_me:$LINENO: checking for inline" >&5
7702echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
7703if test "${ac_cv_c_inline+set}" = set; then
7704  echo $ECHO_N "(cached) $ECHO_C" >&6
7705else
7706  ac_cv_c_inline=no
7707for ac_kw in inline __inline__ __inline; do
7708  cat >conftest.$ac_ext <<_ACEOF
7709/* confdefs.h.  */
7710_ACEOF
7711cat confdefs.h >>conftest.$ac_ext
7712cat >>conftest.$ac_ext <<_ACEOF
7713/* end confdefs.h.  */
7714#ifndef __cplusplus
7715typedef int foo_t;
7716static $ac_kw foo_t static_foo () {return 0; }
7717$ac_kw foo_t foo () {return 0; }
7718#endif
7719
7720_ACEOF
7721rm -f conftest.$ac_objext
7722if { (ac_try="$ac_compile"
7723case "(($ac_try" in
7724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7725  *) ac_try_echo=$ac_try;;
7726esac
7727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7728  (eval "$ac_compile") 2>conftest.er1
7729  ac_status=$?
7730  grep -v '^ *+' conftest.er1 >conftest.err
7731  rm -f conftest.er1
7732  cat conftest.err >&5
7733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734  (exit $ac_status); } && {
7735	 test -z "$ac_c_werror_flag" ||
7736	 test ! -s conftest.err
7737       } && test -s conftest.$ac_objext; then
7738  ac_cv_c_inline=$ac_kw
7739else
7740  echo "$as_me: failed program was:" >&5
7741sed 's/^/| /' conftest.$ac_ext >&5
7742
7743
7744fi
7745
7746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7747  test "$ac_cv_c_inline" != no && break
7748done
7749
7750fi
7751{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7752echo "${ECHO_T}$ac_cv_c_inline" >&6; }
7753
7754
7755case $ac_cv_c_inline in
7756  inline | yes) ;;
7757  *)
7758    case $ac_cv_c_inline in
7759      no) ac_val=;;
7760      *) ac_val=$ac_cv_c_inline;;
7761    esac
7762    cat >>confdefs.h <<_ACEOF
7763#ifndef __cplusplus
7764#define inline $ac_val
7765#endif
7766_ACEOF
7767    ;;
7768esac
7769
7770
7771
7772{ echo "$as_me:$LINENO: checking for mode_t" >&5
7773echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
7774if test "${ac_cv_type_mode_t+set}" = set; then
7775  echo $ECHO_N "(cached) $ECHO_C" >&6
7776else
7777  cat >conftest.$ac_ext <<_ACEOF
7778/* confdefs.h.  */
7779_ACEOF
7780cat confdefs.h >>conftest.$ac_ext
7781cat >>conftest.$ac_ext <<_ACEOF
7782/* end confdefs.h.  */
7783$ac_includes_default
7784typedef mode_t ac__type_new_;
7785int
7786main ()
7787{
7788if ((ac__type_new_ *) 0)
7789  return 0;
7790if (sizeof (ac__type_new_))
7791  return 0;
7792  ;
7793  return 0;
7794}
7795_ACEOF
7796rm -f conftest.$ac_objext
7797if { (ac_try="$ac_compile"
7798case "(($ac_try" in
7799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7800  *) ac_try_echo=$ac_try;;
7801esac
7802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7803  (eval "$ac_compile") 2>conftest.er1
7804  ac_status=$?
7805  grep -v '^ *+' conftest.er1 >conftest.err
7806  rm -f conftest.er1
7807  cat conftest.err >&5
7808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809  (exit $ac_status); } && {
7810	 test -z "$ac_c_werror_flag" ||
7811	 test ! -s conftest.err
7812       } && test -s conftest.$ac_objext; then
7813  ac_cv_type_mode_t=yes
7814else
7815  echo "$as_me: failed program was:" >&5
7816sed 's/^/| /' conftest.$ac_ext >&5
7817
7818	ac_cv_type_mode_t=no
7819fi
7820
7821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7822fi
7823{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7824echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
7825if test $ac_cv_type_mode_t = yes; then
7826  :
7827else
7828
7829cat >>confdefs.h <<_ACEOF
7830#define mode_t int
7831_ACEOF
7832
7833fi
7834
7835{ echo "$as_me:$LINENO: checking for pid_t" >&5
7836echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7837if test "${ac_cv_type_pid_t+set}" = set; then
7838  echo $ECHO_N "(cached) $ECHO_C" >&6
7839else
7840  cat >conftest.$ac_ext <<_ACEOF
7841/* confdefs.h.  */
7842_ACEOF
7843cat confdefs.h >>conftest.$ac_ext
7844cat >>conftest.$ac_ext <<_ACEOF
7845/* end confdefs.h.  */
7846$ac_includes_default
7847typedef pid_t ac__type_new_;
7848int
7849main ()
7850{
7851if ((ac__type_new_ *) 0)
7852  return 0;
7853if (sizeof (ac__type_new_))
7854  return 0;
7855  ;
7856  return 0;
7857}
7858_ACEOF
7859rm -f conftest.$ac_objext
7860if { (ac_try="$ac_compile"
7861case "(($ac_try" in
7862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863  *) ac_try_echo=$ac_try;;
7864esac
7865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7866  (eval "$ac_compile") 2>conftest.er1
7867  ac_status=$?
7868  grep -v '^ *+' conftest.er1 >conftest.err
7869  rm -f conftest.er1
7870  cat conftest.err >&5
7871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872  (exit $ac_status); } && {
7873	 test -z "$ac_c_werror_flag" ||
7874	 test ! -s conftest.err
7875       } && test -s conftest.$ac_objext; then
7876  ac_cv_type_pid_t=yes
7877else
7878  echo "$as_me: failed program was:" >&5
7879sed 's/^/| /' conftest.$ac_ext >&5
7880
7881	ac_cv_type_pid_t=no
7882fi
7883
7884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7885fi
7886{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7887echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7888if test $ac_cv_type_pid_t = yes; then
7889  :
7890else
7891
7892cat >>confdefs.h <<_ACEOF
7893#define pid_t int
7894_ACEOF
7895
7896fi
7897
7898{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7899echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7900if test "${ac_cv_type_uid_t+set}" = set; then
7901  echo $ECHO_N "(cached) $ECHO_C" >&6
7902else
7903  cat >conftest.$ac_ext <<_ACEOF
7904/* confdefs.h.  */
7905_ACEOF
7906cat confdefs.h >>conftest.$ac_ext
7907cat >>conftest.$ac_ext <<_ACEOF
7908/* end confdefs.h.  */
7909#include <sys/types.h>
7910
7911_ACEOF
7912if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7913  $EGREP "uid_t" >/dev/null 2>&1; then
7914  ac_cv_type_uid_t=yes
7915else
7916  ac_cv_type_uid_t=no
7917fi
7918rm -f conftest*
7919
7920fi
7921{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7922echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7923if test $ac_cv_type_uid_t = no; then
7924
7925cat >>confdefs.h <<\_ACEOF
7926#define uid_t int
7927_ACEOF
7928
7929
7930cat >>confdefs.h <<\_ACEOF
7931#define gid_t int
7932_ACEOF
7933
7934fi
7935
7936
7937{ echo "$as_me:$LINENO: checking for char" >&5
7938echo $ECHO_N "checking for char... $ECHO_C" >&6; }
7939if test "${ac_cv_type_char+set}" = set; then
7940  echo $ECHO_N "(cached) $ECHO_C" >&6
7941else
7942  cat >conftest.$ac_ext <<_ACEOF
7943/* confdefs.h.  */
7944_ACEOF
7945cat confdefs.h >>conftest.$ac_ext
7946cat >>conftest.$ac_ext <<_ACEOF
7947/* end confdefs.h.  */
7948$ac_includes_default
7949typedef char ac__type_new_;
7950int
7951main ()
7952{
7953if ((ac__type_new_ *) 0)
7954  return 0;
7955if (sizeof (ac__type_new_))
7956  return 0;
7957  ;
7958  return 0;
7959}
7960_ACEOF
7961rm -f conftest.$ac_objext
7962if { (ac_try="$ac_compile"
7963case "(($ac_try" in
7964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7965  *) ac_try_echo=$ac_try;;
7966esac
7967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7968  (eval "$ac_compile") 2>conftest.er1
7969  ac_status=$?
7970  grep -v '^ *+' conftest.er1 >conftest.err
7971  rm -f conftest.er1
7972  cat conftest.err >&5
7973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974  (exit $ac_status); } && {
7975	 test -z "$ac_c_werror_flag" ||
7976	 test ! -s conftest.err
7977       } && test -s conftest.$ac_objext; then
7978  ac_cv_type_char=yes
7979else
7980  echo "$as_me: failed program was:" >&5
7981sed 's/^/| /' conftest.$ac_ext >&5
7982
7983	ac_cv_type_char=no
7984fi
7985
7986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7987fi
7988{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
7989echo "${ECHO_T}$ac_cv_type_char" >&6; }
7990
7991# The cast to long int works around a bug in the HP C Compiler
7992# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7993# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7994# This bug is HP SR number 8606223364.
7995{ echo "$as_me:$LINENO: checking size of char" >&5
7996echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
7997if test "${ac_cv_sizeof_char+set}" = set; then
7998  echo $ECHO_N "(cached) $ECHO_C" >&6
7999else
8000  if test "$cross_compiling" = yes; then
8001  # Depending upon the size, compute the lo and hi bounds.
8002cat >conftest.$ac_ext <<_ACEOF
8003/* confdefs.h.  */
8004_ACEOF
8005cat confdefs.h >>conftest.$ac_ext
8006cat >>conftest.$ac_ext <<_ACEOF
8007/* end confdefs.h.  */
8008$ac_includes_default
8009   typedef char ac__type_sizeof_;
8010int
8011main ()
8012{
8013static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8014test_array [0] = 0
8015
8016  ;
8017  return 0;
8018}
8019_ACEOF
8020rm -f conftest.$ac_objext
8021if { (ac_try="$ac_compile"
8022case "(($ac_try" in
8023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024  *) ac_try_echo=$ac_try;;
8025esac
8026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8027  (eval "$ac_compile") 2>conftest.er1
8028  ac_status=$?
8029  grep -v '^ *+' conftest.er1 >conftest.err
8030  rm -f conftest.er1
8031  cat conftest.err >&5
8032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033  (exit $ac_status); } && {
8034	 test -z "$ac_c_werror_flag" ||
8035	 test ! -s conftest.err
8036       } && test -s conftest.$ac_objext; then
8037  ac_lo=0 ac_mid=0
8038  while :; do
8039    cat >conftest.$ac_ext <<_ACEOF
8040/* confdefs.h.  */
8041_ACEOF
8042cat confdefs.h >>conftest.$ac_ext
8043cat >>conftest.$ac_ext <<_ACEOF
8044/* end confdefs.h.  */
8045$ac_includes_default
8046   typedef char ac__type_sizeof_;
8047int
8048main ()
8049{
8050static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8051test_array [0] = 0
8052
8053  ;
8054  return 0;
8055}
8056_ACEOF
8057rm -f conftest.$ac_objext
8058if { (ac_try="$ac_compile"
8059case "(($ac_try" in
8060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8061  *) ac_try_echo=$ac_try;;
8062esac
8063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8064  (eval "$ac_compile") 2>conftest.er1
8065  ac_status=$?
8066  grep -v '^ *+' conftest.er1 >conftest.err
8067  rm -f conftest.er1
8068  cat conftest.err >&5
8069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070  (exit $ac_status); } && {
8071	 test -z "$ac_c_werror_flag" ||
8072	 test ! -s conftest.err
8073       } && test -s conftest.$ac_objext; then
8074  ac_hi=$ac_mid; break
8075else
8076  echo "$as_me: failed program was:" >&5
8077sed 's/^/| /' conftest.$ac_ext >&5
8078
8079	ac_lo=`expr $ac_mid + 1`
8080			if test $ac_lo -le $ac_mid; then
8081			  ac_lo= ac_hi=
8082			  break
8083			fi
8084			ac_mid=`expr 2 '*' $ac_mid + 1`
8085fi
8086
8087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8088  done
8089else
8090  echo "$as_me: failed program was:" >&5
8091sed 's/^/| /' conftest.$ac_ext >&5
8092
8093	cat >conftest.$ac_ext <<_ACEOF
8094/* confdefs.h.  */
8095_ACEOF
8096cat confdefs.h >>conftest.$ac_ext
8097cat >>conftest.$ac_ext <<_ACEOF
8098/* end confdefs.h.  */
8099$ac_includes_default
8100   typedef char ac__type_sizeof_;
8101int
8102main ()
8103{
8104static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8105test_array [0] = 0
8106
8107  ;
8108  return 0;
8109}
8110_ACEOF
8111rm -f conftest.$ac_objext
8112if { (ac_try="$ac_compile"
8113case "(($ac_try" in
8114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115  *) ac_try_echo=$ac_try;;
8116esac
8117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8118  (eval "$ac_compile") 2>conftest.er1
8119  ac_status=$?
8120  grep -v '^ *+' conftest.er1 >conftest.err
8121  rm -f conftest.er1
8122  cat conftest.err >&5
8123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124  (exit $ac_status); } && {
8125	 test -z "$ac_c_werror_flag" ||
8126	 test ! -s conftest.err
8127       } && test -s conftest.$ac_objext; then
8128  ac_hi=-1 ac_mid=-1
8129  while :; do
8130    cat >conftest.$ac_ext <<_ACEOF
8131/* confdefs.h.  */
8132_ACEOF
8133cat confdefs.h >>conftest.$ac_ext
8134cat >>conftest.$ac_ext <<_ACEOF
8135/* end confdefs.h.  */
8136$ac_includes_default
8137   typedef char ac__type_sizeof_;
8138int
8139main ()
8140{
8141static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8142test_array [0] = 0
8143
8144  ;
8145  return 0;
8146}
8147_ACEOF
8148rm -f conftest.$ac_objext
8149if { (ac_try="$ac_compile"
8150case "(($ac_try" in
8151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8152  *) ac_try_echo=$ac_try;;
8153esac
8154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8155  (eval "$ac_compile") 2>conftest.er1
8156  ac_status=$?
8157  grep -v '^ *+' conftest.er1 >conftest.err
8158  rm -f conftest.er1
8159  cat conftest.err >&5
8160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161  (exit $ac_status); } && {
8162	 test -z "$ac_c_werror_flag" ||
8163	 test ! -s conftest.err
8164       } && test -s conftest.$ac_objext; then
8165  ac_lo=$ac_mid; break
8166else
8167  echo "$as_me: failed program was:" >&5
8168sed 's/^/| /' conftest.$ac_ext >&5
8169
8170	ac_hi=`expr '(' $ac_mid ')' - 1`
8171			if test $ac_mid -le $ac_hi; then
8172			  ac_lo= ac_hi=
8173			  break
8174			fi
8175			ac_mid=`expr 2 '*' $ac_mid`
8176fi
8177
8178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8179  done
8180else
8181  echo "$as_me: failed program was:" >&5
8182sed 's/^/| /' conftest.$ac_ext >&5
8183
8184	ac_lo= ac_hi=
8185fi
8186
8187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8188fi
8189
8190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8191# Binary search between lo and hi bounds.
8192while test "x$ac_lo" != "x$ac_hi"; do
8193  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8194  cat >conftest.$ac_ext <<_ACEOF
8195/* confdefs.h.  */
8196_ACEOF
8197cat confdefs.h >>conftest.$ac_ext
8198cat >>conftest.$ac_ext <<_ACEOF
8199/* end confdefs.h.  */
8200$ac_includes_default
8201   typedef char ac__type_sizeof_;
8202int
8203main ()
8204{
8205static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8206test_array [0] = 0
8207
8208  ;
8209  return 0;
8210}
8211_ACEOF
8212rm -f conftest.$ac_objext
8213if { (ac_try="$ac_compile"
8214case "(($ac_try" in
8215  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8216  *) ac_try_echo=$ac_try;;
8217esac
8218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8219  (eval "$ac_compile") 2>conftest.er1
8220  ac_status=$?
8221  grep -v '^ *+' conftest.er1 >conftest.err
8222  rm -f conftest.er1
8223  cat conftest.err >&5
8224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225  (exit $ac_status); } && {
8226	 test -z "$ac_c_werror_flag" ||
8227	 test ! -s conftest.err
8228       } && test -s conftest.$ac_objext; then
8229  ac_hi=$ac_mid
8230else
8231  echo "$as_me: failed program was:" >&5
8232sed 's/^/| /' conftest.$ac_ext >&5
8233
8234	ac_lo=`expr '(' $ac_mid ')' + 1`
8235fi
8236
8237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8238done
8239case $ac_lo in
8240?*) ac_cv_sizeof_char=$ac_lo;;
8241'') if test "$ac_cv_type_char" = yes; then
8242     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
8243See \`config.log' for more details." >&5
8244echo "$as_me: error: cannot compute sizeof (char)
8245See \`config.log' for more details." >&2;}
8246   { (exit 77); exit 77; }; }
8247   else
8248     ac_cv_sizeof_char=0
8249   fi ;;
8250esac
8251else
8252  cat >conftest.$ac_ext <<_ACEOF
8253/* confdefs.h.  */
8254_ACEOF
8255cat confdefs.h >>conftest.$ac_ext
8256cat >>conftest.$ac_ext <<_ACEOF
8257/* end confdefs.h.  */
8258$ac_includes_default
8259   typedef char ac__type_sizeof_;
8260static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8261static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8262#include <stdio.h>
8263#include <stdlib.h>
8264int
8265main ()
8266{
8267
8268  FILE *f = fopen ("conftest.val", "w");
8269  if (! f)
8270    return 1;
8271  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8272    {
8273      long int i = longval ();
8274      if (i != ((long int) (sizeof (ac__type_sizeof_))))
8275	return 1;
8276      fprintf (f, "%ld\n", i);
8277    }
8278  else
8279    {
8280      unsigned long int i = ulongval ();
8281      if (i != ((long int) (sizeof (ac__type_sizeof_))))
8282	return 1;
8283      fprintf (f, "%lu\n", i);
8284    }
8285  return ferror (f) || fclose (f) != 0;
8286
8287  ;
8288  return 0;
8289}
8290_ACEOF
8291rm -f conftest$ac_exeext
8292if { (ac_try="$ac_link"
8293case "(($ac_try" in
8294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8295  *) ac_try_echo=$ac_try;;
8296esac
8297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8298  (eval "$ac_link") 2>&5
8299  ac_status=$?
8300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8302  { (case "(($ac_try" in
8303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304  *) ac_try_echo=$ac_try;;
8305esac
8306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307  (eval "$ac_try") 2>&5
8308  ac_status=$?
8309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310  (exit $ac_status); }; }; then
8311  ac_cv_sizeof_char=`cat conftest.val`
8312else
8313  echo "$as_me: program exited with status $ac_status" >&5
8314echo "$as_me: failed program was:" >&5
8315sed 's/^/| /' conftest.$ac_ext >&5
8316
8317( exit $ac_status )
8318if test "$ac_cv_type_char" = yes; then
8319     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
8320See \`config.log' for more details." >&5
8321echo "$as_me: error: cannot compute sizeof (char)
8322See \`config.log' for more details." >&2;}
8323   { (exit 77); exit 77; }; }
8324   else
8325     ac_cv_sizeof_char=0
8326   fi
8327fi
8328rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8329fi
8330rm -f conftest.val
8331fi
8332{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
8333echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
8334
8335
8336
8337cat >>confdefs.h <<_ACEOF
8338#define SIZEOF_CHAR $ac_cv_sizeof_char
8339_ACEOF
8340
8341
8342{ echo "$as_me:$LINENO: checking for short" >&5
8343echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8344if test "${ac_cv_type_short+set}" = set; then
8345  echo $ECHO_N "(cached) $ECHO_C" >&6
8346else
8347  cat >conftest.$ac_ext <<_ACEOF
8348/* confdefs.h.  */
8349_ACEOF
8350cat confdefs.h >>conftest.$ac_ext
8351cat >>conftest.$ac_ext <<_ACEOF
8352/* end confdefs.h.  */
8353$ac_includes_default
8354typedef short ac__type_new_;
8355int
8356main ()
8357{
8358if ((ac__type_new_ *) 0)
8359  return 0;
8360if (sizeof (ac__type_new_))
8361  return 0;
8362  ;
8363  return 0;
8364}
8365_ACEOF
8366rm -f conftest.$ac_objext
8367if { (ac_try="$ac_compile"
8368case "(($ac_try" in
8369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370  *) ac_try_echo=$ac_try;;
8371esac
8372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8373  (eval "$ac_compile") 2>conftest.er1
8374  ac_status=$?
8375  grep -v '^ *+' conftest.er1 >conftest.err
8376  rm -f conftest.er1
8377  cat conftest.err >&5
8378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379  (exit $ac_status); } && {
8380	 test -z "$ac_c_werror_flag" ||
8381	 test ! -s conftest.err
8382       } && test -s conftest.$ac_objext; then
8383  ac_cv_type_short=yes
8384else
8385  echo "$as_me: failed program was:" >&5
8386sed 's/^/| /' conftest.$ac_ext >&5
8387
8388	ac_cv_type_short=no
8389fi
8390
8391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8392fi
8393{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8394echo "${ECHO_T}$ac_cv_type_short" >&6; }
8395
8396# The cast to long int works around a bug in the HP C Compiler
8397# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8398# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8399# This bug is HP SR number 8606223364.
8400{ echo "$as_me:$LINENO: checking size of short" >&5
8401echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8402if test "${ac_cv_sizeof_short+set}" = set; then
8403  echo $ECHO_N "(cached) $ECHO_C" >&6
8404else
8405  if test "$cross_compiling" = yes; then
8406  # Depending upon the size, compute the lo and hi bounds.
8407cat >conftest.$ac_ext <<_ACEOF
8408/* confdefs.h.  */
8409_ACEOF
8410cat confdefs.h >>conftest.$ac_ext
8411cat >>conftest.$ac_ext <<_ACEOF
8412/* end confdefs.h.  */
8413$ac_includes_default
8414   typedef short ac__type_sizeof_;
8415int
8416main ()
8417{
8418static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8419test_array [0] = 0
8420
8421  ;
8422  return 0;
8423}
8424_ACEOF
8425rm -f conftest.$ac_objext
8426if { (ac_try="$ac_compile"
8427case "(($ac_try" in
8428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8429  *) ac_try_echo=$ac_try;;
8430esac
8431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8432  (eval "$ac_compile") 2>conftest.er1
8433  ac_status=$?
8434  grep -v '^ *+' conftest.er1 >conftest.err
8435  rm -f conftest.er1
8436  cat conftest.err >&5
8437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438  (exit $ac_status); } && {
8439	 test -z "$ac_c_werror_flag" ||
8440	 test ! -s conftest.err
8441       } && test -s conftest.$ac_objext; then
8442  ac_lo=0 ac_mid=0
8443  while :; do
8444    cat >conftest.$ac_ext <<_ACEOF
8445/* confdefs.h.  */
8446_ACEOF
8447cat confdefs.h >>conftest.$ac_ext
8448cat >>conftest.$ac_ext <<_ACEOF
8449/* end confdefs.h.  */
8450$ac_includes_default
8451   typedef short ac__type_sizeof_;
8452int
8453main ()
8454{
8455static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8456test_array [0] = 0
8457
8458  ;
8459  return 0;
8460}
8461_ACEOF
8462rm -f conftest.$ac_objext
8463if { (ac_try="$ac_compile"
8464case "(($ac_try" in
8465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466  *) ac_try_echo=$ac_try;;
8467esac
8468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469  (eval "$ac_compile") 2>conftest.er1
8470  ac_status=$?
8471  grep -v '^ *+' conftest.er1 >conftest.err
8472  rm -f conftest.er1
8473  cat conftest.err >&5
8474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475  (exit $ac_status); } && {
8476	 test -z "$ac_c_werror_flag" ||
8477	 test ! -s conftest.err
8478       } && test -s conftest.$ac_objext; then
8479  ac_hi=$ac_mid; break
8480else
8481  echo "$as_me: failed program was:" >&5
8482sed 's/^/| /' conftest.$ac_ext >&5
8483
8484	ac_lo=`expr $ac_mid + 1`
8485			if test $ac_lo -le $ac_mid; then
8486			  ac_lo= ac_hi=
8487			  break
8488			fi
8489			ac_mid=`expr 2 '*' $ac_mid + 1`
8490fi
8491
8492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8493  done
8494else
8495  echo "$as_me: failed program was:" >&5
8496sed 's/^/| /' conftest.$ac_ext >&5
8497
8498	cat >conftest.$ac_ext <<_ACEOF
8499/* confdefs.h.  */
8500_ACEOF
8501cat confdefs.h >>conftest.$ac_ext
8502cat >>conftest.$ac_ext <<_ACEOF
8503/* end confdefs.h.  */
8504$ac_includes_default
8505   typedef short ac__type_sizeof_;
8506int
8507main ()
8508{
8509static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8510test_array [0] = 0
8511
8512  ;
8513  return 0;
8514}
8515_ACEOF
8516rm -f conftest.$ac_objext
8517if { (ac_try="$ac_compile"
8518case "(($ac_try" in
8519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8520  *) ac_try_echo=$ac_try;;
8521esac
8522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8523  (eval "$ac_compile") 2>conftest.er1
8524  ac_status=$?
8525  grep -v '^ *+' conftest.er1 >conftest.err
8526  rm -f conftest.er1
8527  cat conftest.err >&5
8528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529  (exit $ac_status); } && {
8530	 test -z "$ac_c_werror_flag" ||
8531	 test ! -s conftest.err
8532       } && test -s conftest.$ac_objext; then
8533  ac_hi=-1 ac_mid=-1
8534  while :; do
8535    cat >conftest.$ac_ext <<_ACEOF
8536/* confdefs.h.  */
8537_ACEOF
8538cat confdefs.h >>conftest.$ac_ext
8539cat >>conftest.$ac_ext <<_ACEOF
8540/* end confdefs.h.  */
8541$ac_includes_default
8542   typedef short ac__type_sizeof_;
8543int
8544main ()
8545{
8546static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8547test_array [0] = 0
8548
8549  ;
8550  return 0;
8551}
8552_ACEOF
8553rm -f conftest.$ac_objext
8554if { (ac_try="$ac_compile"
8555case "(($ac_try" in
8556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557  *) ac_try_echo=$ac_try;;
8558esac
8559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8560  (eval "$ac_compile") 2>conftest.er1
8561  ac_status=$?
8562  grep -v '^ *+' conftest.er1 >conftest.err
8563  rm -f conftest.er1
8564  cat conftest.err >&5
8565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566  (exit $ac_status); } && {
8567	 test -z "$ac_c_werror_flag" ||
8568	 test ! -s conftest.err
8569       } && test -s conftest.$ac_objext; then
8570  ac_lo=$ac_mid; break
8571else
8572  echo "$as_me: failed program was:" >&5
8573sed 's/^/| /' conftest.$ac_ext >&5
8574
8575	ac_hi=`expr '(' $ac_mid ')' - 1`
8576			if test $ac_mid -le $ac_hi; then
8577			  ac_lo= ac_hi=
8578			  break
8579			fi
8580			ac_mid=`expr 2 '*' $ac_mid`
8581fi
8582
8583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8584  done
8585else
8586  echo "$as_me: failed program was:" >&5
8587sed 's/^/| /' conftest.$ac_ext >&5
8588
8589	ac_lo= ac_hi=
8590fi
8591
8592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8593fi
8594
8595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8596# Binary search between lo and hi bounds.
8597while test "x$ac_lo" != "x$ac_hi"; do
8598  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8599  cat >conftest.$ac_ext <<_ACEOF
8600/* confdefs.h.  */
8601_ACEOF
8602cat confdefs.h >>conftest.$ac_ext
8603cat >>conftest.$ac_ext <<_ACEOF
8604/* end confdefs.h.  */
8605$ac_includes_default
8606   typedef short ac__type_sizeof_;
8607int
8608main ()
8609{
8610static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8611test_array [0] = 0
8612
8613  ;
8614  return 0;
8615}
8616_ACEOF
8617rm -f conftest.$ac_objext
8618if { (ac_try="$ac_compile"
8619case "(($ac_try" in
8620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8621  *) ac_try_echo=$ac_try;;
8622esac
8623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8624  (eval "$ac_compile") 2>conftest.er1
8625  ac_status=$?
8626  grep -v '^ *+' conftest.er1 >conftest.err
8627  rm -f conftest.er1
8628  cat conftest.err >&5
8629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630  (exit $ac_status); } && {
8631	 test -z "$ac_c_werror_flag" ||
8632	 test ! -s conftest.err
8633       } && test -s conftest.$ac_objext; then
8634  ac_hi=$ac_mid
8635else
8636  echo "$as_me: failed program was:" >&5
8637sed 's/^/| /' conftest.$ac_ext >&5
8638
8639	ac_lo=`expr '(' $ac_mid ')' + 1`
8640fi
8641
8642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8643done
8644case $ac_lo in
8645?*) ac_cv_sizeof_short=$ac_lo;;
8646'') if test "$ac_cv_type_short" = yes; then
8647     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8648See \`config.log' for more details." >&5
8649echo "$as_me: error: cannot compute sizeof (short)
8650See \`config.log' for more details." >&2;}
8651   { (exit 77); exit 77; }; }
8652   else
8653     ac_cv_sizeof_short=0
8654   fi ;;
8655esac
8656else
8657  cat >conftest.$ac_ext <<_ACEOF
8658/* confdefs.h.  */
8659_ACEOF
8660cat confdefs.h >>conftest.$ac_ext
8661cat >>conftest.$ac_ext <<_ACEOF
8662/* end confdefs.h.  */
8663$ac_includes_default
8664   typedef short ac__type_sizeof_;
8665static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8666static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8667#include <stdio.h>
8668#include <stdlib.h>
8669int
8670main ()
8671{
8672
8673  FILE *f = fopen ("conftest.val", "w");
8674  if (! f)
8675    return 1;
8676  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8677    {
8678      long int i = longval ();
8679      if (i != ((long int) (sizeof (ac__type_sizeof_))))
8680	return 1;
8681      fprintf (f, "%ld\n", i);
8682    }
8683  else
8684    {
8685      unsigned long int i = ulongval ();
8686      if (i != ((long int) (sizeof (ac__type_sizeof_))))
8687	return 1;
8688      fprintf (f, "%lu\n", i);
8689    }
8690  return ferror (f) || fclose (f) != 0;
8691
8692  ;
8693  return 0;
8694}
8695_ACEOF
8696rm -f conftest$ac_exeext
8697if { (ac_try="$ac_link"
8698case "(($ac_try" in
8699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8700  *) ac_try_echo=$ac_try;;
8701esac
8702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8703  (eval "$ac_link") 2>&5
8704  ac_status=$?
8705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8707  { (case "(($ac_try" in
8708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8709  *) ac_try_echo=$ac_try;;
8710esac
8711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8712  (eval "$ac_try") 2>&5
8713  ac_status=$?
8714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715  (exit $ac_status); }; }; then
8716  ac_cv_sizeof_short=`cat conftest.val`
8717else
8718  echo "$as_me: program exited with status $ac_status" >&5
8719echo "$as_me: failed program was:" >&5
8720sed 's/^/| /' conftest.$ac_ext >&5
8721
8722( exit $ac_status )
8723if test "$ac_cv_type_short" = yes; then
8724     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8725See \`config.log' for more details." >&5
8726echo "$as_me: error: cannot compute sizeof (short)
8727See \`config.log' for more details." >&2;}
8728   { (exit 77); exit 77; }; }
8729   else
8730     ac_cv_sizeof_short=0
8731   fi
8732fi
8733rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8734fi
8735rm -f conftest.val
8736fi
8737{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8738echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8739
8740
8741
8742cat >>confdefs.h <<_ACEOF
8743#define SIZEOF_SHORT $ac_cv_sizeof_short
8744_ACEOF
8745
8746
8747{ echo "$as_me:$LINENO: checking for int" >&5
8748echo $ECHO_N "checking for int... $ECHO_C" >&6; }
8749if test "${ac_cv_type_int+set}" = set; then
8750  echo $ECHO_N "(cached) $ECHO_C" >&6
8751else
8752  cat >conftest.$ac_ext <<_ACEOF
8753/* confdefs.h.  */
8754_ACEOF
8755cat confdefs.h >>conftest.$ac_ext
8756cat >>conftest.$ac_ext <<_ACEOF
8757/* end confdefs.h.  */
8758$ac_includes_default
8759typedef int ac__type_new_;
8760int
8761main ()
8762{
8763if ((ac__type_new_ *) 0)
8764  return 0;
8765if (sizeof (ac__type_new_))
8766  return 0;
8767  ;
8768  return 0;
8769}
8770_ACEOF
8771rm -f conftest.$ac_objext
8772if { (ac_try="$ac_compile"
8773case "(($ac_try" in
8774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8775  *) ac_try_echo=$ac_try;;
8776esac
8777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8778  (eval "$ac_compile") 2>conftest.er1
8779  ac_status=$?
8780  grep -v '^ *+' conftest.er1 >conftest.err
8781  rm -f conftest.er1
8782  cat conftest.err >&5
8783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784  (exit $ac_status); } && {
8785	 test -z "$ac_c_werror_flag" ||
8786	 test ! -s conftest.err
8787       } && test -s conftest.$ac_objext; then
8788  ac_cv_type_int=yes
8789else
8790  echo "$as_me: failed program was:" >&5
8791sed 's/^/| /' conftest.$ac_ext >&5
8792
8793	ac_cv_type_int=no
8794fi
8795
8796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8797fi
8798{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8799echo "${ECHO_T}$ac_cv_type_int" >&6; }
8800
8801# The cast to long int works around a bug in the HP C Compiler
8802# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8803# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8804# This bug is HP SR number 8606223364.
8805{ echo "$as_me:$LINENO: checking size of int" >&5
8806echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
8807if test "${ac_cv_sizeof_int+set}" = set; then
8808  echo $ECHO_N "(cached) $ECHO_C" >&6
8809else
8810  if test "$cross_compiling" = yes; then
8811  # Depending upon the size, compute the lo and hi bounds.
8812cat >conftest.$ac_ext <<_ACEOF
8813/* confdefs.h.  */
8814_ACEOF
8815cat confdefs.h >>conftest.$ac_ext
8816cat >>conftest.$ac_ext <<_ACEOF
8817/* end confdefs.h.  */
8818$ac_includes_default
8819   typedef int ac__type_sizeof_;
8820int
8821main ()
8822{
8823static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8824test_array [0] = 0
8825
8826  ;
8827  return 0;
8828}
8829_ACEOF
8830rm -f conftest.$ac_objext
8831if { (ac_try="$ac_compile"
8832case "(($ac_try" in
8833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8834  *) ac_try_echo=$ac_try;;
8835esac
8836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8837  (eval "$ac_compile") 2>conftest.er1
8838  ac_status=$?
8839  grep -v '^ *+' conftest.er1 >conftest.err
8840  rm -f conftest.er1
8841  cat conftest.err >&5
8842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843  (exit $ac_status); } && {
8844	 test -z "$ac_c_werror_flag" ||
8845	 test ! -s conftest.err
8846       } && test -s conftest.$ac_objext; then
8847  ac_lo=0 ac_mid=0
8848  while :; do
8849    cat >conftest.$ac_ext <<_ACEOF
8850/* confdefs.h.  */
8851_ACEOF
8852cat confdefs.h >>conftest.$ac_ext
8853cat >>conftest.$ac_ext <<_ACEOF
8854/* end confdefs.h.  */
8855$ac_includes_default
8856   typedef int ac__type_sizeof_;
8857int
8858main ()
8859{
8860static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8861test_array [0] = 0
8862
8863  ;
8864  return 0;
8865}
8866_ACEOF
8867rm -f conftest.$ac_objext
8868if { (ac_try="$ac_compile"
8869case "(($ac_try" in
8870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8871  *) ac_try_echo=$ac_try;;
8872esac
8873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8874  (eval "$ac_compile") 2>conftest.er1
8875  ac_status=$?
8876  grep -v '^ *+' conftest.er1 >conftest.err
8877  rm -f conftest.er1
8878  cat conftest.err >&5
8879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880  (exit $ac_status); } && {
8881	 test -z "$ac_c_werror_flag" ||
8882	 test ! -s conftest.err
8883       } && test -s conftest.$ac_objext; then
8884  ac_hi=$ac_mid; break
8885else
8886  echo "$as_me: failed program was:" >&5
8887sed 's/^/| /' conftest.$ac_ext >&5
8888
8889	ac_lo=`expr $ac_mid + 1`
8890			if test $ac_lo -le $ac_mid; then
8891			  ac_lo= ac_hi=
8892			  break
8893			fi
8894			ac_mid=`expr 2 '*' $ac_mid + 1`
8895fi
8896
8897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8898  done
8899else
8900  echo "$as_me: failed program was:" >&5
8901sed 's/^/| /' conftest.$ac_ext >&5
8902
8903	cat >conftest.$ac_ext <<_ACEOF
8904/* confdefs.h.  */
8905_ACEOF
8906cat confdefs.h >>conftest.$ac_ext
8907cat >>conftest.$ac_ext <<_ACEOF
8908/* end confdefs.h.  */
8909$ac_includes_default
8910   typedef int ac__type_sizeof_;
8911int
8912main ()
8913{
8914static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8915test_array [0] = 0
8916
8917  ;
8918  return 0;
8919}
8920_ACEOF
8921rm -f conftest.$ac_objext
8922if { (ac_try="$ac_compile"
8923case "(($ac_try" in
8924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8925  *) ac_try_echo=$ac_try;;
8926esac
8927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8928  (eval "$ac_compile") 2>conftest.er1
8929  ac_status=$?
8930  grep -v '^ *+' conftest.er1 >conftest.err
8931  rm -f conftest.er1
8932  cat conftest.err >&5
8933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934  (exit $ac_status); } && {
8935	 test -z "$ac_c_werror_flag" ||
8936	 test ! -s conftest.err
8937       } && test -s conftest.$ac_objext; then
8938  ac_hi=-1 ac_mid=-1
8939  while :; do
8940    cat >conftest.$ac_ext <<_ACEOF
8941/* confdefs.h.  */
8942_ACEOF
8943cat confdefs.h >>conftest.$ac_ext
8944cat >>conftest.$ac_ext <<_ACEOF
8945/* end confdefs.h.  */
8946$ac_includes_default
8947   typedef int ac__type_sizeof_;
8948int
8949main ()
8950{
8951static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8952test_array [0] = 0
8953
8954  ;
8955  return 0;
8956}
8957_ACEOF
8958rm -f conftest.$ac_objext
8959if { (ac_try="$ac_compile"
8960case "(($ac_try" in
8961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8962  *) ac_try_echo=$ac_try;;
8963esac
8964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8965  (eval "$ac_compile") 2>conftest.er1
8966  ac_status=$?
8967  grep -v '^ *+' conftest.er1 >conftest.err
8968  rm -f conftest.er1
8969  cat conftest.err >&5
8970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971  (exit $ac_status); } && {
8972	 test -z "$ac_c_werror_flag" ||
8973	 test ! -s conftest.err
8974       } && test -s conftest.$ac_objext; then
8975  ac_lo=$ac_mid; break
8976else
8977  echo "$as_me: failed program was:" >&5
8978sed 's/^/| /' conftest.$ac_ext >&5
8979
8980	ac_hi=`expr '(' $ac_mid ')' - 1`
8981			if test $ac_mid -le $ac_hi; then
8982			  ac_lo= ac_hi=
8983			  break
8984			fi
8985			ac_mid=`expr 2 '*' $ac_mid`
8986fi
8987
8988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8989  done
8990else
8991  echo "$as_me: failed program was:" >&5
8992sed 's/^/| /' conftest.$ac_ext >&5
8993
8994	ac_lo= ac_hi=
8995fi
8996
8997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8998fi
8999
9000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9001# Binary search between lo and hi bounds.
9002while test "x$ac_lo" != "x$ac_hi"; do
9003  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9004  cat >conftest.$ac_ext <<_ACEOF
9005/* confdefs.h.  */
9006_ACEOF
9007cat confdefs.h >>conftest.$ac_ext
9008cat >>conftest.$ac_ext <<_ACEOF
9009/* end confdefs.h.  */
9010$ac_includes_default
9011   typedef int ac__type_sizeof_;
9012int
9013main ()
9014{
9015static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9016test_array [0] = 0
9017
9018  ;
9019  return 0;
9020}
9021_ACEOF
9022rm -f conftest.$ac_objext
9023if { (ac_try="$ac_compile"
9024case "(($ac_try" in
9025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9026  *) ac_try_echo=$ac_try;;
9027esac
9028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9029  (eval "$ac_compile") 2>conftest.er1
9030  ac_status=$?
9031  grep -v '^ *+' conftest.er1 >conftest.err
9032  rm -f conftest.er1
9033  cat conftest.err >&5
9034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035  (exit $ac_status); } && {
9036	 test -z "$ac_c_werror_flag" ||
9037	 test ! -s conftest.err
9038       } && test -s conftest.$ac_objext; then
9039  ac_hi=$ac_mid
9040else
9041  echo "$as_me: failed program was:" >&5
9042sed 's/^/| /' conftest.$ac_ext >&5
9043
9044	ac_lo=`expr '(' $ac_mid ')' + 1`
9045fi
9046
9047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9048done
9049case $ac_lo in
9050?*) ac_cv_sizeof_int=$ac_lo;;
9051'') if test "$ac_cv_type_int" = yes; then
9052     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
9053See \`config.log' for more details." >&5
9054echo "$as_me: error: cannot compute sizeof (int)
9055See \`config.log' for more details." >&2;}
9056   { (exit 77); exit 77; }; }
9057   else
9058     ac_cv_sizeof_int=0
9059   fi ;;
9060esac
9061else
9062  cat >conftest.$ac_ext <<_ACEOF
9063/* confdefs.h.  */
9064_ACEOF
9065cat confdefs.h >>conftest.$ac_ext
9066cat >>conftest.$ac_ext <<_ACEOF
9067/* end confdefs.h.  */
9068$ac_includes_default
9069   typedef int ac__type_sizeof_;
9070static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9071static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9072#include <stdio.h>
9073#include <stdlib.h>
9074int
9075main ()
9076{
9077
9078  FILE *f = fopen ("conftest.val", "w");
9079  if (! f)
9080    return 1;
9081  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9082    {
9083      long int i = longval ();
9084      if (i != ((long int) (sizeof (ac__type_sizeof_))))
9085	return 1;
9086      fprintf (f, "%ld\n", i);
9087    }
9088  else
9089    {
9090      unsigned long int i = ulongval ();
9091      if (i != ((long int) (sizeof (ac__type_sizeof_))))
9092	return 1;
9093      fprintf (f, "%lu\n", i);
9094    }
9095  return ferror (f) || fclose (f) != 0;
9096
9097  ;
9098  return 0;
9099}
9100_ACEOF
9101rm -f conftest$ac_exeext
9102if { (ac_try="$ac_link"
9103case "(($ac_try" in
9104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9105  *) ac_try_echo=$ac_try;;
9106esac
9107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9108  (eval "$ac_link") 2>&5
9109  ac_status=$?
9110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9112  { (case "(($ac_try" in
9113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9114  *) ac_try_echo=$ac_try;;
9115esac
9116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9117  (eval "$ac_try") 2>&5
9118  ac_status=$?
9119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120  (exit $ac_status); }; }; then
9121  ac_cv_sizeof_int=`cat conftest.val`
9122else
9123  echo "$as_me: program exited with status $ac_status" >&5
9124echo "$as_me: failed program was:" >&5
9125sed 's/^/| /' conftest.$ac_ext >&5
9126
9127( exit $ac_status )
9128if test "$ac_cv_type_int" = yes; then
9129     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
9130See \`config.log' for more details." >&5
9131echo "$as_me: error: cannot compute sizeof (int)
9132See \`config.log' for more details." >&2;}
9133   { (exit 77); exit 77; }; }
9134   else
9135     ac_cv_sizeof_int=0
9136   fi
9137fi
9138rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9139fi
9140rm -f conftest.val
9141fi
9142{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
9143echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
9144
9145
9146
9147cat >>confdefs.h <<_ACEOF
9148#define SIZEOF_INT $ac_cv_sizeof_int
9149_ACEOF
9150
9151
9152{ echo "$as_me:$LINENO: checking for long" >&5
9153echo $ECHO_N "checking for long... $ECHO_C" >&6; }
9154if test "${ac_cv_type_long+set}" = set; then
9155  echo $ECHO_N "(cached) $ECHO_C" >&6
9156else
9157  cat >conftest.$ac_ext <<_ACEOF
9158/* confdefs.h.  */
9159_ACEOF
9160cat confdefs.h >>conftest.$ac_ext
9161cat >>conftest.$ac_ext <<_ACEOF
9162/* end confdefs.h.  */
9163$ac_includes_default
9164typedef long ac__type_new_;
9165int
9166main ()
9167{
9168if ((ac__type_new_ *) 0)
9169  return 0;
9170if (sizeof (ac__type_new_))
9171  return 0;
9172  ;
9173  return 0;
9174}
9175_ACEOF
9176rm -f conftest.$ac_objext
9177if { (ac_try="$ac_compile"
9178case "(($ac_try" in
9179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9180  *) ac_try_echo=$ac_try;;
9181esac
9182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9183  (eval "$ac_compile") 2>conftest.er1
9184  ac_status=$?
9185  grep -v '^ *+' conftest.er1 >conftest.err
9186  rm -f conftest.er1
9187  cat conftest.err >&5
9188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189  (exit $ac_status); } && {
9190	 test -z "$ac_c_werror_flag" ||
9191	 test ! -s conftest.err
9192       } && test -s conftest.$ac_objext; then
9193  ac_cv_type_long=yes
9194else
9195  echo "$as_me: failed program was:" >&5
9196sed 's/^/| /' conftest.$ac_ext >&5
9197
9198	ac_cv_type_long=no
9199fi
9200
9201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9202fi
9203{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
9204echo "${ECHO_T}$ac_cv_type_long" >&6; }
9205
9206# The cast to long int works around a bug in the HP C Compiler
9207# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9208# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9209# This bug is HP SR number 8606223364.
9210{ echo "$as_me:$LINENO: checking size of long" >&5
9211echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
9212if test "${ac_cv_sizeof_long+set}" = set; then
9213  echo $ECHO_N "(cached) $ECHO_C" >&6
9214else
9215  if test "$cross_compiling" = yes; then
9216  # Depending upon the size, compute the lo and hi bounds.
9217cat >conftest.$ac_ext <<_ACEOF
9218/* confdefs.h.  */
9219_ACEOF
9220cat confdefs.h >>conftest.$ac_ext
9221cat >>conftest.$ac_ext <<_ACEOF
9222/* end confdefs.h.  */
9223$ac_includes_default
9224   typedef long ac__type_sizeof_;
9225int
9226main ()
9227{
9228static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9229test_array [0] = 0
9230
9231  ;
9232  return 0;
9233}
9234_ACEOF
9235rm -f conftest.$ac_objext
9236if { (ac_try="$ac_compile"
9237case "(($ac_try" in
9238  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9239  *) ac_try_echo=$ac_try;;
9240esac
9241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9242  (eval "$ac_compile") 2>conftest.er1
9243  ac_status=$?
9244  grep -v '^ *+' conftest.er1 >conftest.err
9245  rm -f conftest.er1
9246  cat conftest.err >&5
9247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248  (exit $ac_status); } && {
9249	 test -z "$ac_c_werror_flag" ||
9250	 test ! -s conftest.err
9251       } && test -s conftest.$ac_objext; then
9252  ac_lo=0 ac_mid=0
9253  while :; do
9254    cat >conftest.$ac_ext <<_ACEOF
9255/* confdefs.h.  */
9256_ACEOF
9257cat confdefs.h >>conftest.$ac_ext
9258cat >>conftest.$ac_ext <<_ACEOF
9259/* end confdefs.h.  */
9260$ac_includes_default
9261   typedef long ac__type_sizeof_;
9262int
9263main ()
9264{
9265static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9266test_array [0] = 0
9267
9268  ;
9269  return 0;
9270}
9271_ACEOF
9272rm -f conftest.$ac_objext
9273if { (ac_try="$ac_compile"
9274case "(($ac_try" in
9275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9276  *) ac_try_echo=$ac_try;;
9277esac
9278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9279  (eval "$ac_compile") 2>conftest.er1
9280  ac_status=$?
9281  grep -v '^ *+' conftest.er1 >conftest.err
9282  rm -f conftest.er1
9283  cat conftest.err >&5
9284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285  (exit $ac_status); } && {
9286	 test -z "$ac_c_werror_flag" ||
9287	 test ! -s conftest.err
9288       } && test -s conftest.$ac_objext; then
9289  ac_hi=$ac_mid; break
9290else
9291  echo "$as_me: failed program was:" >&5
9292sed 's/^/| /' conftest.$ac_ext >&5
9293
9294	ac_lo=`expr $ac_mid + 1`
9295			if test $ac_lo -le $ac_mid; then
9296			  ac_lo= ac_hi=
9297			  break
9298			fi
9299			ac_mid=`expr 2 '*' $ac_mid + 1`
9300fi
9301
9302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9303  done
9304else
9305  echo "$as_me: failed program was:" >&5
9306sed 's/^/| /' conftest.$ac_ext >&5
9307
9308	cat >conftest.$ac_ext <<_ACEOF
9309/* confdefs.h.  */
9310_ACEOF
9311cat confdefs.h >>conftest.$ac_ext
9312cat >>conftest.$ac_ext <<_ACEOF
9313/* end confdefs.h.  */
9314$ac_includes_default
9315   typedef long ac__type_sizeof_;
9316int
9317main ()
9318{
9319static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9320test_array [0] = 0
9321
9322  ;
9323  return 0;
9324}
9325_ACEOF
9326rm -f conftest.$ac_objext
9327if { (ac_try="$ac_compile"
9328case "(($ac_try" in
9329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9330  *) ac_try_echo=$ac_try;;
9331esac
9332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9333  (eval "$ac_compile") 2>conftest.er1
9334  ac_status=$?
9335  grep -v '^ *+' conftest.er1 >conftest.err
9336  rm -f conftest.er1
9337  cat conftest.err >&5
9338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339  (exit $ac_status); } && {
9340	 test -z "$ac_c_werror_flag" ||
9341	 test ! -s conftest.err
9342       } && test -s conftest.$ac_objext; then
9343  ac_hi=-1 ac_mid=-1
9344  while :; do
9345    cat >conftest.$ac_ext <<_ACEOF
9346/* confdefs.h.  */
9347_ACEOF
9348cat confdefs.h >>conftest.$ac_ext
9349cat >>conftest.$ac_ext <<_ACEOF
9350/* end confdefs.h.  */
9351$ac_includes_default
9352   typedef long ac__type_sizeof_;
9353int
9354main ()
9355{
9356static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9357test_array [0] = 0
9358
9359  ;
9360  return 0;
9361}
9362_ACEOF
9363rm -f conftest.$ac_objext
9364if { (ac_try="$ac_compile"
9365case "(($ac_try" in
9366  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9367  *) ac_try_echo=$ac_try;;
9368esac
9369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9370  (eval "$ac_compile") 2>conftest.er1
9371  ac_status=$?
9372  grep -v '^ *+' conftest.er1 >conftest.err
9373  rm -f conftest.er1
9374  cat conftest.err >&5
9375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376  (exit $ac_status); } && {
9377	 test -z "$ac_c_werror_flag" ||
9378	 test ! -s conftest.err
9379       } && test -s conftest.$ac_objext; then
9380  ac_lo=$ac_mid; break
9381else
9382  echo "$as_me: failed program was:" >&5
9383sed 's/^/| /' conftest.$ac_ext >&5
9384
9385	ac_hi=`expr '(' $ac_mid ')' - 1`
9386			if test $ac_mid -le $ac_hi; then
9387			  ac_lo= ac_hi=
9388			  break
9389			fi
9390			ac_mid=`expr 2 '*' $ac_mid`
9391fi
9392
9393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9394  done
9395else
9396  echo "$as_me: failed program was:" >&5
9397sed 's/^/| /' conftest.$ac_ext >&5
9398
9399	ac_lo= ac_hi=
9400fi
9401
9402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9403fi
9404
9405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9406# Binary search between lo and hi bounds.
9407while test "x$ac_lo" != "x$ac_hi"; do
9408  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9409  cat >conftest.$ac_ext <<_ACEOF
9410/* confdefs.h.  */
9411_ACEOF
9412cat confdefs.h >>conftest.$ac_ext
9413cat >>conftest.$ac_ext <<_ACEOF
9414/* end confdefs.h.  */
9415$ac_includes_default
9416   typedef long ac__type_sizeof_;
9417int
9418main ()
9419{
9420static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9421test_array [0] = 0
9422
9423  ;
9424  return 0;
9425}
9426_ACEOF
9427rm -f conftest.$ac_objext
9428if { (ac_try="$ac_compile"
9429case "(($ac_try" in
9430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9431  *) ac_try_echo=$ac_try;;
9432esac
9433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9434  (eval "$ac_compile") 2>conftest.er1
9435  ac_status=$?
9436  grep -v '^ *+' conftest.er1 >conftest.err
9437  rm -f conftest.er1
9438  cat conftest.err >&5
9439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440  (exit $ac_status); } && {
9441	 test -z "$ac_c_werror_flag" ||
9442	 test ! -s conftest.err
9443       } && test -s conftest.$ac_objext; then
9444  ac_hi=$ac_mid
9445else
9446  echo "$as_me: failed program was:" >&5
9447sed 's/^/| /' conftest.$ac_ext >&5
9448
9449	ac_lo=`expr '(' $ac_mid ')' + 1`
9450fi
9451
9452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9453done
9454case $ac_lo in
9455?*) ac_cv_sizeof_long=$ac_lo;;
9456'') if test "$ac_cv_type_long" = yes; then
9457     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
9458See \`config.log' for more details." >&5
9459echo "$as_me: error: cannot compute sizeof (long)
9460See \`config.log' for more details." >&2;}
9461   { (exit 77); exit 77; }; }
9462   else
9463     ac_cv_sizeof_long=0
9464   fi ;;
9465esac
9466else
9467  cat >conftest.$ac_ext <<_ACEOF
9468/* confdefs.h.  */
9469_ACEOF
9470cat confdefs.h >>conftest.$ac_ext
9471cat >>conftest.$ac_ext <<_ACEOF
9472/* end confdefs.h.  */
9473$ac_includes_default
9474   typedef long ac__type_sizeof_;
9475static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9476static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9477#include <stdio.h>
9478#include <stdlib.h>
9479int
9480main ()
9481{
9482
9483  FILE *f = fopen ("conftest.val", "w");
9484  if (! f)
9485    return 1;
9486  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9487    {
9488      long int i = longval ();
9489      if (i != ((long int) (sizeof (ac__type_sizeof_))))
9490	return 1;
9491      fprintf (f, "%ld\n", i);
9492    }
9493  else
9494    {
9495      unsigned long int i = ulongval ();
9496      if (i != ((long int) (sizeof (ac__type_sizeof_))))
9497	return 1;
9498      fprintf (f, "%lu\n", i);
9499    }
9500  return ferror (f) || fclose (f) != 0;
9501
9502  ;
9503  return 0;
9504}
9505_ACEOF
9506rm -f conftest$ac_exeext
9507if { (ac_try="$ac_link"
9508case "(($ac_try" in
9509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9510  *) ac_try_echo=$ac_try;;
9511esac
9512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9513  (eval "$ac_link") 2>&5
9514  ac_status=$?
9515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9517  { (case "(($ac_try" in
9518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9519  *) ac_try_echo=$ac_try;;
9520esac
9521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9522  (eval "$ac_try") 2>&5
9523  ac_status=$?
9524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525  (exit $ac_status); }; }; then
9526  ac_cv_sizeof_long=`cat conftest.val`
9527else
9528  echo "$as_me: program exited with status $ac_status" >&5
9529echo "$as_me: failed program was:" >&5
9530sed 's/^/| /' conftest.$ac_ext >&5
9531
9532( exit $ac_status )
9533if test "$ac_cv_type_long" = yes; then
9534     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
9535See \`config.log' for more details." >&5
9536echo "$as_me: error: cannot compute sizeof (long)
9537See \`config.log' for more details." >&2;}
9538   { (exit 77); exit 77; }; }
9539   else
9540     ac_cv_sizeof_long=0
9541   fi
9542fi
9543rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9544fi
9545rm -f conftest.val
9546fi
9547{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
9548echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
9549
9550
9551
9552cat >>confdefs.h <<_ACEOF
9553#define SIZEOF_LONG $ac_cv_sizeof_long
9554_ACEOF
9555
9556
9557{ echo "$as_me:$LINENO: checking for int *" >&5
9558echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
9559if test "${ac_cv_type_int_p+set}" = set; then
9560  echo $ECHO_N "(cached) $ECHO_C" >&6
9561else
9562  cat >conftest.$ac_ext <<_ACEOF
9563/* confdefs.h.  */
9564_ACEOF
9565cat confdefs.h >>conftest.$ac_ext
9566cat >>conftest.$ac_ext <<_ACEOF
9567/* end confdefs.h.  */
9568$ac_includes_default
9569typedef int * ac__type_new_;
9570int
9571main ()
9572{
9573if ((ac__type_new_ *) 0)
9574  return 0;
9575if (sizeof (ac__type_new_))
9576  return 0;
9577  ;
9578  return 0;
9579}
9580_ACEOF
9581rm -f conftest.$ac_objext
9582if { (ac_try="$ac_compile"
9583case "(($ac_try" in
9584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9585  *) ac_try_echo=$ac_try;;
9586esac
9587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9588  (eval "$ac_compile") 2>conftest.er1
9589  ac_status=$?
9590  grep -v '^ *+' conftest.er1 >conftest.err
9591  rm -f conftest.er1
9592  cat conftest.err >&5
9593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594  (exit $ac_status); } && {
9595	 test -z "$ac_c_werror_flag" ||
9596	 test ! -s conftest.err
9597       } && test -s conftest.$ac_objext; then
9598  ac_cv_type_int_p=yes
9599else
9600  echo "$as_me: failed program was:" >&5
9601sed 's/^/| /' conftest.$ac_ext >&5
9602
9603	ac_cv_type_int_p=no
9604fi
9605
9606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9607fi
9608{ echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
9609echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
9610
9611# The cast to long int works around a bug in the HP C Compiler
9612# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9613# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9614# This bug is HP SR number 8606223364.
9615{ echo "$as_me:$LINENO: checking size of int *" >&5
9616echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
9617if test "${ac_cv_sizeof_int_p+set}" = set; then
9618  echo $ECHO_N "(cached) $ECHO_C" >&6
9619else
9620  if test "$cross_compiling" = yes; then
9621  # Depending upon the size, compute the lo and hi bounds.
9622cat >conftest.$ac_ext <<_ACEOF
9623/* confdefs.h.  */
9624_ACEOF
9625cat confdefs.h >>conftest.$ac_ext
9626cat >>conftest.$ac_ext <<_ACEOF
9627/* end confdefs.h.  */
9628$ac_includes_default
9629   typedef int * ac__type_sizeof_;
9630int
9631main ()
9632{
9633static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9634test_array [0] = 0
9635
9636  ;
9637  return 0;
9638}
9639_ACEOF
9640rm -f conftest.$ac_objext
9641if { (ac_try="$ac_compile"
9642case "(($ac_try" in
9643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9644  *) ac_try_echo=$ac_try;;
9645esac
9646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9647  (eval "$ac_compile") 2>conftest.er1
9648  ac_status=$?
9649  grep -v '^ *+' conftest.er1 >conftest.err
9650  rm -f conftest.er1
9651  cat conftest.err >&5
9652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653  (exit $ac_status); } && {
9654	 test -z "$ac_c_werror_flag" ||
9655	 test ! -s conftest.err
9656       } && test -s conftest.$ac_objext; then
9657  ac_lo=0 ac_mid=0
9658  while :; do
9659    cat >conftest.$ac_ext <<_ACEOF
9660/* confdefs.h.  */
9661_ACEOF
9662cat confdefs.h >>conftest.$ac_ext
9663cat >>conftest.$ac_ext <<_ACEOF
9664/* end confdefs.h.  */
9665$ac_includes_default
9666   typedef int * ac__type_sizeof_;
9667int
9668main ()
9669{
9670static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9671test_array [0] = 0
9672
9673  ;
9674  return 0;
9675}
9676_ACEOF
9677rm -f conftest.$ac_objext
9678if { (ac_try="$ac_compile"
9679case "(($ac_try" in
9680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9681  *) ac_try_echo=$ac_try;;
9682esac
9683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9684  (eval "$ac_compile") 2>conftest.er1
9685  ac_status=$?
9686  grep -v '^ *+' conftest.er1 >conftest.err
9687  rm -f conftest.er1
9688  cat conftest.err >&5
9689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690  (exit $ac_status); } && {
9691	 test -z "$ac_c_werror_flag" ||
9692	 test ! -s conftest.err
9693       } && test -s conftest.$ac_objext; then
9694  ac_hi=$ac_mid; break
9695else
9696  echo "$as_me: failed program was:" >&5
9697sed 's/^/| /' conftest.$ac_ext >&5
9698
9699	ac_lo=`expr $ac_mid + 1`
9700			if test $ac_lo -le $ac_mid; then
9701			  ac_lo= ac_hi=
9702			  break
9703			fi
9704			ac_mid=`expr 2 '*' $ac_mid + 1`
9705fi
9706
9707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9708  done
9709else
9710  echo "$as_me: failed program was:" >&5
9711sed 's/^/| /' conftest.$ac_ext >&5
9712
9713	cat >conftest.$ac_ext <<_ACEOF
9714/* confdefs.h.  */
9715_ACEOF
9716cat confdefs.h >>conftest.$ac_ext
9717cat >>conftest.$ac_ext <<_ACEOF
9718/* end confdefs.h.  */
9719$ac_includes_default
9720   typedef int * ac__type_sizeof_;
9721int
9722main ()
9723{
9724static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9725test_array [0] = 0
9726
9727  ;
9728  return 0;
9729}
9730_ACEOF
9731rm -f conftest.$ac_objext
9732if { (ac_try="$ac_compile"
9733case "(($ac_try" in
9734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9735  *) ac_try_echo=$ac_try;;
9736esac
9737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9738  (eval "$ac_compile") 2>conftest.er1
9739  ac_status=$?
9740  grep -v '^ *+' conftest.er1 >conftest.err
9741  rm -f conftest.er1
9742  cat conftest.err >&5
9743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744  (exit $ac_status); } && {
9745	 test -z "$ac_c_werror_flag" ||
9746	 test ! -s conftest.err
9747       } && test -s conftest.$ac_objext; then
9748  ac_hi=-1 ac_mid=-1
9749  while :; do
9750    cat >conftest.$ac_ext <<_ACEOF
9751/* confdefs.h.  */
9752_ACEOF
9753cat confdefs.h >>conftest.$ac_ext
9754cat >>conftest.$ac_ext <<_ACEOF
9755/* end confdefs.h.  */
9756$ac_includes_default
9757   typedef int * ac__type_sizeof_;
9758int
9759main ()
9760{
9761static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9762test_array [0] = 0
9763
9764  ;
9765  return 0;
9766}
9767_ACEOF
9768rm -f conftest.$ac_objext
9769if { (ac_try="$ac_compile"
9770case "(($ac_try" in
9771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9772  *) ac_try_echo=$ac_try;;
9773esac
9774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9775  (eval "$ac_compile") 2>conftest.er1
9776  ac_status=$?
9777  grep -v '^ *+' conftest.er1 >conftest.err
9778  rm -f conftest.er1
9779  cat conftest.err >&5
9780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781  (exit $ac_status); } && {
9782	 test -z "$ac_c_werror_flag" ||
9783	 test ! -s conftest.err
9784       } && test -s conftest.$ac_objext; then
9785  ac_lo=$ac_mid; break
9786else
9787  echo "$as_me: failed program was:" >&5
9788sed 's/^/| /' conftest.$ac_ext >&5
9789
9790	ac_hi=`expr '(' $ac_mid ')' - 1`
9791			if test $ac_mid -le $ac_hi; then
9792			  ac_lo= ac_hi=
9793			  break
9794			fi
9795			ac_mid=`expr 2 '*' $ac_mid`
9796fi
9797
9798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9799  done
9800else
9801  echo "$as_me: failed program was:" >&5
9802sed 's/^/| /' conftest.$ac_ext >&5
9803
9804	ac_lo= ac_hi=
9805fi
9806
9807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9808fi
9809
9810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9811# Binary search between lo and hi bounds.
9812while test "x$ac_lo" != "x$ac_hi"; do
9813  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9814  cat >conftest.$ac_ext <<_ACEOF
9815/* confdefs.h.  */
9816_ACEOF
9817cat confdefs.h >>conftest.$ac_ext
9818cat >>conftest.$ac_ext <<_ACEOF
9819/* end confdefs.h.  */
9820$ac_includes_default
9821   typedef int * ac__type_sizeof_;
9822int
9823main ()
9824{
9825static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9826test_array [0] = 0
9827
9828  ;
9829  return 0;
9830}
9831_ACEOF
9832rm -f conftest.$ac_objext
9833if { (ac_try="$ac_compile"
9834case "(($ac_try" in
9835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9836  *) ac_try_echo=$ac_try;;
9837esac
9838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9839  (eval "$ac_compile") 2>conftest.er1
9840  ac_status=$?
9841  grep -v '^ *+' conftest.er1 >conftest.err
9842  rm -f conftest.er1
9843  cat conftest.err >&5
9844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845  (exit $ac_status); } && {
9846	 test -z "$ac_c_werror_flag" ||
9847	 test ! -s conftest.err
9848       } && test -s conftest.$ac_objext; then
9849  ac_hi=$ac_mid
9850else
9851  echo "$as_me: failed program was:" >&5
9852sed 's/^/| /' conftest.$ac_ext >&5
9853
9854	ac_lo=`expr '(' $ac_mid ')' + 1`
9855fi
9856
9857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9858done
9859case $ac_lo in
9860?*) ac_cv_sizeof_int_p=$ac_lo;;
9861'') if test "$ac_cv_type_int_p" = yes; then
9862     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9863See \`config.log' for more details." >&5
9864echo "$as_me: error: cannot compute sizeof (int *)
9865See \`config.log' for more details." >&2;}
9866   { (exit 77); exit 77; }; }
9867   else
9868     ac_cv_sizeof_int_p=0
9869   fi ;;
9870esac
9871else
9872  cat >conftest.$ac_ext <<_ACEOF
9873/* confdefs.h.  */
9874_ACEOF
9875cat confdefs.h >>conftest.$ac_ext
9876cat >>conftest.$ac_ext <<_ACEOF
9877/* end confdefs.h.  */
9878$ac_includes_default
9879   typedef int * ac__type_sizeof_;
9880static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9881static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9882#include <stdio.h>
9883#include <stdlib.h>
9884int
9885main ()
9886{
9887
9888  FILE *f = fopen ("conftest.val", "w");
9889  if (! f)
9890    return 1;
9891  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9892    {
9893      long int i = longval ();
9894      if (i != ((long int) (sizeof (ac__type_sizeof_))))
9895	return 1;
9896      fprintf (f, "%ld\n", i);
9897    }
9898  else
9899    {
9900      unsigned long int i = ulongval ();
9901      if (i != ((long int) (sizeof (ac__type_sizeof_))))
9902	return 1;
9903      fprintf (f, "%lu\n", i);
9904    }
9905  return ferror (f) || fclose (f) != 0;
9906
9907  ;
9908  return 0;
9909}
9910_ACEOF
9911rm -f conftest$ac_exeext
9912if { (ac_try="$ac_link"
9913case "(($ac_try" in
9914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9915  *) ac_try_echo=$ac_try;;
9916esac
9917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9918  (eval "$ac_link") 2>&5
9919  ac_status=$?
9920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9922  { (case "(($ac_try" in
9923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9924  *) ac_try_echo=$ac_try;;
9925esac
9926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9927  (eval "$ac_try") 2>&5
9928  ac_status=$?
9929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930  (exit $ac_status); }; }; then
9931  ac_cv_sizeof_int_p=`cat conftest.val`
9932else
9933  echo "$as_me: program exited with status $ac_status" >&5
9934echo "$as_me: failed program was:" >&5
9935sed 's/^/| /' conftest.$ac_ext >&5
9936
9937( exit $ac_status )
9938if test "$ac_cv_type_int_p" = yes; then
9939     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9940See \`config.log' for more details." >&5
9941echo "$as_me: error: cannot compute sizeof (int *)
9942See \`config.log' for more details." >&2;}
9943   { (exit 77); exit 77; }; }
9944   else
9945     ac_cv_sizeof_int_p=0
9946   fi
9947fi
9948rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9949fi
9950rm -f conftest.val
9951fi
9952{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
9953echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
9954
9955
9956
9957cat >>confdefs.h <<_ACEOF
9958#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9959_ACEOF
9960
9961
9962if test "$cross_compiling" = yes; then
9963    echo "configure: warning: Define SIZEOF_* values in config.h manually"
9964fi
9965if test $ac_cv_sizeof_char -ge 2; then
9966  RINT16T=char
9967
9968cat >>confdefs.h <<\_ACEOF
9969#define RINT16T char
9970_ACEOF
9971
9972
9973cat >>confdefs.h <<\_ACEOF
9974#define RUINT16T unsigned char
9975_ACEOF
9976
9977else
9978  if test $ac_cv_sizeof_short -ge 2; then
9979    RINT16T=short
9980
9981cat >>confdefs.h <<\_ACEOF
9982#define RINT16T short
9983_ACEOF
9984
9985
9986cat >>confdefs.h <<\_ACEOF
9987#define RUINT16T unsigned short
9988_ACEOF
9989
9990  else
9991    if test $ac_cv_sizeof_int -ge 2; then
9992      RINT16T=int
9993
9994cat >>confdefs.h <<\_ACEOF
9995#define RINT16T int
9996_ACEOF
9997
9998
9999cat >>confdefs.h <<\_ACEOF
10000#define RUINT16T unsigned int
10001_ACEOF
10002
10003    else	      RINT16T=long
10004
10005cat >>confdefs.h <<\_ACEOF
10006#define RINT16T long
10007_ACEOF
10008
10009
10010cat >>confdefs.h <<\_ACEOF
10011#define RUINT16T unsigned long
10012_ACEOF
10013
10014    fi
10015  fi
10016fi
10017if test $ac_cv_sizeof_char -ge 4; then
10018  RINT32T=char
10019
10020cat >>confdefs.h <<\_ACEOF
10021#define RINT32T char
10022_ACEOF
10023
10024
10025cat >>confdefs.h <<\_ACEOF
10026#define RUINT32T unsigned char
10027_ACEOF
10028
10029else
10030  if test $ac_cv_sizeof_short -ge 4; then
10031    RINT32T=short
10032
10033cat >>confdefs.h <<\_ACEOF
10034#define RINT32T short
10035_ACEOF
10036
10037
10038cat >>confdefs.h <<\_ACEOF
10039#define RUINT32T unsigned short
10040_ACEOF
10041
10042  else
10043    if test $ac_cv_sizeof_int -ge 4; then
10044      RINT32T=int
10045
10046cat >>confdefs.h <<\_ACEOF
10047#define RINT32T int
10048_ACEOF
10049
10050
10051cat >>confdefs.h <<\_ACEOF
10052#define RUINT32T unsigned int
10053_ACEOF
10054
10055    else	      RINT32T=long
10056
10057cat >>confdefs.h <<\_ACEOF
10058#define RINT32T long
10059_ACEOF
10060
10061
10062cat >>confdefs.h <<\_ACEOF
10063#define RUINT32T unsigned long
10064_ACEOF
10065
10066    fi
10067  fi
10068fi
10069if test $ac_cv_sizeof_char -eq $ac_cv_sizeof_int_p; then
10070  RINTPT=char
10071
10072cat >>confdefs.h <<\_ACEOF
10073#define RINTPT char
10074_ACEOF
10075
10076
10077cat >>confdefs.h <<\_ACEOF
10078#define RUINTPT unsigned char
10079_ACEOF
10080
10081else
10082  if test $ac_cv_sizeof_short -eq $ac_cv_sizeof_int_p; then
10083    RINTPT=short
10084
10085cat >>confdefs.h <<\_ACEOF
10086#define RINTPT short
10087_ACEOF
10088
10089
10090cat >>confdefs.h <<\_ACEOF
10091#define RUINTPT unsigned short
10092_ACEOF
10093
10094  else
10095    if test $ac_cv_sizeof_int -eq $ac_cv_sizeof_int_p; then
10096      RINTPT=int
10097
10098cat >>confdefs.h <<\_ACEOF
10099#define RINTPT int
10100_ACEOF
10101
10102
10103cat >>confdefs.h <<\_ACEOF
10104#define RUINTPT unsigned int
10105_ACEOF
10106
10107    else	      RINTPT=long
10108
10109cat >>confdefs.h <<\_ACEOF
10110#define RINTPT long
10111_ACEOF
10112
10113
10114cat >>confdefs.h <<\_ACEOF
10115#define RUINTPT unsigned long
10116_ACEOF
10117
10118    fi
10119  fi
10120fi
10121
10122{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10123echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
10124if test "${ac_cv_type_signal+set}" = set; then
10125  echo $ECHO_N "(cached) $ECHO_C" >&6
10126else
10127  cat >conftest.$ac_ext <<_ACEOF
10128/* confdefs.h.  */
10129_ACEOF
10130cat confdefs.h >>conftest.$ac_ext
10131cat >>conftest.$ac_ext <<_ACEOF
10132/* end confdefs.h.  */
10133#include <sys/types.h>
10134#include <signal.h>
10135
10136int
10137main ()
10138{
10139return *(signal (0, 0)) (0) == 1;
10140  ;
10141  return 0;
10142}
10143_ACEOF
10144rm -f conftest.$ac_objext
10145if { (ac_try="$ac_compile"
10146case "(($ac_try" in
10147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10148  *) ac_try_echo=$ac_try;;
10149esac
10150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10151  (eval "$ac_compile") 2>conftest.er1
10152  ac_status=$?
10153  grep -v '^ *+' conftest.er1 >conftest.err
10154  rm -f conftest.er1
10155  cat conftest.err >&5
10156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157  (exit $ac_status); } && {
10158	 test -z "$ac_c_werror_flag" ||
10159	 test ! -s conftest.err
10160       } && test -s conftest.$ac_objext; then
10161  ac_cv_type_signal=int
10162else
10163  echo "$as_me: failed program was:" >&5
10164sed 's/^/| /' conftest.$ac_ext >&5
10165
10166	ac_cv_type_signal=void
10167fi
10168
10169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10170fi
10171{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10172echo "${ECHO_T}$ac_cv_type_signal" >&6; }
10173
10174cat >>confdefs.h <<_ACEOF
10175#define RETSIGTYPE $ac_cv_type_signal
10176_ACEOF
10177
10178
10179
10180
10181
10182
10183for ac_func in \
10184	atexit \
10185	unsetenv \
10186	setutent \
10187	seteuid \
10188
10189do
10190as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10191{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10192echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10193if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10194  echo $ECHO_N "(cached) $ECHO_C" >&6
10195else
10196  cat >conftest.$ac_ext <<_ACEOF
10197/* confdefs.h.  */
10198_ACEOF
10199cat confdefs.h >>conftest.$ac_ext
10200cat >>conftest.$ac_ext <<_ACEOF
10201/* end confdefs.h.  */
10202/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10203   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10204#define $ac_func innocuous_$ac_func
10205
10206/* System header to define __stub macros and hopefully few prototypes,
10207    which can conflict with char $ac_func (); below.
10208    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10209    <limits.h> exists even on freestanding compilers.  */
10210
10211#ifdef __STDC__
10212# include <limits.h>
10213#else
10214# include <assert.h>
10215#endif
10216
10217#undef $ac_func
10218
10219/* Override any GCC internal prototype to avoid an error.
10220   Use char because int might match the return type of a GCC
10221   builtin and then its argument prototype would still apply.  */
10222#ifdef __cplusplus
10223extern "C"
10224#endif
10225char $ac_func ();
10226/* The GNU C library defines this for functions which it implements
10227    to always fail with ENOSYS.  Some functions are actually named
10228    something starting with __ and the normal name is an alias.  */
10229#if defined __stub_$ac_func || defined __stub___$ac_func
10230choke me
10231#endif
10232
10233int
10234main ()
10235{
10236return $ac_func ();
10237  ;
10238  return 0;
10239}
10240_ACEOF
10241rm -f conftest.$ac_objext conftest$ac_exeext
10242if { (ac_try="$ac_link"
10243case "(($ac_try" in
10244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10245  *) ac_try_echo=$ac_try;;
10246esac
10247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10248  (eval "$ac_link") 2>conftest.er1
10249  ac_status=$?
10250  grep -v '^ *+' conftest.er1 >conftest.err
10251  rm -f conftest.er1
10252  cat conftest.err >&5
10253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254  (exit $ac_status); } && {
10255	 test -z "$ac_c_werror_flag" ||
10256	 test ! -s conftest.err
10257       } && test -s conftest$ac_exeext &&
10258       $as_test_x conftest$ac_exeext; then
10259  eval "$as_ac_var=yes"
10260else
10261  echo "$as_me: failed program was:" >&5
10262sed 's/^/| /' conftest.$ac_ext >&5
10263
10264	eval "$as_ac_var=no"
10265fi
10266
10267rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10268      conftest$ac_exeext conftest.$ac_ext
10269fi
10270ac_res=`eval echo '${'$as_ac_var'}'`
10271	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10272echo "${ECHO_T}$ac_res" >&6; }
10273if test `eval echo '${'$as_ac_var'}'` = yes; then
10274  cat >>confdefs.h <<_ACEOF
10275#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10276_ACEOF
10277
10278fi
10279done
10280
10281
10282
10283{ echo "$as_me:$LINENO: checking for host in utmp struct" >&5
10284echo $ECHO_N "checking for host in utmp struct... $ECHO_C" >&6; }
10285if test "${rxvt_cv_struct_utmp_host+set}" = set; then
10286  echo $ECHO_N "(cached) $ECHO_C" >&6
10287else
10288  cat >conftest.$ac_ext <<_ACEOF
10289/* confdefs.h.  */
10290_ACEOF
10291cat confdefs.h >>conftest.$ac_ext
10292cat >>conftest.$ac_ext <<_ACEOF
10293/* end confdefs.h.  */
10294#include <sys/types.h>
10295#ifdef HAVE_UTMPX_H
10296#include <utmpx.h>
10297#else
10298#include <utmp.h>
10299#endif
10300int
10301main ()
10302{
10303
10304#ifdef HAVE_UTMPX_H
10305struct utmpx ut;
10306#else
10307struct utmp ut;
10308#endif
10309ut.ut_host;
10310  ;
10311  return 0;
10312}
10313_ACEOF
10314rm -f conftest.$ac_objext
10315if { (ac_try="$ac_compile"
10316case "(($ac_try" in
10317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10318  *) ac_try_echo=$ac_try;;
10319esac
10320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10321  (eval "$ac_compile") 2>conftest.er1
10322  ac_status=$?
10323  grep -v '^ *+' conftest.er1 >conftest.err
10324  rm -f conftest.er1
10325  cat conftest.err >&5
10326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327  (exit $ac_status); } && {
10328	 test -z "$ac_c_werror_flag" ||
10329	 test ! -s conftest.err
10330       } && test -s conftest.$ac_objext; then
10331  rxvt_cv_struct_utmp_host=yes
10332else
10333  echo "$as_me: failed program was:" >&5
10334sed 's/^/| /' conftest.$ac_ext >&5
10335
10336	rxvt_cv_struct_utmp_host=no
10337fi
10338
10339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10340fi
10341{ echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5
10342echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6; }
10343if test "$rxvt_cv_struct_utmp_host" = yes; then
10344
10345cat >>confdefs.h <<\_ACEOF
10346#define HAVE_UTMP_HOST 1
10347_ACEOF
10348
10349fi
10350
10351if test "$ac_cv_header_utmpx_h" = yes; then
10352  { echo "$as_me:$LINENO: checking where utmp is located" >&5
10353echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6; }
10354if test "${rxvt_cv_path_utmp+set}" = set; then
10355  echo $ECHO_N "(cached) $ECHO_C" >&6
10356else
10357  for utmp_file in       /var/run/utmp /var/adm/utmpx /etc/utmpx;
10358  do
10359    if test -f "$utmp_file" ; then
10360      rxvt_cv_path_utmp=$utmp_file
10361      break
10362    fi
10363  done
10364
10365fi
10366{ echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5
10367echo "${ECHO_T}$rxvt_cv_path_utmp" >&6; }
10368
10369cat >>confdefs.h <<\_ACEOF
10370#define _GNU_SOURCE 1
10371_ACEOF
10372
10373else
10374  { echo "$as_me:$LINENO: checking where utmp is located" >&5
10375echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6; }
10376if test "${rxvt_cv_path_utmp+set}" = set; then
10377  echo $ECHO_N "(cached) $ECHO_C" >&6
10378else
10379  for utmp_file in       /var/run/utmp /var/adm/utmp /etc/utmp /usr/etc/utmp /usr/adm/utmp;
10380  do
10381    if test -f "$utmp_file" ; then
10382      rxvt_cv_path_utmp=$utmp_file
10383      break
10384    fi
10385  done
10386
10387fi
10388{ echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5
10389echo "${ECHO_T}$rxvt_cv_path_utmp" >&6; }
10390fi
10391if test "${rxvt_cv_path_utmp+set}" = set; then
10392
10393cat >>confdefs.h <<_ACEOF
10394#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp"
10395_ACEOF
10396
10397fi
10398
10399{ echo "$as_me:$LINENO: checking where wtmp is located" >&5
10400echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6; }
10401if test "${rxvt_cv_path_wtmp+set}" = set; then
10402  echo $ECHO_N "(cached) $ECHO_C" >&6
10403else
10404  for wtmp_file in     /var/log/wtmp /var/adm/wtmp /etc/wtmp /usr/etc/wtmp /usr/adm/wtmp;
10405do
10406  if test -f "$wtmp_file" ; then
10407    rxvt_cv_path_wtmp=$wtmp_file
10408    break
10409  fi
10410done
10411
10412fi
10413{ echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5
10414echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6; }
10415if test "${rxvt_cv_path_wtmp+set}" = set; then
10416
10417cat >>confdefs.h <<_ACEOF
10418#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp"
10419_ACEOF
10420
10421fi
10422
10423{ echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
10424echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; }
10425if test "${rxvt_cv_path_ttytab+set}" = set; then
10426  echo $ECHO_N "(cached) $ECHO_C" >&6
10427else
10428  for ttys_file in     /etc/ttys /etc/ttytab;
10429do
10430  if test -f "$ttys_file" ; then
10431    rxvt_cv_path_ttytab=$ttys_file
10432    break
10433  fi
10434done
10435
10436fi
10437{ echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
10438echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; }
10439if test "${rxvt_cv_path_ttytab+set}" = set; then
10440
10441cat >>confdefs.h <<_ACEOF
10442#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
10443_ACEOF
10444
10445fi
10446
10447SAVETHELIBS=$LIBS
10448LIBS="$LIBS $X_LIBS $X_PRE_LIBS $X_EXTRA_LIBS -lX11 -lXmu"
10449CFLAGS="$CFLAGS $X_CFLAGS"
10450{ echo "$as_me:$LINENO: checking for working Xlocale" >&5
10451echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; }
10452if test "${rxvt_cv_func_xlocale+set}" = set; then
10453  echo $ECHO_N "(cached) $ECHO_C" >&6
10454else
10455  if test "$cross_compiling" = yes; then
10456  { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5
10457echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
10458else
10459  cat >conftest.$ac_ext <<_ACEOF
10460/* confdefs.h.  */
10461_ACEOF
10462cat confdefs.h >>conftest.$ac_ext
10463cat >>conftest.$ac_ext <<_ACEOF
10464/* end confdefs.h.  */
10465#define X_LOCALE 1
10466#include <X11/Xlocale.h>
10467#include <X11/Xlib.h>
10468main() {
10469char *p;
10470if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
10471exit (XSupportsLocale() ? 0 : 1);
10472else
10473exit (1);}
10474
10475_ACEOF
10476rm -f conftest$ac_exeext
10477if { (ac_try="$ac_link"
10478case "(($ac_try" in
10479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10480  *) ac_try_echo=$ac_try;;
10481esac
10482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10483  (eval "$ac_link") 2>&5
10484  ac_status=$?
10485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10487  { (case "(($ac_try" in
10488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10489  *) ac_try_echo=$ac_try;;
10490esac
10491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10492  (eval "$ac_try") 2>&5
10493  ac_status=$?
10494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495  (exit $ac_status); }; }; then
10496  rxvt_cv_func_xlocale=yes
10497else
10498  echo "$as_me: program exited with status $ac_status" >&5
10499echo "$as_me: failed program was:" >&5
10500sed 's/^/| /' conftest.$ac_ext >&5
10501
10502( exit $ac_status )
10503rxvt_cv_func_xlocale=no
10504fi
10505rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10506fi
10507
10508
10509fi
10510{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
10511echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; }
10512
10513if test "${rxvt_cv_func_xlocale}" = no; then
10514
10515cat >>confdefs.h <<\_ACEOF
10516#define NO_XLOCALE 1
10517_ACEOF
10518
10519fi
10520LIBS=$SAVETHELIBS
10521
10522{ echo "$as_me:$LINENO: checking for working setlocale" >&5
10523echo $ECHO_N "checking for working setlocale... $ECHO_C" >&6; }
10524if test "${rxvt_cv_func_xsetlocale+set}" = set; then
10525  echo $ECHO_N "(cached) $ECHO_C" >&6
10526else
10527  cat >conftest.$ac_ext <<_ACEOF
10528/* confdefs.h.  */
10529_ACEOF
10530cat confdefs.h >>conftest.$ac_ext
10531cat >>conftest.$ac_ext <<_ACEOF
10532/* end confdefs.h.  */
10533#define X_LOCALE 1
10534#include <X11/Xlocale.h>
10535int
10536main ()
10537{
10538setlocale(LC_CTYPE, "");
10539  ;
10540  return 0;
10541}
10542_ACEOF
10543rm -f conftest.$ac_objext conftest$ac_exeext
10544if { (ac_try="$ac_link"
10545case "(($ac_try" in
10546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10547  *) ac_try_echo=$ac_try;;
10548esac
10549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10550  (eval "$ac_link") 2>conftest.er1
10551  ac_status=$?
10552  grep -v '^ *+' conftest.er1 >conftest.err
10553  rm -f conftest.er1
10554  cat conftest.err >&5
10555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556  (exit $ac_status); } && {
10557	 test -z "$ac_c_werror_flag" ||
10558	 test ! -s conftest.err
10559       } && test -s conftest$ac_exeext &&
10560       $as_test_x conftest$ac_exeext; then
10561  rxvt_cv_func_xsetlocale=yes
10562else
10563  echo "$as_me: failed program was:" >&5
10564sed 's/^/| /' conftest.$ac_ext >&5
10565
10566	rxvt_cv_func_xsetlocale=no
10567fi
10568
10569rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10570      conftest$ac_exeext conftest.$ac_ext
10571fi
10572{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5
10573echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6; }
10574if test "${rxvt_cv_func_xsetlocale}" = no; then
10575  cat >>confdefs.h <<\_ACEOF
10576#define NO_XSETLOCALE 1
10577_ACEOF
10578
10579fi
10580
10581{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5
10582echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; }
10583if test "${rxvt_cv_func_setlocale+set}" = set; then
10584  echo $ECHO_N "(cached) $ECHO_C" >&6
10585else
10586  cat >conftest.$ac_ext <<_ACEOF
10587/* confdefs.h.  */
10588_ACEOF
10589cat confdefs.h >>conftest.$ac_ext
10590cat >>conftest.$ac_ext <<_ACEOF
10591/* end confdefs.h.  */
10592#include <locale.h>
10593int
10594main ()
10595{
10596setlocale(LC_CTYPE, "");
10597  ;
10598  return 0;
10599}
10600_ACEOF
10601rm -f conftest.$ac_objext conftest$ac_exeext
10602if { (ac_try="$ac_link"
10603case "(($ac_try" in
10604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605  *) ac_try_echo=$ac_try;;
10606esac
10607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608  (eval "$ac_link") 2>conftest.er1
10609  ac_status=$?
10610  grep -v '^ *+' conftest.er1 >conftest.err
10611  rm -f conftest.er1
10612  cat conftest.err >&5
10613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614  (exit $ac_status); } && {
10615	 test -z "$ac_c_werror_flag" ||
10616	 test ! -s conftest.err
10617       } && test -s conftest$ac_exeext &&
10618       $as_test_x conftest$ac_exeext; then
10619  rxvt_cv_func_setlocale=yes
10620else
10621  echo "$as_me: failed program was:" >&5
10622sed 's/^/| /' conftest.$ac_ext >&5
10623
10624	rxvt_cv_func_setlocale=no
10625fi
10626
10627rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10628      conftest$ac_exeext conftest.$ac_ext
10629fi
10630{ echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5
10631echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6; }
10632if test x${rxvt_cv_func_setlocale} = xno; then
10633
10634cat >>confdefs.h <<\_ACEOF
10635#define NO_SETLOCALE 1
10636_ACEOF
10637
10638fi
10639
10640
10641CFLAGS=${CFLAGS--O}
10642LDFLAGS=${LDFLAGS--O}
10643
10644CPPFLAGS="$CPPFLAGS"
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655MCOMMON=./autoconf/Make.common
10656
10657
10658ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/graphics/Makefile scripts/random_colors"
10659
10660cat >confcache <<\_ACEOF
10661# This file is a shell script that caches the results of configure
10662# tests run on this system so they can be shared between configure
10663# scripts and configure runs, see configure's option --config-cache.
10664# It is not useful on other systems.  If it contains results you don't
10665# want to keep, you may remove or edit it.
10666#
10667# config.status only pays attention to the cache file if you give it
10668# the --recheck option to rerun configure.
10669#
10670# `ac_cv_env_foo' variables (set or unset) will be overridden when
10671# loading this file, other *unset* `ac_cv_foo' will be assigned the
10672# following values.
10673
10674_ACEOF
10675
10676# The following way of writing the cache mishandles newlines in values,
10677# but we know of no workaround that is simple, portable, and efficient.
10678# So, we kill variables containing newlines.
10679# Ultrix sh set writes to stderr and can't be redirected directly,
10680# and sets the high bit in the cache file unless we assign to the vars.
10681(
10682  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10683    eval ac_val=\$$ac_var
10684    case $ac_val in #(
10685    *${as_nl}*)
10686      case $ac_var in #(
10687      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10688echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10689      esac
10690      case $ac_var in #(
10691      _ | IFS | as_nl) ;; #(
10692      *) $as_unset $ac_var ;;
10693      esac ;;
10694    esac
10695  done
10696
10697  (set) 2>&1 |
10698    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10699    *${as_nl}ac_space=\ *)
10700      # `set' does not quote correctly, so add quotes (double-quote
10701      # substitution turns \\\\ into \\, and sed turns \\ into \).
10702      sed -n \
10703	"s/'/'\\\\''/g;
10704	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10705      ;; #(
10706    *)
10707      # `set' quotes correctly as required by POSIX, so do not add quotes.
10708      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10709      ;;
10710    esac |
10711    sort
10712) |
10713  sed '
10714     /^ac_cv_env_/b end
10715     t clear
10716     :clear
10717     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10718     t end
10719     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10720     :end' >>confcache
10721if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10722  if test -w "$cache_file"; then
10723    test "x$cache_file" != "x/dev/null" &&
10724      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10725echo "$as_me: updating cache $cache_file" >&6;}
10726    cat confcache >$cache_file
10727  else
10728    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10729echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10730  fi
10731fi
10732rm -f confcache
10733
10734test "x$prefix" = xNONE && prefix=$ac_default_prefix
10735# Let make expand exec_prefix.
10736test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10737
10738DEFS=-DHAVE_CONFIG_H
10739
10740ac_libobjs=
10741ac_ltlibobjs=
10742for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10743  # 1. Remove the extension, and $U if already installed.
10744  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10745  ac_i=`echo "$ac_i" | sed "$ac_script"`
10746  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10747  #    will be set to the directory where LIBOBJS objects are built.
10748  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10749  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10750done
10751LIBOBJS=$ac_libobjs
10752
10753LTLIBOBJS=$ac_ltlibobjs
10754
10755
10756
10757: ${CONFIG_STATUS=./config.status}
10758ac_clean_files_save=$ac_clean_files
10759ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10760{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10761echo "$as_me: creating $CONFIG_STATUS" >&6;}
10762cat >$CONFIG_STATUS <<_ACEOF
10763#! $SHELL
10764# Generated by $as_me.
10765# Run this file to recreate the current configuration.
10766# Compiler output produced by configure, useful for debugging
10767# configure, is in config.log if it exists.
10768
10769debug=false
10770ac_cs_recheck=false
10771ac_cs_silent=false
10772SHELL=\${CONFIG_SHELL-$SHELL}
10773_ACEOF
10774
10775cat >>$CONFIG_STATUS <<\_ACEOF
10776## --------------------- ##
10777## M4sh Initialization.  ##
10778## --------------------- ##
10779
10780# Be more Bourne compatible
10781DUALCASE=1; export DUALCASE # for MKS sh
10782if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10783  emulate sh
10784  NULLCMD=:
10785  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10786  # is contrary to our usage.  Disable this feature.
10787  alias -g '${1+"$@"}'='"$@"'
10788  setopt NO_GLOB_SUBST
10789else
10790  case `(set -o) 2>/dev/null` in
10791  *posix*) set -o posix ;;
10792esac
10793
10794fi
10795
10796
10797
10798
10799# PATH needs CR
10800# Avoid depending upon Character Ranges.
10801as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10802as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10803as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10804as_cr_digits='0123456789'
10805as_cr_alnum=$as_cr_Letters$as_cr_digits
10806
10807# The user is always right.
10808if test "${PATH_SEPARATOR+set}" != set; then
10809  echo "#! /bin/sh" >conf$$.sh
10810  echo  "exit 0"   >>conf$$.sh
10811  chmod +x conf$$.sh
10812  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10813    PATH_SEPARATOR=';'
10814  else
10815    PATH_SEPARATOR=:
10816  fi
10817  rm -f conf$$.sh
10818fi
10819
10820# Support unset when possible.
10821if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10822  as_unset=unset
10823else
10824  as_unset=false
10825fi
10826
10827
10828# IFS
10829# We need space, tab and new line, in precisely that order.  Quoting is
10830# there to prevent editors from complaining about space-tab.
10831# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10832# splitting by setting IFS to empty value.)
10833as_nl='
10834'
10835IFS=" ""	$as_nl"
10836
10837# Find who we are.  Look in the path if we contain no directory separator.
10838case $0 in
10839  *[\\/]* ) as_myself=$0 ;;
10840  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10841for as_dir in $PATH
10842do
10843  IFS=$as_save_IFS
10844  test -z "$as_dir" && as_dir=.
10845  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10846done
10847IFS=$as_save_IFS
10848
10849     ;;
10850esac
10851# We did not find ourselves, most probably we were run as `sh COMMAND'
10852# in which case we are not to be found in the path.
10853if test "x$as_myself" = x; then
10854  as_myself=$0
10855fi
10856if test ! -f "$as_myself"; then
10857  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10858  { (exit 1); exit 1; }
10859fi
10860
10861# Work around bugs in pre-3.0 UWIN ksh.
10862for as_var in ENV MAIL MAILPATH
10863do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10864done
10865PS1='$ '
10866PS2='> '
10867PS4='+ '
10868
10869# NLS nuisances.
10870for as_var in \
10871  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10872  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10873  LC_TELEPHONE LC_TIME
10874do
10875  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10876    eval $as_var=C; export $as_var
10877  else
10878    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10879  fi
10880done
10881
10882# Required to use basename.
10883if expr a : '\(a\)' >/dev/null 2>&1 &&
10884   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10885  as_expr=expr
10886else
10887  as_expr=false
10888fi
10889
10890if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10891  as_basename=basename
10892else
10893  as_basename=false
10894fi
10895
10896
10897# Name of the executable.
10898as_me=`$as_basename -- "$0" ||
10899$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10900	 X"$0" : 'X\(//\)$' \| \
10901	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10902echo X/"$0" |
10903    sed '/^.*\/\([^/][^/]*\)\/*$/{
10904	    s//\1/
10905	    q
10906	  }
10907	  /^X\/\(\/\/\)$/{
10908	    s//\1/
10909	    q
10910	  }
10911	  /^X\/\(\/\).*/{
10912	    s//\1/
10913	    q
10914	  }
10915	  s/.*/./; q'`
10916
10917# CDPATH.
10918$as_unset CDPATH
10919
10920
10921
10922  as_lineno_1=$LINENO
10923  as_lineno_2=$LINENO
10924  test "x$as_lineno_1" != "x$as_lineno_2" &&
10925  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10926
10927  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10928  # uniformly replaced by the line number.  The first 'sed' inserts a
10929  # line-number line after each line using $LINENO; the second 'sed'
10930  # does the real work.  The second script uses 'N' to pair each
10931  # line-number line with the line containing $LINENO, and appends
10932  # trailing '-' during substitution so that $LINENO is not a special
10933  # case at line end.
10934  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10935  # scripts with optimization help from Paolo Bonzini.  Blame Lee
10936  # E. McMahon (1931-1989) for sed's syntax.  :-)
10937  sed -n '
10938    p
10939    /[$]LINENO/=
10940  ' <$as_myself |
10941    sed '
10942      s/[$]LINENO.*/&-/
10943      t lineno
10944      b
10945      :lineno
10946      N
10947      :loop
10948      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10949      t loop
10950      s/-\n.*//
10951    ' >$as_me.lineno &&
10952  chmod +x "$as_me.lineno" ||
10953    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10954   { (exit 1); exit 1; }; }
10955
10956  # Don't try to exec as it changes $[0], causing all sort of problems
10957  # (the dirname of $[0] is not the place where we might find the
10958  # original and so on.  Autoconf is especially sensitive to this).
10959  . "./$as_me.lineno"
10960  # Exit status is that of the last command.
10961  exit
10962}
10963
10964
10965if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10966  as_dirname=dirname
10967else
10968  as_dirname=false
10969fi
10970
10971ECHO_C= ECHO_N= ECHO_T=
10972case `echo -n x` in
10973-n*)
10974  case `echo 'x\c'` in
10975  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
10976  *)   ECHO_C='\c';;
10977  esac;;
10978*)
10979  ECHO_N='-n';;
10980esac
10981
10982if expr a : '\(a\)' >/dev/null 2>&1 &&
10983   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10984  as_expr=expr
10985else
10986  as_expr=false
10987fi
10988
10989rm -f conf$$ conf$$.exe conf$$.file
10990if test -d conf$$.dir; then
10991  rm -f conf$$.dir/conf$$.file
10992else
10993  rm -f conf$$.dir
10994  mkdir conf$$.dir
10995fi
10996echo >conf$$.file
10997if ln -s conf$$.file conf$$ 2>/dev/null; then
10998  as_ln_s='ln -s'
10999  # ... but there are two gotchas:
11000  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11001  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11002  # In both cases, we have to default to `cp -p'.
11003  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11004    as_ln_s='cp -p'
11005elif ln conf$$.file conf$$ 2>/dev/null; then
11006  as_ln_s=ln
11007else
11008  as_ln_s='cp -p'
11009fi
11010rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11011rmdir conf$$.dir 2>/dev/null
11012
11013if mkdir -p . 2>/dev/null; then
11014  as_mkdir_p=:
11015else
11016  test -d ./-p && rmdir ./-p
11017  as_mkdir_p=false
11018fi
11019
11020if test -x / >/dev/null 2>&1; then
11021  as_test_x='test -x'
11022else
11023  if ls -dL / >/dev/null 2>&1; then
11024    as_ls_L_option=L
11025  else
11026    as_ls_L_option=
11027  fi
11028  as_test_x='
11029    eval sh -c '\''
11030      if test -d "$1"; then
11031        test -d "$1/.";
11032      else
11033	case $1 in
11034        -*)set "./$1";;
11035	esac;
11036	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11037	???[sx]*):;;*)false;;esac;fi
11038    '\'' sh
11039  '
11040fi
11041as_executable_p=$as_test_x
11042
11043# Sed expression to map a string onto a valid CPP name.
11044as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11045
11046# Sed expression to map a string onto a valid variable name.
11047as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11048
11049
11050exec 6>&1
11051
11052# Save the log message, to keep $[0] and so on meaningful, and to
11053# report actual input values of CONFIG_FILES etc. instead of their
11054# values after options handling.
11055ac_log="
11056This file was extended by aterm $as_me 1.00.01, which was
11057generated by GNU Autoconf 2.61.  Invocation command line was
11058
11059  CONFIG_FILES    = $CONFIG_FILES
11060  CONFIG_HEADERS  = $CONFIG_HEADERS
11061  CONFIG_LINKS    = $CONFIG_LINKS
11062  CONFIG_COMMANDS = $CONFIG_COMMANDS
11063  $ $0 $@
11064
11065on `(hostname || uname -n) 2>/dev/null | sed 1q`
11066"
11067
11068_ACEOF
11069
11070cat >>$CONFIG_STATUS <<_ACEOF
11071# Files that config.status was made for.
11072config_files="$ac_config_files"
11073config_headers="$ac_config_headers"
11074
11075_ACEOF
11076
11077cat >>$CONFIG_STATUS <<\_ACEOF
11078ac_cs_usage="\
11079\`$as_me' instantiates files from templates according to the
11080current configuration.
11081
11082Usage: $0 [OPTIONS] [FILE]...
11083
11084  -h, --help       print this help, then exit
11085  -V, --version    print version number and configuration settings, then exit
11086  -q, --quiet      do not print progress messages
11087  -d, --debug      don't remove temporary files
11088      --recheck    update $as_me by reconfiguring in the same conditions
11089  --file=FILE[:TEMPLATE]
11090		   instantiate the configuration file FILE
11091  --header=FILE[:TEMPLATE]
11092		   instantiate the configuration header FILE
11093
11094Configuration files:
11095$config_files
11096
11097Configuration headers:
11098$config_headers
11099
11100Report bugs to <bug-autoconf@gnu.org>."
11101
11102_ACEOF
11103cat >>$CONFIG_STATUS <<_ACEOF
11104ac_cs_version="\\
11105aterm config.status 1.00.01
11106configured by $0, generated by GNU Autoconf 2.61,
11107  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11108
11109Copyright (C) 2006 Free Software Foundation, Inc.
11110This config.status script is free software; the Free Software Foundation
11111gives unlimited permission to copy, distribute and modify it."
11112
11113ac_pwd='$ac_pwd'
11114srcdir='$srcdir'
11115INSTALL='$INSTALL'
11116_ACEOF
11117
11118cat >>$CONFIG_STATUS <<\_ACEOF
11119# If no file are specified by the user, then we need to provide default
11120# value.  By we need to know if files were specified by the user.
11121ac_need_defaults=:
11122while test $# != 0
11123do
11124  case $1 in
11125  --*=*)
11126    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11127    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11128    ac_shift=:
11129    ;;
11130  *)
11131    ac_option=$1
11132    ac_optarg=$2
11133    ac_shift=shift
11134    ;;
11135  esac
11136
11137  case $ac_option in
11138  # Handling of the options.
11139  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11140    ac_cs_recheck=: ;;
11141  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11142    echo "$ac_cs_version"; exit ;;
11143  --debug | --debu | --deb | --de | --d | -d )
11144    debug=: ;;
11145  --file | --fil | --fi | --f )
11146    $ac_shift
11147    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11148    ac_need_defaults=false;;
11149  --header | --heade | --head | --hea )
11150    $ac_shift
11151    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11152    ac_need_defaults=false;;
11153  --he | --h)
11154    # Conflict between --help and --header
11155    { echo "$as_me: error: ambiguous option: $1
11156Try \`$0 --help' for more information." >&2
11157   { (exit 1); exit 1; }; };;
11158  --help | --hel | -h )
11159    echo "$ac_cs_usage"; exit ;;
11160  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11161  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11162    ac_cs_silent=: ;;
11163
11164  # This is an error.
11165  -*) { echo "$as_me: error: unrecognized option: $1
11166Try \`$0 --help' for more information." >&2
11167   { (exit 1); exit 1; }; } ;;
11168
11169  *) ac_config_targets="$ac_config_targets $1"
11170     ac_need_defaults=false ;;
11171
11172  esac
11173  shift
11174done
11175
11176ac_configure_extra_args=
11177
11178if $ac_cs_silent; then
11179  exec 6>/dev/null
11180  ac_configure_extra_args="$ac_configure_extra_args --silent"
11181fi
11182
11183_ACEOF
11184cat >>$CONFIG_STATUS <<_ACEOF
11185if \$ac_cs_recheck; then
11186  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11187  CONFIG_SHELL=$SHELL
11188  export CONFIG_SHELL
11189  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11190fi
11191
11192_ACEOF
11193cat >>$CONFIG_STATUS <<\_ACEOF
11194exec 5>>config.log
11195{
11196  echo
11197  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11198## Running $as_me. ##
11199_ASBOX
11200  echo "$ac_log"
11201} >&5
11202
11203_ACEOF
11204cat >>$CONFIG_STATUS <<_ACEOF
11205_ACEOF
11206
11207cat >>$CONFIG_STATUS <<\_ACEOF
11208
11209# Handling of arguments.
11210for ac_config_target in $ac_config_targets
11211do
11212  case $ac_config_target in
11213    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;;
11214    "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
11215    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11216    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11217    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11218    "src/graphics/Makefile") CONFIG_FILES="$CONFIG_FILES src/graphics/Makefile" ;;
11219    "scripts/random_colors") CONFIG_FILES="$CONFIG_FILES scripts/random_colors" ;;
11220
11221  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11222echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11223   { (exit 1); exit 1; }; };;
11224  esac
11225done
11226
11227
11228# If the user did not use the arguments to specify the items to instantiate,
11229# then the envvar interface is used.  Set only those that are not.
11230# We use the long form for the default assignment because of an extremely
11231# bizarre bug on SunOS 4.1.3.
11232if $ac_need_defaults; then
11233  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11234  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11235fi
11236
11237# Have a temporary directory for convenience.  Make it in the build tree
11238# simply because there is no reason against having it here, and in addition,
11239# creating and moving files from /tmp can sometimes cause problems.
11240# Hook for its removal unless debugging.
11241# Note that there is a small window in which the directory will not be cleaned:
11242# after its creation but before its name has been assigned to `$tmp'.
11243$debug ||
11244{
11245  tmp=
11246  trap 'exit_status=$?
11247  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11248' 0
11249  trap '{ (exit 1); exit 1; }' 1 2 13 15
11250}
11251# Create a (secure) tmp directory for tmp files.
11252
11253{
11254  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11255  test -n "$tmp" && test -d "$tmp"
11256}  ||
11257{
11258  tmp=./conf$$-$RANDOM
11259  (umask 077 && mkdir "$tmp")
11260} ||
11261{
11262   echo "$me: cannot create a temporary directory in ." >&2
11263   { (exit 1); exit 1; }
11264}
11265
11266#
11267# Set up the sed scripts for CONFIG_FILES section.
11268#
11269
11270# No need to generate the scripts if there are no CONFIG_FILES.
11271# This happens for instance when ./config.status config.h
11272if test -n "$CONFIG_FILES"; then
11273
11274_ACEOF
11275
11276# Create sed commands to just substitute file output variables.
11277
11278# Remaining file output variables are in a fragment that also has non-file
11279# output varibles.
11280
11281
11282
11283ac_delim='%!_!# '
11284for ac_last_try in false false false false false :; do
11285  cat >conf$$subs.sed <<_ACEOF
11286SHELL!$SHELL$ac_delim
11287PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11288PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11289PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11290PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11291PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11292PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11293exec_prefix!$exec_prefix$ac_delim
11294prefix!$prefix$ac_delim
11295program_transform_name!$program_transform_name$ac_delim
11296bindir!$bindir$ac_delim
11297sbindir!$sbindir$ac_delim
11298libexecdir!$libexecdir$ac_delim
11299datarootdir!$datarootdir$ac_delim
11300datadir!$datadir$ac_delim
11301sysconfdir!$sysconfdir$ac_delim
11302sharedstatedir!$sharedstatedir$ac_delim
11303localstatedir!$localstatedir$ac_delim
11304includedir!$includedir$ac_delim
11305oldincludedir!$oldincludedir$ac_delim
11306docdir!$docdir$ac_delim
11307infodir!$infodir$ac_delim
11308htmldir!$htmldir$ac_delim
11309dvidir!$dvidir$ac_delim
11310pdfdir!$pdfdir$ac_delim
11311psdir!$psdir$ac_delim
11312libdir!$libdir$ac_delim
11313localedir!$localedir$ac_delim
11314mandir!$mandir$ac_delim
11315DEFS!$DEFS$ac_delim
11316ECHO_C!$ECHO_C$ac_delim
11317ECHO_N!$ECHO_N$ac_delim
11318ECHO_T!$ECHO_T$ac_delim
11319LIBS!$LIBS$ac_delim
11320build_alias!$build_alias$ac_delim
11321host_alias!$host_alias$ac_delim
11322target_alias!$target_alias$ac_delim
11323VERSION!$VERSION$ac_delim
11324DATE!$DATE$ac_delim
11325LSMDATE!$LSMDATE$ac_delim
11326CC!$CC$ac_delim
11327CFLAGS!$CFLAGS$ac_delim
11328LDFLAGS!$LDFLAGS$ac_delim
11329CPPFLAGS!$CPPFLAGS$ac_delim
11330ac_ct_CC!$ac_ct_CC$ac_delim
11331EXEEXT!$EXEEXT$ac_delim
11332OBJEXT!$OBJEXT$ac_delim
11333CPP!$CPP$ac_delim
11334GREP!$GREP$ac_delim
11335EGREP!$EGREP$ac_delim
11336INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11337INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11338INSTALL_DATA!$INSTALL_DATA$ac_delim
11339build!$build$ac_delim
11340build_cpu!$build_cpu$ac_delim
11341build_vendor!$build_vendor$ac_delim
11342build_os!$build_os$ac_delim
11343host!$host$ac_delim
11344host_cpu!$host_cpu$ac_delim
11345host_vendor!$host_vendor$ac_delim
11346host_os!$host_os$ac_delim
11347RANLIB!$RANLIB$ac_delim
11348RM!$RM$ac_delim
11349MV!$MV$ac_delim
11350CP!$CP$ac_delim
11351MKDIR!$MKDIR$ac_delim
11352PERL!$PERL$ac_delim
11353FIND!$FIND$ac_delim
11354XARGS!$XARGS$ac_delim
11355LDCONFIG!$LDCONFIG$ac_delim
11356SED!$SED$ac_delim
11357XMKMF!$XMKMF$ac_delim
11358X_CFLAGS!$X_CFLAGS$ac_delim
11359X_PRE_LIBS!$X_PRE_LIBS$ac_delim
11360X_LIBS!$X_LIBS$ac_delim
11361X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
11362LIBAFTERIMAGE_CFLAGS!$LIBAFTERIMAGE_CFLAGS$ac_delim
11363LIBAFTERSTEP_CFLAGS!$LIBAFTERSTEP_CFLAGS$ac_delim
11364AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim
11365AFTERSTEP_LIBS!$AFTERSTEP_LIBS$ac_delim
11366DEBUG!$DEBUG$ac_delim
11367DLIB!$DLIB$ac_delim
11368DINCLUDE!$DINCLUDE$ac_delim
11369XEXTENTIONS_LIBS!$XEXTENTIONS_LIBS$ac_delim
11370LIBOBJS!$LIBOBJS$ac_delim
11371LTLIBOBJS!$LTLIBOBJS$ac_delim
11372_ACEOF
11373
11374  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 86; then
11375    break
11376  elif $ac_last_try; then
11377    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11378echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11379   { (exit 1); exit 1; }; }
11380  else
11381    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11382  fi
11383done
11384
11385ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11386if test -n "$ac_eof"; then
11387  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11388  ac_eof=`expr $ac_eof + 1`
11389fi
11390
11391cat >>$CONFIG_STATUS <<_ACEOF
11392cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11393/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11394/^[	 ]*@MCOMMON@[	 ]*$/{
11395r $MCOMMON
11396d
11397}
11398_ACEOF
11399sed '
11400s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11401s/^/s,@/; s/!/@,|#_!!_#|/
11402:n
11403t n
11404s/'"$ac_delim"'$/,g/; t
11405s/$/\\/; p
11406N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11407' >>$CONFIG_STATUS <conf$$subs.sed
11408rm -f conf$$subs.sed
11409cat >>$CONFIG_STATUS <<_ACEOF
11410:end
11411s/|#_!!_#|//g
11412CEOF$ac_eof
11413_ACEOF
11414
11415
11416# VPATH may cause trouble with some makes, so we remove $(srcdir),
11417# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11418# trailing colons and then remove the whole line if VPATH becomes empty
11419# (actually we leave an empty line to preserve line numbers).
11420if test "x$srcdir" = x.; then
11421  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
11422s/:*\$(srcdir):*/:/
11423s/:*\${srcdir}:*/:/
11424s/:*@srcdir@:*/:/
11425s/^\([^=]*=[	 ]*\):*/\1/
11426s/:*$//
11427s/^[^=]*=[	 ]*$//
11428}'
11429fi
11430
11431cat >>$CONFIG_STATUS <<\_ACEOF
11432fi # test -n "$CONFIG_FILES"
11433
11434
11435for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
11436do
11437  case $ac_tag in
11438  :[FHLC]) ac_mode=$ac_tag; continue;;
11439  esac
11440  case $ac_mode$ac_tag in
11441  :[FHL]*:*);;
11442  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11443echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11444   { (exit 1); exit 1; }; };;
11445  :[FH]-) ac_tag=-:-;;
11446  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11447  esac
11448  ac_save_IFS=$IFS
11449  IFS=:
11450  set x $ac_tag
11451  IFS=$ac_save_IFS
11452  shift
11453  ac_file=$1
11454  shift
11455
11456  case $ac_mode in
11457  :L) ac_source=$1;;
11458  :[FH])
11459    ac_file_inputs=
11460    for ac_f
11461    do
11462      case $ac_f in
11463      -) ac_f="$tmp/stdin";;
11464      *) # Look for the file first in the build tree, then in the source tree
11465	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11466	 # because $ac_f cannot contain `:'.
11467	 test -f "$ac_f" ||
11468	   case $ac_f in
11469	   [\\/$]*) false;;
11470	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11471	   esac ||
11472	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11473echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11474   { (exit 1); exit 1; }; };;
11475      esac
11476      ac_file_inputs="$ac_file_inputs $ac_f"
11477    done
11478
11479    # Let's still pretend it is `configure' which instantiates (i.e., don't
11480    # use $as_me), people would be surprised to read:
11481    #    /* config.h.  Generated by config.status.  */
11482    configure_input="Generated from "`IFS=:
11483	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11484    if test x"$ac_file" != x-; then
11485      configure_input="$ac_file.  $configure_input"
11486      { echo "$as_me:$LINENO: creating $ac_file" >&5
11487echo "$as_me: creating $ac_file" >&6;}
11488    fi
11489
11490    case $ac_tag in
11491    *:-:* | *:-) cat >"$tmp/stdin";;
11492    esac
11493    ;;
11494  esac
11495
11496  ac_dir=`$as_dirname -- "$ac_file" ||
11497$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11498	 X"$ac_file" : 'X\(//\)[^/]' \| \
11499	 X"$ac_file" : 'X\(//\)$' \| \
11500	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11501echo X"$ac_file" |
11502    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11503	    s//\1/
11504	    q
11505	  }
11506	  /^X\(\/\/\)[^/].*/{
11507	    s//\1/
11508	    q
11509	  }
11510	  /^X\(\/\/\)$/{
11511	    s//\1/
11512	    q
11513	  }
11514	  /^X\(\/\).*/{
11515	    s//\1/
11516	    q
11517	  }
11518	  s/.*/./; q'`
11519  { as_dir="$ac_dir"
11520  case $as_dir in #(
11521  -*) as_dir=./$as_dir;;
11522  esac
11523  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11524    as_dirs=
11525    while :; do
11526      case $as_dir in #(
11527      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11528      *) as_qdir=$as_dir;;
11529      esac
11530      as_dirs="'$as_qdir' $as_dirs"
11531      as_dir=`$as_dirname -- "$as_dir" ||
11532$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11533	 X"$as_dir" : 'X\(//\)[^/]' \| \
11534	 X"$as_dir" : 'X\(//\)$' \| \
11535	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11536echo X"$as_dir" |
11537    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11538	    s//\1/
11539	    q
11540	  }
11541	  /^X\(\/\/\)[^/].*/{
11542	    s//\1/
11543	    q
11544	  }
11545	  /^X\(\/\/\)$/{
11546	    s//\1/
11547	    q
11548	  }
11549	  /^X\(\/\).*/{
11550	    s//\1/
11551	    q
11552	  }
11553	  s/.*/./; q'`
11554      test -d "$as_dir" && break
11555    done
11556    test -z "$as_dirs" || eval "mkdir $as_dirs"
11557  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11558echo "$as_me: error: cannot create directory $as_dir" >&2;}
11559   { (exit 1); exit 1; }; }; }
11560  ac_builddir=.
11561
11562case "$ac_dir" in
11563.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11564*)
11565  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11566  # A ".." for each directory in $ac_dir_suffix.
11567  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11568  case $ac_top_builddir_sub in
11569  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11570  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11571  esac ;;
11572esac
11573ac_abs_top_builddir=$ac_pwd
11574ac_abs_builddir=$ac_pwd$ac_dir_suffix
11575# for backward compatibility:
11576ac_top_builddir=$ac_top_build_prefix
11577
11578case $srcdir in
11579  .)  # We are building in place.
11580    ac_srcdir=.
11581    ac_top_srcdir=$ac_top_builddir_sub
11582    ac_abs_top_srcdir=$ac_pwd ;;
11583  [\\/]* | ?:[\\/]* )  # Absolute name.
11584    ac_srcdir=$srcdir$ac_dir_suffix;
11585    ac_top_srcdir=$srcdir
11586    ac_abs_top_srcdir=$srcdir ;;
11587  *) # Relative name.
11588    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11589    ac_top_srcdir=$ac_top_build_prefix$srcdir
11590    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11591esac
11592ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11593
11594
11595  case $ac_mode in
11596  :F)
11597  #
11598  # CONFIG_FILE
11599  #
11600
11601  case $INSTALL in
11602  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11603  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11604  esac
11605_ACEOF
11606
11607cat >>$CONFIG_STATUS <<\_ACEOF
11608# If the template does not know about datarootdir, expand it.
11609# FIXME: This hack should be removed a few years after 2.60.
11610ac_datarootdir_hack=; ac_datarootdir_seen=
11611
11612case `sed -n '/datarootdir/ {
11613  p
11614  q
11615}
11616/@datadir@/p
11617/@docdir@/p
11618/@infodir@/p
11619/@localedir@/p
11620/@mandir@/p
11621' $ac_file_inputs` in
11622*datarootdir*) ac_datarootdir_seen=yes;;
11623*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11624  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11625echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11626_ACEOF
11627cat >>$CONFIG_STATUS <<_ACEOF
11628  ac_datarootdir_hack='
11629  s&@datadir@&$datadir&g
11630  s&@docdir@&$docdir&g
11631  s&@infodir@&$infodir&g
11632  s&@localedir@&$localedir&g
11633  s&@mandir@&$mandir&g
11634    s&\\\${datarootdir}&$datarootdir&g' ;;
11635esac
11636_ACEOF
11637
11638# Neutralize VPATH when `$srcdir' = `.'.
11639# Shell code in configure.ac might set extrasub.
11640# FIXME: do we really want to maintain this feature?
11641cat >>$CONFIG_STATUS <<_ACEOF
11642  sed "$ac_vpsub
11643$extrasub
11644_ACEOF
11645cat >>$CONFIG_STATUS <<\_ACEOF
11646:t
11647/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11648s&@configure_input@&$configure_input&;t t
11649s&@top_builddir@&$ac_top_builddir_sub&;t t
11650s&@srcdir@&$ac_srcdir&;t t
11651s&@abs_srcdir@&$ac_abs_srcdir&;t t
11652s&@top_srcdir@&$ac_top_srcdir&;t t
11653s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11654s&@builddir@&$ac_builddir&;t t
11655s&@abs_builddir@&$ac_abs_builddir&;t t
11656s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11657s&@INSTALL@&$ac_INSTALL&;t t
11658$ac_datarootdir_hack
11659" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
11660
11661test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11662  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11663  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11664  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11665which seems to be undefined.  Please make sure it is defined." >&5
11666echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11667which seems to be undefined.  Please make sure it is defined." >&2;}
11668
11669  rm -f "$tmp/stdin"
11670  case $ac_file in
11671  -) cat "$tmp/out"; rm -f "$tmp/out";;
11672  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11673  esac
11674 ;;
11675  :H)
11676  #
11677  # CONFIG_HEADER
11678  #
11679_ACEOF
11680
11681# Transform confdefs.h into a sed script `conftest.defines', that
11682# substitutes the proper values into config.h.in to produce config.h.
11683rm -f conftest.defines conftest.tail
11684# First, append a space to every undef/define line, to ease matching.
11685echo 's/$/ /' >conftest.defines
11686# Then, protect against being on the right side of a sed subst, or in
11687# an unquoted here document, in config.status.  If some macros were
11688# called several times there might be several #defines for the same
11689# symbol, which is useless.  But do not sort them, since the last
11690# AC_DEFINE must be honored.
11691ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11692# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11693# NAME is the cpp macro being defined, VALUE is the value it is being given.
11694# PARAMS is the parameter list in the macro definition--in most cases, it's
11695# just an empty string.
11696ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
11697ac_dB='\\)[	 (].*,\\1define\\2'
11698ac_dC=' '
11699ac_dD=' ,'
11700
11701uniq confdefs.h |
11702  sed -n '
11703	t rset
11704	:rset
11705	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
11706	t ok
11707	d
11708	:ok
11709	s/[\\&,]/\\&/g
11710	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11711	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11712  ' >>conftest.defines
11713
11714# Remove the space that was appended to ease matching.
11715# Then replace #undef with comments.  This is necessary, for
11716# example, in the case of _POSIX_SOURCE, which is predefined and required
11717# on some systems where configure will not decide to define it.
11718# (The regexp can be short, since the line contains either #define or #undef.)
11719echo 's/ $//
11720s,^[	 #]*u.*,/* & */,' >>conftest.defines
11721
11722# Break up conftest.defines:
11723ac_max_sed_lines=50
11724
11725# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11726# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11727# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11728# et cetera.
11729ac_in='$ac_file_inputs'
11730ac_out='"$tmp/out1"'
11731ac_nxt='"$tmp/out2"'
11732
11733while :
11734do
11735  # Write a here document:
11736    cat >>$CONFIG_STATUS <<_ACEOF
11737    # First, check the format of the line:
11738    cat >"\$tmp/defines.sed" <<\\CEOF
11739/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
11740/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
11741b
11742:def
11743_ACEOF
11744  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11745  echo 'CEOF
11746    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11747  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11748  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11749  grep . conftest.tail >/dev/null || break
11750  rm -f conftest.defines
11751  mv conftest.tail conftest.defines
11752done
11753rm -f conftest.defines conftest.tail
11754
11755echo "ac_result=$ac_in" >>$CONFIG_STATUS
11756cat >>$CONFIG_STATUS <<\_ACEOF
11757  if test x"$ac_file" != x-; then
11758    echo "/* $configure_input  */" >"$tmp/config.h"
11759    cat "$ac_result" >>"$tmp/config.h"
11760    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11761      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11762echo "$as_me: $ac_file is unchanged" >&6;}
11763    else
11764      rm -f $ac_file
11765      mv "$tmp/config.h" $ac_file
11766    fi
11767  else
11768    echo "/* $configure_input  */"
11769    cat "$ac_result"
11770  fi
11771  rm -f "$tmp/out12"
11772 ;;
11773
11774
11775  esac
11776
11777done # for ac_tag
11778
11779
11780{ (exit 0); exit 0; }
11781_ACEOF
11782chmod +x $CONFIG_STATUS
11783ac_clean_files=$ac_clean_files_save
11784
11785
11786# configure is writing to config.log, and then calls config.status.
11787# config.status does its own redirection, appending to config.log.
11788# Unfortunately, on DOS this fails, as config.log is still kept open
11789# by configure, so config.status won't be able to write to it; its
11790# output is simply discarded.  So we exec the FD to /dev/null,
11791# effectively closing config.log, so it can be properly (re)opened and
11792# appended to by config.status.  When coming back to configure, we
11793# need to make the FD available again.
11794if test "$no_create" != yes; then
11795  ac_cs_success=:
11796  ac_config_status_args=
11797  test "$silent" = yes &&
11798    ac_config_status_args="$ac_config_status_args --quiet"
11799  exec 5>/dev/null
11800  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11801  exec 5>>config.log
11802  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11803  # would make configure fail if this is the last instruction.
11804  $ac_cs_success || { (exit 1); exit 1; }
11805fi
11806
11807
11808chmod 755 scripts/random_colors
11809
11810echo "Configuration:
11811
11812  Aterm version:              ${VERSION} : ${DATE}
11813  Source code location:       ${srcdir}
11814  Install path:               ${prefix}/bin
11815  Compiler:                   ${CC}
11816  Compiler flags:             ${CFLAGS}"
11817
11818echo "
11819  Background image support :"
11820        echo "    AfterImage library:                 ${AFTERIMAGE_LIB}"
11821        echo "    supporting image format libraries:  ${AFTERIMAGE_LIBS}"
11822        if test "${have_afterstep}" = yes; then
11823                echo   "       with AfterStep MyStyles support available"
11824        else
11825                echo   "       without AfterStep MyStyles support"
11826        fi
11827        echo
11828
11829
11830if test "${enable_transparency}" = yes; then
11831echo "  Transparency :		enabled"
11832else
11833echo "  Transparency :		disabled"
11834fi
11835
11836
11837if test "$MALLOC_TYPE" = S; then
11838  echo "  malloc support:             system default"
11839fi
11840if test "$MALLOC_TYPE" = G; then
11841  echo "  malloc support:             Gray Watson's dmalloc"
11842fi
11843if test "$MALLOC_TYPE" = D; then
11844  echo "  malloc support:             Doug Lea's malloc"
11845fi
11846echo "
11847The following are set in config.h
11848"
11849if test "${utmp_support}" != yes; then
11850  echo "  utmp support:               disabled
11851"
11852else
11853  echo "  utmp support:               enabled
11854  utmp file:                  ${rxvt_cv_path_utmp}
11855  wtmp file:                  ${rxvt_cv_path_wtmp}
11856  ttys/ttytab file:           ${rxvt_cv_path_ttytab}
11857"
11858fi
11859if test "x${term}" != x; then
11860  echo "  set TERM to:                ${term}
11861"
11862fi
11863if test "x${terminfo}" != x; then
11864  echo "  set TERMINFO to:            ${terminfo}
11865"
11866fi
11867echo "  Type of 16bit:               ${RINT16T}
11868          32bit:               ${RINT32T}
11869          pointer:             (same as) ${RINTPT}
11870"
11871echo "  *** Please check src/feature.h for further options ***
11872"
11873