home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 1
/
ADE-1.bin
/
ade-dist
/
autoconf-2.10-src.tgz
/
tar.out
/
fsf
/
autoconf
/
BeOS.diffs
< prev
next >
Wrap
Text File
|
1996-09-24
|
6KB
|
190 lines
This patch works around current bugs in the BeOS shell that affect
configure, and also patch up some Makefile targets that are not
yet fully supported.
============================================================================
diff -rc autoconf-ref/Makefile.in autoconf/Makefile.in
*** autoconf-ref/Makefile.in Mon Jun 10 07:00:00 1996
--- autoconf/Makefile.in Mon Sep 16 23:46:45 1996
***************
*** 87,93 ****
's,@''M4''@,$(M4),g' -e 's,@''AWK''@,$(AWK),g'
editpl = sed -e 's,@''datadir''@,$(acdatadir),g' -e 's,@''PERL''@,$(PERL),g'
! all: ${SCRIPTS} info guide dvi ps
.SUFFIXES:
.SUFFIXES: .sh .pl
--- 87,93 ----
's,@''M4''@,$(M4),g' -e 's,@''AWK''@,$(AWK),g'
editpl = sed -e 's,@''datadir''@,$(acdatadir),g' -e 's,@''PERL''@,$(PERL),g'
! all: ${SCRIPTS} info guide
.SUFFIXES:
.SUFFIXES: .sh .pl
***************
*** 149,155 ****
installdirs:
$(SHELL) ${srcdir}/mkinstalldirs $(bindir) $(infodir) $(guidedir) $(dvidir) $(psdir) $(acdatadir)
! install: all $(M4FILES) acconfig.h installdirs install-info install-guide install-dvi install-ps
@case `$(M4) --help < /dev/null 2>&1` in \
*reload-state*) echo installing frozen m4 files; \
$(M4) -F $(acdatadir)/autoconf.m4f -I${srcdir} ${srcdir}/autoconf.m4 ; \
--- 149,155 ----
installdirs:
$(SHELL) ${srcdir}/mkinstalldirs $(bindir) $(infodir) $(guidedir) $(dvidir) $(psdir) $(acdatadir)
! install: all $(M4FILES) acconfig.h installdirs install-info install-guide
@case `$(M4) --help < /dev/null 2>&1` in \
*reload-state*) echo installing frozen m4 files; \
$(M4) -F $(acdatadir)/autoconf.m4f -I${srcdir} ${srcdir}/autoconf.m4 ; \
diff -rc autoconf-ref/acgeneral.m4 autoconf/acgeneral.m4
*** autoconf-ref/acgeneral.m4 Tue Sep 10 02:18:58 1996
--- autoconf/acgeneral.m4 Thu Sep 19 00:54:44 1996
***************
*** 1039,1047 ****
dnl Allow a site initialization script to override cache 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
changequote([, ])dnl
if cmp -s $cache_file confcache; then
:
--- 1039,1047 ----
dnl Allow a site initialization script to override cache 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) >cache.tmp 2>&1
sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
! <cache.tmp >> confcache
changequote([, ])dnl
if cmp -s $cache_file confcache; then
:
***************
*** 1053,1059 ****
echo "not updating unwritable cache $cache_file"
fi
fi
! rm -f confcache
])
dnl The name of shell var CACHE-ID must contain `_cv_' in order to get saved.
--- 1053,1059 ----
echo "not updating unwritable cache $cache_file"
fi
fi
! rm -f confcache cache.tmp
])
dnl The name of shell var CACHE-ID must contain `_cv_' in order to get saved.
***************
*** 1192,1198 ****
dnl AC_TRY_EVAL(VARIABLE)
AC_DEFUN(AC_TRY_EVAL,
[{ (eval echo configure:__oline__: \"[$]$1\") 1>&AC_FD_CC; dnl
! (eval [$]$1) 2>&AC_FD_CC; }])
dnl AC_TRY_COMMAND(COMMAND)
AC_DEFUN(AC_TRY_COMMAND,
--- 1192,1198 ----
dnl AC_TRY_EVAL(VARIABLE)
AC_DEFUN(AC_TRY_EVAL,
[{ (eval echo configure:__oline__: \"[$]$1\") 1>&AC_FD_CC; dnl
! xxx=`(eval [$]$1 2>&AC_FD_CC ; echo [$]?)` ; test "$xxx" = "0" ; }])
dnl AC_TRY_COMMAND(COMMAND)
AC_DEFUN(AC_TRY_COMMAND,
***************
*** 1522,1529 ****
EOF
dnl eval is necessary to expand ac_cpp.
dnl Ultrix and Pyramid sh refuse to redirect output of eval, so use subshell.
! if (eval "$ac_cpp conftest.$ac_ext") 2>&AC_FD_CC |
! egrep "$1" >/dev/null 2>&1; then
ifelse([$3], , :, [rm -rf conftest*
$3])
ifelse([$4], , , [else
--- 1522,1529 ----
EOF
dnl eval is necessary to expand ac_cpp.
dnl Ultrix and Pyramid sh refuse to redirect output of eval, so use subshell.
! eval "$ac_cpp conftest.$ac_ext" 2>&AC_FD_CC >conftest.tmp
! if egrep "$1" <conftest.tmp >/dev/null 2>&1; then
ifelse([$3], , :, [rm -rf conftest*
$3])
ifelse([$4], , , [else
***************
*** 2182,2192 ****
*) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
esac
! # Make a symlink if possible; otherwise try a hard link.
! if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
! ln $srcdir/$ac_source $ac_dest; then :
else
! AC_MSG_ERROR(can not link $ac_dest to $srcdir/$ac_source)
fi
done
])
--- 2182,2195 ----
*) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
esac
! # Make a symlink if possible; otherwise try a hard link,
! # otherwise just copy the damn file.
! # HACK - for BeOS, the current bash returns a success code
! # when it tries to run programs (like ln) that don't exist.
! # so force cp for now.
! if cp $srcdir/$ac_source $ac_dest; then :
else
! AC_MSG_ERROR(can not link or copy $srcdir/$ac_source to $ac_dest)
fi
done
])
diff -rc autoconf-ref/configure autoconf/configure
*** autoconf-ref/configure Tue Sep 10 02:18:57 1996
--- autoconf/configure Thu Sep 19 01:06:28 1996
***************
*** 743,751 ****
EOF
# 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
if cmp -s $cache_file confcache; then
:
else
--- 743,751 ----
EOF
# 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) >cache.tmp 2>&1
sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
! <cache.tmp >> confcache
if cmp -s $cache_file confcache; then
:
else
***************
*** 756,762 ****
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
--- 756,762 ----
echo "not updating unwritable cache $cache_file"
fi
fi
! rm -f confcache cache.tmp
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15