Sun Oct 20 18:15:02 2013 UTC ()
One patch per file.


(joerg)
diff -r1.11 -r1.12 pkgsrc/editors/jed/distinfo
diff -r1.3 -r1.4 pkgsrc/editors/jed/patches/patch-ac
diff -r0 -r1.1 pkgsrc/editors/jed/patches/patch-autoconf_configure.in
diff -r0 -r1.1 pkgsrc/editors/jed/patches/patch-configure
diff -r0 -r1.1 pkgsrc/editors/jed/patches/patch-src_config.hin

cvs diff -r1.11 -r1.12 pkgsrc/editors/jed/distinfo (expand / switch to unified diff)

--- pkgsrc/editors/jed/distinfo 2006/01/22 04:50:16 1.11
+++ pkgsrc/editors/jed/distinfo 2013/10/20 18:15:02 1.12
@@ -1,9 +1,12 @@ @@ -1,9 +1,12 @@
1$NetBSD: distinfo,v 1.11 2006/01/22 04:50:16 minskim Exp $ 1$NetBSD: distinfo,v 1.12 2013/10/20 18:15:02 joerg Exp $
2 2
3SHA1 (jed-0.99-16.tar.bz2) = 34649571fb5caa61314553c10db2e15ebf248d82 3SHA1 (jed-0.99-16.tar.bz2) = 34649571fb5caa61314553c10db2e15ebf248d82
4RMD160 (jed-0.99-16.tar.bz2) = 1c7dc29feb7513a46af13ead11e6abf3f5303ec3 4RMD160 (jed-0.99-16.tar.bz2) = 1c7dc29feb7513a46af13ead11e6abf3f5303ec3
5Size (jed-0.99-16.tar.bz2) = 667623 bytes 5Size (jed-0.99-16.tar.bz2) = 667623 bytes
6SHA1 (patch-aa) = da971ebf501a733fece8f968a0168461cbebb4c3 6SHA1 (patch-aa) = da971ebf501a733fece8f968a0168461cbebb4c3
7SHA1 (patch-ab) = 38c8708fbfff84afa67aeb8691bdbd021156ab82 7SHA1 (patch-ab) = 38c8708fbfff84afa67aeb8691bdbd021156ab82
8SHA1 (patch-ac) = ea69205bac45e1e4c340a33cb85a466728410d35 8SHA1 (patch-ac) = 9186b027c04720c45148ec8d2414ec7af7d66dd9
9SHA1 (patch-ad) = 3d1d08c1d70bbfca9608fac5c378fae6928ed4c0 9SHA1 (patch-ad) = 3d1d08c1d70bbfca9608fac5c378fae6928ed4c0
 10SHA1 (patch-autoconf_configure.in) = fc6cfdadec3cc876148ede2e993e318b866fa865
 11SHA1 (patch-configure) = 9c964872fb5b9ccf0d603525f509bc0d37b1eb16
 12SHA1 (patch-src_config.hin) = 3493d4a66ed8ada4d0ebca67ede68ffa1c7f18a6

cvs diff -r1.3 -r1.4 pkgsrc/editors/jed/patches/patch-ac (expand / switch to unified diff)

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

File Added: pkgsrc/editors/jed/patches/patch-autoconf_configure.in
$NetBSD: patch-autoconf_configure.in,v 1.1 2013/10/20 18:15:02 joerg Exp $

--- autoconf/configure.in.orig	2002-10-20 06:55:30.000000000 +0000
+++ autoconf/configure.in
@@ -25,6 +25,7 @@ malloc.h \
 termios.h \
 fcntl.h \
 sys/fcntl.h \
+sys/stropts.h \
 pty.h \
 )
 

File Added: pkgsrc/editors/jed/patches/patch-configure
$NetBSD: patch-configure,v 1.1 2013/10/20 18:15:02 joerg Exp $

--- configure.orig	2002-10-20 06:55:30.000000000 +0000
+++ configure
@@ -1,73 +1,324 @@
 #! /bin/sh
+# Guess values for system-dependent variables and create Makefiles.
+# Generated by GNU Autoconf 2.57.
+#
+# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
+# Free Software Foundation, Inc.
+# This configure script is free software; the Free Software Foundation
+# gives unlimited permission to copy, distribute and modify it.
+## --------------------- ##
+## M4sh Initialization.  ##
+## --------------------- ##
+
+# Be Bourne compatible
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+  emulate sh
+  NULLCMD=:
+  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
+  # is contrary to our usage.  Disable this feature.
+  alias -g '${1+"$@"}'='"$@"'
+elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
+  set -o posix
+fi
+
+# Support unset when possible.
+if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
+  as_unset=unset
+else
+  as_unset=false
+fi
 
 
+# Work around bugs in pre-3.0 UWIN ksh.
+$as_unset ENV MAIL MAILPATH
+PS1='$ '
+PS2='> '
+PS4='+ '
 
+# NLS nuisances.
+for as_var in \
+  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
+  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
+  LC_TELEPHONE LC_TIME
+do
+  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
+    eval $as_var=C; export $as_var
+  else
+    $as_unset $as_var
+  fi
+done
 
+# Required to use basename.
+if expr a : '\(a\)' >/dev/null 2>&1; then
+  as_expr=expr
+else
+  as_expr=false
+fi
+
+if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
+  as_basename=basename
+else
+  as_basename=false
+fi
 
 
+# Name of the executable.
+as_me=`$as_basename "$0" ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+	 X"$0" : 'X\(//\)$' \| \
+	 X"$0" : 'X\(/\)$' \| \
+	 .     : '\(.\)' 2>/dev/null ||
+echo X/"$0" |
+    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
+  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
+  	  /^X\/\(\/\).*/{ s//\1/; q; }
+  	  s/.*/./; q'`
+
+
+# PATH needs CR, and LINENO needs CR and PATH.
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+  echo "#! /bin/sh" >conf$$.sh
+  echo  "exit 0"   >>conf$$.sh
+  chmod +x conf$$.sh
+  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
+    PATH_SEPARATOR=';'
+  else
+    PATH_SEPARATOR=:
+  fi
+  rm -f conf$$.sh
+fi
 
 
+  as_lineno_1=$LINENO
+  as_lineno_2=$LINENO
+  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
+  test "x$as_lineno_1" != "x$as_lineno_2" &&
+  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
+  # Find who we are.  Look in the path if we contain no path at all
+  # relative or not.
+  case $0 in
+    *[\\/]* ) as_myself=$0 ;;
+    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
+done
 
+       ;;
+  esac
+  # We did not find ourselves, most probably we were run as `sh COMMAND'
+  # in which case we are not to be found in the path.
+  if test "x$as_myself" = x; then
+    as_myself=$0
+  fi
+  if test ! -f "$as_myself"; then
+    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
+   { (exit 1); exit 1; }; }
+  fi
+  case $CONFIG_SHELL in
+  '')
+    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for as_base in sh bash ksh sh5; do
+	 case $as_dir in
+	 /*)
+	   if ("$as_dir/$as_base" -c '
+  as_lineno_1=$LINENO
+  as_lineno_2=$LINENO
+  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
+  test "x$as_lineno_1" != "x$as_lineno_2" &&
+  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
+	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
+	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
+	     CONFIG_SHELL=$as_dir/$as_base
+	     export CONFIG_SHELL
+	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
+	   fi;;
+	 esac
+       done
+done
+;;
+  esac
 
+  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
+  # uniformly replaced by the line number.  The first 'sed' inserts a
+  # line-number line before each line; the second 'sed' does the real
+  # work.  The second script uses 'N' to pair each line-number line
+  # with the numbered line, and appends trailing '-' during
+  # substitution so that $LINENO is not a special case at line end.
+  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
+  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
+  sed '=' <$as_myself |
+    sed '
+      N
+      s,$,-,
+      : loop
+      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
+      t loop
+      s,-$,,
+      s,^['$as_cr_digits']*\n,,
+    ' >$as_me.lineno &&
+  chmod +x $as_me.lineno ||
+    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
+   { (exit 1); exit 1; }; }
+
+  # Don't try to exec as it changes $[0], causing all sort of problems
+  # (the dirname of $[0] is not the place where we might find the
+  # original and so on.  Autoconf is especially sensible to this).
+  . ./$as_me.lineno
+  # Exit status is that of the last command.
+  exit
+}
+
+
+case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
+  *c*,-n*) ECHO_N= ECHO_C='
+' ECHO_T='	' ;;
+  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
+  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
+esac
 
+if expr a : '\(a\)' >/dev/null 2>&1; then
+  as_expr=expr
+else
+  as_expr=false
+fi
 
+rm -f conf$$ conf$$.exe conf$$.file
+echo >conf$$.file
+if ln -s conf$$.file conf$$ 2>/dev/null; then
+  # We could just check for DJGPP; but this test a) works b) is more generic
+  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
+  if test -f conf$$.exe; then
+    # Don't use ln at all; we don't have any links
+    as_ln_s='cp -p'
+  else
+    as_ln_s='ln -s'
+  fi
+elif ln conf$$.file conf$$ 2>/dev/null; then
+  as_ln_s=ln
+else
+  as_ln_s='cp -p'
+fi
+rm -f conf$$ conf$$.exe conf$$.file
 
+if mkdir -p . 2>/dev/null; then
+  as_mkdir_p=:
+else
+  as_mkdir_p=false
+fi
 
+as_executable_p="test -f"
 
+# Sed expression to map a string onto a valid CPP name.
+as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
-
-IEEE_CFLAGS=""
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+# Sed expression to map a string onto a valid variable name.
+as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
 
+# IFS
+# We need space, tab and new line, in precisely that order.
+as_nl='
+'
+IFS=" 	$as_nl"
 
+# CDPATH.
+$as_unset CDPATH
 
 
+# Name of the host.
+# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
+# so uname gets run too.
+ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
+exec 6>&1
 
-# Guess values for system-dependent variables and create Makefiles.
-# Generated automatically using autoconf version 2.13 
-# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
 #
-# This configure script is free software; the Free Software Foundation
-# gives unlimited permission to copy, distribute and modify it.
-
-# Defaults:
-ac_help=
+# Initializations.
+#
 ac_default_prefix=/usr/local
-# Any additions from configure.in:
-ac_help="$ac_help
-  --with-x                use the X Window System"
-ac_help="$ac_help
-  --enable-warnings       turn on GCC compiler warnings"
+ac_config_libobj_dir=.
+cross_compiling=no
+subdirs=
+MFLAGS=
+MAKEFLAGS=
+SHELL=${CONFIG_SHELL-/bin/sh}
+
+# Maximum number of lines to put in a shell here document.
+# This variable seems obsolete.  It should probably be removed, and
+# only ac_max_sed_lines should be used.
+: ${ac_max_here_lines=38}
+
+# Identity of this package.
+PACKAGE_NAME=
+PACKAGE_TARNAME=
+PACKAGE_VERSION=
+PACKAGE_STRING=
+PACKAGE_BUGREPORT=
+
+ac_unique_file="src/ledit.c"
+# Factoring default headers for most tests.
+ac_includes_default="\
+#include <stdio.h>
+#if HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
+#if HAVE_SYS_STAT_H
+# include <sys/stat.h>
+#endif
+#if STDC_HEADERS
+# include <stdlib.h>
+# include <stddef.h>
+#else
+# if HAVE_STDLIB_H
+#  include <stdlib.h>
+# endif
+#endif
+#if HAVE_STRING_H
+# if !STDC_HEADERS && HAVE_MEMORY_H
+#  include <memory.h>
+# endif
+# include <string.h>
+#endif
+#if HAVE_STRINGS_H
+# include <strings.h>
+#endif
+#if HAVE_INTTYPES_H
+# include <inttypes.h>
+#else
+# if HAVE_STDINT_H
+#  include <stdint.h>
+# endif
+#endif
+#if HAVE_UNISTD_H
+# include <unistd.h>
+#endif"
+
+ac_subst_vars='RPATH SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CONFIG_DIR CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP SET_MAKE RANLIB ac_ct_RANLIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS SRCDIR OBJDIR ELFDIR TERMCAP MISC_TERMINFO_DIRS SLANG_LIB SLANG_INC SLANG_LIB_DIR SLANG_INCLUDE JED_ROOT PROGRAM_OFILES PROGRAM_CFILES PROGRAM_HFILES PROGRAM_OBJECTS PROGRAM_ELFOBJECTS LIBOBJS LTLIBOBJS'
+ac_subst_files=''
 
 # Initialize some variables set by options.
+ac_init_help=
+ac_init_version=false
 # The variables have the same names as the options, with
 # dashes changed to underlines.
-build=NONE
-cache_file=./config.cache
+cache_file=/dev/null
 exec_prefix=NONE
-host=NONE
 no_create=
-nonopt=NONE
 no_recursion=
 prefix=NONE
 program_prefix=NONE
@@ -76,10 +327,15 @@ program_transform_name=s,x,x,
 silent=
 site=
 srcdir=
-target=NONE
 verbose=
 x_includes=NONE
 x_libraries=NONE
+
+# Installation directory options.
+# These are left unexpanded so users can "make install exec_prefix=/foo"
+# and all the variables that are supposed to be based on exec_prefix
+# by default will actually change.
+# Use braces instead of parens because sh, perl, etc. also accept them.
 bindir='${exec_prefix}/bin'
 sbindir='${exec_prefix}/sbin'
 libexecdir='${exec_prefix}/libexec'
@@ -93,17 +349,9 @@ oldincludedir='/usr/include'
 infodir='${prefix}/info'
 mandir='${prefix}/man'
 
-# Initialize some other variables.
-subdirs=
-MFLAGS= MAKEFLAGS=
-SHELL=${CONFIG_SHELL-/bin/sh}
-# Maximum number of lines to put in a shell here document.
-ac_max_here_lines=12
-
 ac_prev=
 for ac_option
 do
-
   # If the previous option needs an argument, assign it.
   if test -n "$ac_prev"; then
     eval "$ac_prev=\$ac_option"
@@ -111,59 +359,59 @@ do
     continue
   fi
 
-  case "$ac_option" in
-  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
-  *) ac_optarg= ;;
-  esac
+  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
   # Accept the important Cygnus configure options, so we can diagnose typos.
 
-  case "$ac_option" in
+  case $ac_option in
 
   -bindir | --bindir | --bindi | --bind | --bin | --bi)
     ac_prev=bindir ;;
   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
-    bindir="$ac_optarg" ;;
+    bindir=$ac_optarg ;;
 
   -build | --build | --buil | --bui | --bu)
-    ac_prev=build ;;
+    ac_prev=build_alias ;;
   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
-    build="$ac_optarg" ;;
+    build_alias=$ac_optarg ;;
 
   -cache-file | --cache-file | --cache-fil | --cache-fi \
   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
     ac_prev=cache_file ;;
   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
-    cache_file="$ac_optarg" ;;
+    cache_file=$ac_optarg ;;
+
+  --config-cache | -C)
+    cache_file=config.cache ;;
 
   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
     ac_prev=datadir ;;
   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
   | --da=*)
-    datadir="$ac_optarg" ;;
+    datadir=$ac_optarg ;;
 
   -disable-* | --disable-*)
-    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
+    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
     # Reject names that are not valid shell variable names.
-    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
-      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
-    fi
-    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
-    eval "enable_${ac_feature}=no" ;;
+    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
+      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
+   { (exit 1); exit 1; }; }
+    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
+    eval "enable_$ac_feature=no" ;;
 
   -enable-* | --enable-*)
-    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
+    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
     # Reject names that are not valid shell variable names.
-    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
-      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
-    fi
-    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
-    case "$ac_option" in
-      *=*) ;;
+    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
+      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
+   { (exit 1); exit 1; }; }
+    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
+    case $ac_option in
+      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
       *) ac_optarg=yes ;;
     esac
-    eval "enable_${ac_feature}='$ac_optarg'" ;;
+    eval "enable_$ac_feature='$ac_optarg'" ;;
 
   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
@@ -172,95 +420,47 @@ do
   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   | --exec=* | --exe=* | --ex=*)
-    exec_prefix="$ac_optarg" ;;
+    exec_prefix=$ac_optarg ;;
 
   -gas | --gas | --ga | --g)
     # Obsolete; use --with-gas.
     with_gas=yes ;;
 
-  -help | --help | --hel | --he)
-    # Omit some internal or obsolete options to make the list less imposing.
-    # This message is too long to be a string in the A/UX 3.1 sh.
-    cat << EOF
-Usage: configure [options] [host]
-Options: [defaults in brackets after descriptions]
-Configuration:
-  --cache-file=FILE       cache test results in FILE
-  --help                  print this message
-  --no-create             do not create output files
-  --quiet, --silent       do not print \`checking...' messages
-  --version               print the version of autoconf that created configure
-Directory and file names:
-  --prefix=PREFIX         install architecture-independent files in PREFIX
-                          [$ac_default_prefix]
-  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
-                          [same as prefix]
-  --bindir=DIR            user executables in DIR [EPREFIX/bin]
-  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
-  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
-  --datadir=DIR           read-only architecture-independent data in DIR
-                          [PREFIX/share]
-  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
-  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
-                          [PREFIX/com]
-  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
-  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
-  --includedir=DIR        C header files in DIR [PREFIX/include]
-  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
-  --infodir=DIR           info documentation in DIR [PREFIX/info]
-  --mandir=DIR            man documentation in DIR [PREFIX/man]
-  --srcdir=DIR            find the sources in DIR [configure dir or ..]
-  --program-prefix=PREFIX prepend PREFIX to installed program names
-  --program-suffix=SUFFIX append SUFFIX to installed program names
-  --program-transform-name=PROGRAM
-                          run sed PROGRAM on installed program names
-EOF
-    cat << EOF
-Host type:
-  --build=BUILD           configure for building on BUILD [BUILD=HOST]
-  --host=HOST             configure for HOST [guessed]
-  --target=TARGET         configure for TARGET [TARGET=HOST]
-Features and packages:
-  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
-  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
-  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
-  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
-  --x-includes=DIR        X include files are in DIR
-  --x-libraries=DIR       X library files are in DIR
-EOF
-    if test -n "$ac_help"; then
-      echo "--enable and --with options recognized:$ac_help"
-    fi
-    exit 0 ;;
+  -help | --help | --hel | --he | -h)
+    ac_init_help=long ;;
+  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
+    ac_init_help=recursive ;;
+  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
+    ac_init_help=short ;;
 
   -host | --host | --hos | --ho)
-    ac_prev=host ;;
+    ac_prev=host_alias ;;
   -host=* | --host=* | --hos=* | --ho=*)
-    host="$ac_optarg" ;;
+    host_alias=$ac_optarg ;;
 
   -includedir | --includedir | --includedi | --included | --include \
   | --includ | --inclu | --incl | --inc)
     ac_prev=includedir ;;
   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   | --includ=* | --inclu=* | --incl=* | --inc=*)
-    includedir="$ac_optarg" ;;
+    includedir=$ac_optarg ;;
 
   -infodir | --infodir | --infodi | --infod | --info | --inf)
     ac_prev=infodir ;;
   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
-    infodir="$ac_optarg" ;;
+    infodir=$ac_optarg ;;
 
   -libdir | --libdir | --libdi | --libd)
     ac_prev=libdir ;;
   -libdir=* | --libdir=* | --libdi=* | --libd=*)
-    libdir="$ac_optarg" ;;
+    libdir=$ac_optarg ;;
 
   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   | --libexe | --libex | --libe)
     ac_prev=libexecdir ;;
   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   | --libexe=* | --libex=* | --libe=*)
-    libexecdir="$ac_optarg" ;;
+    libexecdir=$ac_optarg ;;
 
   -localstatedir | --localstatedir | --localstatedi | --localstated \
   | --localstate | --localstat | --localsta | --localst \
@@ -269,19 +469,19 @@ EOF
   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
-    localstatedir="$ac_optarg" ;;
+    localstatedir=$ac_optarg ;;
 
   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
     ac_prev=mandir ;;
   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
-    mandir="$ac_optarg" ;;
+    mandir=$ac_optarg ;;
 
   -nfp | --nfp | --nf)
     # Obsolete; use --without-fp.
     with_fp=no ;;
 
   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
-  | --no-cr | --no-c)
+  | --no-cr | --no-c | -n)
     no_create=yes ;;
 
   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
@@ -295,26 +495,26 @@ EOF
   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
-    oldincludedir="$ac_optarg" ;;
+    oldincludedir=$ac_optarg ;;
 
   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
     ac_prev=prefix ;;
   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
-    prefix="$ac_optarg" ;;
+    prefix=$ac_optarg ;;
 
   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   | --program-pre | --program-pr | --program-p)
     ac_prev=program_prefix ;;
   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
-    program_prefix="$ac_optarg" ;;
+    program_prefix=$ac_optarg ;;
 
   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   | --program-suf | --program-su | --program-s)
     ac_prev=program_suffix ;;
   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
-    program_suffix="$ac_optarg" ;;
+    program_suffix=$ac_optarg ;;
 
   -program-transform-name | --program-transform-name \
   | --program-transform-nam | --program-transform-na \
@@ -331,7 +531,7 @@ EOF
   | --program-transfo=* | --program-transf=* \
   | --program-trans=* | --program-tran=* \
   | --progr-tra=* | --program-tr=* | --program-t=*)
-    program_transform_name="$ac_optarg" ;;
+    program_transform_name=$ac_optarg ;;
 
   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   | -silent | --silent | --silen | --sile | --sil)
@@ -341,7 +541,7 @@ EOF
     ac_prev=sbindir ;;
   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   | --sbi=* | --sb=*)
-    sbindir="$ac_optarg" ;;
+    sbindir=$ac_optarg ;;
 
   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
@@ -352,58 +552,57 @@ EOF
   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   | --sha=* | --sh=*)
-    sharedstatedir="$ac_optarg" ;;
+    sharedstatedir=$ac_optarg ;;
 
   -site | --site | --sit)
     ac_prev=site ;;
   -site=* | --site=* | --sit=*)
-    site="$ac_optarg" ;;
+    site=$ac_optarg ;;
 
   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
     ac_prev=srcdir ;;
   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
-    srcdir="$ac_optarg" ;;
+    srcdir=$ac_optarg ;;
 
   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   | --syscon | --sysco | --sysc | --sys | --sy)
     ac_prev=sysconfdir ;;
   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
-    sysconfdir="$ac_optarg" ;;
+    sysconfdir=$ac_optarg ;;
 
   -target | --target | --targe | --targ | --tar | --ta | --t)
-    ac_prev=target ;;
+    ac_prev=target_alias ;;
   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
-    target="$ac_optarg" ;;
+    target_alias=$ac_optarg ;;
 
   -v | -verbose | --verbose | --verbos | --verbo | --verb)
     verbose=yes ;;
 
-  -version | --version | --versio | --versi | --vers)
-    echo "configure generated by autoconf version 2.13"
-    exit 0 ;;
+  -version | --version | --versio | --versi | --vers | -V)
+    ac_init_version=: ;;
 
   -with-* | --with-*)
-    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
+    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
     # Reject names that are not valid shell variable names.
-    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
-      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
-    fi
+    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
+      { echo "$as_me: error: invalid package name: $ac_package" >&2
+   { (exit 1); exit 1; }; }
     ac_package=`echo $ac_package| sed 's/-/_/g'`
-    case "$ac_option" in
-      *=*) ;;
+    case $ac_option in
+      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
       *) ac_optarg=yes ;;
     esac
-    eval "with_${ac_package}='$ac_optarg'" ;;
+    eval "with_$ac_package='$ac_optarg'" ;;
 
   -without-* | --without-*)
-    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
+    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
     # Reject names that are not valid shell variable names.
-    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
-      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
-    fi
-    ac_package=`echo $ac_package| sed 's/-/_/g'`
-    eval "with_${ac_package}=no" ;;
+    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
+      { echo "$as_me: error: invalid package name: $ac_package" >&2
+   { (exit 1); exit 1; }; }
+    ac_package=`echo $ac_package | sed 's/-/_/g'`
+    eval "with_$ac_package=no" ;;
 
   --x)
     # Obsolete; use --with-x.
@@ -414,99 +613,110 @@ EOF
     ac_prev=x_includes ;;
   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
-    x_includes="$ac_optarg" ;;
+    x_includes=$ac_optarg ;;
 
   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
     ac_prev=x_libraries ;;
   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
-    x_libraries="$ac_optarg" ;;
+    x_libraries=$ac_optarg ;;
 
-  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
+  -*) { echo "$as_me: error: unrecognized option: $ac_option
+Try \`$0 --help' for more information." >&2
+   { (exit 1); exit 1; }; }
     ;;
 
+  *=*)
+    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
+    # Reject names that are not valid shell variable names.
+    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
+      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
+   { (exit 1); exit 1; }; }
+    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
+    eval "$ac_envvar='$ac_optarg'"
+    export $ac_envvar ;;
+
   *)
-    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
-      echo "configure: warning: $ac_option: invalid host type" 1>&2
-    fi
-    if test "x$nonopt" != xNONE; then
-      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
-    fi
-    nonopt="$ac_option"
+    # FIXME: should be removed in autoconf 3.0.
+    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
+    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
+      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
+    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
     ;;
 
   esac
 done
 
 if test -n "$ac_prev"; then
-  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
+  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
+  { echo "$as_me: error: missing argument to $ac_option" >&2
+   { (exit 1); exit 1; }; }
 fi
 
-trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
-
-# File descriptor usage:
-# 0 standard input
-# 1 file creation
-# 2 errors and warnings
-# 3 some systems may open it to /dev/tty
-# 4 used on the Kubota Titan
-# 6 checking for... messages and results
-# 5 compiler messages saved in config.log
-if test "$silent" = yes; then
-  exec 6>/dev/null
-else
-  exec 6>&1
-fi
-exec 5>./config.log
-
-echo "\
-This file contains any messages produced by compilers while
-running configure, to aid debugging if configure makes a mistake.
-" 1>&5
+# Be sure to have absolute paths.
+for ac_var in exec_prefix prefix
+do
+  eval ac_val=$`echo $ac_var`
+  case $ac_val in
+    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
+    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
+   { (exit 1); exit 1; }; };;
+  esac
+done
 
-# Strip out --no-create and --no-recursion so they do not pile up.
-# Also quote any args containing shell metacharacters.
-ac_configure_args=
-for ac_arg
+# Be sure to have absolute paths.
+for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
+              localstatedir libdir includedir oldincludedir infodir mandir
 do
-  case "$ac_arg" in
-  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
-  | --no-cr | --no-c) ;;
-  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
-  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
-  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
-  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
-  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
+  eval ac_val=$`echo $ac_var`
+  case $ac_val in
+    [\\/$]* | ?:[\\/]* ) ;;
+    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
+   { (exit 1); exit 1; }; };;
   esac
 done
 
-# NLS nuisances.
-# Only set these to C if already set.  These must not be set unconditionally
-# because not all systems understand e.g. LANG=C (notably SCO).
-# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
-# Non-C LC_CTYPE values break the ctype check.
-if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
-if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
-if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
-if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
+# There might be people who depend on the old broken behavior: `$host'
+# used to hold the argument of --host etc.
+# FIXME: To remove some day.
+build=$build_alias
+host=$host_alias
+target=$target_alias
+
+# FIXME: To remove some day.
+if test "x$host_alias" != x; then
+  if test "x$build_alias" = x; then
+    cross_compiling=maybe
+    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
+    If a cross compiler is detected then cross compile mode will be used." >&2
+  elif test "x$build_alias" != "x$host_alias"; then
+    cross_compiling=yes
+  fi
+fi
 
-# confdefs.h avoids OS command line length limits that DEFS can exceed.
-rm -rf conftest* confdefs.h
-# AIX cpp loses on an empty file, so make sure it contains at least a newline.
-echo > confdefs.h
+ac_tool_prefix=
+test -n "$host_alias" && ac_tool_prefix=$host_alias-
+
+test "$silent" = yes && exec 6>/dev/null
 
-# A filename unique to this package, relative to the directory that
-# configure is in, which we can look for to find out if srcdir is correct.
-ac_unique_file=src/ledit.c
 
 # Find the source files, if location was not specified.
 if test -z "$srcdir"; then
   ac_srcdir_defaulted=yes
   # Try the directory containing this script, then its parent.
-  ac_prog=$0
-  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
-  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
+  ac_confdir=`(dirname "$0") 2>/dev/null ||
+$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+         X"$0" : 'X\(//\)[^/]' \| \
+         X"$0" : 'X\(//\)$' \| \
+         X"$0" : 'X\(/\)' \| \
+         .     : '\(.\)' 2>/dev/null ||
+echo X"$0" |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+  	  /^X\(\/\/\)$/{ s//\1/; q; }
+  	  /^X\(\/\).*/{ s//\1/; q; }
+  	  s/.*/./; q'`
   srcdir=$ac_confdir
   if test ! -r $srcdir/$ac_unique_file; then
     srcdir=..
@@ -516,13 +726,436 @@ else
 fi
 if test ! -r $srcdir/$ac_unique_file; then
   if test "$ac_srcdir_defaulted" = yes; then
-    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
+    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
+   { (exit 1); exit 1; }; }
   else
