summaryrefslogtreecommitdiff
path: root/shells/scsh
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2000-05-20 23:05:39 +0000
committerdmcmahill <dmcmahill>2000-05-20 23:05:39 +0000
commitc7518c4323b273ffe29c5eb7f15a68c1de46c728 (patch)
treed0c69e77a4e751d2dbbcad05d83ac425d982d248 /shells/scsh
parent227ec7dd411fcb49964827ce5ef9bd0df13710d7 (diff)
downloadpkgsrc-c7518c4323b273ffe29c5eb7f15a68c1de46c728.tar.gz
add -Wl,--export-dynamic to LDFLAGS so the package can correctly
work on ELF platforms. Fixes recently noted i386-current and pmax problems.
Diffstat (limited to 'shells/scsh')
-rw-r--r--shells/scsh/files/patch-sum4
-rw-r--r--shells/scsh/patches/patch-ai10
-rw-r--r--shells/scsh/patches/patch-aj1548
3 files changed, 1561 insertions, 1 deletions
diff --git a/shells/scsh/files/patch-sum b/shells/scsh/files/patch-sum
index 5afdfb48900..c99bd716b04 100644
--- a/shells/scsh/files/patch-sum
+++ b/shells/scsh/files/patch-sum
@@ -1,4 +1,4 @@
-$NetBSD: patch-sum,v 1.2 1999/11/27 23:33:23 rh Exp $
+$NetBSD: patch-sum,v 1.3 2000/05/20 23:05:39 dmcmahill Exp $
MD5 (patch-aa) = d42deff85c5714ce15cfd5b3cb7f75de
MD5 (patch-ab) = df53020f5f1b12486fc426f92e154a30
@@ -8,3 +8,5 @@ MD5 (patch-ae) = 1078379e1bd89f6d63e0b4db95120c46
MD5 (patch-af) = d897362062386ea35fabf59bfbd299f3
MD5 (patch-ag) = d3e067a90e4b55d2d27bdef28aa8ad97
MD5 (patch-ah) = 6eb3bb6e657ad5d802c32062aafc37ab
+MD5 (patch-ai) = 7157ce97b6c188f58d76be0f634c98d0
+MD5 (patch-aj) = a760727620116680f16758a4f6e13244
diff --git a/shells/scsh/patches/patch-ai b/shells/scsh/patches/patch-ai
new file mode 100644
index 00000000000..334e80cf5d3
--- /dev/null
+++ b/shells/scsh/patches/patch-ai
@@ -0,0 +1,10 @@
+$NetBSD: patch-ai,v 1.1 2000/05/20 23:05:40 dmcmahill Exp $
+
+--- configure.in.orig Sat May 20 17:07:20 2000
++++ configure.in Sat May 20 17:20:50 2000
+@@ -292,4 +292,5 @@
+ ## NetBSD and FreeBSD ( and maybe 386BSD also)
+ *-*-*bsd* )
++ LDFLAGS="-Wl,--export-dynamic"
+ dir=bsd
+ ;;
diff --git a/shells/scsh/patches/patch-aj b/shells/scsh/patches/patch-aj
new file mode 100644
index 00000000000..d43f6ef01a3
--- /dev/null
+++ b/shells/scsh/patches/patch-aj
@@ -0,0 +1,1548 @@
+$NetBSD: patch-aj,v 1.1 2000/05/20 23:05:40 dmcmahill Exp $
+
+generated with autoconf on the patched configure.in, no additional
+changes.
+
+--- configure.orig Sat May 20 17:07:23 2000
++++ configure Sat May 20 17:21:05 2000
+@@ -2,5 +2,5 @@
+
+ # Guess values for system-dependent variables and create Makefiles.
+-# Generated automatically using autoconf version 2.10
++# Generated automatically using autoconf version 2.13
+ # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
+ #
+@@ -50,4 +50,7 @@
+ 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=
+@@ -331,5 +334,5 @@
+
+ -version | --version | --versio | --versi | --vers)
+- echo "configure generated by autoconf version 2.10"
++ echo "configure generated by autoconf version 2.13"
+ exit 0 ;;
+
+@@ -433,9 +436,12 @@
+
+ # NLS nuisances.
+-# Only set LANG and LC_ALL to C if already set.
+-# These must not be set unconditionally because not all systems understand
+-# e.g. LANG=C (notably SCO).
+-if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
++# 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
+
+ # confdefs.h avoids OS command line length limits that DEFS can exceed.
+@@ -498,6 +504,9 @@
+ ac_cpp='$CPP $CPPFLAGS'
+ ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
+-ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 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.
+@@ -536,9 +545,10 @@
+
+ # Make sure we can run config.sub.
+-if $ac_config_sub sun4 >/dev/null 2>&1; then :
++if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
+ else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
+ fi
+
+ echo $ac_n "checking host system type""... $ac_c" 1>&6
++echo "configure:553: checking host system type" >&5
+
+ host_alias=$host
+@@ -547,5 +557,5 @@
+ case $nonopt in
+ NONE)
+- if host_alias=`$ac_config_guess`; then :
++ if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
+ else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
+ fi ;;
+@@ -554,8 +564,8 @@
+ esac
+
+-host=`$ac_config_sub $host_alias`
+-host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
+-host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
+-host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
++host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
++host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
++host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
++host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
+ echo "$ac_t""$host" 1>&6
+
+@@ -564,4 +574,5 @@
+ set dummy gcc; ac_word=$2
+ echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
++echo "configure:577: checking for $ac_word" >&5
+ if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -570,6 +581,7 @@
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+ else
+- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
+- for ac_dir in $PATH; do
++ 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
+@@ -592,4 +604,5 @@
+ set dummy cc; ac_word=$2
+ echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
++echo "configure:607: checking for $ac_word" >&5
+ if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -598,7 +611,8 @@
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+ else
+- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
++ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ ac_prog_rejected=no
+- for ac_dir in $PATH; do
++ ac_dummy="$PATH"
++ for ac_dir in $ac_dummy; do
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/$ac_word; then
+@@ -635,8 +649,90 @@
+ 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:658: checking for $ac_word" >&5
++if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
++ echo $ac_n "(cached) $ac_c" 1>&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"
++fi
++fi
++CC="$ac_cv_prog_CC"
++if test -n "$CC"; then
++ echo "$ac_t""$CC" 1>&6
++else
++ echo "$ac_t""no" 1>&6
++fi
++ ;;
++ esac
++ fi
+ test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
+ fi
+
++echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
++echo "configure:690: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
++
++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
++
++cat > conftest.$ac_ext << EOF
++
++#line 701 "configure"
++#include "confdefs.h"
++
++main(){return(0);}
++EOF
++if { (eval echo configure:706: \"$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
++ else
++ ac_cv_prog_cc_cross=yes
++ 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:732: 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 $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
++echo "configure:737: 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
+@@ -647,5 +743,5 @@
+ #endif
+ EOF
+-if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
++if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
+ ac_cv_prog_gcc=yes
+ else
+@@ -655,16 +751,24 @@
+
+ echo "$ac_t""$ac_cv_prog_gcc" 1>&6
++
+ if test $ac_cv_prog_gcc = yes; then
+ GCC=yes
+- if test "${CFLAGS+set}" != set; then
+- echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
+-if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
++else
++ GCC=
++fi
++
++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:765: 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
+- ac_cv_prog_gcc_g=yes
++ ac_cv_prog_cc_g=yes
+ else
+- ac_cv_prog_gcc_g=no
++ ac_cv_prog_cc_g=no
+ fi
+ rm -f conftest*
+@@ -672,17 +776,23 @@
+ fi
+
+-echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
+- if test $ac_cv_prog_gcc_g = yes; then
+- CFLAGS="-g -O"
+- else
+- CFLAGS="-O"
+- fi
++echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
++if test "$ac_test_CFLAGS" = set; then
++ CFLAGS="$ac_save_CFLAGS"
++elif test $ac_cv_prog_cc_g = yes; then
++ if test "$GCC" = yes; then
++ CFLAGS="-g -O2"
++ else
++ CFLAGS="-g"
+ fi
+ else
+- GCC=
+- test "${CFLAGS+set}" = set || CFLAGS="-g"
++ if test "$GCC" = yes; then
++ CFLAGS="-O2"
++ else
++ CFLAGS=
++ fi
+ fi
+
+ echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
++echo "configure:797: checking for POSIXized ISC" >&5
+ if test -d /etc/conf/kconfig.d &&
+ grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
+@@ -708,4 +818,5 @@
+ *-*-linux* )
+ echo $ac_n "checking for broken Linux that needs -static with -g""... $ac_c" 1>&6
++echo "configure:821: checking for broken Linux that needs -static with -g" >&5
+ if eval "test \"`echo '$''{'scsh_cv_linux_static_debug'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -713,21 +824,21 @@
+
+ cat > conftest.$ac_ext <<EOF
+-#line 716 "configure"
++#line 827 "configure"
+ #include "confdefs.h"
+
+-int main() { return 0; }
+-int t() {
++int main() {
+
+ ; return 0; }
+ EOF
+-if { (eval echo configure:724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
++if { (eval echo configure:834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ scsh_cv_linux_static_debug=no
+ else
++ echo "configure: failed program was:" >&5
++ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ scsh_cv_linux_static_debug=yes
+ fi
+ rm -f conftest*
+-
+ fi
+
+@@ -746,13 +857,15 @@
+ # 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:865: 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
+ else
+- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
++ IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
+ for ac_dir in $PATH; do
+ # Account for people who put trailing slashes in PATH elements.
+@@ -761,10 +874,11 @@
+ *)
+ # OSF1 and SCO ODT 3.0 have their own names for install.
+- for ac_prog in ginstall installbsd scoinst install; do
++ # 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.
+- # OSF/1 installbsd also uses dspmsg, but is usable.
+ :
+ else
+@@ -777,5 +891,5 @@
+ esac
+ done
+- IFS="$ac_save_ifs"
++ IFS="$ac_save_IFS"
+
+ fi
+@@ -796,4 +910,6 @@
+ test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
+
++test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
++
+ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
+
+@@ -801,4 +917,5 @@
+ set dummy ranlib; ac_word=$2
+ echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
++echo "configure:920: checking for $ac_word" >&5
+ if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -807,6 +924,7 @@
+ ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
+ else
+- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
+- for ac_dir in $PATH; do
++ 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
+@@ -827,13 +945,13 @@
+
+ echo $ac_n "checking for working const""... $ac_c" 1>&6
++echo "configure:948: checking for working const" >&5
+ if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 834 "configure"
++#line 953 "configure"
+ #include "confdefs.h"
+
+-int main() { return 0; }
+-int t() {
++int main() {
+
+ /* Ultrix mips cc rejects this. */
+@@ -881,13 +999,14 @@
+ ; return 0; }
+ EOF
+-if { (eval echo configure:884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++if { (eval echo configure:1002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ ac_cv_c_const=yes
+ else
++ echo "configure: failed program was:" >&5
++ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ ac_cv_c_const=no
+ fi
+ rm -f conftest*
+-
+ fi
+
+@@ -901,31 +1020,6 @@
+
+
+-# If we cannot run a trivial program, we must be cross compiling.
+-echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
+-if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
+- echo $ac_n "(cached) $ac_c" 1>&6
+-else
+- if test "$cross_compiling" = yes; then
+- ac_cv_c_cross=yes
+-else
+-cat > conftest.$ac_ext <<EOF
+-#line 913 "configure"
+-#include "confdefs.h"
+-main(){return(0);}
+-EOF
+-{ (eval echo configure:917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
+-if test -s conftest && (./conftest; exit) 2>/dev/null; then
+- ac_cv_c_cross=no
+-else
+- ac_cv_c_cross=yes
+-fi
+-fi
+-rm -fr conftest*
+-fi
+-
+-echo "$ac_t""$ac_cv_c_cross" 1>&6
+-cross_compiling=$ac_cv_c_cross
+-
+ echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
++echo "configure:1024: checking whether byte ordering is bigendian" >&5
+ if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -934,10 +1028,9 @@
+ # See if sys/param.h defines the BYTE_ORDER macro.
+ cat > conftest.$ac_ext <<EOF
+-#line 937 "configure"
++#line 1031 "configure"
+ #include "confdefs.h"
+ #include <sys/types.h>
+ #include <sys/param.h>
+-int main() { return 0; }
+-int t() {
++int main() {
+
+ #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
+@@ -946,14 +1039,13 @@
+ ; return 0; }
+ EOF
+-if { (eval echo configure:949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++if { (eval echo configure:1042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ # It does; now see whether it defined to BIG_ENDIAN or not.
+ cat > conftest.$ac_ext <<EOF
+-#line 953 "configure"
++#line 1046 "configure"
+ #include "confdefs.h"
+ #include <sys/types.h>
+ #include <sys/param.h>
+-int main() { return 0; }
+-int t() {
++int main() {
+
+ #if BYTE_ORDER != BIG_ENDIAN
+@@ -962,22 +1054,25 @@
+ ; return 0; }
+ EOF
+-if { (eval echo configure:965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++if { (eval echo configure:1057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ ac_cv_c_bigendian=yes
+ else
++ echo "configure: failed program was:" >&5
++ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ ac_cv_c_bigendian=no
+ fi
+ rm -f conftest*
+-
++else
++ echo "configure: failed program was:" >&5
++ cat conftest.$ac_ext >&5
+ fi
+ rm -f conftest*
+-
+ if test $ac_cv_c_bigendian = unknown; then
+ if test "$cross_compiling" = yes; then
+ { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
+ else
+-cat > conftest.$ac_ext <<EOF
+-#line 982 "configure"
++ cat > conftest.$ac_ext <<EOF
++#line 1077 "configure"
+ #include "confdefs.h"
+ main () {
+@@ -992,13 +1087,17 @@
+ }
+ EOF
+-{ (eval echo configure:995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
+-if test -s conftest && (./conftest; exit) 2>/dev/null; then
++if { (eval echo configure:1090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
++then
+ ac_cv_c_bigendian=no
+ else
++ echo "configure: failed program was:" >&5
++ cat conftest.$ac_ext >&5
++ rm -fr conftest*
+ ac_cv_c_bigendian=yes
+ fi
+-fi
+ rm -fr conftest*
+ fi
++
++fi
+ fi
+
+@@ -1079,4 +1178,5 @@
+
+ echo $ac_n "checking for Linux using ELF""... $ac_c" 1>&6
++echo "configure:1181: checking for Linux using ELF" >&5
+ if eval "test \"`echo '$''{'scsh_cv_linux_elf'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -1101,4 +1201,5 @@
+ ## NetBSD and FreeBSD ( and maybe 386BSD also)
+ *-*-*bsd* )
++ LDFLAGS="-Wl,--export-dynamic"
+ dir=bsd
+ ;;
+@@ -1119,4 +1220,5 @@
+
+ echo $ac_n "checking ${CC} for -cckr""... $ac_c" 1>&6
++echo "configure:1223: checking ${CC} for -cckr" >&5
+ if eval "test \"`echo '$''{'s48_cv_cflag_ckr'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -1172,6 +1274,7 @@
+ ln -s $srcdir/$dir $srcdir/scsh/machine
+
+-echo $ac_n "checking for -lm""... $ac_c" 1>&6
+-ac_lib_var=`echo m'_'sqrt | tr './+\055' '__p_'`
++echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
++echo "configure:1278: checking for sqrt in -lm" >&5
++ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -1180,5 +1283,5 @@
+ LIBS="-lm $LIBS"
+ cat > conftest.$ac_ext <<EOF
+-#line 1183 "configure"
++#line 1286 "configure"
+ #include "confdefs.h"
+ /* Override any gcc2 internal prototype to avoid an error. */
+@@ -1187,13 +1290,14 @@
+ char sqrt();
+
+-int main() { return 0; }
+-int t() {
++int main() {
+ sqrt()
+ ; return 0; }
+ EOF
+-if { (eval echo configure:1195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
++if { (eval echo configure:1297: \"$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"
+@@ -1205,5 +1309,6 @@
+ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+- ac_tr_lib=HAVE_LIB`echo m | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
++ ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
++ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+ cat >> confdefs.h <<EOF
+ #define $ac_tr_lib 1
+@@ -1216,6 +1321,7 @@
+ fi
+
+-echo $ac_n "checking for -lgen""... $ac_c" 1>&6
+-ac_lib_var=`echo gen'_'pathfind | tr './+\055' '__p_'`
++echo $ac_n "checking for pathfind in -lgen""... $ac_c" 1>&6
++echo "configure:1325: checking for pathfind in -lgen" >&5
++ac_lib_var=`echo gen'_'pathfind | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -1224,5 +1330,5 @@
+ LIBS="-lgen $LIBS"
+ cat > conftest.$ac_ext <<EOF
+-#line 1227 "configure"
++#line 1333 "configure"
+ #include "confdefs.h"
+ /* Override any gcc2 internal prototype to avoid an error. */
+@@ -1231,13 +1337,14 @@
+ char pathfind();
+
+-int main() { return 0; }
+-int t() {
++int main() {
+ pathfind()
+ ; return 0; }
+ EOF
+-if { (eval echo configure:1239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
++if { (eval echo configure:1344: \"$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"
+@@ -1249,5 +1356,6 @@
+ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+- ac_tr_lib=HAVE_LIB`echo gen | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
++ ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
++ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+ cat >> confdefs.h <<EOF
+ #define $ac_tr_lib 1
+@@ -1260,6 +1368,7 @@
+ fi
+
+-echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
+-ac_lib_var=`echo nsl'_'gethostbyaddr | tr './+\055' '__p_'`
++echo $ac_n "checking for gethostbyaddr in -lnsl""... $ac_c" 1>&6
++echo "configure:1372: checking for gethostbyaddr in -lnsl" >&5
++ac_lib_var=`echo nsl'_'gethostbyaddr | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -1268,5 +1377,5 @@
+ LIBS="-lnsl $LIBS"
+ cat > conftest.$ac_ext <<EOF
+-#line 1271 "configure"
++#line 1380 "configure"
+ #include "confdefs.h"
+ /* Override any gcc2 internal prototype to avoid an error. */
+@@ -1275,13 +1384,14 @@
+ char gethostbyaddr();
+
+-int main() { return 0; }
+-int t() {
++int main() {
+ gethostbyaddr()
+ ; return 0; }
+ EOF
+-if { (eval echo configure:1283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
++if { (eval echo configure:1391: \"$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"
+@@ -1293,5 +1403,6 @@
+ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+- ac_tr_lib=HAVE_LIB`echo nsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
++ ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
++ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+ cat >> confdefs.h <<EOF
+ #define $ac_tr_lib 1
+@@ -1304,6 +1415,7 @@
+ fi
+
+-echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
+-ac_lib_var=`echo socket'_'socket | tr './+\055' '__p_'`
++echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
++echo "configure:1419: checking for socket in -lsocket" >&5
++ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -1312,5 +1424,5 @@
+ LIBS="-lsocket $LIBS"
+ cat > conftest.$ac_ext <<EOF
+-#line 1315 "configure"
++#line 1427 "configure"
+ #include "confdefs.h"
+ /* Override any gcc2 internal prototype to avoid an error. */
+@@ -1319,13 +1431,14 @@
+ char socket();
+
+-int main() { return 0; }
+-int t() {
++int main() {
+ socket()
+ ; return 0; }
+ EOF
+-if { (eval echo configure:1327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
++if { (eval echo configure:1438: \"$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"
+@@ -1337,5 +1450,6 @@
+ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+- ac_tr_lib=HAVE_LIB`echo socket | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
++ ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
++ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+ cat >> confdefs.h <<EOF
+ #define $ac_tr_lib 1
+@@ -1348,6 +1462,7 @@
+ fi
+
+-echo $ac_n "checking for -lelf""... $ac_c" 1>&6
+-ac_lib_var=`echo elf'_'nlist | tr './+\055' '__p_'`
++echo $ac_n "checking for nlist in -lelf""... $ac_c" 1>&6
++echo "configure:1466: checking for nlist in -lelf" >&5
++ac_lib_var=`echo elf'_'nlist | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -1356,5 +1471,5 @@
+ LIBS="-lelf $LIBS"
+ cat > conftest.$ac_ext <<EOF
+-#line 1359 "configure"
++#line 1474 "configure"
+ #include "confdefs.h"
+ /* Override any gcc2 internal prototype to avoid an error. */
+@@ -1363,13 +1478,14 @@
+ char nlist();
+
+-int main() { return 0; }
+-int t() {
++int main() {
+ nlist()
+ ; return 0; }
+ EOF
+-if { (eval echo configure:1371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
++if { (eval echo configure:1485: \"$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"
+@@ -1381,5 +1497,6 @@
+ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+- ac_tr_lib=HAVE_LIB`echo elf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
++ ac_tr_lib=HAVE_LIB`echo elf | sed -e 's/[^a-zA-Z0-9_]/_/g' \
++ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+ cat >> confdefs.h <<EOF
+ #define $ac_tr_lib 1
+@@ -1392,6 +1509,7 @@
+ fi
+
+-echo $ac_n "checking for -lld""... $ac_c" 1>&6
+-ac_lib_var=`echo ld'_'ldopen | tr './+\055' '__p_'`
++echo $ac_n "checking for ldopen in -lld""... $ac_c" 1>&6
++echo "configure:1513: checking for ldopen in -lld" >&5
++ac_lib_var=`echo ld'_'ldopen | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -1400,5 +1518,5 @@
+ LIBS="-lld $LIBS"
+ cat > conftest.$ac_ext <<EOF
+-#line 1403 "configure"
++#line 1521 "configure"
+ #include "confdefs.h"
+ /* Override any gcc2 internal prototype to avoid an error. */
+@@ -1407,13 +1525,14 @@
+ char ldopen();
+
+-int main() { return 0; }
+-int t() {
++int main() {
+ ldopen()
+ ; return 0; }
+ EOF
+-if { (eval echo configure:1415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
++if { (eval echo configure:1532: \"$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"
+@@ -1425,5 +1544,6 @@
+ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+- ac_tr_lib=HAVE_LIB`echo ld | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
++ ac_tr_lib=HAVE_LIB`echo ld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
++ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+ cat >> confdefs.h <<EOF
+ #define $ac_tr_lib 1
+@@ -1436,6 +1556,7 @@
+ fi
+
+-echo $ac_n "checking for -ldl""... $ac_c" 1>&6
+-ac_lib_var=`echo dl'_'dlopen | tr './+\055' '__p_'`
++echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
++echo "configure:1560: checking for dlopen in -ldl" >&5
++ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -1444,5 +1565,5 @@
+ LIBS="-ldl $LIBS"
+ cat > conftest.$ac_ext <<EOF
+-#line 1447 "configure"
++#line 1568 "configure"
+ #include "confdefs.h"
+ /* Override any gcc2 internal prototype to avoid an error. */
+@@ -1451,13 +1572,14 @@
+ char dlopen();
+
+-int main() { return 0; }
+-int t() {
++int main() {
+ dlopen()
+ ; return 0; }
+ EOF
+-if { (eval echo configure:1459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
++if { (eval echo configure:1579: \"$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"
+@@ -1469,5 +1591,6 @@
+ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+- ac_tr_lib=HAVE_LIB`echo dl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
++ ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
++ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+ cat >> confdefs.h <<EOF
+ #define $ac_tr_lib 1
+@@ -1480,6 +1603,7 @@
+ fi
+
+-echo $ac_n "checking for -ldld""... $ac_c" 1>&6
+-ac_lib_var=`echo dld'_'shl_findsym | tr './+\055' '__p_'`
++echo $ac_n "checking for shl_findsym in -ldld""... $ac_c" 1>&6
++echo "configure:1607: checking for shl_findsym in -ldld" >&5
++ac_lib_var=`echo dld'_'shl_findsym | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -1488,5 +1612,5 @@
+ LIBS="-ldld $LIBS"
+ cat > conftest.$ac_ext <<EOF
+-#line 1491 "configure"
++#line 1615 "configure"
+ #include "confdefs.h"
+ /* Override any gcc2 internal prototype to avoid an error. */
+@@ -1495,13 +1619,14 @@
+ char shl_findsym();
+
+-int main() { return 0; }
+-int t() {
++int main() {
+ shl_findsym()
+ ; return 0; }
+ EOF
+-if { (eval echo configure:1503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
++if { (eval echo configure:1626: \"$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"
+@@ -1513,5 +1638,6 @@
+ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+- ac_tr_lib=HAVE_LIB`echo dld | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
++ ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
++ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+ cat >> confdefs.h <<EOF
+ #define $ac_tr_lib 1
+@@ -1526,9 +1652,10 @@
+
+ echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
++echo "configure:1655: checking return type of signal handlers" >&5
+ if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 1533 "configure"
++#line 1660 "configure"
+ #include "confdefs.h"
+ #include <sys/types.h>
+@@ -1543,18 +1670,18 @@
+ #endif
+
+-int main() { return 0; }
+-int t() {
++int main() {
+ int i;
+ ; return 0; }
+ EOF
+-if { (eval echo configure:1551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++if { (eval echo configure:1677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ ac_cv_type_signal=void
+ else
++ echo "configure: failed program was:" >&5
++ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ ac_cv_type_signal=int
+ fi
+ rm -f conftest*
+-
+ fi
+
+@@ -1566,4 +1693,5 @@
+
+ echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
++echo "configure:1696: checking how to run the C preprocessor" >&5
+ # On Suns, sometimes $CPP names a directory.
+ if test -n "$CPP" && test -d "$CPP"; then
+@@ -1580,5 +1708,5 @@
+ # not just through cpp.
+ cat > conftest.$ac_ext <<EOF
+-#line 1583 "configure"
++#line 1711 "configure"
+ #include "confdefs.h"
+ #include <assert.h>
+@@ -1586,14 +1714,16 @@
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-{ (eval echo configure:1589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+-ac_err=`grep -v '^ *+' conftest.out`
++{ (eval echo configure:1717: \"$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
+ :
+ 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 1598 "configure"
++#line 1728 "configure"
+ #include "confdefs.h"
+ #include <assert.h>
+@@ -1601,10 +1731,29 @@
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-{ (eval echo configure:1604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+-ac_err=`grep -v '^ *+' conftest.out`
++{ (eval echo configure:1734: \"$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
+ :
+ 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 1745 "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:1751: \"$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
++ :
++else
++ echo "$ac_err" >&5
++ echo "configure: failed program was:" >&5
++ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ CPP=/lib/cpp
+@@ -1613,4 +1762,6 @@
+ fi
+ rm -f conftest*
++fi
++rm -f conftest*
+ ac_cv_prog_CPP="$CPP"
+ fi
+@@ -1623,17 +1774,18 @@
+ for ac_hdr in libgen.h sys/timeb.h posix/time.h sys/select.h nlist.h
+ do
+-ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
++ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
++echo "configure:1779: 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 1632 "configure"
++#line 1784 "configure"
+ #include "confdefs.h"
+ #include <$ac_hdr>
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+-{ (eval echo configure:1637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+-ac_err=`grep -v '^ *+' conftest.out`
++{ (eval echo configure:1789: \"$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*
+@@ -1641,4 +1793,6 @@
+ 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"
+@@ -1648,5 +1802,5 @@
+ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+- ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
++ ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ cat >> confdefs.h <<EOF
+ #define $ac_tr_hdr 1
+@@ -1661,9 +1815,10 @@
+ do
+ echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
++echo "configure:1818: 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 1668 "configure"
++#line 1823 "configure"
+ #include "confdefs.h"
+ /* System header to define __stub macros and hopefully few prototypes,
+@@ -1675,6 +1830,5 @@
+ char $ac_func();
+
+-int main() { return 0; }
+-int t() {
++int main() {
+
+ /* The GNU C library defines this for functions which it implements
+@@ -1689,14 +1843,16 @@
+ ; return 0; }
+ EOF
+-if { (eval echo configure:1692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
++if { (eval echo configure:1846: \"$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
++
+ if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+@@ -1714,9 +1870,10 @@
+ do
+ echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
++echo "configure:1873: 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 1721 "configure"
++#line 1878 "configure"
+ #include "confdefs.h"
+ /* System header to define __stub macros and hopefully few prototypes,
+@@ -1728,6 +1885,5 @@
+ char $ac_func();
+
+-int main() { return 0; }
+-int t() {
++int main() {
+
+ /* The GNU C library defines this for functions which it implements
+@@ -1742,14 +1898,16 @@
+ ; return 0; }
+ EOF
+-if { (eval echo configure:1745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
++if { (eval echo configure:1901: \"$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
++
+ if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+@@ -1767,9 +1925,10 @@
+ do
+ echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
++echo "configure:1928: 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 1774 "configure"
++#line 1933 "configure"
+ #include "confdefs.h"
+ /* System header to define __stub macros and hopefully few prototypes,
+@@ -1781,6 +1940,5 @@
+ char $ac_func();
+
+-int main() { return 0; }
+-int t() {
++int main() {
+
+ /* The GNU C library defines this for functions which it implements
+@@ -1795,14 +1953,16 @@
+ ; return 0; }
+ EOF
+-if { (eval echo configure:1798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
++if { (eval echo configure:1956: \"$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
++
+ if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+@@ -1820,4 +1980,5 @@
+
+ echo $ac_n "checking for RISC/OS POSIX library lossage""... $ac_c" 1>&6
++echo "configure:1983: checking for RISC/OS POSIX library lossage" >&5
+ if eval "test \"`echo '$''{'s48_cv_posix_libc'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -1838,4 +1999,5 @@
+
+ echo $ac_n "checking whether we can use -O2""... $ac_c" 1>&6
++echo "configure:2002: checking whether we can use -O2" >&5
+ if eval "test \"`echo '$''{'s48_cv_cflag_o2'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -1865,4 +2027,5 @@
+
+ echo $ac_n "checking for underscore before symbols""... $ac_c" 1>&6
++echo "configure:2030: checking for underscore before symbols" >&5
+ if eval "test \"`echo '$''{'s48_cv_uscore'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -1890,4 +2053,5 @@
+ if test $ac_cv_func_dlopen = yes ; then
+ echo $ac_n "checking whether dlsym always adds an underscore for us""... $ac_c" 1>&6
++echo "configure:2056: checking whether dlsym always adds an underscore for us" >&5
+ if eval "test \"`echo '$''{'s48_cv_dlsym_adds_uscore'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -1896,6 +2060,6 @@
+ { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
+ else
+-cat > conftest.$ac_ext <<EOF
+-#line 1900 "configure"
++ cat > conftest.$ac_ext <<EOF
++#line 2064 "configure"
+ #include "confdefs.h"
+
+@@ -1908,6 +2072,6 @@
+
+ EOF
+-{ (eval echo configure:1911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
+-if test -s conftest && (./conftest; exit) 2>/dev/null; then
++if { (eval echo configure:2075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
++then
+ s48_cv_dlsym_adds_uscore=yes
+ cat >> confdefs.h <<\EOF
+@@ -1916,10 +2080,14 @@
+
+ else
++ echo "configure: failed program was:" >&5
++ cat conftest.$ac_ext >&5
++ rm -fr conftest*
+ s48_cv_dlsym_adds_uscore=no
+ fi
+-fi
+ rm -fr conftest*
+ fi
+
++fi
++
+
+ echo "$ac_t""$s48_cv_dlsym_adds_uscore" 1>&6
+@@ -1929,4 +2097,5 @@
+
+ echo $ac_n "checking for n_name""... $ac_c" 1>&6
++echo "configure:2100: checking for n_name" >&5
+ if eval "test \"`echo '$''{'s48_cv_nlist'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -1934,22 +2103,22 @@
+
+ cat > conftest.$ac_ext <<EOF
+-#line 1937 "configure"
++#line 2106 "configure"
+ #include "confdefs.h"
+ #include <nlist.h>
+-int main() { return 0; }
+-int t() {
++int main() {
+ struct nlist name_list;
+ name_list.n_name = "foo";
+ ; return 0; }
+ EOF
+-if { (eval echo configure:1946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++if { (eval echo configure:2114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ s48_cv_nlist=yes
+ else
++ echo "configure: failed program was:" >&5
++ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ s48_cv_nlist=no
+ fi
+ rm -f conftest*
+-
+ fi
+
+@@ -1964,4 +2133,5 @@
+
+ echo $ac_n "checking for _cnt""... $ac_c" 1>&6
++echo "configure:2136: checking for _cnt" >&5
+ if eval "test \"`echo '$''{'s48_cv__cnt'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -1969,21 +2139,21 @@
+
+ cat > conftest.$ac_ext <<EOF
+-#line 1972 "configure"
++#line 2142 "configure"
+ #include "confdefs.h"
+ #include <stdio.h>
+-int main() { return 0; }
+-int t() {
++int main() {
+ return stdin->_cnt;
+ ; return 0; }
+ EOF
+-if { (eval echo configure:1980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++if { (eval echo configure:2149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ s48_cv__cnt=yes
+ else
++ echo "configure: failed program was:" >&5
++ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ s48_cv__cnt=no
+ fi
+ rm -f conftest*
+-
+ fi
+
+@@ -1999,4 +2169,5 @@
+
+ echo $ac_n "checking for tzname""... $ac_c" 1>&6
++echo "configure:2172: checking for tzname" >&5
+ if eval "test \"`echo '$''{'scsh_cv_tzname'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -2004,21 +2175,21 @@
+
+ cat > conftest.$ac_ext <<EOF
+-#line 2007 "configure"
++#line 2178 "configure"
+ #include "confdefs.h"
+ #include <time.h>
+-int main() { return 0; }
+-int t() {
++int main() {
+ return (int) tzname;
+ ; return 0; }
+ EOF
+-if { (eval echo configure:2015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++if { (eval echo configure:2185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ scsh_cv_tzname=yes
+ else
++ echo "configure: failed program was:" >&5
++ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ scsh_cv_tzname=no
+ fi
+ rm -f conftest*
+-
+ fi
+
+@@ -2033,4 +2204,5 @@
+
+ echo $ac_n "checking for gmtoff""... $ac_c" 1>&6
++echo "configure:2207: checking for gmtoff" >&5
+ if eval "test \"`echo '$''{'scsh_cv_gmtoff'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -2038,22 +2210,22 @@
+
+ cat > conftest.$ac_ext <<EOF
+-#line 2041 "configure"
++#line 2213 "configure"
+ #include "confdefs.h"
+ #include <time.h>
+-int main() { return 0; }
+-int t() {
++int main() {
+ struct tm time;
+ return time.tm_gmtoff;
+ ; return 0; }
+ EOF
+-if { (eval echo configure:2050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++if { (eval echo configure:2221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ scsh_cv_gmtoff=yes
+ else
++ echo "configure: failed program was:" >&5
++ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ scsh_cv_gmtoff=no
+ fi
+ rm -f conftest*
+-
+ fi
+
+@@ -2068,4 +2240,5 @@
+
+ echo $ac_n "checking for const sys_errlist""... $ac_c" 1>&6
++echo "configure:2243: checking for const sys_errlist" >&5
+ if eval "test \"`echo '$''{'scsh_cv_const_sys_errlist'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+@@ -2073,22 +2246,22 @@
+
+ cat > conftest.$ac_ext <<EOF
+-#line 2076 "configure"
++#line 2249 "configure"
+ #include "confdefs.h"
+ #include <errno.h>
+ #include <unistd.h>
+-int main() { return 0; }
+-int t() {
++int main() {
+ const extern char *sys_errlist[];
+ ; return 0; }
+ EOF
+-if { (eval echo configure:2085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
++if { (eval echo configure:2257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ rm -rf conftest*
+ scsh_cv_const_sys_errlist=yes
+ else
++ echo "configure: failed program was:" >&5
++ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ scsh_cv_const_sys_errlist=no
+ fi
+ rm -f conftest*
+-
+ fi
+
+@@ -2132,9 +2305,23 @@
+ #
+ EOF
++# 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 |
+- sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
+- >> confcache
++ 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
+ :
+@@ -2191,5 +2378,5 @@
+ 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.10"
++ echo "$CONFIG_STATUS generated by autoconf version 2.13"
+ exit 0 ;;
+ -help | --help | --hel | --he | --h)
+@@ -2211,7 +2398,9 @@
+ $ac_vpsub
+ $extrasub
++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
+@@ -2239,4 +2428,5 @@
+ s%@CC@%$CC%g
+ s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
++s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
+ s%@INSTALL_DATA@%$INSTALL_DATA%g
+ s%@RANLIB@%$RANLIB%g
+@@ -2251,4 +2441,40 @@
+ CEOF
+ EOF
++
++cat >> $CONFIG_STATUS <<\EOF
++
++# 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"
++ else
++ ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
++ fi
++ ac_file=`expr $ac_file + 1`
++ ac_beg=$ac_end
++ ac_end=`expr $ac_end + $ac_max_sed_cmds`
++ fi
++done
++if test -z "$ac_sed_cmds"; then
++ ac_sed_cmds=cat
++fi
++EOF
++
+ cat >> $CONFIG_STATUS <<EOF
+
+@@ -2257,12 +2483,12 @@
+ cat >> $CONFIG_STATUS <<\EOF
+ for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
+- # Support "outfile[:infile]", defaulting infile="outfile.in".
++ # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
+ case "$ac_file" in
+- *:*) ac_file_in=`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 relative srcdir, etc. for subdirectories.
++ # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
+
+ # Remove last slash and all that follows it. Not all systems have dirname.
+@@ -2292,4 +2518,5 @@
+ *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
+ esac
++
+ echo creating "$ac_file"
+ rm -f "$ac_file"
+@@ -2300,4 +2527,6 @@
+ *) ac_comsub= ;;
+ 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
+@@ -2305,7 +2534,7 @@
+ s%@top_srcdir@%$top_srcdir%g
+ s%@INSTALL@%$INSTALL%g
+-" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
++" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
+ fi; done
+-rm -f conftest.subs
++rm -f conftest.s*
+
+ # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
+@@ -2328,9 +2557,15 @@
+ ac_eD='%g'
+
+-CONFIG_HEADERS=${CONFIG_HEADERS-"sysdep.h"}
++if test "${CONFIG_HEADERS+set}" != set; then
++EOF
++cat >> $CONFIG_STATUS <<EOF
++ CONFIG_HEADERS="sysdep.h"
++EOF
++cat >> $CONFIG_STATUS <<\EOF
++fi
+ for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
+- # Support "outfile[:infile]", defaulting infile="outfile.in".
++ # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
+ case "$ac_file" in
+- *:*) ac_file_in=`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" ;;
+@@ -2340,5 +2575,6 @@
+
+ rm -f conftest.frag conftest.in conftest.out
+- cp $ac_given_srcdir/$ac_file_in conftest.in
++ 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
+@@ -2368,6 +2604,4 @@
+ # Break up conftest.vals because some shells have a limit on
+ # the size of here documents, and old seds have small limits too.
+-# Maximum number of lines to put in a single here document.
+-ac_max_here_lines=12
+
+ rm -f conftest.tail
+@@ -2411,5 +2645,9 @@
+ fi; done
+
++EOF
++cat >> $CONFIG_STATUS <<EOF
+
++EOF
++cat >> $CONFIG_STATUS <<\EOF
+
+ exit 0