-    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
+    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
+   { (exit 1); exit 1; }; }
   fi
 fi
-srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
+(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
+  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
+   { (exit 1); exit 1; }; }
+srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
+ac_env_build_alias_set=${build_alias+set}
+ac_env_build_alias_value=$build_alias
+ac_cv_env_build_alias_set=${build_alias+set}
+ac_cv_env_build_alias_value=$build_alias
+ac_env_host_alias_set=${host_alias+set}
+ac_env_host_alias_value=$host_alias
+ac_cv_env_host_alias_set=${host_alias+set}
+ac_cv_env_host_alias_value=$host_alias
+ac_env_target_alias_set=${target_alias+set}
+ac_env_target_alias_value=$target_alias
+ac_cv_env_target_alias_set=${target_alias+set}
+ac_cv_env_target_alias_value=$target_alias
+ac_env_CC_set=${CC+set}
+ac_env_CC_value=$CC
+ac_cv_env_CC_set=${CC+set}
+ac_cv_env_CC_value=$CC
+ac_env_CFLAGS_set=${CFLAGS+set}
+ac_env_CFLAGS_value=$CFLAGS
+ac_cv_env_CFLAGS_set=${CFLAGS+set}
+ac_cv_env_CFLAGS_value=$CFLAGS
+ac_env_LDFLAGS_set=${LDFLAGS+set}
+ac_env_LDFLAGS_value=$LDFLAGS
+ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
+ac_cv_env_LDFLAGS_value=$LDFLAGS
+ac_env_CPPFLAGS_set=${CPPFLAGS+set}
+ac_env_CPPFLAGS_value=$CPPFLAGS
+ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
+ac_cv_env_CPPFLAGS_value=$CPPFLAGS
+ac_env_CPP_set=${CPP+set}
+ac_env_CPP_value=$CPP
+ac_cv_env_CPP_set=${CPP+set}
+ac_cv_env_CPP_value=$CPP
+
+#
+# Report the --help message.
+#
+if test "$ac_init_help" = "long"; then
+  # Omit some internal or obsolete options to make the list less imposing.
+  # This message is too long to be a string in the A/UX 3.1 sh.
+  cat <<_ACEOF
+\`configure' configures this package to adapt to many kinds of systems.
+
+Usage: $0 [OPTION]... [VAR=VALUE]...
+
+To assign environment variables (e.g., CC, CFLAGS...), specify them as
+VAR=VALUE.  See below for descriptions of some of the useful variables.
+
+Defaults for the options are specified in brackets.
+
+Configuration:
+  -h, --help              display this help and exit
+      --help=short        display options specific to this package
+      --help=recursive    display the short help of all the included packages
+  -V, --version           display version information and exit
+  -q, --quiet, --silent   do not print \`checking...' messages
+      --cache-file=FILE   cache test results in FILE [disabled]
+  -C, --config-cache      alias for \`--cache-file=config.cache'
+  -n, --no-create         do not create output files
+      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
+
+_ACEOF
+
+  cat <<_ACEOF
+Installation directories:
+  --prefix=PREFIX         install architecture-independent files in PREFIX
+                          [$ac_default_prefix]
+  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
+                          [PREFIX]
+
+By default, \`make install' will install all the files in
+\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
+an installation prefix other than \`$ac_default_prefix' using \`--prefix',
+for instance \`--prefix=\$HOME'.
+
+For better control, use the options below.
+
+Fine tuning of the installation directories:
+  --bindir=DIR           user executables [EPREFIX/bin]
+  --sbindir=DIR          system admin executables [EPREFIX/sbin]
+  --libexecdir=DIR       program executables [EPREFIX/libexec]
+  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
+  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
+  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
+  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
+  --libdir=DIR           object code libraries [EPREFIX/lib]
+  --includedir=DIR       C header files [PREFIX/include]
+  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
+  --infodir=DIR          info documentation [PREFIX/info]
+  --mandir=DIR           man documentation [PREFIX/man]
+_ACEOF
+
+  cat <<\_ACEOF
+
+X features:
+  --x-includes=DIR    X include files are in DIR
+  --x-libraries=DIR   X library files are in DIR
+_ACEOF
+fi
+
+if test -n "$ac_init_help"; then
+
+  cat <<\_ACEOF
+
+Optional Features:
+  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
+  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
+  --enable-warnings       turn on GCC compiler warnings
+
+Optional Packages:
+  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
+  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
+  --with-x                use the X Window System
+
+Some influential environment variables:
+  CC          C compiler command
+  CFLAGS      C compiler flags
+  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
+              nonstandard directory <lib dir>
+  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
+              headers in a nonstandard directory <include dir>
+  CPP         C preprocessor
+
+Use these variables to override the choices made by `configure' or to help
+it to find libraries and programs with nonstandard names/locations.
+
+_ACEOF
+fi
+
+if test "$ac_init_help" = "recursive"; then
+  # If there are subdirs, report their specific --help.
+  ac_popdir=`pwd`
+  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
+    test -d $ac_dir || continue
+    ac_builddir=.
+
+if test "$ac_dir" != .; then
+  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
+  # A "../" for each directory in $ac_dir_suffix.
+  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
+else
+  ac_dir_suffix= ac_top_builddir=
+fi
+
+case $srcdir in
+  .)  # No --srcdir option.  We are building in place.
+    ac_srcdir=.
+    if test -z "$ac_top_builddir"; then
+       ac_top_srcdir=.
+    else
+       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
+    fi ;;
+  [\\/]* | ?:[\\/]* )  # Absolute path.
+    ac_srcdir=$srcdir$ac_dir_suffix;
+    ac_top_srcdir=$srcdir ;;
+  *) # Relative path.
+    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
+    ac_top_srcdir=$ac_top_builddir$srcdir ;;
+esac
+# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
+# absolute.
+ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
+ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
+ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
+ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
+
+    cd $ac_dir
+    # Check for guested configure; otherwise get Cygnus style configure.
+    if test -f $ac_srcdir/configure.gnu; then
+      echo
+      $SHELL $ac_srcdir/configure.gnu  --help=recursive
+    elif test -f $ac_srcdir/configure; then
+      echo
+      $SHELL $ac_srcdir/configure  --help=recursive
+    elif test -f $ac_srcdir/configure.ac ||
+           test -f $ac_srcdir/configure.in; then
+      echo
+      $ac_configure --help
+    else
+      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
+    fi
+    cd $ac_popdir
+  done
+fi
+
+test -n "$ac_init_help" && exit 0
+if $ac_init_version; then
+  cat <<\_ACEOF
+
+Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
+Free Software Foundation, Inc.
+This configure script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it.
+_ACEOF
+  exit 0
+fi
+exec 5>config.log
+cat >&5 <<_ACEOF
+This file contains any messages produced by compilers while
+running configure, to aid debugging if configure makes a mistake.
+
+It was created by $as_me, which was
+generated by GNU Autoconf 2.57.  Invocation command line was
+
+  $ $0 $@
+
+_ACEOF
+{
+cat <<_ASUNAME
+## --------- ##
+## Platform. ##
+## --------- ##
+
+hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
+uname -m = `(uname -m) 2>/dev/null || echo unknown`
+uname -r = `(uname -r) 2>/dev/null || echo unknown`
+uname -s = `(uname -s) 2>/dev/null || echo unknown`
+uname -v = `(uname -v) 2>/dev/null || echo unknown`
+
+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
+/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
+
+/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
+/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
+hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
+/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
+/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
+/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
+
+_ASUNAME
+
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  echo "PATH: $as_dir"
+done
+
+} >&5
+
+cat >&5 <<_ACEOF
+
+
+## ----------- ##
+## Core tests. ##
+## ----------- ##
+
+_ACEOF
+
+
+# Keep a trace of the command line.
+# Strip out --no-create and --no-recursion so they do not pile up.
+# Strip out --silent because we don't want to record it for future runs.
+# Also quote any args containing shell meta-characters.
+# Make two passes to allow for proper duplicate-argument suppression.
+ac_configure_args=
+ac_configure_args0=
+ac_configure_args1=
+ac_sep=
+ac_must_keep_next=false
+for ac_pass in 1 2
+do
+  for ac_arg
+  do
+    case $ac_arg in
+    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
+    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+    | -silent | --silent | --silen | --sile | --sil)
+      continue ;;
+    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
+      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
+    esac
+    case $ac_pass in
+    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
+    2)
+      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
+      if test $ac_must_keep_next = true; then
+        ac_must_keep_next=false # Got value, back to normal.
+      else
+        case $ac_arg in
+          *=* | --config-cache | -C | -disable-* | --disable-* \
+          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
+          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
+          | -with-* | --with-* | -without-* | --without-* | --x)
+            case "$ac_configure_args0 " in
+              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
+            esac
+            ;;
+          -* ) ac_must_keep_next=true ;;
+        esac
+      fi
+      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
+      # Get rid of the leading space.
+      ac_sep=" "
+      ;;
+    esac
+  done
+done
+$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
+$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
+
+# When interrupted or exit'd, cleanup temporary files, and complete
+# config.log.  We remove comments because anyway the quotes in there
+# would cause problems or look ugly.
+# WARNING: Be sure not to use single quotes in there, as some shells,
+# such as our DU 5.0 friend, will then `close' the trap.
+trap 'exit_status=$?
+  # Save into config.log some information that might help in debugging.
+  {
+    echo
+
+    cat <<\_ASBOX
+## ---------------- ##
+## Cache variables. ##
+## ---------------- ##
+_ASBOX
+    echo
+    # The following way of writing the cache mishandles newlines in values,
+{
+  (set) 2>&1 |
+    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
+    *ac_space=\ *)
+      sed -n \
+        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
+    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
+      ;;
+    *)
+      sed -n \
+        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
+      ;;
+    esac;
+}
+    echo
+
+    cat <<\_ASBOX
+## ----------------- ##
+## Output variables. ##
+## ----------------- ##
+_ASBOX
+    echo
+    for ac_var in $ac_subst_vars
+    do
+      eval ac_val=$`echo $ac_var`
+      echo "$ac_var='"'"'$ac_val'"'"'"
+    done | sort
+    echo
+
+    if test -n "$ac_subst_files"; then
+      cat <<\_ASBOX
+## ------------- ##
+## Output files. ##
+## ------------- ##
+_ASBOX
+      echo
+      for ac_var in $ac_subst_files
+      do
+	eval ac_val=$`echo $ac_var`
+        echo "$ac_var='"'"'$ac_val'"'"'"
+      done | sort
+      echo
+    fi
+
+    if test -s confdefs.h; then
+      cat <<\_ASBOX
+## ----------- ##
+## confdefs.h. ##
+## ----------- ##
+_ASBOX
+      echo
+      sed "/^$/d" confdefs.h | sort
+      echo
+    fi
+    test "$ac_signal" != 0 &&
+      echo "$as_me: caught signal $ac_signal"
+    echo "$as_me: exit $exit_status"
+  } >&5
+  rm -f core core.* *.core &&
+  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
+    exit $exit_status
+     ' 0
+for ac_signal in 1 2 13 15; do
+  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
+done
+ac_signal=0
+
+# confdefs.h avoids OS command line length limits that DEFS can exceed.
+rm -rf conftest* confdefs.h
+# AIX cpp loses on an empty file, so make sure it contains at least a newline.
+echo >confdefs.h
+
+# Predefined preprocessor variables.
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_NAME "$PACKAGE_NAME"
+_ACEOF
+
 
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_VERSION "$PACKAGE_VERSION"
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_STRING "$PACKAGE_STRING"
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
+_ACEOF
+
+
+# Let the site file select an alternate cache file if it wants to.
 # Prefer explicitly selected file to automatically selected ones.
 if test -z "$CONFIG_SITE"; then
   if test "x$prefix" != xNONE; then
@@ -533,39 +1166,103 @@ if test -z "$CONFIG_SITE"; then
 fi
 for ac_site_file in $CONFIG_SITE; do
   if test -r "$ac_site_file"; then
-    echo "loading site script $ac_site_file"
+    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
+echo "$as_me: loading site script $ac_site_file" >&6;}
+    sed 's/^/| /' "$ac_site_file" >&5
     . "$ac_site_file"
   fi
 done
 
 if test -r "$cache_file"; then
-  echo "loading cache $cache_file"
-  . $cache_file
+  # Some versions of bash will fail to source /dev/null (special
+  # files actually), so we avoid doing that.
+  if test -f "$cache_file"; then
+    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
+echo "$as_me: loading cache $cache_file" >&6;}
+    case $cache_file in
+      [\\/]* | ?:[\\/]* ) . $cache_file;;
+      *)                      . ./$cache_file;;
+    esac
+  fi
 else
-  echo "creating cache $cache_file"
-  > $cache_file
+  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
+echo "$as_me: creating cache $cache_file" >&6;}
+  >$cache_file
+fi
+
+# Check that the precious variables saved in the cache have kept the same
+# value.
+ac_cache_corrupted=false
+for ac_var in `(set) 2>&1 |
+               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
+  eval ac_old_set=\$ac_cv_env_${ac_var}_set
+  eval ac_new_set=\$ac_env_${ac_var}_set
+  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
+  eval ac_new_val="\$ac_env_${ac_var}_value"
+  case $ac_old_set,$ac_new_set in
+    set,)
+      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
+echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
+      ac_cache_corrupted=: ;;
+    ,set)
+      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
+echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
+      ac_cache_corrupted=: ;;
+    ,);;
+    *)
+      if test "x$ac_old_val" != "x$ac_new_val"; then
+        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
+echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
+        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
+echo "$as_me:   former value:  $ac_old_val" >&2;}
+        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
+echo "$as_me:   current value: $ac_new_val" >&2;}
+        ac_cache_corrupted=:
+      fi;;
+  esac
+  # Pass precious variables to config.status.
+  if test "$ac_new_set" = set; then
+    case $ac_new_val in
+    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
+      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
+    *) ac_arg=$ac_var=$ac_new_val ;;
+    esac
+    case " $ac_configure_args " in
+      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
+      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
+    esac
+  fi
+done
+if $ac_cache_corrupted; then
+  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
+echo "$as_me: error: changes in the environment can compromise the build" >&2;}
+  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
+echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
+   { (exit 1); exit 1; }; }
 fi
 
 ac_ext=c
-# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 ac_cpp='$CPP $CPPFLAGS'
-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
-cross_compiling=$ac_cv_prog_cc_cross
-
-ac_exeext=
-ac_objext=o
-if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
-  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
-  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
-    ac_n= ac_c='
-' ac_t='	'
-  else
-    ac_n=-n ac_c= ac_t=
-  fi
-else
-  ac_n= ac_c='\c' ac_t=
-fi
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
 
 
 
@@ -573,8 +1270,10 @@ fi
 CONFIG_DIR=`pwd`
 cd $srcdir
 if test "`pwd`" != "$CONFIG_DIR"
-then 
-  { echo "configure: error: "This software does not support configuring from another directory.   See the INSTALL file"" 1>&2; exit 1; }
+then
+  { { echo "$as_me:$LINENO: error: \"This software does not support configuring from another directory.   See the INSTALL file\"" >&5
+echo "$as_me: error: \"This software does not support configuring from another directory.   See the INSTALL file\"" >&2;}
+   { (exit 1); exit 1; }; }
 fi
 # Note: these will differ if one is a symbolic link
 if test -f /usr/bin/dirname; then
@@ -586,214 +1285,660 @@ fi
 JD_Above_Dir2=`cd ..;pwd`
 
 
-# Extract the first word of "gcc", so it can be a program name with args.
-set dummy gcc; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:593: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
+
+echo "$as_me:$LINENO: checking for egrep" >&5
+echo $ECHO_N "checking for egrep... $ECHO_C" >&6
+if test "${ac_cv_prog_egrep+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
+    then ac_cv_prog_egrep='grep -E'
+    else ac_cv_prog_egrep='egrep'
+    fi
+fi
+echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
+echo "${ECHO_T}$ac_cv_prog_egrep" >&6
+ EGREP=$ac_cv_prog_egrep
+
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+if test -n "$ac_tool_prefix"; then
+  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
+set dummy ${ac_tool_prefix}gcc; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_CC+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   if test -n "$CC"; then
   ac_cv_prog_CC="$CC" # Let the user override the test.
 else
-  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
-  ac_dummy="$PATH"
-  for ac_dir in $ac_dummy; do
-    test -z "$ac_dir" && ac_dir=.
-    if test -f $ac_dir/$ac_word; then
-      ac_cv_prog_CC="gcc"
-      break
-    fi
-  done
-  IFS="$ac_save_ifs"
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_CC="${ac_tool_prefix}gcc"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+
 fi
 fi
-CC="$ac_cv_prog_CC"
+CC=$ac_cv_prog_CC
 if test -n "$CC"; then
-  echo "$ac_t""$CC" 1>&6
+  echo "$as_me:$LINENO: result: $CC" >&5
+echo "${ECHO_T}$CC" >&6
 else
-  echo "$ac_t""no" 1>&6
+  echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
 fi
 
-if test -z "$CC"; then
-  # Extract the first word of "cc", so it can be a program name with args.
-set dummy cc; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:623: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
+fi
+if test -z "$ac_cv_prog_CC"; then
+  ac_ct_CC=$CC
+  # Extract the first word of "gcc", so it can be a program name with args.
+set dummy gcc; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
 else
-  if test -n "$CC"; then
-  ac_cv_prog_CC="$CC" # Let the user override the test.
+  if test -n "$ac_ct_CC"; then
+  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 else
-  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
-  ac_prog_rejected=no
-  ac_dummy="$PATH"
-  for ac_dir in $ac_dummy; do
-    test -z "$ac_dir" && ac_dir=.
-    if test -f $ac_dir/$ac_word; then
-      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
-        ac_prog_rejected=yes
-	continue
-      fi
-      ac_cv_prog_CC="cc"
-      break
-    fi
-  done
-  IFS="$ac_save_ifs"
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_ac_ct_CC="gcc"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
+echo "${ECHO_T}$ac_ct_CC" >&6
+else
+  echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+  CC=$ac_ct_CC
+else
+  CC="$ac_cv_prog_CC"
+fi
+
+if test -z "$CC"; then
+  if test -n "$ac_tool_prefix"; then
+  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
+set dummy ${ac_tool_prefix}cc; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_CC+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -n "$CC"; then
+  ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_CC="${ac_tool_prefix}cc"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+  echo "$as_me:$LINENO: result: $CC" >&5
+echo "${ECHO_T}$CC" >&6
+else
+  echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+fi
+if test -z "$ac_cv_prog_CC"; then
+  ac_ct_CC=$CC
+  # Extract the first word of "cc", so it can be a program name with args.
+set dummy cc; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -n "$ac_ct_CC"; then
+  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_ac_ct_CC="cc"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
+echo "${ECHO_T}$ac_ct_CC" >&6
+else
+  echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+  CC=$ac_ct_CC
+else
+  CC="$ac_cv_prog_CC"
+fi
+
+fi
+if test -z "$CC"; then
+  # Extract the first word of "cc", so it can be a program name with args.
+set dummy cc; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_CC+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -n "$CC"; then
+  ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+  ac_prog_rejected=no
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
+       ac_prog_rejected=yes
+       continue
+     fi
+    ac_cv_prog_CC="cc"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+
 if test $ac_prog_rejected = yes; then
   # We found a bogon in the path, so make sure we never use it.
   set dummy $ac_cv_prog_CC
   shift
-  if test $# -gt 0; then
+  if test $# != 0; then
     # We chose a different compiler from the bogus one.
     # However, it has the same basename, so the bogon will be chosen
     # first if we set CC to just the basename; use the full file name.
     shift
-    set dummy "$ac_dir/$ac_word" "$@"
-    shift
-    ac_cv_prog_CC="$@"
+    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   fi
 fi
 fi
 fi
-CC="$ac_cv_prog_CC"
+CC=$ac_cv_prog_CC
 if test -n "$CC"; then
-  echo "$ac_t""$CC" 1>&6
+  echo "$as_me:$LINENO: result: $CC" >&5
+echo "${ECHO_T}$CC" >&6
 else
-  echo "$ac_t""no" 1>&6
+  echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
 fi
 
-  if test -z "$CC"; then
-    case "`uname -s`" in
-    *win32* | *WIN32*)
-      # Extract the first word of "cl", so it can be a program name with args.
-set dummy cl; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:674: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
+fi
+if test -z "$CC"; then
+  if test -n "$ac_tool_prefix"; then
+  for ac_prog in cl
+  do
+    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_CC+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   if test -n "$CC"; then
   ac_cv_prog_CC="$CC" # Let the user override the test.
 else
-  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
-  ac_dummy="$PATH"
-  for ac_dir in $ac_dummy; do
-    test -z "$ac_dir" && ac_dir=.
-    if test -f $ac_dir/$ac_word; then
-      ac_cv_prog_CC="cl"
-      break
-    fi
-  done
-  IFS="$ac_save_ifs"
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+
 fi
 fi
-CC="$ac_cv_prog_CC"
+CC=$ac_cv_prog_CC
 if test -n "$CC"; then
-  echo "$ac_t""$CC" 1>&6
+  echo "$as_me:$LINENO: result: $CC" >&5
+echo "${ECHO_T}$CC" >&6
 else
-  echo "$ac_t""no" 1>&6
+  echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
 fi
- ;;
-    esac
+
+    test -n "$CC" && break
+  done
+fi
+if test -z "$CC"; then
+  ac_ct_CC=$CC
+  for ac_prog in cl
+do
+  # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -n "$ac_ct_CC"; then
+  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_ac_ct_CC="$ac_prog"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
   fi
-  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
+done
+done
+
 fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
+echo "${ECHO_T}$ac_ct_CC" >&6
+else
+  echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+  test -n "$ac_ct_CC" && break
+done
 
-echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
-echo "configure:706: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
+  CC=$ac_ct_CC
+fi
 
-ac_ext=c
-# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
-cross_compiling=$ac_cv_prog_cc_cross
+fi
 
-cat > conftest.$ac_ext << EOF
 
-#line 717 "configure"
-#include "confdefs.h"
+test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
+See \`config.log' for more details." >&5
+echo "$as_me: error: no acceptable C compiler found in \$PATH
+See \`config.log' for more details." >&2;}
+   { (exit 1); exit 1; }; }
+
+# Provide some information about the compiler.
+echo "$as_me:$LINENO:" \
+     "checking for C compiler version" >&5
+ac_compiler=`set X $ac_compile; echo $2`
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
+  (eval $ac_compiler --version </dev/null >&5) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
+  (eval $ac_compiler -v </dev/null >&5) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
+  (eval $ac_compiler -V </dev/null >&5) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }
+
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+ac_clean_files_save=$ac_clean_files
+ac_clean_files="$ac_clean_files a.out a.exe b.out"
+# Try to create an executable without -o first, disregard a.out.
+# It will help us diagnose broken compilers, and finding out an intuition
+# of exeext.
+echo "$as_me:$LINENO: checking for C compiler default output" >&5
+echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
+ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
+if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
+  (eval $ac_link_default) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; then
+  # Find the output, starting from the most likely.  This scheme is
+# not robust to junk in `.', hence go to wildcards (a.*) only as a last
+# resort.
+
+# Be careful to initialize this variable, since it used to be cached.
+# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
+ac_cv_exeext=
+# b.out is created by i960 compilers.
+for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
+do
+  test -f "$ac_file" || continue
+  case $ac_file in
+    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
+        ;;
+    conftest.$ac_ext )
+        # This is the source file.
+        ;;
+    [ab].out )
+        # We found the default executable, but exeext='' is most
+        # certainly right.
+        break;;
+    *.* )
+        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+        # FIXME: I believe we export ac_cv_exeext for Libtool,
+        # but it would be cool to find out if it's true.  Does anybody
+        # maintain Libtool? --akim.
+        export ac_cv_exeext
+        break;;
+    * )
+        break;;
+  esac
+done
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
 
-main(){return(0);}
-EOF
-if { (eval echo configure:722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
-  ac_cv_prog_cc_works=yes
-  # If we can't run a trivial program, we are probably using a cross compiler.
-  if (./conftest; exit) 2>/dev/null; then
-    ac_cv_prog_cc_cross=no
+{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
+See \`config.log' for more details." >&5
+echo "$as_me: error: C compiler cannot create executables
+See \`config.log' for more details." >&2;}
+   { (exit 77); exit 77; }; }
+fi
+
+ac_exeext=$ac_cv_exeext
+echo "$as_me:$LINENO: result: $ac_file" >&5
+echo "${ECHO_T}$ac_file" >&6
+
+# Check the compiler produces executables we can run.  If not, either
+# the compiler is broken, or we cross compile.
+echo "$as_me:$LINENO: checking whether the C compiler works" >&5
+echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
+# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
+# If not cross compiling, check that we can run a simple program.
+if test "$cross_compiling" != yes; then
+  if { ac_try='./$ac_file'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+    cross_compiling=no
   else
-    ac_cv_prog_cc_cross=yes
+    if test "$cross_compiling" = maybe; then
+	cross_compiling=yes
+    else
+	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
+If you meant to cross compile, use \`--host'.
+See \`config.log' for more details." >&5
+echo "$as_me: error: cannot run C compiled programs.
+If you meant to cross compile, use \`--host'.
+See \`config.log' for more details." >&2;}
+   { (exit 1); exit 1; }; }
+    fi
   fi
-else
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  ac_cv_prog_cc_works=no
 fi
-rm -fr conftest*
-ac_ext=c
-# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
-cross_compiling=$ac_cv_prog_cc_cross
-
-echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
-if test $ac_cv_prog_cc_works = no; then
-  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
-fi
-echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
-echo "configure:748: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
-echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
-cross_compiling=$ac_cv_prog_cc_cross
+echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
 
-echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
-echo "configure:753: checking whether we are using GNU C" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
+rm -f a.out a.exe conftest$ac_cv_exeext b.out
+ac_clean_files=$ac_clean_files_save
+# Check the compiler produces executables we can run.  If not, either
+# the compiler is broken, or we cross compile.
+echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
+echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
+echo "$as_me:$LINENO: result: $cross_compiling" >&5
+echo "${ECHO_T}$cross_compiling" >&6
+
+echo "$as_me:$LINENO: checking for suffix of executables" >&5
+echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; then
+  # If both `conftest.exe' and `conftest' are `present' (well, observable)
+# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
+# work properly (i.e., refer to `conftest.exe'), while it won't with
+# `rm'.
+for ac_file in conftest.exe conftest conftest.*; do
+  test -f "$ac_file" || continue
+  case $ac_file in
+    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
+    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+          export ac_cv_exeext
+          break;;
+    * ) break;;
+  esac
+done
 else
-  cat > conftest.c <<EOF
-#ifdef __GNUC__
-  yes;
-#endif
-EOF
-if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
-  ac_cv_prog_gcc=yes
+  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
+See \`config.log' for more details." >&5
+echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
+See \`config.log' for more details." >&2;}
+   { (exit 1); exit 1; }; }
+fi
+
+rm -f conftest$ac_cv_exeext
+echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
+echo "${ECHO_T}$ac_cv_exeext" >&6
+
+rm -f conftest.$ac_ext
+EXEEXT=$ac_cv_exeext
+ac_exeext=$EXEEXT
+echo "$as_me:$LINENO: checking for suffix of object files" >&5
+echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
+if test "${ac_cv_objext+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.o conftest.obj
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; then
+  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
+  case $ac_file in
+    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
+    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
+       break;;
+  esac
+done
 else
-  ac_cv_prog_gcc=no
-fi
-fi
-
-echo "$ac_t""$ac_cv_prog_gcc" 1>&6
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
 
-if test $ac_cv_prog_gcc = yes; then
-  GCC=yes
-else
-  GCC=
-fi
+{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
+See \`config.log' for more details." >&5
+echo "$as_me: error: cannot compute suffix of object files: cannot compile
+See \`config.log' for more details." >&2;}
+   { (exit 1); exit 1; }; }
+fi
+
+rm -f conftest.$ac_cv_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
+echo "${ECHO_T}$ac_cv_objext" >&6
+OBJEXT=$ac_cv_objext
+ac_objext=$OBJEXT
+echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
+echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
+if test "${ac_cv_c_compiler_gnu+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
+#ifndef __GNUC__
+       choke me
+#endif
 
-ac_test_CFLAGS="${CFLAGS+set}"
-ac_save_CFLAGS="$CFLAGS"
-CFLAGS=
-echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
-echo "configure:781: checking whether ${CC-cc} accepts -g" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
-else
-  echo 'void f(){}' > conftest.c
-if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_compiler_gnu=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_compiler_gnu=no
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+ac_cv_c_compiler_gnu=$ac_compiler_gnu
+
+fi
+echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
+echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
+GCC=`test $ac_compiler_gnu = yes && echo yes`
+ac_test_CFLAGS=${CFLAGS+set}
+ac_save_CFLAGS=$CFLAGS
+CFLAGS="-g"
+echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
+echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
+if test "${ac_cv_prog_cc_g+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
   ac_cv_prog_cc_g=yes
 else
-  ac_cv_prog_cc_g=no
-fi
-rm -f conftest*
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
 
+ac_cv_prog_cc_g=no
 fi
-
-echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
+rm -f conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
+echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 if test "$ac_test_CFLAGS" = set; then
-  CFLAGS="$ac_save_CFLAGS"
+  CFLAGS=$ac_save_CFLAGS
 elif test $ac_cv_prog_cc_g = yes; then
   if test "$GCC" = yes; then
     CFLAGS="-g -O2"
@@ -807,225 +1952,717 @@ else
     CFLAGS=
   fi
 fi
+echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
+echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
+if test "${ac_cv_prog_cc_stdc+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_cv_prog_cc_stdc=no
+ac_save_CC=$CC
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <stdarg.h>
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
+struct buf { int x; };
+FILE * (*rcsopen) (struct buf *, struct stat *, int);
+static char *e (p, i)
+     char **p;
+     int i;
+{
+  return p[i];
+}
+static char *f (char * (*g) (char **, int), char **p, ...)
+{
+  char *s;
+  va_list v;
+  va_start (v,p);
+  s = g (p, va_arg (v,int));
+  va_end (v);
+  return s;
+}
+int test (int i, double x);
+struct s1 {int (*f) (int a);};
+struct s2 {int (*f) (double a);};
+int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
+int argc;
+char **argv;
+int
+main ()
+{
+return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
+  ;
+  return 0;
+}
+_ACEOF
+# Don't try gcc -ansi; that turns off useful extensions and
+# breaks some systems' header files.
+# AIX			-qlanglvl=ansi
+# Ultrix and OSF/1	-std1
+# HP-UX 10.20 and later	-Ae
+# HP-UX older versions	-Aa -D_HPUX_SOURCE
+# SVR4			-Xc -D__EXTENSIONS__
+for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
+do
+  CC="$ac_save_CC $ac_arg"
+  rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_prog_cc_stdc=$ac_arg
+break
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.$ac_objext
+done
+rm -f conftest.$ac_ext conftest.$ac_objext
+CC=$ac_save_CC
+
+fi
+
+case "x$ac_cv_prog_cc_stdc" in
+  x|xno)
+    echo "$as_me:$LINENO: result: none needed" >&5
+echo "${ECHO_T}none needed" >&6 ;;
+  *)
+    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
+echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
+    CC="$CC $ac_cv_prog_cc_stdc" ;;
+esac
+
+# Some people use a C++ compiler to compile C.  Since we use `exit',
+# in C++ we need to declare it.  In case someone uses the same compiler
+# for both compiling C and C++ we need to have the C++ compiler decide
+# the declaration of exit, since it's the most demanding environment.
+cat >conftest.$ac_ext <<_ACEOF
+#ifndef __cplusplus
+  choke me
+#endif
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  for ac_declaration in \
+   ''\
+   '#include <stdlib.h>' \
+   'extern "C" void std::exit (int) throw (); using std::exit;' \
+   'extern "C" void std::exit (int); using std::exit;' \
+   'extern "C" void exit (int) throw ();' \
+   'extern "C" void exit (int);' \
+   'void exit (int);'
+do
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <stdlib.h>
+$ac_declaration
+int
+main ()
+{
+exit (42);
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  :
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+continue
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+$ac_declaration
+int
+main ()
+{
+exit (42);
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  break
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+done
+rm -f conftest*
+if test -n "$ac_declaration"; then
+  echo '#ifdef __cplusplus' >>confdefs.h
+  echo $ac_declaration      >>confdefs.h
+  echo '#endif'             >>confdefs.h
+fi
+
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
 
-echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
-echo "configure:813: checking how to run the C preprocessor" >&5
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
+echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 # On Suns, sometimes $CPP names a directory.
 if test -n "$CPP" && test -d "$CPP"; then
   CPP=
 fi
 if test -z "$CPP"; then
-if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
+  if test "${ac_cv_prog_CPP+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
 else
-    # This must be in double quotes, not single quotes, because CPP may get
-  # substituted into the Makefile and "${CC-cc}" will confuse make.
-  CPP="${CC-cc} -E"
+      # Double quotes because CPP needs to be expanded
+    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
+    do
+      ac_preproc_ok=false
+for ac_c_preproc_warn_flag in '' yes
+do
+  # Use a header file that comes with gcc, so configuring glibc
+  # with a fresh cross-compiler works.
+  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+  # <limits.h> exists even on freestanding compilers.
   # On the NeXT, cc -E runs the code through the compiler's parser,
-  # not just through cpp.
-  cat > conftest.$ac_ext <<EOF
-#line 828 "configure"
-#include "confdefs.h"
-#include <assert.h>
-Syntax Error
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
-  :
+  # not just through cpp. "Syntax error" is here to catch this case.
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+                     Syntax error
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } >/dev/null; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+  else
+    ac_cpp_err=
+  fi
 else
-  echo "$ac_err" >&5
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -rf conftest*
-  CPP="${CC-cc} -E -traditional-cpp"
-  cat > conftest.$ac_ext <<EOF
-#line 845 "configure"
-#include "confdefs.h"
-#include <assert.h>
-Syntax Error
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
+  ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
   :
 else
-  echo "$ac_err" >&5
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -rf conftest*
-  CPP="${CC-cc} -nologo -E"
-  cat > conftest.$ac_ext <<EOF
-#line 862 "configure"
-#include "confdefs.h"
-#include <assert.h>
-Syntax Error
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
-  :
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+  # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.$ac_ext
+
+  # OK, works on sane cases.  Now check whether non-existent headers
+  # can be detected and how.
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <ac_nonexistent.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } >/dev/null; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+  else
+    ac_cpp_err=
+  fi
 else
-  echo "$ac_err" >&5
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -rf conftest*
-  CPP=/lib/cpp
+  ac_cpp_err=yes
 fi
-rm -f conftest*
+if test -z "$ac_cpp_err"; then
+  # Broken: success on invalid input.
+continue
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+  # Passes both tests.
+ac_preproc_ok=:
+break
 fi
-rm -f conftest*
+rm -f conftest.err conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then
+  break
 fi
-rm -f conftest*
-  ac_cv_prog_CPP="$CPP"
+
+    done
+    ac_cv_prog_CPP=$CPP
+
+fi
+  CPP=$ac_cv_prog_CPP
+else
+  ac_cv_prog_CPP=$CPP
+fi
+echo "$as_me:$LINENO: result: $CPP" >&5
+echo "${ECHO_T}$CPP" >&6
+ac_preproc_ok=false
+for ac_c_preproc_warn_flag in '' yes
+do
+  # Use a header file that comes with gcc, so configuring glibc
+  # with a fresh cross-compiler works.
+  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+  # <limits.h> exists even on freestanding compilers.
+  # On the NeXT, cc -E runs the code through the compiler's parser,
+  # not just through cpp. "Syntax error" is here to catch this case.
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+                     Syntax error
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } >/dev/null; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+  :
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+  # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.$ac_ext
+
+  # OK, works on sane cases.  Now check whether non-existent headers
+  # can be detected and how.
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <ac_nonexistent.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } >/dev/null; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
 fi
-  CPP="$ac_cv_prog_CPP"
+if test -z "$ac_cpp_err"; then
+  # Broken: success on invalid input.
+continue
 else
-  ac_cv_prog_CPP="$CPP"
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+  # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+rm -f conftest.err conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then
+  :
+else
+  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
+See \`config.log' for more details." >&5
+echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
+See \`config.log' for more details." >&2;}
+   { (exit 1); exit 1; }; }
 fi
-echo "$ac_t""$CPP" 1>&6
 
-if test $ac_cv_prog_gcc = yes; then
-    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
-echo "configure:894: checking whether ${CC-cc} needs -traditional" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+if test $ac_cv_c_compiler_gnu = yes; then
+    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
+echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
+if test "${ac_cv_prog_gcc_traditional+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
 else
     ac_pattern="Autoconf.*'x'"
-  cat > conftest.$ac_ext <<EOF
-#line 900 "configure"
-#include "confdefs.h"
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
 #include <sgtty.h>
 Autoconf TIOCGETP
-EOF
+_ACEOF
 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-  egrep "$ac_pattern" >/dev/null 2>&1; then
-  rm -rf conftest*
+  $EGREP "$ac_pattern" >/dev/null 2>&1; then
   ac_cv_prog_gcc_traditional=yes
 else
-  rm -rf conftest*
   ac_cv_prog_gcc_traditional=no
 fi
 rm -f conftest*
 
 
   if test $ac_cv_prog_gcc_traditional = no; then
-    cat > conftest.$ac_ext <<EOF
-#line 918 "configure"
-#include "confdefs.h"
+    cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
 #include <termio.h>
 Autoconf TCGETA
-EOF
+_ACEOF
 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-  egrep "$ac_pattern" >/dev/null 2>&1; then
-  rm -rf conftest*
+  $EGREP "$ac_pattern" >/dev/null 2>&1; then
   ac_cv_prog_gcc_traditional=yes
 fi
 rm -f conftest*
 
   fi
 fi
-
-echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
+echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
+echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
   if test $ac_cv_prog_gcc_traditional = yes; then
     CC="$CC -traditional"
   fi
 fi
 
-echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
-echo "configure:940: checking for POSIXized ISC" >&5
-if test -d /etc/conf/kconfig.d &&
-  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
-then
-  echo "$ac_t""yes" 1>&6
-  ISC=yes # If later tests want to check for ISC.
-  cat >> confdefs.h <<\EOF
-#define _POSIX_SOURCE 1
-EOF
+echo "$as_me:$LINENO: checking for library containing strerror" >&5
+echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
+if test "${ac_cv_search_strerror+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_func_search_save_LIBS=$LIBS
+ac_cv_search_strerror=no
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
 
-  if test "$GCC" = yes; then
-    CC="$CC -posix"
-  else
-    CC="$CC -Xp"
-  fi
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char strerror ();
+int
+main ()
+{
+strerror ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_search_strerror="none required"
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+if test "$ac_cv_search_strerror" = no; then
+  for ac_lib in cposix; do
+    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
+    cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char strerror ();
+int
+main ()
+{
+strerror ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_search_strerror="-l$ac_lib"
+break
 else
-  echo "$ac_t""no" 1>&6
-  ISC=
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+  done
+fi
+LIBS=$ac_func_search_save_LIBS
 fi
+echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
+echo "${ECHO_T}$ac_cv_search_strerror" >&6
+if test "$ac_cv_search_strerror" != no; then
+  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
 
-echo $ac_n "checking for AIX""... $ac_c" 1>&6
-echo "configure:961: checking for AIX" >&5
-cat > conftest.$ac_ext <<EOF
-#line 963 "configure"
-#include "confdefs.h"
+fi
+
+
+echo "$as_me:$LINENO: checking for AIX" >&5
+echo $ECHO_N "checking for AIX... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
 #ifdef _AIX
   yes
 #endif
 
-EOF
+_ACEOF
 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-  egrep "yes" >/dev/null 2>&1; then
-  rm -rf conftest*
-  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
+  $EGREP "yes" >/dev/null 2>&1; then
+  echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+cat >>confdefs.h <<\_ACEOF
 #define _ALL_SOURCE 1
-EOF
+_ACEOF
 
 else
-  rm -rf conftest*
-  echo "$ac_t""no" 1>&6
+  echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
 fi
 rm -f conftest*
 
 
 
-cat > conftest.$ac_ext <<EOF
-#line 986 "configure"
-#include "confdefs.h"
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
 #ifdef hpux
   yes
 #endif
 
-EOF
+_ACEOF
 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-  egrep "yes" >/dev/null 2>&1; then
-  rm -rf conftest*
-  
-cat >> confdefs.h <<\EOF
+  $EGREP "yes" >/dev/null 2>&1; then
+
+cat >>confdefs.h <<\_ACEOF
 #define _HPUX_SOURCE 1
-EOF
+_ACEOF
 
 if test "$CC" = cc; then CC="cc -Ae"; fi
 
 fi
 rm -f conftest*
-echo $ac_n "checking C compiler that understands ANSI prototypes""... $ac_c" 1>&6
-echo "configure:1006: checking C compiler that understands ANSI prototypes" >&5
-cat > conftest.$ac_ext <<EOF
-#line 1008 "configure"
-#include "confdefs.h"
- 
-int main() {
+echo "$as_me:$LINENO: checking C compiler that understands ANSI prototypes" >&5
+echo $ECHO_N "checking C compiler that understands ANSI prototypes... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
 
  extern int silly (int);
-; return 0; }
-EOF
-if { (eval echo configure:1016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
-  rm -rf conftest*
-  
- echo "$ac_t""$CC looks ok.  Good." 1>&6
-else
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -rf conftest*
-  
- echo "$ac_t""$CC is not a good enough compiler" 1>&6
- { echo "configure: error: Set env variable CC to your ANSI compiler and rerun configure." 1>&2; exit 1; }
- 
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+
+ echo "$as_me:$LINENO: result: $CC looks ok.  Good." >&5
+echo "${ECHO_T}$CC looks ok.  Good." >&6
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+ echo "$as_me:$LINENO: result: $CC is not a good enough compiler" >&5
+echo "${ECHO_T}$CC is not a good enough compiler" >&6
+ { { echo "$as_me:$LINENO: error: Set env variable CC to your ANSI compiler and rerun configure." >&5
+echo "$as_me: error: Set env variable CC to your ANSI compiler and rerun configure." >&2;}
+   { (exit 1); exit 1; }; }
+
 fi
-rm -f conftest*
+rm -f conftest.$ac_objext conftest.$ac_ext
 
 ac_aux_dir=
 for ac_dir in autoconf $srcdir/autoconf; do
@@ -1037,151 +2674,218 @@ for ac_dir in autoconf $srcdir/autoconf;
     ac_aux_dir=$ac_dir
     ac_install_sh="$ac_aux_dir/install.sh -c"
     break
+  elif test -f $ac_dir/shtool; then
+    ac_aux_dir=$ac_dir
+    ac_install_sh="$ac_aux_dir/shtool install -c"
+    break
   fi
 done
 if test -z "$ac_aux_dir"; then
-  { echo "configure: error: can not find install-sh or install.sh in autoconf $srcdir/autoconf" 1>&2; exit 1; }
-fi
-ac_config_guess=$ac_aux_dir/config.guess
-ac_config_sub=$ac_aux_dir/config.sub
-ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
-
-echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
-echo "configure:1051: checking whether ${MAKE-make} sets \${MAKE}" >&5
-set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
+  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
+echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
+   { (exit 1); exit 1; }; }
+fi
+ac_config_guess="$SHELL $ac_aux_dir/config.guess"
+ac_config_sub="$SHELL $ac_aux_dir/config.sub"
+ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
+
+echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
+echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
+set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
+if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
 else
-  cat > conftestmake <<\EOF
+  cat >conftest.make <<\_ACEOF
 all:
-	@echo 'ac_maketemp="${MAKE}"'
-EOF
+	@echo 'ac_maketemp="$(MAKE)"'
+_ACEOF
 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
-eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
+eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 if test -n "$ac_maketemp"; then
   eval ac_cv_prog_make_${ac_make}_set=yes
 else
   eval ac_cv_prog_make_${ac_make}_set=no
 fi
-rm -f conftestmake
+rm -f conftest.make
 fi
 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
-  echo "$ac_t""yes" 1>&6
+  echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
   SET_MAKE=
 else
-  echo "$ac_t""no" 1>&6
+  echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
   SET_MAKE="MAKE=${MAKE-make}"
 fi
 
-# Extract the first word of "ranlib", so it can be a program name with args.
-set dummy ranlib; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1080: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
+if test -n "$ac_tool_prefix"; then
+  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
+set dummy ${ac_tool_prefix}ranlib; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_RANLIB+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   if test -n "$RANLIB"; then
   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 else
-  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
-  ac_dummy="$PATH"
-  for ac_dir in $ac_dummy; do
-    test -z "$ac_dir" && ac_dir=.
-    if test -f $ac_dir/$ac_word; then
-      ac_cv_prog_RANLIB="ranlib"
-      break
-    fi
-  done
-  IFS="$ac_save_ifs"
-  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+
 fi
 fi
-RANLIB="$ac_cv_prog_RANLIB"
+RANLIB=$ac_cv_prog_RANLIB
 if test -n "$RANLIB"; then
-  echo "$ac_t""$RANLIB" 1>&6
+  echo "$as_me:$LINENO: result: $RANLIB" >&5
+echo "${ECHO_T}$RANLIB" >&6
 else
-  echo "$ac_t""no" 1>&6
+  echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
 fi
 
-# Find a good install program.  We prefer a C program (faster),
-# so one script is as good as another.  But avoid the broken or
-# incompatible versions:
-# SysV /etc/install, /usr/sbin/install
-# SunOS /usr/etc/install
-# IRIX /sbin/install
-# AIX /bin/install
-# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
-# AFS /usr/afsws/bin/install, which mishandles nonexistent args
-# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
-# ./install, which can be erroneously created by make from ./install.sh.
-echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
-echo "configure:1119: checking for a BSD compatible install" >&5
-if test -z "$INSTALL"; then
-if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
+fi
+if test -z "$ac_cv_prog_RANLIB"; then
+  ac_ct_RANLIB=$RANLIB
+  # Extract the first word of "ranlib", so it can be a program name with args.
+set dummy ranlib; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
 else
-    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
-  for ac_dir in $PATH; do
-    # Account for people who put trailing slashes in PATH elements.
-    case "$ac_dir/" in
-    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
-    *)
-      # OSF1 and SCO ODT 3.0 have their own names for install.
-      # Don't use installbsd from OSF since it installs stuff as root
-      # by default.
-      for ac_prog in ginstall scoinst install; do
-        if test -f $ac_dir/$ac_prog; then
-	  if test $ac_prog = install &&
-            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
-	    # AIX install.  It has an incompatible calling convention.
-	    :
-	  else
-	    ac_cv_path_install="$ac_dir/$ac_prog -c"
-	    break 2
-	  fi
-	fi
+  if test -n "$ac_ct_RANLIB"; then
+  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_ac_ct_RANLIB="ranlib"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+
+  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
+fi
+fi
+ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
+if test -n "$ac_ct_RANLIB"; then
+  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
+echo "${ECHO_T}$ac_ct_RANLIB" >&6
+else
+  echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+  RANLIB=$ac_ct_RANLIB
+else
+  RANLIB="$ac_cv_prog_RANLIB"
+fi
+
+# Find a good install program.  We prefer a C program (faster),
+# so one script is as good as another.  But avoid the broken or
+# incompatible versions:
+# SysV /etc/install, /usr/sbin/install
+# SunOS /usr/etc/install
+# IRIX /sbin/install
+# AIX /bin/install
+# AmigaOS /C/install, which installs bootblocks on floppy discs
+# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
+# AFS /usr/afsws/bin/install, which mishandles nonexistent args
+# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
+# ./install, which can be erroneously created by make from ./install.sh.
+echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
+echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
+if test -z "$INSTALL"; then
+if test "${ac_cv_path_install+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  # Account for people who put trailing slashes in PATH elements.
+case $as_dir/ in
+  ./ | .// | /cC/* | \
+  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
+  /usr/ucb/* ) ;;
+  *)
+    # OSF1 and SCO ODT 3.0 have their own names for install.
+    # Don't use installbsd from OSF since it installs stuff as root
+    # by default.
+    for ac_prog in ginstall scoinst install; do
+      for ac_exec_ext in '' $ac_executable_extensions; do
+        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
+          if test $ac_prog = install &&
+            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+            # AIX install.  It has an incompatible calling convention.
+            :
+          elif test $ac_prog = install &&
+            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+            # program-specific install script used by HP pwplus--don't use.
+            :
+          else
+            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
+            break 3
+          fi
+        fi
       done
-      ;;
-    esac
-  done
-  IFS="$ac_save_IFS"
+    done
+    ;;
+esac
+done
+
 
 fi
   if test "${ac_cv_path_install+set}" = set; then
-    INSTALL="$ac_cv_path_install"
+    INSTALL=$ac_cv_path_install
   else
     # As a last resort, use the slow shell script.  We don't cache a
     # path for INSTALL within a source directory, because that will
     # break other packages using the cache if that directory is
     # removed, or if the path is relative.
-    INSTALL="$ac_install_sh"
+    INSTALL=$ac_install_sh
   fi
 fi
-echo "$ac_t""$INSTALL" 1>&6
+echo "$as_me:$LINENO: result: $INSTALL" >&5
+echo "${ECHO_T}$INSTALL" >&6
 
 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 # It thinks the first close brace ends the variable substitution.
 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
-test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
 
 # determine X include and libs for XJed
-# If we find X, set shell vars x_includes and x_libraries to the
-# paths, otherwise set no_x=yes.
-# Uses ac_ vars as temps to allow command line to override cache and checks.
-# --without-x overrides everything else, but does not touch the cache.
-echo $ac_n "checking for X""... $ac_c" 1>&6
-echo "configure:1178: checking for X" >&5
+echo "$as_me:$LINENO: checking for X" >&5
+echo $ECHO_N "checking for X... $ECHO_C" >&6
+
 
 # Check whether --with-x or --without-x was given.
 if test "${with_x+set}" = set; then
   withval="$with_x"
-  :
-fi
 
+fi;
 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
 if test "x$with_x" = xno; then
   # The user explicitly disabled X.
@@ -1191,193 +2895,184 @@ else
     # Both variables are already set.
     have_x=yes
   else
-if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
+    if test "${ac_cv_have_x+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   # One or both of the vars are not set, and there is no cached value.
-ac_x_includes=NO ac_x_libraries=NO
-rm -fr conftestdir
-if mkdir conftestdir; then
-  cd conftestdir
+ac_x_includes=no ac_x_libraries=no
+rm -fr conftest.dir
+if mkdir conftest.dir; then
+  cd conftest.dir
   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
-  cat > Imakefile <<'EOF'
+  cat >Imakefile <<'_ACEOF'
 acfindx:
 	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
-EOF
+_ACEOF
   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
     for ac_extension in a so sl; do
       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
-        test -f $ac_im_libdir/libX11.$ac_extension; then
+         test -f $ac_im_libdir/libX11.$ac_extension; then
         ac_im_usrlibdir=$ac_im_libdir; break
       fi
     done
     # Screen out bogus values from the imake configuration.  They are
     # bogus both because they are the default anyway, and because
     # using them would break gcc on systems where it needs fixed includes.
-    case "$ac_im_incroot" in
+    case $ac_im_incroot in
 	/usr/include) ;;
-	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
+	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
     esac
-    case "$ac_im_usrlibdir" in
+    case $ac_im_usrlibdir in
 	/usr/lib | /lib) ;;
-	*) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
+	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
     esac
   fi
   cd ..
-  rm -fr conftestdir
+  rm -fr conftest.dir
 fi
 
-if test "$ac_x_includes" = NO; then
-  # Guess where to find include files, by looking for this one X11 .h file.
-  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
+# Standard set of common directories for X headers.
+# Check X11 before X11Rn because it is often a symlink to the current release.
+ac_x_header_dirs='
+/usr/X11/include
+/usr/X11R6/include
+/usr/X11R5/include
+/usr/X11R4/include
+
+/usr/include/X11
+/usr/include/X11R6
+/usr/include/X11R5
+/usr/include/X11R4
+
+/usr/local/X11/include
+/usr/local/X11R6/include
+/usr/local/X11R5/include
+/usr/local/X11R4/include
+
+/usr/local/include/X11
+/usr/local/include/X11R6
+/usr/local/include/X11R5
+/usr/local/include/X11R4
+
+/usr/X386/include
+/usr/x386/include
+/usr/XFree86/include/X11
+
+/usr/include
+/usr/local/include
+/usr/unsupported/include
+/usr/athena/include
+/usr/local/x11r5/include
+/usr/lpp/Xamples/include
 
+/usr/openwin/include
+/usr/openwin/share/include'
+
+if test "$ac_x_includes" = no; then
+  # Guess where to find include files, by looking for Intrinsic.h.
   # First, try using that file with no special directory specified.
-cat > conftest.$ac_ext <<EOF
-#line 1240 "configure"
-#include "confdefs.h"
-#include <$x_direct_test_include>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
-  rm -rf conftest*
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <X11/Intrinsic.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } >/dev/null; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
   # We can compile using X headers with no special include directory.
 ac_x_includes=
 else
-  echo "$ac_err" >&5
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -rf conftest*
-  # Look for the header file in a standard set of common directories.
-# Check X11 before X11Rn because it is often a symlink to the current release.
-  for ac_dir in               \
-    /usr/X11/include          \
-    /usr/X11R6/include        \
-    /usr/X11R5/include        \
-    /usr/X11R4/include        \
-                              \
-    /usr/include/X11          \
-    /usr/include/X11R6        \
-    /usr/include/X11R5        \
-    /usr/include/X11R4        \
-                              \
-    /usr/local/X11/include    \
-    /usr/local/X11R6/include  \
-    /usr/local/X11R5/include  \
-    /usr/local/X11R4/include  \
-                              \
-    /usr/local/include/X11    \
-    /usr/local/include/X11R6  \
-    /usr/local/include/X11R5  \
-    /usr/local/include/X11R4  \
-                              \
-    /usr/X386/include         \
-    /usr/x386/include         \
-    /usr/XFree86/include/X11  \
-                              \
-    /usr/include              \
-    /usr/local/include        \
-    /usr/unsupported/include  \
-    /usr/athena/include       \
-    /usr/local/x11r5/include  \
-    /usr/lpp/Xamples/include  \
-                              \
-    /usr/openwin/include      \
-    /usr/openwin/share/include \
-    ; \
-  do
-    if test -r "$ac_dir/$x_direct_test_include"; then
-      ac_x_includes=$ac_dir
-      break
-    fi
-  done
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+  for ac_dir in $ac_x_header_dirs; do
+  if test -r "$ac_dir/X11/Intrinsic.h"; then
+    ac_x_includes=$ac_dir
+    break
+  fi
+done
 fi
-rm -f conftest*
-fi # $ac_x_includes = NO
+rm -f conftest.err conftest.$ac_ext
+fi # $ac_x_includes = no
 
-if test "$ac_x_libraries" = NO; then
+if test "$ac_x_libraries" = no; then
   # Check for the libraries.
-
-  test -z "$x_direct_test_library" && x_direct_test_library=Xt
-  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
-
   # See if we find them without any special options.
   # Don't add to $LIBS permanently.
-  ac_save_LIBS="$LIBS"
-  LIBS="-l$x_direct_test_library $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 1314 "configure"
-#include "confdefs.h"
-
-int main() {
-${x_direct_test_function}()
-; return 0; }
-EOF
-if { (eval echo configure:1321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
-  rm -rf conftest*
-  LIBS="$ac_save_LIBS"
+  ac_save_LIBS=$LIBS
+  LIBS="-lXt $LIBS"
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <X11/Intrinsic.h>
+int
+main ()
+{
+XtMalloc (0)
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  LIBS=$ac_save_LIBS
 # We can link X programs with no special library path.
 ac_x_libraries=
 else
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -rf conftest*
-  LIBS="$ac_save_LIBS"
-# First see if replacing the include by lib works.
-# Check X11 before X11Rn because it is often a symlink to the current release.
-for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
-    /usr/X11/lib          \
-    /usr/X11R6/lib        \
-    /usr/X11R5/lib        \
-    /usr/X11R4/lib        \
-                          \
-    /usr/lib/X11          \
-    /usr/lib/X11R6        \
-    /usr/lib/X11R5        \
-    /usr/lib/X11R4        \
-                          \
-    /usr/local/X11/lib    \
-    /usr/local/X11R6/lib  \
-    /usr/local/X11R5/lib  \
-    /usr/local/X11R4/lib  \
-                          \
-    /usr/local/lib/X11    \
-    /usr/local/lib/X11R6  \
-    /usr/local/lib/X11R5  \
-    /usr/local/lib/X11R4  \
-                          \
-    /usr/X386/lib         \
-    /usr/x386/lib         \
-    /usr/XFree86/lib/X11  \
-                          \
-    /usr/lib              \
-    /usr/local/lib        \
-    /usr/unsupported/lib  \
-    /usr/athena/lib       \
-    /usr/local/x11r5/lib  \
-    /usr/lpp/Xamples/lib  \
-    /lib/usr/lib/X11	  \
-                          \
-    /usr/openwin/lib      \
-    /usr/openwin/share/lib \
-    ; \
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+LIBS=$ac_save_LIBS
+for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
 do
+  # Don't even attempt the hair of trying to link an X program!
   for ac_extension in a so sl; do
-    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
+    if test -r $ac_dir/libXt.$ac_extension; then
       ac_x_libraries=$ac_dir
       break 2
     fi
   done
 done
 fi
-rm -f conftest*
-fi # $ac_x_libraries = NO
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+fi # $ac_x_libraries = no
 
-if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
+if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
   # Didn't find X anywhere.  Cache the known absence of X.
   ac_cv_have_x="have_x=no"
 else
@@ -1386,12 +3081,14 @@ else
 	        ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
 fi
 fi
+
   fi
   eval "$ac_cv_have_x"
 fi # $with_x != no
 
 if test "$have_x" != yes; then
-  echo "$ac_t""$have_x" 1>&6
+  echo "$as_me:$LINENO: result: $have_x" >&5
+echo "${ECHO_T}$have_x" >&6
   no_x=yes
 else
   # If each of the values was on the command line, it overrides each guess.
@@ -1400,14 +3097,16 @@ else
   # Update the cache value to reflect the command line values.
   ac_cv_have_x="have_x=yes \
 		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
-  echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
+  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
+echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
 fi
 
 if test "$no_x" = yes; then
   # Not all programs may use this symbol, but it does not hurt to define it.
-  cat >> confdefs.h <<\EOF
+
+cat >>confdefs.h <<\_ACEOF
 #define X_DISPLAY_MISSING 1
-EOF
+_ACEOF
 
   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
 else
@@ -1420,60 +3119,99 @@ else
     X_LIBS="$X_LIBS -L$x_libraries"
     # For Solaris; some versions of Sun CC require a space after -R and
     # others require no space.  Words are not sufficient . . . .
-    case "`(uname -sr) 2>/dev/null`" in
+    case `(uname -sr) 2>/dev/null` in
     "SunOS 5"*)
-      echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
-echo "configure:1427: checking whether -R must be followed by a space" >&5
-      ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
-      cat > conftest.$ac_ext <<EOF
-#line 1430 "configure"
-#include "confdefs.h"
-
-int main() {
-
-; return 0; }
-EOF
-if { (eval echo configure:1437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
-  rm -rf conftest*
+      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
+echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
+      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
+      cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
   ac_R_nospace=yes
 else
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -rf conftest*
-  ac_R_nospace=no
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_R_nospace=no
 fi
-rm -f conftest*
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
       if test $ac_R_nospace = yes; then
-	echo "$ac_t""no" 1>&6
+	echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
 	X_LIBS="$X_LIBS -R$x_libraries"
       else
 	LIBS="$ac_xsave_LIBS -R $x_libraries"
-	cat > conftest.$ac_ext <<EOF
-#line 1453 "configure"
-#include "confdefs.h"
-
-int main() {
-
-; return 0; }
-EOF
-if { (eval echo configure:1460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
-  rm -rf conftest*
+	cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
   ac_R_space=yes
 else
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -rf conftest*
-  ac_R_space=no
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_R_space=no
 fi
-rm -f conftest*
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 	if test $ac_R_space = yes; then
-	  echo "$ac_t""yes" 1>&6
+	  echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
 	  X_LIBS="$X_LIBS -R $x_libraries"
 	else
-	  echo "$ac_t""neither works" 1>&6
+	  echo "$as_me:$LINENO: result: neither works" >&5
+echo "${ECHO_T}neither works" >&6
 	fi
       fi
-      LIBS="$ac_xsave_LIBS"
+      LIBS=$ac_xsave_LIBS
     esac
   fi
 
@@ -1484,528 +3222,1093 @@ rm -f conftest*
   if test "$ISC" = yes; then
     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
   else
-    # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
-    # libraries were built with DECnet support.  And karl@cs.umb.edu says
+    # Martyn Johnson says this is needed for Ultrix, if the X
+    # libraries were built with DECnet support.  And Karl Berry says
     # the Alpha needs dnet_stub (dnet does not exist).
-    echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
-echo "configure:1492: checking for dnet_ntoa in -ldnet" >&5
-ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
+    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
+    cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char XOpenDisplay ();
+int
+main ()
+{
+XOpenDisplay ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  :
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
+echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
+if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
 else
-  ac_save_LIBS="$LIBS"
+  ac_check_lib_save_LIBS=$LIBS
 LIBS="-ldnet  $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 1500 "configure"
-#include "confdefs.h"
-/* Override any gcc2 internal prototype to avoid an error.  */
-/* We use char because int might match the return type of a gcc2
-    builtin and then its argument prototype would still apply.  */
-char dnet_ntoa();
-
-int main() {
-dnet_ntoa()
-; return 0; }
-EOF
-if { (eval echo configure:1511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
-  rm -rf conftest*
-  eval "ac_cv_lib_$ac_lib_var=yes"
-else
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -rf conftest*
-  eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
 
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
-  echo "$ac_t""yes" 1>&6
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char dnet_ntoa ();
+int
+main ()
+{
+dnet_ntoa ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_dnet_dnet_ntoa=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_dnet_dnet_ntoa=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
+echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
+if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
-else
-  echo "$ac_t""no" 1>&6
 fi
 
     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
-      echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
-echo "configure:1533: checking for dnet_ntoa in -ldnet_stub" >&5
-ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
+      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
+echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
+if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
 else
-  ac_save_LIBS="$LIBS"
+  ac_check_lib_save_LIBS=$LIBS
 LIBS="-ldnet_stub  $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 1541 "configure"
-#include "confdefs.h"
-/* Override any gcc2 internal prototype to avoid an error.  */
-/* We use char because int might match the return type of a gcc2
-    builtin and then its argument prototype would still apply.  */
-char dnet_ntoa();
-
-int main() {
-dnet_ntoa()
-; return 0; }
-EOF
-if { (eval echo configure:1552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
-  rm -rf conftest*
-  eval "ac_cv_lib_$ac_lib_var=yes"
-else
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -rf conftest*
-  eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
 
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
-  echo "$ac_t""yes" 1>&6
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char dnet_ntoa ();
+int
+main ()
+{
+dnet_ntoa ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_dnet_stub_dnet_ntoa=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_dnet_stub_dnet_ntoa=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
+echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
+if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
-else
-  echo "$ac_t""no" 1>&6
 fi
 
     fi
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+    LIBS="$ac_xsave_LIBS"
 
     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
     # to get the SysV transport functions.
-    # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
+    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
     # needs -lnsl.
     # The nsl library prevents programs from opening the X display
-    # on Irix 5.2, according to dickey@clark.net.
-    echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
-echo "configure:1581: checking for gethostbyname" >&5
-if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
-else
-  cat > conftest.$ac_ext <<EOF
-#line 1586 "configure"
-#include "confdefs.h"
+    # on Irix 5.2, according to T.E. Dickey.
+    # The functions gethostbyname, getservbyname, and inet_addr are
+    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
+    echo "$as_me:$LINENO: checking for gethostbyname" >&5
+echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
+if test "${ac_cv_func_gethostbyname+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
 /* System header to define __stub macros and hopefully few prototypes,
-    which can conflict with char gethostbyname(); below.  */
-#include <assert.h>
+    which can conflict with char gethostbyname (); below.
+    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+    <limits.h> exists even on freestanding compilers.  */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
 /* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
 /* We use char because int might match the return type of a gcc2
-    builtin and then its argument prototype would still apply.  */
-char gethostbyname();
-
-int main() {
-
+   builtin and then its argument prototype would still apply.  */
+char gethostbyname ();
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
     something starting with __ and the normal name is an alias.  */
 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
 choke me
 #else
-gethostbyname();
+char (*f) () = gethostbyname;
+#endif
+#ifdef __cplusplus
+}
 #endif
 
-; return 0; }
-EOF
-if { (eval echo configure:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
-  rm -rf conftest*
-  eval "ac_cv_func_gethostbyname=yes"
-else
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -rf conftest*
-  eval "ac_cv_func_gethostbyname=no"
-fi
-rm -f conftest*
-fi
+int
+main ()
+{
+return f != gethostbyname;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_func_gethostbyname=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
 
-if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
-  echo "$ac_t""yes" 1>&6
-  :
-else
-  echo "$ac_t""no" 1>&6
+ac_cv_func_gethostbyname=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 fi
+echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
+echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
 
     if test $ac_cv_func_gethostbyname = no; then
-      echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
-echo "configure:1630: checking for gethostbyname in -lnsl" >&5
-ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
+      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
+echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
+if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
 else
-  ac_save_LIBS="$LIBS"
+  ac_check_lib_save_LIBS=$LIBS
 LIBS="-lnsl  $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 1638 "configure"
-#include "confdefs.h"
-/* Override any gcc2 internal prototype to avoid an error.  */
-/* We use char because int might match the return type of a gcc2
-    builtin and then its argument prototype would still apply.  */
-char gethostbyname();
-
-int main() {
-gethostbyname()
-; return 0; }
-EOF
-if { (eval echo configure:1649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
-  rm -rf conftest*
-  eval "ac_cv_lib_$ac_lib_var=yes"
-else
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -rf conftest*
-  eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
 
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
-  echo "$ac_t""yes" 1>&6
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char gethostbyname ();
+int
+main ()
+{
+gethostbyname ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_nsl_gethostbyname=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_nsl_gethostbyname=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
+echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
+if test $ac_cv_lib_nsl_gethostbyname = yes; then
   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
-else
-  echo "$ac_t""no" 1>&6
 fi
 
+      if test $ac_cv_lib_nsl_gethostbyname = no; then
+        echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
+echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
+if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-lbsd  $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char gethostbyname ();
+int
+main ()
+{
+gethostbyname ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_bsd_gethostbyname=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_bsd_gethostbyname=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
+echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
+if test $ac_cv_lib_bsd_gethostbyname = yes; then
+  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
+fi
+
+      fi
     fi
 
     # lieder@skyler.mavd.honeywell.com says without -lsocket,
     # socket/setsockopt and other routines are undefined under SCO ODT
     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
-    # on later versions), says simon@lia.di.epfl.ch: it contains
-    # gethostby* variants that don't use the nameserver (or something).
-    # -lsocket must be given before -lnsl if both are needed.
-    # We assume that if connect needs -lnsl, so does gethostbyname.
-    echo $ac_n "checking for connect""... $ac_c" 1>&6
-echo "configure:1679: checking for connect" >&5
-if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
-else
-  cat > conftest.$ac_ext <<EOF
-#line 1684 "configure"
-#include "confdefs.h"
+    # on later versions), says Simon Leinen: it contains gethostby*
+    # variants that don't use the name server (or something).  -lsocket
+    # must be given before -lnsl if both are needed.  We assume that
+    # if connect needs -lnsl, so does gethostbyname.
+    echo "$as_me:$LINENO: checking for connect" >&5
+echo $ECHO_N "checking for connect... $ECHO_C" >&6
+if test "${ac_cv_func_connect+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
 /* System header to define __stub macros and hopefully few prototypes,
-    which can conflict with char connect(); below.  */
-#include <assert.h>
+    which can conflict with char connect (); below.
+    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+    <limits.h> exists even on freestanding compilers.  */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
 /* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
 /* We use char because int might match the return type of a gcc2
-    builtin and then its argument prototype would still apply.  */
-char connect();
-
-int main() {
-
+   builtin and then its argument prototype would still apply.  */
+char connect ();
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
     something starting with __ and the normal name is an alias.  */
 #if defined (__stub_connect) || defined (__stub___connect)
 choke me
 #else
-connect();
+char (*f) () = connect;
+#endif
+#ifdef __cplusplus
+}
 #endif
 
-; return 0; }
-EOF
-if { (eval echo configure:1707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
-  rm -rf conftest*
-  eval "ac_cv_func_connect=yes"
-else
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -rf conftest*
-  eval "ac_cv_func_connect=no"
-fi
-rm -f conftest*
-fi
+int
+main ()
+{
+return f != connect;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_func_connect=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
 
-if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
-  echo "$ac_t""yes" 1>&6
-  :
-else
-  echo "$ac_t""no" 1>&6
+ac_cv_func_connect=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 fi
+echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
+echo "${ECHO_T}$ac_cv_func_connect" >&6
 
     if test $ac_cv_func_connect = no; then
-      echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
-echo "configure:1728: checking for connect in -lsocket" >&5
-ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
+      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
+echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
+if test "${ac_cv_lib_socket_connect+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
 else
-  ac_save_LIBS="$LIBS"
+  ac_check_lib_save_LIBS=$LIBS
 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 1736 "configure"
-#include "confdefs.h"
-/* Override any gcc2 internal prototype to avoid an error.  */
-/* We use char because int might match the return type of a gcc2
-    builtin and then its argument prototype would still apply.  */
-char connect();
-
-int main() {
-connect()
-; return 0; }
-EOF
-if { (eval echo configure:1747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
-  rm -rf conftest*
-  eval "ac_cv_lib_$ac_lib_var=yes"
-else
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -rf conftest*
-  eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
 
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
-  echo "$ac_t""yes" 1>&6
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char connect ();
+int
+main ()
+{
+connect ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_socket_connect=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_socket_connect=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
+echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
+if test $ac_cv_lib_socket_connect = yes; then
   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
-else
-  echo "$ac_t""no" 1>&6
 fi
 
     fi
 
-    # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
-    echo $ac_n "checking for remove""... $ac_c" 1>&6
-echo "configure:1771: checking for remove" >&5
-if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
-else
-  cat > conftest.$ac_ext <<EOF
-#line 1776 "configure"
-#include "confdefs.h"
+    # Guillermo Gomez says -lposix is necessary on A/UX.
+    echo "$as_me:$LINENO: checking for remove" >&5
+echo $ECHO_N "checking for remove... $ECHO_C" >&6
+if test "${ac_cv_func_remove+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
 /* System header to define __stub macros and hopefully few prototypes,
-    which can conflict with char remove(); below.  */
-#include <assert.h>
+    which can conflict with char remove (); below.
+    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+    <limits.h> exists even on freestanding compilers.  */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
 /* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
 /* We use char because int might match the return type of a gcc2
-    builtin and then its argument prototype would still apply.  */
-char remove();
-
-int main() {
-
+   builtin and then its argument prototype would still apply.  */
+char remove ();
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
     something starting with __ and the normal name is an alias.  */
 #if defined (__stub_remove) || defined (__stub___remove)
 choke me
 #else
-remove();
+char (*f) () = remove;
+#endif
+#ifdef __cplusplus
+}
 #endif
 
-; return 0; }
-EOF
-if { (eval echo configure:1799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
-  rm -rf conftest*
-  eval "ac_cv_func_remove=yes"
-else
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -rf conftest*
-  eval "ac_cv_func_remove=no"
-fi
-rm -f conftest*
-fi
+int
+main ()
+{
+return f != remove;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_func_remove=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
 
-if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
-  echo "$ac_t""yes" 1>&6
-  :
-else
-  echo "$ac_t""no" 1>&6
+ac_cv_func_remove=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 fi
+echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
+echo "${ECHO_T}$ac_cv_func_remove" >&6
 
     if test $ac_cv_func_remove = no; then
-      echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
-echo "configure:1820: checking for remove in -lposix" >&5
-ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
+      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
+echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
+if test "${ac_cv_lib_posix_remove+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
 else
-  ac_save_LIBS="$LIBS"
+  ac_check_lib_save_LIBS=$LIBS
 LIBS="-lposix  $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 1828 "configure"
-#include "confdefs.h"
-/* Override any gcc2 internal prototype to avoid an error.  */
-/* We use char because int might match the return type of a gcc2
-    builtin and then its argument prototype would still apply.  */
-char remove();
-
-int main() {
-remove()
-; return 0; }
-EOF
-if { (eval echo configure:1839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
-  rm -rf conftest*
-  eval "ac_cv_lib_$ac_lib_var=yes"
-else
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -rf conftest*
-  eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
 
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
-  echo "$ac_t""yes" 1>&6
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char remove ();
+int
+main ()
+{
+remove ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_posix_remove=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_posix_remove=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
+echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
+if test $ac_cv_lib_posix_remove = yes; then
   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
-else
-  echo "$ac_t""no" 1>&6
 fi
 
     fi
 
     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
-    echo $ac_n "checking for shmat""... $ac_c" 1>&6
-echo "configure:1863: checking for shmat" >&5
-if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
-else
-  cat > conftest.$ac_ext <<EOF
-#line 1868 "configure"
-#include "confdefs.h"
+    echo "$as_me:$LINENO: checking for shmat" >&5
+echo $ECHO_N "checking for shmat... $ECHO_C" >&6
+if test "${ac_cv_func_shmat+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
 /* System header to define __stub macros and hopefully few prototypes,
-    which can conflict with char shmat(); below.  */
-#include <assert.h>
+    which can conflict with char shmat (); below.
+    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+    <limits.h> exists even on freestanding compilers.  */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
 /* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
 /* We use char because int might match the return type of a gcc2
-    builtin and then its argument prototype would still apply.  */
-char shmat();
-
-int main() {
-
+   builtin and then its argument prototype would still apply.  */
+char shmat ();
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
     something starting with __ and the normal name is an alias.  */
 #if defined (__stub_shmat) || defined (__stub___shmat)
 choke me
 #else
-shmat();
+char (*f) () = shmat;
+#endif
+#ifdef __cplusplus
+}
 #endif
 
-; return 0; }
-EOF
-if { (eval echo configure:1891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
-  rm -rf conftest*
-  eval "ac_cv_func_shmat=yes"
-else
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -rf conftest*
-  eval "ac_cv_func_shmat=no"
-fi
-rm -f conftest*
-fi
+int
+main ()
+{
+return f != shmat;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_func_shmat=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
 
-if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
-  echo "$ac_t""yes" 1>&6
-  :
-else
-  echo "$ac_t""no" 1>&6
+ac_cv_func_shmat=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 fi
+echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
+echo "${ECHO_T}$ac_cv_func_shmat" >&6
 
     if test $ac_cv_func_shmat = no; then
-      echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
-echo "configure:1912: checking for shmat in -lipc" >&5
-ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
+      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
+echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
+if test "${ac_cv_lib_ipc_shmat+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
 else
-  ac_save_LIBS="$LIBS"
+  ac_check_lib_save_LIBS=$LIBS
 LIBS="-lipc  $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 1920 "configure"
-#include "confdefs.h"
-/* Override any gcc2 internal prototype to avoid an error.  */
-/* We use char because int might match the return type of a gcc2
-    builtin and then its argument prototype would still apply.  */
-char shmat();
-
-int main() {
-shmat()
-; return 0; }
-EOF
-if { (eval echo configure:1931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
-  rm -rf conftest*
-  eval "ac_cv_lib_$ac_lib_var=yes"
-else
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -rf conftest*
-  eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
 
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
-  echo "$ac_t""yes" 1>&6
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char shmat ();
+int
+main ()
+{
+shmat ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_ipc_shmat=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_ipc_shmat=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
+echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
+if test $ac_cv_lib_ipc_shmat = yes; then
   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
-else
-  echo "$ac_t""no" 1>&6
 fi
 
     fi
   fi
 
   # Check for libraries that X11R6 Xt/Xaw programs need.
-  ac_save_LDFLAGS="$LDFLAGS"
+  ac_save_LDFLAGS=$LDFLAGS
   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
   # check for ICE first), but we must link in the order -lSM -lICE or
   # we get undefined symbols.  So assume we have SM if we have ICE.
   # These have to be linked with before -lX11, unlike the other
   # libraries we check for below, so use a different variable.
-  #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
-  echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
-echo "configure:1964: checking for IceConnectionNumber in -lICE" >&5
-ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
+  # John Interrante, Karl Berry
+  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
+echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
+if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
 else
-  ac_save_LIBS="$LIBS"
+  ac_check_lib_save_LIBS=$LIBS
 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 1972 "configure"
-#include "confdefs.h"
-/* Override any gcc2 internal prototype to avoid an error.  */
-/* We use char because int might match the return type of a gcc2
-    builtin and then its argument prototype would still apply.  */
-char IceConnectionNumber();
-
-int main() {
-IceConnectionNumber()
-; return 0; }
-EOF
-if { (eval echo configure:1983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
-  rm -rf conftest*
-  eval "ac_cv_lib_$ac_lib_var=yes"
-else
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -rf conftest*
-  eval "ac_cv_lib_$ac_lib_var=no"
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char IceConnectionNumber ();
+int
+main ()
+{
+IceConnectionNumber ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_ICE_IceConnectionNumber=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_ICE_IceConnectionNumber=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
+echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
+if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
+  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
+fi
+
+  LDFLAGS=$ac_save_LDFLAGS
+
+fi
+
+
+#Check these header since they cause trouble
+echo "$as_me:$LINENO: checking for ANSI C header files" >&5
+echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
+if test "${ac_cv_header_stdc+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <stdlib.h>
+#include <stdarg.h>
+#include <string.h>
+#include <float.h>
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_header_stdc=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_header_stdc=no
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+
+if test $ac_cv_header_stdc = yes; then
+  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <string.h>
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+  $EGREP "memchr" >/dev/null 2>&1; then
+  :
+else
+  ac_cv_header_stdc=no
 fi
 rm -f conftest*
-LIBS="$ac_save_LIBS"
 
 fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
-  echo "$ac_t""yes" 1>&6
-  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
+
+if test $ac_cv_header_stdc = yes; then
+  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <stdlib.h>
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+  $EGREP "free" >/dev/null 2>&1; then
+  :
 else
-  echo "$ac_t""no" 1>&6
+  ac_cv_header_stdc=no
+fi
+rm -f conftest*
+
 fi
 
-  LDFLAGS="$ac_save_LDFLAGS"
+if test $ac_cv_header_stdc = yes; then
+  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
+  if test "$cross_compiling" = yes; then
+  :
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <ctype.h>
+#if ((' ' & 0x0FF) == 0x020)
+# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
+#else
+# define ISLOWER(c) \
+                   (('a' <= (c) && (c) <= 'i') \
+                     || ('j' <= (c) && (c) <= 'r') \
+                     || ('s' <= (c) && (c) <= 'z'))
+# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
+#endif
 
+#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
+int
+main ()
+{
+  int i;
+  for (i = 0; i < 256; i++)
+    if (XOR (islower (i), ISLOWER (i))
+        || toupper (i) != TOUPPER (i))
+      exit(2);
+  exit (0);
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  :
+else
+  echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+ac_cv_header_stdc=no
+fi
+rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
 fi
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
+echo "${ECHO_T}$ac_cv_header_stdc" >&6
+if test $ac_cv_header_stdc = yes; then
 
+cat >>confdefs.h <<\_ACEOF
+#define STDC_HEADERS 1
+_ACEOF
 
-#Check these header since they cause trouble
-for ac_hdr in \
+fi
+
+# On IRIX 5.3, sys/types and inttypes.h are conflicting.
+
+
+
+
+
+
+
+
+
+for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
+                  inttypes.h stdint.h unistd.h
+do
+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  eval "$as_ac_Header=yes"
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+eval "$as_ac_Header=no"
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+  cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+
+
+
+
+
+
+
+
+
+
+
+for ac_header in \
 stdlib.h \
 unistd.h \
 memory.h \
@@ -2014,470 +4317,733 @@ malloc.h \
 termios.h \
 fcntl.h \
 sys/fcntl.h \
+sys/stropts.h \
 pty.h \
 
 do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:2023: checking for $ac_hdr" >&5
-if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
-else
-  cat > conftest.$ac_ext <<EOF
-#line 2028 "configure"
-#include "confdefs.h"
-#include <$ac_hdr>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:2033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
-  rm -rf conftest*
-  eval "ac_cv_header_$ac_safe=yes"
-else
-  echo "$ac_err" >&5
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -rf conftest*
-  eval "ac_cv_header_$ac_safe=no"
-fi
-rm -f conftest*
+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+  echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+else
+  # Is the header compilable?
+echo "$as_me:$LINENO: checking $ac_header usability" >&5
+echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_header_compiler=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_header_compiler=no
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking $ac_header presence" >&5
+echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <$ac_header>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } >/dev/null; then
+  if test -s conftest.err; then
+    ac_cpp_err=$ac_c_preproc_warn_flag
+  else
+    ac_cpp_err=
+  fi
+else
+  ac_cpp_err=yes
 fi
-if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
-  echo "$ac_t""yes" 1>&6
-    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
-  cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
-EOF
- 
+if test -z "$ac_cpp_err"; then
+  ac_header_preproc=yes
 else
-  echo "$ac_t""no" 1>&6
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+  ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So?  What about this header?
+case $ac_header_compiler:$ac_header_preproc in
+  yes:no )
+    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+    (
+      cat <<\_ASBOX
+## ------------------------------------ ##
+## Report this to bug-autoconf@gnu.org. ##
+## ------------------------------------ ##
+_ASBOX
+    ) |
+      sed "s/^/$as_me: WARNING:     /" >&2
+    ;;
+  no:yes )
+    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
+echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
+    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+    (
+      cat <<\_ASBOX
+## ------------------------------------ ##
+## Report this to bug-autoconf@gnu.org. ##
+## ------------------------------------ ##
+_ASBOX
+    ) |
+      sed "s/^/$as_me: WARNING:     /" >&2
+    ;;
+esac
+echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  eval "$as_ac_Header=$ac_header_preproc"
 fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+
+fi
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+  cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
 done
 
 
 # special treatment for sys/wait.h
-echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
-echo "configure:2062: checking for sys/wait.h that is POSIX.1 compatible" >&5
-if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
-else
-  cat > conftest.$ac_ext <<EOF
-#line 2067 "configure"
-#include "confdefs.h"
+echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
+echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
+if test "${ac_cv_header_sys_wait_h+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
 #include <sys/types.h>
 #include <sys/wait.h>
 #ifndef WEXITSTATUS
-#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
+# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
 #endif
 #ifndef WIFEXITED
-#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
+# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
 #endif
-int main() {
-int s;
-wait (&s);
-s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
-; return 0; }
-EOF
-if { (eval echo configure:2083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
-  rm -rf conftest*
+
+int
+main ()
+{
+  int s;
+  wait (&s);
+  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
   ac_cv_header_sys_wait_h=yes
 else
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -rf conftest*
-  ac_cv_header_sys_wait_h=no
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_header_sys_wait_h=no
 fi
-rm -f conftest*
+rm -f conftest.$ac_objext conftest.$ac_ext
 fi
-
-echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
+echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
+echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
 if test $ac_cv_header_sys_wait_h = yes; then
-  cat >> confdefs.h <<\EOF
+
+cat >>confdefs.h <<\_ACEOF
 #define HAVE_SYS_WAIT_H 1
-EOF
+_ACEOF
 
 fi
 
+
+
+
+
+
 ac_header_dirent=no
-for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
-do
-ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
-echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
-echo "configure:2108: checking for $ac_hdr that defines DIR" >&5
-if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
-else
-  cat > conftest.$ac_ext <<EOF
-#line 2113 "configure"
-#include "confdefs.h"
+for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
+  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
+echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
+echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
+if eval "test \"\${$as_ac_Header+set}\" = set"; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
 #include <sys/types.h>
 #include <$ac_hdr>
-int main() {
-DIR *dirp = 0;
-; return 0; }
-EOF
-if { (eval echo configure:2121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
-  rm -rf conftest*
-  eval "ac_cv_header_dirent_$ac_safe=yes"
-else
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -rf conftest*
-  eval "ac_cv_header_dirent_$ac_safe=no"
-fi
-rm -f conftest*
-fi
-if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
-  echo "$ac_t""yes" 1>&6
-    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
-  cat >> confdefs.h <<EOF
-#define $ac_tr_hdr 1
-EOF
- ac_header_dirent=$ac_hdr; break
-else
-  echo "$ac_t""no" 1>&6
+
+int
+main ()
+{
+if ((DIR *) 0)
+return 0;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  eval "$as_ac_Header=yes"
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+eval "$as_ac_Header=no"
+fi
+rm -f conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+  cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
+_ACEOF
+
+ac_header_dirent=$ac_hdr; break
 fi
+
 done
 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
 if test $ac_header_dirent = dirent.h; then
-echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
-echo "configure:2146: checking for opendir in -ldir" >&5
-ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
-else
-  ac_save_LIBS="$LIBS"
-LIBS="-ldir  $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 2154 "configure"
-#include "confdefs.h"
-/* Override any gcc2 internal prototype to avoid an error.  */
-/* We use char because int might match the return type of a gcc2
-    builtin and then its argument prototype would still apply.  */
-char opendir();
-
-int main() {
-opendir()
-; return 0; }
-EOF
-if { (eval echo configure:2165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
-  rm -rf conftest*
-  eval "ac_cv_lib_$ac_lib_var=yes"
-else
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -rf conftest*
-  eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
-  echo "$ac_t""yes" 1>&6
-  LIBS="$LIBS -ldir"
-else
-  echo "$ac_t""no" 1>&6
-fi
+  echo "$as_me:$LINENO: checking for library containing opendir" >&5
+echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
+if test "${ac_cv_search_opendir+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_func_search_save_LIBS=$LIBS
+ac_cv_search_opendir=no
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
 
-else
-echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
-echo "configure:2187: checking for opendir in -lx" >&5
-ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
-else
-  ac_save_LIBS="$LIBS"
-LIBS="-lx  $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 2195 "configure"
-#include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
 /* We use char because int might match the return type of a gcc2
-    builtin and then its argument prototype would still apply.  */
-char opendir();
+   builtin and then its argument prototype would still apply.  */
+char opendir ();
+int
+main ()
+{
+opendir ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_search_opendir="none required"
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+if test "$ac_cv_search_opendir" = no; then
+  for ac_lib in dir; do
+    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
+    cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
 
-int main() {
-opendir()
-; return 0; }
-EOF
-if { (eval echo configure:2206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
-  rm -rf conftest*
-  eval "ac_cv_lib_$ac_lib_var=yes"
-else
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -rf conftest*
-  eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
-  echo "$ac_t""yes" 1>&6
-  LIBS="$LIBS -lx"
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char opendir ();
+int
+main ()
+{
+opendir ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_search_opendir="-l$ac_lib"
+break
 else
-  echo "$ac_t""no" 1>&6
-fi
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
 
 fi
-
-
-echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
-echo "configure:2230: checking for ANSI C header files" >&5
-if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
-else
-  cat > conftest.$ac_ext <<EOF
-#line 2235 "configure"
-#include "confdefs.h"
-#include <stdlib.h>
-#include <stdarg.h>
-#include <string.h>
-#include <float.h>
-EOF
-ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:2243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
-if test -z "$ac_err"; then
-  rm -rf conftest*
-  ac_cv_header_stdc=yes
-else
-  echo "$ac_err" >&5
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -rf conftest*
-  ac_cv_header_stdc=no
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+  done
 fi
-rm -f conftest*
-
-if test $ac_cv_header_stdc = yes; then
-  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
-cat > conftest.$ac_ext <<EOF
-#line 2260 "configure"
-#include "confdefs.h"
-#include <string.h>
-EOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-  egrep "memchr" >/dev/null 2>&1; then
-  :
-else
-  rm -rf conftest*
-  ac_cv_header_stdc=no
+LIBS=$ac_func_search_save_LIBS
 fi
-rm -f conftest*
+echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
+echo "${ECHO_T}$ac_cv_search_opendir" >&6
+if test "$ac_cv_search_opendir" != no; then
+  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
 
 fi
 
-if test $ac_cv_header_stdc = yes; then
-  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
-cat > conftest.$ac_ext <<EOF
-#line 2278 "configure"
-#include "confdefs.h"
-#include <stdlib.h>
-EOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-  egrep "free" >/dev/null 2>&1; then
-  :
 else
-  rm -rf conftest*
-  ac_cv_header_stdc=no
-fi
-rm -f conftest*
-
-fi
+  echo "$as_me:$LINENO: checking for library containing opendir" >&5
+echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
+if test "${ac_cv_search_opendir+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_func_search_save_LIBS=$LIBS
+ac_cv_search_opendir=no
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
 
-if test $ac_cv_header_stdc = yes; then
-  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
-if test "$cross_compiling" = yes; then
-  :
-else
-  cat > conftest.$ac_ext <<EOF
-#line 2299 "configure"
-#include "confdefs.h"
-#include <ctype.h>
-#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
-#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
-#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
-int main () { int i; for (i = 0; i < 256; i++)
-if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
-exit (0); }
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char opendir ();
+int
+main ()
+{
+opendir ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_search_opendir="none required"
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+if test "$ac_cv_search_opendir" = no; then
+  for ac_lib in x; do
+    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
+    cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
 
-EOF
-if { (eval echo configure:2310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
-then
-  :
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char opendir ();
+int
+main ()
+{
+opendir ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_search_opendir="-l$ac_lib"
+break
 else
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -fr conftest*
-  ac_cv_header_stdc=no
-fi
-rm -fr conftest*
-fi
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
 
 fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+  done
+fi
+LIBS=$ac_func_search_save_LIBS
 fi
+echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
+echo "${ECHO_T}$ac_cv_search_opendir" >&6
+if test "$ac_cv_search_opendir" != no; then
+  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
 
-echo "$ac_t""$ac_cv_header_stdc" 1>&6
-if test $ac_cv_header_stdc = yes; then
-  cat >> confdefs.h <<\EOF
-#define STDC_HEADERS 1
-EOF
+fi
 
 fi
 
-echo $ac_n "checking for mode_t""... $ac_c" 1>&6
-echo "configure:2334: checking for mode_t" >&5
-if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
-else
-  cat > conftest.$ac_ext <<EOF
-#line 2339 "configure"
-#include "confdefs.h"
-#include <sys/types.h>
-#if STDC_HEADERS
-#include <stdlib.h>
-#include <stddef.h>
-#endif
-EOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-  egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
-  rm -rf conftest*
+
+echo "$as_me:$LINENO: checking for mode_t" >&5
+echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
+if test "${ac_cv_type_mode_t+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+int
+main ()
+{
+if ((mode_t *) 0)
+  return 0;
+if (sizeof (mode_t))
+  return 0;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
   ac_cv_type_mode_t=yes
 else
-  rm -rf conftest*
-  ac_cv_type_mode_t=no
-fi
-rm -f conftest*
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
 
+ac_cv_type_mode_t=no
 fi
-echo "$ac_t""$ac_cv_type_mode_t" 1>&6
-if test $ac_cv_type_mode_t = no; then
-  cat >> confdefs.h <<\EOF
+rm -f conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
+echo "${ECHO_T}$ac_cv_type_mode_t" >&6
+if test $ac_cv_type_mode_t = yes; then
+  :
+else
+
+cat >>confdefs.h <<_ACEOF
 #define mode_t int
-EOF
+_ACEOF
 
 fi
 
-echo $ac_n "checking for pid_t""... $ac_c" 1>&6
-echo "configure:2367: checking for pid_t" >&5
-if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
-else
-  cat > conftest.$ac_ext <<EOF
-#line 2372 "configure"
-#include "confdefs.h"
-#include <sys/types.h>
-#if STDC_HEADERS
-#include <stdlib.h>
-#include <stddef.h>
-#endif
-EOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-  egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
-  rm -rf conftest*
+echo "$as_me:$LINENO: checking for pid_t" >&5
+echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
+if test "${ac_cv_type_pid_t+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+int
+main ()
+{
+if ((pid_t *) 0)
+  return 0;
+if (sizeof (pid_t))
+  return 0;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
   ac_cv_type_pid_t=yes
 else
-  rm -rf conftest*
-  ac_cv_type_pid_t=no
-fi
-rm -f conftest*
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
 
+ac_cv_type_pid_t=no
 fi
-echo "$ac_t""$ac_cv_type_pid_t" 1>&6
-if test $ac_cv_type_pid_t = no; then
-  cat >> confdefs.h <<\EOF
+rm -f conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
+echo "${ECHO_T}$ac_cv_type_pid_t" >&6
+if test $ac_cv_type_pid_t = yes; then
+  :
+else
+
+cat >>confdefs.h <<_ACEOF
 #define pid_t int
-EOF
+_ACEOF
 
 fi
 
-echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
-echo "configure:2400: checking for uid_t in sys/types.h" >&5
-if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
-else
-  cat > conftest.$ac_ext <<EOF
-#line 2405 "configure"
-#include "confdefs.h"
+echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
+echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
+if test "${ac_cv_type_uid_t+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
 #include <sys/types.h>
-EOF
+
+_ACEOF
 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-  egrep "uid_t" >/dev/null 2>&1; then
-  rm -rf conftest*
+  $EGREP "uid_t" >/dev/null 2>&1; then
   ac_cv_type_uid_t=yes
 else
-  rm -rf conftest*
   ac_cv_type_uid_t=no
 fi
 rm -f conftest*
 
 fi
-
-echo "$ac_t""$ac_cv_type_uid_t" 1>&6
+echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
+echo "${ECHO_T}$ac_cv_type_uid_t" >&6
 if test $ac_cv_type_uid_t = no; then
-  cat >> confdefs.h <<\EOF
+
+cat >>confdefs.h <<\_ACEOF
 #define uid_t int
-EOF
+_ACEOF
 
-  cat >> confdefs.h <<\EOF
+
+cat >>confdefs.h <<\_ACEOF
 #define gid_t int
-EOF
+_ACEOF
 
 fi
 
 
-echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
-echo "configure:2435: checking for openpty in -lutil" >&5
-ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
+
+echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
+echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
+if test "${ac_cv_lib_util_openpty+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
 else
-  ac_save_LIBS="$LIBS"
+  ac_check_lib_save_LIBS=$LIBS
 LIBS="-lutil  $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 2443 "configure"
-#include "confdefs.h"
-/* Override any gcc2 internal prototype to avoid an error.  */
-/* We use char because int might match the return type of a gcc2
-    builtin and then its argument prototype would still apply.  */
-char openpty();
-
-int main() {
-openpty()
-; return 0; }
-EOF
-if { (eval echo configure:2454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
-  rm -rf conftest*
-  eval "ac_cv_lib_$ac_lib_var=yes"
-else
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -rf conftest*
-  eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
 
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
-  echo "$ac_t""yes" 1>&6
-    ac_tr_lib=HAVE_LIB`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
-  cat >> confdefs.h <<EOF
-#define $ac_tr_lib 1
-EOF
+/* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+   builtin and then its argument prototype would still apply.  */
+char openpty ();
+int
+main ()
+{
+openpty ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_lib_util_openpty=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_util_openpty=no
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
+echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
+if test $ac_cv_lib_util_openpty = yes; then
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBUTIL 1
+_ACEOF
 
   LIBS="-lutil $LIBS"
 
-else
-  echo "$ac_t""no" 1>&6
 fi
 
 
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
 for ac_func in \
 memset \
 memcpy \
@@ -2497,56 +5063,84 @@ openpty \
 snprintf vsnprintf \
 
 do
-echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:2502: checking for $ac_func" >&5
-if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
-else
-  cat > conftest.$ac_ext <<EOF
-#line 2507 "configure"
-#include "confdefs.h"
+as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+echo "$as_me:$LINENO: checking for $ac_func" >&5
+echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
+if eval "test \"\${$as_ac_var+set}\" = set"; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+#line $LINENO "configure"
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
 /* System header to define __stub macros and hopefully few prototypes,
-    which can conflict with char $ac_func(); below.  */
-#include <assert.h>
+    which can conflict with char $ac_func (); below.
+    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+    <limits.h> exists even on freestanding compilers.  */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
 /* Override any gcc2 internal prototype to avoid an error.  */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
 /* We use char because int might match the return type of a gcc2
-    builtin and then its argument prototype would still apply.  */
-char $ac_func();
-
-int main() {
-
+   builtin and then its argument prototype would still apply.  */
+char $ac_func ();
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
     something starting with __ and the normal name is an alias.  */
 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 choke me
 #else
-$ac_func();
+char (*f) () = $ac_func;
+#endif
+#ifdef __cplusplus
+}
 #endif
 
-; return 0; }
-EOF
-if { (eval echo configure:2530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
-  rm -rf conftest*
-  eval "ac_cv_func_$ac_func=yes"
-else
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -rf conftest*
-  eval "ac_cv_func_$ac_func=no"
-fi
-rm -f conftest*
-fi
+int
+main ()
+{
+return f != $ac_func;
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } &&
+         { ac_try='test -s conftest$ac_exeext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  eval "$as_ac_var=yes"
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+eval "$as_ac_var=no"
+fi
+rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
+if test `eval echo '${'$as_ac_var'}'` = yes; then
+  cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
 
-if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
-  echo "$ac_t""yes" 1>&6
-    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
-  cat >> confdefs.h <<EOF
-#define $ac_tr_func 1
-EOF
- 
-else
-  echo "$ac_t""no" 1>&6
 fi
 done
 
@@ -2572,8 +5166,8 @@ OBJDIR=$SRCDIR/"$ARCH"objs
 ELFDIR=$SRCDIR/elf"$ARCH"objs
 
 
-echo $ac_n "checking for Terminfo""... $ac_c" 1>&6
-echo "configure:2577: checking for Terminfo" >&5
+echo "$as_me:$LINENO: checking for Terminfo" >&5
+echo $ECHO_N "checking for Terminfo... $ECHO_C" >&6
 MISC_TERMINFO_DIRS="$FINKPREFIX/share/terminfo"
 if test ! -d $MISC_TERMINFO_DIRS
 then
@@ -2590,18 +5184,20 @@ TERMCAP=-ltermcap
 
 for terminfo_dir in $JD_Terminfo_Dirs
 do
-   if test -d $terminfo_dir 
+   if test -d $terminfo_dir
    then
-      echo "$ac_t""yes" 1>&6
+      echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
       TERMCAP=""
       break
    fi
 done
 if test "$TERMCAP"; then
-  echo "$ac_t""no" 1>&6
-  cat >> confdefs.h <<\EOF
+  echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+  cat >>confdefs.h <<\_ACEOF
 #define USE_TERMCAP 1
-EOF
+_ACEOF
 
 fi
 
@@ -2624,7 +5220,7 @@ then
  JD_Search_Dirs="$JD_Search_Dirs $HOME/include,$HOME/sys/$ARCH/lib"
 fi
 
-# Now add the standard system includes.  The reason for doing this is that 
+# Now add the standard system includes.  The reason for doing this is that
 # the other directories may have a better chance of containing a more recent
 # version.
 
@@ -2667,7 +5263,7 @@ if test -n "$SLANG_LIB_DIR"
 then
     jd_have_slang="yes"
 else
-    echo Unable to find the $SLANG library.  
+    echo Unable to find the $SLANG library.
     echo You may have to edit $CONFIG_DIR/src/Makefile.
     SLANG_INCLUDE=$JD_Above_Dir/slang/src
     SLANG_LIB_DIR=$JD_Above_Dir/slang/src/"$ARCH"objs
@@ -2680,8 +5276,8 @@ SLANG_LIB="-L$SLANG_LIB_DIR"
 if test "X$SLANG_LIB_DIR" != "X"
 then
   if test "X$RPATH" = "X"
-  then 
-    
+  then
+
 case "$host_os" in
   *linux*|*solaris* )
     if test "X$GCC" = Xyes
@@ -2741,11 +5337,9 @@ fi
 if test "${enable_warnings+set}" = set; then
   enableval="$enable_warnings"
   gcc_warnings=$enableval
-fi
-
+fi;
 if test -n "$GCC"
 then
-  CFLAGS="$CFLAGS -fno-strength-reduce"
   if test -n "$gcc_warnings"
   then
     CFLAGS="$CFLAGS -Wall -W -pedantic -Winline -Wmissing-prototypes \
@@ -2791,13 +5385,13 @@ JED_ROOT="${JED_ROOT:-$default_jed_root}
 
 
  for program_module in $Program_Modules; do
-   
+
 PROGRAM_OBJECT_RULES="$PROGRAM_OBJECT_RULES
 \$(OBJDIR)/$program_module.o : \$(SRCDIR)/$program_module.c \$(DOT_O_DEPS) \$("$program_module"_O_DEP)
 	cd \$(OBJDIR); \$(COMPILE_CMD) \$("$program_module"_C_FLAGS) \$(SRCDIR)/$program_module.c
 "
 
-   
+
 PROGRAM_ELF_ORULES="$PROGRAM_ELF_ORULES
 \$(ELFDIR)/$program_module.o : \$(SRCDIR)/$program_module.c \$(DOT_O_DEPS) \$("$program_module"_O_DEP)
 	cd \$(ELFDIR); \$(ELFCOMPILE_CMD) \$("$program_module"_C_FLAGS) \$(SRCDIR)/$program_module.c
@@ -2806,386 +5400,1114 @@ PROGRAM_ELF_ORULES="$PROGRAM_ELF_ORULES
  done
 
 
+          ac_config_headers="$ac_config_headers src/sysconf.h:src/config.hin"
 
-trap '' 1 2 15
-cat > confcache <<\EOF
+                    ac_config_files="$ac_config_files Makefile:autoconf/Makefile.in src/Makefile"
+cat >confcache <<\_ACEOF
 # This file is a shell script that caches the results of configure
 # tests run on this system so they can be shared between configure
-# scripts and configure runs.  It is not useful on other systems.
-# If it contains results you don't want to keep, you may remove or edit it.
+# scripts and configure runs, see configure's option --config-cache.
+# It is not useful on other systems.  If it contains results you don't
+# want to keep, you may remove or edit it.
 #
-# By default, configure uses ./config.cache as the cache file,
-# creating it if it does not exist already.  You can give configure
-# the --cache-file=FILE option to use a different cache file; that is
-# what configure does when it calls configure scripts in
-# subdirectories, so they share the cache.
-# Giving --cache-file=/dev/null disables caching, for debugging configure.
-# config.status only pays attention to the cache file if you give it the
-# --recheck option to rerun configure.
+# config.status only pays attention to the cache file if you give it
+# the --recheck option to rerun configure.
 #
-EOF
+# `ac_cv_env_foo' variables (set or unset) will be overridden when
+# loading this file, other *unset* `ac_cv_foo' will be assigned the
+# following values.
+
+_ACEOF
+
 # The following way of writing the cache mishandles newlines in values,
 # but we know of no workaround that is simple, portable, and efficient.
 # So, don't put newlines in cache variables' values.
 # Ultrix sh set writes to stderr and can't be redirected directly,
 # and sets the high bit in the cache file unless we assign to the vars.
-(set) 2>&1 |
-  case `(ac_space=' '; set | grep ac_space) 2>&1` in
-  *ac_space=\ *)
-    # `set' does not quote correctly, so add quotes (double-quote substitution
-    # turns \\\\ into \\, and sed turns \\ into \).
-    sed -n \
-      -e "s/'/'\\\\''/g" \
-      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
-    ;;
-  *)
-    # `set' quotes correctly as required by POSIX, so do not add quotes.
-    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
-    ;;
-  esac >> confcache
-if cmp -s $cache_file confcache; then
-  :
-else
+{
+  (set) 2>&1 |
+    case `(ac_space=' '; set | grep ac_space) 2>&1` in
+    *ac_space=\ *)
+      # `set' does not quote correctly, so add quotes (double-quote
+      # substitution turns \\\\ into \\, and sed turns \\ into \).
+      sed -n \
+        "s/'/'\\\\''/g;
+    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
+      ;;
+    *)
+      # `set' quotes correctly as required by POSIX, so do not add quotes.
+      sed -n \
+        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
+      ;;
+    esac;
+} |
+  sed '
+     t clear
+     : clear
+     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
+     t end
+     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
+     : end' >>confcache
+if diff $cache_file confcache >/dev/null 2>&1; then :; else
   if test -w $cache_file; then
-    echo "updating cache $cache_file"
-    cat confcache > $cache_file
+    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
+    cat confcache >$cache_file
   else
     echo "not updating unwritable cache $cache_file"
   fi
 fi
 rm -f confcache
 
-trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
-
 test "x$prefix" = xNONE && prefix=$ac_default_prefix
 # Let make expand exec_prefix.
 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
-# Any assignment to VPATH causes Sun make to only execute
-# the first set of double-colon rules, so remove it if not needed.
-# If there is a colon in the path, we need to keep it.
+# VPATH may cause trouble with some makes, so we remove $(srcdir),
+# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
+# trailing colons and then remove the whole line if VPATH becomes empty
+# (actually we leave an empty line to preserve line numbers).
 if test "x$srcdir" = x.; then
-  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
+  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
+s/:*\$(srcdir):*/:/;
+s/:*\${srcdir}:*/:/;
+s/:*@srcdir@:*/:/;
+s/^\([^=]*=[ 	]*\):*/\1/;
+s/:*$//;
+s/^[^=]*=[ 	]*$//;
+}'
 fi
 
-trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
-
 DEFS=-DHAVE_CONFIG_H
 
-# Without the "./", some shells look in PATH for config.status.
-: ${CONFIG_STATUS=./config.status}
+ac_libobjs=
+ac_ltlibobjs=
+for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
+  # 1. Remove the extension, and $U if already installed.
+  ac_i=`echo "$ac_i" |
+         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
+  # 2. Add them.
+  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
+  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
+done
+LIBOBJS=$ac_libobjs
 
-echo creating $CONFIG_STATUS
-rm -f $CONFIG_STATUS
-cat > $CONFIG_STATUS <<EOF
-#! /bin/sh
-# Generated automatically by configure.
+LTLIBOBJS=$ac_ltlibobjs
+
+
+
+: ${CONFIG_STATUS=./config.status}
+ac_clean_files_save=$ac_clean_files
+ac_clean_files="$ac_clean_files $CONFIG_STATUS"
+{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
+echo "$as_me: creating $CONFIG_STATUS" >&6;}
+cat >$CONFIG_STATUS <<_ACEOF
+#! $SHELL
+# Generated by $as_me.
 # Run this file to recreate the current configuration.
-# This directory was configured as follows,
-# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
-#
-# $0 $ac_configure_args
-#
 # Compiler output produced by configure, useful for debugging
-# configure, is in ./config.log if it exists.
+# configure, is in config.log if it exists.
 
-ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
-for ac_option
+debug=false
+ac_cs_recheck=false
+ac_cs_silent=false
+SHELL=\${CONFIG_SHELL-$SHELL}
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF
+## --------------------- ##
+## M4sh Initialization.  ##
+## --------------------- ##
+
+# Be Bourne compatible
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+  emulate sh
+  NULLCMD=:
+  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
+  # is contrary to our usage.  Disable this feature.
+  alias -g '${1+"$@"}'='"$@"'
+elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
+  set -o posix
+fi
+
+# Support unset when possible.
+if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
+  as_unset=unset
+else
+  as_unset=false
+fi
+
+
+# Work around bugs in pre-3.0 UWIN ksh.
+$as_unset ENV MAIL MAILPATH
+PS1='$ '
+PS2='> '
+PS4='+ '
+
+# NLS nuisances.
+for as_var in \
+  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
+  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
+  LC_TELEPHONE LC_TIME
+do
+  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
+    eval $as_var=C; export $as_var
+  else
+    $as_unset $as_var
+  fi
+done
+
+# Required to use basename.
+if expr a : '\(a\)' >/dev/null 2>&1; then
+  as_expr=expr
+else
+  as_expr=false
+fi
+
+if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
+  as_basename=basename
+else
+  as_basename=false
+fi
+
+
+# Name of the executable.
+as_me=`$as_basename "$0" ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+	 X"$0" : 'X\(//\)$' \| \
+	 X"$0" : 'X\(/\)$' \| \
+	 .     : '\(.\)' 2>/dev/null ||
+echo X/"$0" |
+    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
+  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
+  	  /^X\/\(\/\).*/{ s//\1/; q; }
+  	  s/.*/./; q'`
+
+
+# PATH needs CR, and LINENO needs CR and PATH.
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+  echo "#! /bin/sh" >conf$$.sh
+  echo  "exit 0"   >>conf$$.sh
+  chmod +x conf$$.sh
+  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
+    PATH_SEPARATOR=';'
+  else
+    PATH_SEPARATOR=:
+  fi
+  rm -f conf$$.sh
+fi
+
+
+  as_lineno_1=$LINENO
+  as_lineno_2=$LINENO
+  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
+  test "x$as_lineno_1" != "x$as_lineno_2" &&
+  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
+  # Find who we are.  Look in the path if we contain no path at all
+  # relative or not.
+  case $0 in
+    *[\\/]* ) as_myself=$0 ;;
+    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
+done
+
+       ;;
+  esac
+  # We did not find ourselves, most probably we were run as `sh COMMAND'
+  # in which case we are not to be found in the path.
+  if test "x$as_myself" = x; then
+    as_myself=$0
+  fi
+  if test ! -f "$as_myself"; then
+    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
+echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
+   { (exit 1); exit 1; }; }
+  fi
+  case $CONFIG_SHELL in
+  '')
+    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for as_base in sh bash ksh sh5; do
+	 case $as_dir in
+	 /*)
+	   if ("$as_dir/$as_base" -c '
+  as_lineno_1=$LINENO
+  as_lineno_2=$LINENO
+  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
+  test "x$as_lineno_1" != "x$as_lineno_2" &&
+  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
+	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
+	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
+	     CONFIG_SHELL=$as_dir/$as_base
+	     export CONFIG_SHELL
+	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
+	   fi;;
+	 esac
+       done
+done
+;;
+  esac
+
+  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
+  # uniformly replaced by the line number.  The first 'sed' inserts a
+  # line-number line before each line; the second 'sed' does the real
+  # work.  The second script uses 'N' to pair each line-number line
+  # with the numbered line, and appends trailing '-' during
+  # substitution so that $LINENO is not a special case at line end.
+  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
+  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
+  sed '=' <$as_myself |
+    sed '
+      N
+      s,$,-,
+      : loop
+      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
+      t loop
+      s,-$,,
+      s,^['$as_cr_digits']*\n,,
+    ' >$as_me.lineno &&
+  chmod +x $as_me.lineno ||
+    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
+echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
+   { (exit 1); exit 1; }; }
+
+  # Don't try to exec as it changes $[0], causing all sort of problems
+  # (the dirname of $[0] is not the place where we might find the
+  # original and so on.  Autoconf is especially sensible to this).
+  . ./$as_me.lineno
+  # Exit status is that of the last command.
+  exit
+}
+
+
+case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
+  *c*,-n*) ECHO_N= ECHO_C='
+' ECHO_T='	' ;;
+  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
+  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
+esac
+
+if expr a : '\(a\)' >/dev/null 2>&1; then
+  as_expr=expr
+else
+  as_expr=false
+fi
+
+rm -f conf$$ conf$$.exe conf$$.file
+echo >conf$$.file
+if ln -s conf$$.file conf$$ 2>/dev/null; then
+  # We could just check for DJGPP; but this test a) works b) is more generic
+  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
+  if test -f conf$$.exe; then
+    # Don't use ln at all; we don't have any links
+    as_ln_s='cp -p'
+  else
+    as_ln_s='ln -s'
+  fi
+elif ln conf$$.file conf$$ 2>/dev/null; then
+  as_ln_s=ln
+else
+  as_ln_s='cp -p'
+fi
+rm -f conf$$ conf$$.exe conf$$.file
+
+if mkdir -p . 2>/dev/null; then
+  as_mkdir_p=:
+else
+  as_mkdir_p=false
+fi
+
+as_executable_p="test -f"
+
+# Sed expression to map a string onto a valid CPP name.
+as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
+
+# Sed expression to map a string onto a valid variable name.
+as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
+
+
+# IFS
+# We need space, tab and new line, in precisely that order.
+as_nl='
+'
+IFS=" 	$as_nl"
+
+# CDPATH.
+$as_unset CDPATH
+
+exec 6>&1
+
+# Open the log real soon, to keep \$[0] and so on meaningful, and to
+# report actual input values of CONFIG_FILES etc. instead of their
+# values after options handling.  Logging --version etc. is OK.
+exec 5>>config.log
+{
+  echo
+  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
+## Running $as_me. ##
+_ASBOX
+} >&5
+cat >&5 <<_CSEOF
+
+This file was extended by $as_me, which was
+generated by GNU Autoconf 2.57.  Invocation command line was
+
+  CONFIG_FILES    = $CONFIG_FILES
+  CONFIG_HEADERS  = $CONFIG_HEADERS
+  CONFIG_LINKS    = $CONFIG_LINKS
+  CONFIG_COMMANDS = $CONFIG_COMMANDS
+  $ $0 $@
+
+_CSEOF
+echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
+echo >&5
+_ACEOF
+
+# Files that config.status was made for.
+if test -n "$ac_config_files"; then
+  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
+fi
+
+if test -n "$ac_config_headers"; then
+  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
+fi
+
+if test -n "$ac_config_links"; then
+  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
+fi
+
+if test -n "$ac_config_commands"; then
+  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
+fi
+
+cat >>$CONFIG_STATUS <<\_ACEOF
+
+ac_cs_usage="\
+\`$as_me' instantiates files from templates according to the
+current configuration.
+
+Usage: $0 [OPTIONS] [FILE]...
+
+  -h, --help       print this help, then exit
+  -V, --version    print version number, then exit
+  -q, --quiet      do not print progress messages
+  -d, --debug      don't remove temporary files
+      --recheck    update $as_me by reconfiguring in the same conditions
+  --file=FILE[:TEMPLATE]
+                   instantiate the configuration file FILE
+  --header=FILE[:TEMPLATE]
+                   instantiate the configuration header FILE
+
+Configuration files:
+$config_files
+
+Configuration headers:
+$config_headers
+
+Report bugs to <bug-autoconf@gnu.org>."
+_ACEOF
+
+cat >>$CONFIG_STATUS <<_ACEOF
+ac_cs_version="\\
+config.status
+configured by $0, generated by GNU Autoconf 2.57,
+  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
+
+Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
+Free Software Foundation, Inc.
+This config.status script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it."
+srcdir=$srcdir
+INSTALL="$INSTALL"
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF
+# If no file are specified by the user, then we need to provide default
+# value.  By we need to know if files were specified by the user.
+ac_need_defaults=:
+while test $# != 0
 do
-  case "\$ac_option" in
+  case $1 in
+  --*=*)
+    ac_option=`expr "x$1" : 'x\([^=]*\)='`
+    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
+    ac_shift=:
+    ;;
+  -*)
+    ac_option=$1
+    ac_optarg=$2
+    ac_shift=shift
+    ;;
+  *) # This is not an option, so the user has probably given explicit
+     # arguments.
+     ac_option=$1
+     ac_need_defaults=false;;
+  esac
+
+  case $ac_option in
+  # Handling of the options.
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF
   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
-    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
-    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
-  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
-    echo "$CONFIG_STATUS generated by autoconf version 2.13"
-    exit 0 ;;
-  -help | --help | --hel | --he | --h)
-    echo "\$ac_cs_usage"; exit 0 ;;
-  *) echo "\$ac_cs_usage"; exit 1 ;;
+    ac_cs_recheck=: ;;
+  --version | --vers* | -V )
+    echo "$ac_cs_version"; exit 0 ;;
+  --he | --h)
+    # Conflict between --help and --header
+    { { echo "$as_me:$LINENO: error: ambiguous option: $1
+Try \`$0 --help' for more information." >&5
+echo "$as_me: error: ambiguous option: $1
+Try \`$0 --help' for more information." >&2;}
+   { (exit 1); exit 1; }; };;
+  --help | --hel | -h )
+    echo "$ac_cs_usage"; exit 0 ;;
+  --debug | --d* | -d )
+    debug=: ;;
+  --file | --fil | --fi | --f )
+    $ac_shift
+    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
+    ac_need_defaults=false;;
+  --header | --heade | --head | --hea )
+    $ac_shift
+    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
+    ac_need_defaults=false;;
+  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+  | -silent | --silent | --silen | --sile | --sil | --si | --s)
+    ac_cs_silent=: ;;
+
+  # This is an error.
+  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
+Try \`$0 --help' for more information." >&5
+echo "$as_me: error: unrecognized option: $1
+Try \`$0 --help' for more information." >&2;}
+   { (exit 1); exit 1; }; } ;;
+
+  *) ac_config_targets="$ac_config_targets $1" ;;
+
   esac
+  shift
 done
 
-ac_given_srcdir=$srcdir
-ac_given_INSTALL="$INSTALL"
+ac_configure_extra_args=
+
+if $ac_cs_silent; then
+  exec 6>/dev/null
+  ac_configure_extra_args="$ac_configure_extra_args --silent"
+fi
+
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF
+if \$ac_cs_recheck; then
+  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
+  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
+fi
+
+_ACEOF
+
 
-trap 'rm -fr `echo "Makefile:autoconf/Makefile.in src/Makefile src/sysconf.h:src/config.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
-EOF
-cat >> $CONFIG_STATUS <<EOF
-
-# Protect against being on the right side of a sed subst in config.status.
-sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
- s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
-$ac_vpsub
-$extrasub
-s%@RPATH@%$RPATH%g
-s%@SHELL@%$SHELL%g
-s%@CFLAGS@%$CFLAGS%g
-s%@CPPFLAGS@%$CPPFLAGS%g
-s%@CXXFLAGS@%$CXXFLAGS%g
-s%@FFLAGS@%$FFLAGS%g
-s%@DEFS@%$DEFS%g
-s%@LDFLAGS@%$LDFLAGS%g
-s%@LIBS@%$LIBS%g
-s%@exec_prefix@%$exec_prefix%g
-s%@prefix@%$prefix%g
-s%@program_transform_name@%$program_transform_name%g
-s%@bindir@%$bindir%g
-s%@sbindir@%$sbindir%g
-s%@libexecdir@%$libexecdir%g
-s%@datadir@%$datadir%g
-s%@sysconfdir@%$sysconfdir%g
-s%@sharedstatedir@%$sharedstatedir%g
-s%@localstatedir@%$localstatedir%g
-s%@libdir@%$libdir%g
-s%@includedir@%$includedir%g
-s%@oldincludedir@%$oldincludedir%g
-s%@infodir@%$infodir%g
-s%@mandir@%$mandir%g
-s%@CONFIG_DIR@%$CONFIG_DIR%g
-s%@CC@%$CC%g
-s%@CPP@%$CPP%g
-s%@SET_MAKE@%$SET_MAKE%g
-s%@RANLIB@%$RANLIB%g
-s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
-s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
-s%@INSTALL_DATA@%$INSTALL_DATA%g
-s%@X_CFLAGS@%$X_CFLAGS%g
-s%@X_PRE_LIBS@%$X_PRE_LIBS%g
-s%@X_LIBS@%$X_LIBS%g
-s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
-s%@SRCDIR@%$SRCDIR%g
-s%@OBJDIR@%$OBJDIR%g
-s%@ELFDIR@%$ELFDIR%g
-s%@TERMCAP@%$TERMCAP%g
-s%@MISC_TERMINFO_DIRS@%$MISC_TERMINFO_DIRS%g
-s%@SLANG_LIB@%$SLANG_LIB%g
-s%@SLANG_INC@%$SLANG_INC%g
-s%@SLANG_LIB_DIR@%$SLANG_LIB_DIR%g
-s%@SLANG_INCLUDE@%$SLANG_INCLUDE%g
-s%@JED_ROOT@%$JED_ROOT%g
-s%@PROGRAM_OFILES@%$PROGRAM_OFILES%g
-s%@PROGRAM_CFILES@%$PROGRAM_CFILES%g
-s%@PROGRAM_HFILES@%$PROGRAM_HFILES%g
-s%@PROGRAM_OBJECTS@%$PROGRAM_OBJECTS%g
-s%@PROGRAM_ELFOBJECTS@%$PROGRAM_ELFOBJECTS%g
 
+
+
+cat >>$CONFIG_STATUS <<\_ACEOF
+for ac_config_target in $ac_config_targets
+do
+  case "$ac_config_target" in
+  # Handling of arguments.
+  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:autoconf/Makefile.in" ;;
+  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
+  "src/sysconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/sysconf.h:src/config.hin" ;;
+  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
+echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
+   { (exit 1); exit 1; }; };;
+  esac
+done
+
+# If the user did not use the arguments to specify the items to instantiate,
+# then the envvar interface is used.  Set only those that are not.
+# We use the long form for the default assignment because of an extremely
+# bizarre bug on SunOS 4.1.3.
+if $ac_need_defaults; then
+  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
+  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
+fi
+
+# Have a temporary directory for convenience.  Make it in the build tree
+# simply because there is no reason to put it here, and in addition,
+# creating and moving files from /tmp can sometimes cause problems.
+# Create a temporary directory, and hook for its removal unless debugging.
+$debug ||
+{
+  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
+  trap '{ (exit 1); exit 1; }' 1 2 13 15
+}
+
+# Create a (secure) tmp directory for tmp files.
+
+{
+  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
+  test -n "$tmp" && test -d "$tmp"
+}  ||
+{
+  tmp=./confstat$$-$RANDOM
+  (umask 077 && mkdir $tmp)
+} ||
+{
+   echo "$me: cannot create a temporary directory in ." >&2
+   { (exit 1); exit 1; }
+}
+
+_ACEOF
+
+cat >>$CONFIG_STATUS <<_ACEOF
+
+#
+# CONFIG_FILES section.
+#
+
+# No need to generate the scripts if there are no CONFIG_FILES.
+# This happens for instance when ./config.status config.h
+if test -n "\$CONFIG_FILES"; then
+  # Protect against being on the right side of a sed subst in config.status.
+  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
+   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
+s,@RPATH@,$RPATH,;t t
+s,@SHELL@,$SHELL,;t t
+s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
+s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
+s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
+s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
+s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
+s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
+s,@exec_prefix@,$exec_prefix,;t t
+s,@prefix@,$prefix,;t t
+s,@program_transform_name@,$program_transform_name,;t t
+s,@bindir@,$bindir,;t t
+s,@sbindir@,$sbindir,;t t
+s,@libexecdir@,$libexecdir,;t t
+s,@datadir@,$datadir,;t t
+s,@sysconfdir@,$sysconfdir,;t t
+s,@sharedstatedir@,$sharedstatedir,;t t
+s,@localstatedir@,$localstatedir,;t t
+s,@libdir@,$libdir,;t t
+s,@includedir@,$includedir,;t t
+s,@oldincludedir@,$oldincludedir,;t t
+s,@infodir@,$infodir,;t t
+s,@mandir@,$mandir,;t t
+s,@build_alias@,$build_alias,;t t
+s,@host_alias@,$host_alias,;t t
+s,@target_alias@,$target_alias,;t t
+s,@DEFS@,$DEFS,;t t
+s,@ECHO_C@,$ECHO_C,;t t
+s,@ECHO_N@,$ECHO_N,;t t
+s,@ECHO_T@,$ECHO_T,;t t
+s,@LIBS@,$LIBS,;t t
+s,@CONFIG_DIR@,$CONFIG_DIR,;t t
+s,@CC@,$CC,;t t
+s,@CFLAGS@,$CFLAGS,;t t
+s,@LDFLAGS@,$LDFLAGS,;t t
+s,@CPPFLAGS@,$CPPFLAGS,;t t
+s,@ac_ct_CC@,$ac_ct_CC,;t t
+s,@EXEEXT@,$EXEEXT,;t t
+s,@OBJEXT@,$OBJEXT,;t t
+s,@CPP@,$CPP,;t t
+s,@EGREP@,$EGREP,;t t
+s,@SET_MAKE@,$SET_MAKE,;t t
+s,@RANLIB@,$RANLIB,;t t
+s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
+s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
+s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
+s,@INSTALL_DATA@,$INSTALL_DATA,;t t
+s,@X_CFLAGS@,$X_CFLAGS,;t t
+s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
+s,@X_LIBS@,$X_LIBS,;t t
+s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
+s,@SRCDIR@,$SRCDIR,;t t
+s,@OBJDIR@,$OBJDIR,;t t
+s,@ELFDIR@,$ELFDIR,;t t
+s,@TERMCAP@,$TERMCAP,;t t
+s,@MISC_TERMINFO_DIRS@,$MISC_TERMINFO_DIRS,;t t
+s,@SLANG_LIB@,$SLANG_LIB,;t t
+s,@SLANG_INC@,$SLANG_INC,;t t
+s,@SLANG_LIB_DIR@,$SLANG_LIB_DIR,;t t
+s,@SLANG_INCLUDE@,$SLANG_INCLUDE,;t t
+s,@JED_ROOT@,$JED_ROOT,;t t
+s,@PROGRAM_OFILES@,$PROGRAM_OFILES,;t t
+s,@PROGRAM_CFILES@,$PROGRAM_CFILES,;t t
+s,@PROGRAM_HFILES@,$PROGRAM_HFILES,;t t
+s,@PROGRAM_OBJECTS@,$PROGRAM_OBJECTS,;t t
+s,@PROGRAM_ELFOBJECTS@,$PROGRAM_ELFOBJECTS,;t t
+s,@LIBOBJS@,$LIBOBJS,;t t
+s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 CEOF
-EOF
 
-cat >> $CONFIG_STATUS <<\EOF
+_ACEOF
 
-# Split the substitutions into bite-sized pieces for seds with
-# small command number limits, like on Digital OSF/1 and HP-UX.
-ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
-ac_file=1 # Number of current file.
-ac_beg=1 # First line for current file.
-ac_end=$ac_max_sed_cmds # Line after last line for current file.
-ac_more_lines=:
-ac_sed_cmds=""
-while $ac_more_lines; do
-  if test $ac_beg -gt 1; then
-    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
-  else
-    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
-  fi
-  if test ! -s conftest.s$ac_file; then
-    ac_more_lines=false
-    rm -f conftest.s$ac_file
-  else
-    if test -z "$ac_sed_cmds"; then
-      ac_sed_cmds="sed -f conftest.s$ac_file"
+  cat >>$CONFIG_STATUS <<\_ACEOF
+  # Split the substitutions into bite-sized pieces for seds with
+  # small command number limits, like on Digital OSF/1 and HP-UX.
+  ac_max_sed_lines=48
+  ac_sed_frag=1 # Number of current file.
+  ac_beg=1 # First line for current file.
+  ac_end=$ac_max_sed_lines # Line after last line for current file.
+  ac_more_lines=:
+  ac_sed_cmds=
+  while $ac_more_lines; do
+    if test $ac_beg -gt 1; then
+      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
+    else
+      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
+    fi
+    if test ! -s $tmp/subs.frag; then
+      ac_more_lines=false
     else
-      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
+      # The purpose of the label and of the branching condition is to
+      # speed up the sed processing (if there are no `@' at all, there
+      # is no need to browse any of the substitutions).
+      # These are the two extra sed commands mentioned above.
+      (echo ':t
+  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
+      if test -z "$ac_sed_cmds"; then
+  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
+      else
+  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
+      fi
+      ac_sed_frag=`expr $ac_sed_frag + 1`
+      ac_beg=$ac_end
+      ac_end=`expr $ac_end + $ac_max_sed_lines`
     fi
-    ac_file=`expr $ac_file + 1`
-    ac_beg=$ac_end
-    ac_end=`expr $ac_end + $ac_max_sed_cmds`
+  done
+  if test -z "$ac_sed_cmds"; then
+    ac_sed_cmds=cat
   fi
-done
-if test -z "$ac_sed_cmds"; then
-  ac_sed_cmds=cat
-fi
-EOF
+fi # test -n "$CONFIG_FILES"
 
-cat >> $CONFIG_STATUS <<EOF
-
-CONFIG_FILES=\${CONFIG_FILES-"Makefile:autoconf/Makefile.in src/Makefile"}
-EOF
-cat >> $CONFIG_STATUS <<\EOF
-for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF
+for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
-  case "$ac_file" in
-  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
-       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
-  *) ac_file_in="${ac_file}.in" ;;
+  case $ac_file in
+  - | *:- | *:-:* ) # input from stdin
+        cat >$tmp/stdin
+        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
+        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
+  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
+        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
+  * )   ac_file_in=$ac_file.in ;;
   esac
 
-  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
-
-  # Remove last slash and all that follows it.  Not all systems have dirname.
-  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
-  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
-    # The file is in a subdirectory.
-    test ! -d "$ac_dir" && mkdir "$ac_dir"
-    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
-    # A "../" for each directory in $ac_dir_suffix.
-    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
-  else
-    ac_dir_suffix= ac_dots=
-  fi
-
-  case "$ac_given_srcdir" in
-  .)  srcdir=.
-      if test -z "$ac_dots"; then top_srcdir=.
-      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
-  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
+  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
+  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
+$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+         X"$ac_file" : 'X\(//\)[^/]' \| \
+         X"$ac_file" : 'X\(//\)$' \| \
+         X"$ac_file" : 'X\(/\)' \| \
+         .     : '\(.\)' 2>/dev/null ||
+echo X"$ac_file" |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+  	  /^X\(\/\/\)$/{ s//\1/; q; }
+  	  /^X\(\/\).*/{ s//\1/; q; }
+  	  s/.*/./; q'`
+  { if $as_mkdir_p; then
+    mkdir -p "$ac_dir"
+  else
+    as_dir="$ac_dir"
+    as_dirs=
+    while test ! -d "$as_dir"; do
+      as_dirs="$as_dir $as_dirs"
+      as_dir=`(dirname "$as_dir") 2>/dev/null ||
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+         X"$as_dir" : 'X\(//\)[^/]' \| \
+         X"$as_dir" : 'X\(//\)$' \| \
+         X"$as_dir" : 'X\(/\)' \| \
+         .     : '\(.\)' 2>/dev/null ||
+echo X"$as_dir" |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+  	  /^X\(\/\/\)$/{ s//\1/; q; }
+  	  /^X\(\/\).*/{ s//\1/; q; }
+  	  s/.*/./; q'`
+    done
+    test ! -n "$as_dirs" || mkdir $as_dirs
+  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
+echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
+   { (exit 1); exit 1; }; }; }
+
+  ac_builddir=.
+
+if test "$ac_dir" != .; then
+  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
+  # A "../" for each directory in $ac_dir_suffix.
+  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
+else
+  ac_dir_suffix= ac_top_builddir=
+fi
+
+case $srcdir in
+  .)  # No --srcdir option.  We are building in place.
+    ac_srcdir=.
+    if test -z "$ac_top_builddir"; then
+       ac_top_srcdir=.
+    else
+       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
+    fi ;;
+  [\\/]* | ?:[\\/]* )  # Absolute path.
+    ac_srcdir=$srcdir$ac_dir_suffix;
+    ac_top_srcdir=$srcdir ;;
   *) # Relative path.
-    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
-    top_srcdir="$ac_dots$ac_given_srcdir" ;;
-  esac
+    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
+    ac_top_srcdir=$ac_top_builddir$srcdir ;;
+esac
+# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
+# absolute.
+ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
+ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
+ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
+ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
-  case "$ac_given_INSTALL" in
-  [/$]*) INSTALL="$ac_given_INSTALL" ;;
-  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
-  esac
 
-  echo creating "$ac_file"
-  rm -f "$ac_file"
-  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
-  case "$ac_file" in
-  *Makefile*) ac_comsub="1i\\
-# $configure_input" ;;
-  *) ac_comsub= ;;
+  case $INSTALL in
+  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
+  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
   esac
 
-  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
-  sed -e "$ac_comsub
-s%@configure_input@%$configure_input%g
-s%@srcdir@%$srcdir%g
-s%@top_srcdir@%$top_srcdir%g
-s%@INSTALL@%$INSTALL%g
-" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
-fi; done
-rm -f conftest.s*
+  if test x"$ac_file" != x-; then
+    { echo "$as_me:$LINENO: creating $ac_file" >&5
+echo "$as_me: creating $ac_file" >&6;}
+    rm -f "$ac_file"
+  fi
+  # Let's still pretend it is `configure' which instantiates (i.e., don't
+  # use $as_me), people would be surprised to read:
+  #    /* config.h.  Generated by config.status.  */
+  if test x"$ac_file" = x-; then
+    configure_input=
+  else
+    configure_input="$ac_file.  "
+  fi
+  configure_input=$configure_input"Generated from `echo $ac_file_in |
+                                     sed 's,.*/,,'` by configure."
+
+  # First look for the input files in the build tree, otherwise in the
+  # src tree.
+  ac_file_inputs=`IFS=:
+    for f in $ac_file_in; do
+      case $f in
+      -) echo $tmp/stdin ;;
+      [\\/$]*)
+         # Absolute (can't be DOS-style, as IFS=:)
+         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
+echo "$as_me: error: cannot find input file: $f" >&2;}
+   { (exit 1); exit 1; }; }
+         echo $f;;
+      *) # Relative
+         if test -f "$f"; then
+           # Build tree
+           echo $f
+         elif test -f "$srcdir/$f"; then
+           # Source tree
+           echo $srcdir/$f
+         else
+           # /dev/null tree
+           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
+echo "$as_me: error: cannot find input file: $f" >&2;}
+   { (exit 1); exit 1; }; }
+         fi;;
+      esac
+    done` || { (exit 1); exit 1; }
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF
+  sed "$ac_vpsub
+$extrasub
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF
+:t
+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
+s,@configure_input@,$configure_input,;t t
+s,@srcdir@,$ac_srcdir,;t t
+s,@abs_srcdir@,$ac_abs_srcdir,;t t
+s,@top_srcdir@,$ac_top_srcdir,;t t
+s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
+s,@builddir@,$ac_builddir,;t t
+s,@abs_builddir@,$ac_abs_builddir,;t t
+s,@top_builddir@,$ac_top_builddir,;t t
+s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
+s,@INSTALL@,$ac_INSTALL,;t t
+" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
+  rm -f $tmp/stdin
+  if test x"$ac_file" != x-; then
+    mv $tmp/out $ac_file
+  else
+    cat $tmp/out
+    rm -f $tmp/out
+  fi
+
+done
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF
+
+#
+# CONFIG_HEADER section.
+#
 
 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 # NAME is the cpp macro being defined and VALUE is the value it is being given.
 #
 # ac_d sets the value in "#define NAME VALUE" lines.
-ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
-ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
-ac_dC='\3'
-ac_dD='%g'
-# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
-ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
-ac_uB='\([ 	]\)%\1#\2define\3'
+ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
+ac_dB='[ 	].*$,\1#\2'
+ac_dC=' '
+ac_dD=',;t'
+# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
+ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
+ac_uB='$,\1#\2define\3'
 ac_uC=' '
-ac_uD='\4%g'
-# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
-ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
-ac_eB='$%\1#\2define\3'
-ac_eC=' '
-ac_eD='%g'
-
-if test "${CONFIG_HEADERS+set}" != set; then
-EOF
-cat >> $CONFIG_STATUS <<EOF
-  CONFIG_HEADERS="src/sysconf.h:src/config.hin"
-EOF
-cat >> $CONFIG_STATUS <<\EOF
-fi
-for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
+ac_uD=',;t'
+
+for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
-  case "$ac_file" in
-  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
-       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
-  *) ac_file_in="${ac_file}.in" ;;
+  case $ac_file in
+  - | *:- | *:-:* ) # input from stdin
+        cat >$tmp/stdin
+        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
+        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
+  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
+        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
+  * )   ac_file_in=$ac_file.in ;;
   esac
 
-  echo creating $ac_file
+  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
+echo "$as_me: creating $ac_file" >&6;}
 
-  rm -f conftest.frag conftest.in conftest.out
-  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
-  cat $ac_file_inputs > conftest.in
-
-EOF
-
-# Transform confdefs.h into a sed script conftest.vals that substitutes
-# the proper values into config.h.in to produce config.h.  And first:
-# Protect against being on the right side of a sed subst in config.status.
-# Protect against being in an unquoted here document in config.status.
-rm -f conftest.vals
-cat > conftest.hdr <<\EOF
-s/[\\&%]/\\&/g
-s%[\\$`]%\\&%g
-s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
-s%ac_d%ac_u%gp
-s%ac_u%ac_e%gp
-EOF
-sed -n -f conftest.hdr confdefs.h > conftest.vals
-rm -f conftest.hdr
+  # First look for the input files in the build tree, otherwise in the
+  # src tree.
+  ac_file_inputs=`IFS=:
+    for f in $ac_file_in; do
+      case $f in
+      -) echo $tmp/stdin ;;
+      [\\/$]*)
+         # Absolute (can't be DOS-style, as IFS=:)
+         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
+echo "$as_me: error: cannot find input file: $f" >&2;}
+   { (exit 1); exit 1; }; }
+         echo $f;;
+      *) # Relative
+         if test -f "$f"; then
+           # Build tree
+           echo $f
+         elif test -f "$srcdir/$f"; then
+           # Source tree
+           echo $srcdir/$f
+         else
+           # /dev/null tree
+           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
+echo "$as_me: error: cannot find input file: $f" >&2;}
+   { (exit 1); exit 1; }; }
+         fi;;
+      esac
+    done` || { (exit 1); exit 1; }
+  # Remove the trailing spaces.
+  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
+
+_ACEOF
+
+# Transform confdefs.h into two sed scripts, `conftest.defines' and
+# `conftest.undefs', that substitutes the proper values into
+# config.h.in to produce config.h.  The first handles `#define'
+# templates, and the second `#undef' templates.
+# And first: Protect against being on the right side of a sed subst in
+# config.status.  Protect against being in an unquoted here document
+# in config.status.
+rm -f conftest.defines conftest.undefs
+# Using a here document instead of a string reduces the quoting nightmare.
+# Putting comments in sed scripts is not portable.
+#
+# `end' is used to avoid that the second main sed command (meant for
+# 0-ary CPP macros) applies to n-ary macro definitions.
+# See the Autoconf documentation for `clear'.
+cat >confdef2sed.sed <<\_ACEOF
+s/[\\&,]/\\&/g
+s,[\\$`],\\&,g
+t clear
+: clear
+s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
+t end
+s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
+: end
+_ACEOF
+# If some macros were called several times there might be several times
+# the same #defines, which is useless.  Nevertheless, we may not want to
+# sort them, since we want the *last* AC-DEFINE to be honored.
+uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
+sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
+rm -f confdef2sed.sed
 
 # This sed command replaces #undef with comments.  This is necessary, for
 # example, in the case of _POSIX_SOURCE, which is predefined and required
 # on some systems where configure will not decide to define it.
-cat >> conftest.vals <<\EOF
-s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
-EOF
-
-# Break up conftest.vals because some shells have a limit on
-# the size of here documents, and old seds have small limits too.
-
+cat >>conftest.undefs <<\_ACEOF
+s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
+_ACEOF
+
+# Break up conftest.defines because some shells have a limit on the size
+# of here documents, and old seds have small limits too (100 cmds).
+echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
+echo '  if grep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
+echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
+echo '  :' >>$CONFIG_STATUS
 rm -f conftest.tail
-while :
+while grep . conftest.defines >/dev/null
 do
-  ac_lines=`grep -c . conftest.vals`
-  # grep -c gives empty output for an empty file on some AIX systems.
-  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
-  # Write a limited-size here document to conftest.frag.
-  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
-  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
+  # Write a limited-size here document to $tmp/defines.sed.
+  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
+  # Speed up: don't consider the non `#define' lines.
+  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
+  # Work around the forget-to-reset-the-flag bug.
+  echo 't clr' >>$CONFIG_STATUS
+  echo ': clr' >>$CONFIG_STATUS
+  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
   echo 'CEOF
-  sed -f conftest.frag conftest.in > conftest.out
-  rm -f conftest.in
-  mv conftest.out conftest.in
-' >> $CONFIG_STATUS
-  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
-  rm -f conftest.vals
-  mv conftest.tail conftest.vals
-done
-rm -f conftest.vals
-
-cat >> $CONFIG_STATUS <<\EOF
-  rm -f conftest.frag conftest.h
-  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
-  cat conftest.in >> conftest.h
-  rm -f conftest.in
-  if cmp -s $ac_file conftest.h 2>/dev/null; then
-    echo "$ac_file is unchanged"
-    rm -f conftest.h
-  else
-    # Remove last slash and all that follows it.  Not all systems have dirname.
-      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
-      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
-      # The file is in a subdirectory.
-      test ! -d "$ac_dir" && mkdir "$ac_dir"
-    fi
-    rm -f $ac_file
-    mv conftest.h $ac_file
+  sed -f $tmp/defines.sed $tmp/in >$tmp/out
+  rm -f $tmp/in
+  mv $tmp/out $tmp/in
+' >>$CONFIG_STATUS
+  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
+  rm -f conftest.defines
+  mv conftest.tail conftest.defines
+done
+rm -f conftest.defines
+echo '  fi # grep' >>$CONFIG_STATUS
+echo >>$CONFIG_STATUS
+
+# Break up conftest.undefs because some shells have a limit on the size
+# of here documents, and old seds have small limits too (100 cmds).
+echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
+rm -f conftest.tail
+while grep . conftest.undefs >/dev/null
+do
+  # Write a limited-size here document to $tmp/undefs.sed.
+  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
+  # Speed up: don't consider the non `#undef'
+  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
+  # Work around the forget-to-reset-the-flag bug.
+  echo 't clr' >>$CONFIG_STATUS
+  echo ': clr' >>$CONFIG_STATUS
+  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
+  echo 'CEOF
+  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
+  rm -f $tmp/in
+  mv $tmp/out $tmp/in
+' >>$CONFIG_STATUS
+  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
+  rm -f conftest.undefs
+  mv conftest.tail conftest.undefs
+done
+rm -f conftest.undefs
+
+cat >>$CONFIG_STATUS <<\_ACEOF
+  # Let's still pretend it is `configure' which instantiates (i.e., don't
+  # use $as_me), people would be surprised to read:
+  #    /* config.h.  Generated by config.status.  */
+  if test x"$ac_file" = x-; then
+    echo "/* Generated by configure.  */" >$tmp/config.h
+  else
+    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
   fi
-fi; done
+  cat $tmp/in >>$tmp/config.h
+  rm -f $tmp/in
+  if test x"$ac_file" != x-; then
+    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
+      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
+echo "$as_me: $ac_file is unchanged" >&6;}
+    else
+      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
+$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+         X"$ac_file" : 'X\(//\)[^/]' \| \
+         X"$ac_file" : 'X\(//\)$' \| \
+         X"$ac_file" : 'X\(/\)' \| \
+         .     : '\(.\)' 2>/dev/null ||
+echo X"$ac_file" |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+  	  /^X\(\/\/\)$/{ s//\1/; q; }
+  	  /^X\(\/\).*/{ s//\1/; q; }
+  	  s/.*/./; q'`
+      { if $as_mkdir_p; then
+    mkdir -p "$ac_dir"
+  else
+    as_dir="$ac_dir"
+    as_dirs=
+    while test ! -d "$as_dir"; do
+      as_dirs="$as_dir $as_dirs"
+      as_dir=`(dirname "$as_dir") 2>/dev/null ||
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+         X"$as_dir" : 'X\(//\)[^/]' \| \
+         X"$as_dir" : 'X\(//\)$' \| \
+         X"$as_dir" : 'X\(/\)' \| \
+         .     : '\(.\)' 2>/dev/null ||
+echo X"$as_dir" |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
+  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
+  	  /^X\(\/\/\)$/{ s//\1/; q; }
+  	  /^X\(\/\).*/{ s//\1/; q; }
+  	  s/.*/./; q'`
+    done
+    test ! -n "$as_dirs" || mkdir $as_dirs
+  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
+echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
+   { (exit 1); exit 1; }; }; }
 
-EOF
-cat >> $CONFIG_STATUS <<EOF
+      rm -f $ac_file
+      mv $tmp/config.h $ac_file
+    fi
+  else
+    cat $tmp/config.h
+    rm -f $tmp/config.h
+  fi
+done
+_ACEOF
 
-EOF
-cat >> $CONFIG_STATUS <<\EOF
+cat >>$CONFIG_STATUS <<\_ACEOF
 
-exit 0
-EOF
+{ (exit 0); exit 0; }
+_ACEOF
 chmod +x $CONFIG_STATUS
-rm -fr confdefs* $ac_clean_files
-test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
+ac_clean_files=$ac_clean_files_save
+
+
+# configure is writing to config.log, and then calls config.status.
+# config.status does its own redirection, appending to config.log.
+# Unfortunately, on DOS this fails, as config.log is still kept open
+# by configure, so config.status won't be able to write to it; its
+# output is simply discarded.  So we exec the FD to /dev/null,
+# effectively closing config.log, so it can be properly (re)opened and
+# appended to by config.status.  When coming back to configure, we
+# need to make the FD available again.
+if test "$no_create" != yes; then
+  ac_cs_success=:
+  ac_config_status_args=
+  test "$silent" = yes &&
+    ac_config_status_args="$ac_config_status_args --quiet"
+  exec 5>/dev/null
+  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
+  exec 5>>config.log
+  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
+  # would make configure fail if this is the last instruction.
+  $ac_cs_success || { (exit 1); exit 1; }
+fi
 
 
 
@@ -3225,7 +6547,7 @@ PROGRAM_OBJECT_RULES="$PROGRAM_OBJECT_RU
 "
 
 
- 
+
  echo "$PROGRAM_OBJECT_RULES" >> src/Makefile
 
 

File Added: pkgsrc/editors/jed/patches/patch-src_config.hin
$NetBSD: patch-src_config.hin,v 1.1 2013/10/20 18:15:02 joerg Exp $

--- src/config.hin.orig	2002-10-20 06:55:31.000000000 +0000
+++ src/config.hin
@@ -29,6 +29,9 @@
 /* define if you have sys/fcntl.h */
 #undef HAVE_SYS_FCNTL_H
 
+/* define if you have sys/stropts.h */
+#undef HAVE_SYS_STROPTS_H
+
 #undef HAVE_PTY_H
 
 /* define if you have memset */