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 >
Text File  |  1996-09-24  |  6KB  |  190 lines

  1. This patch works around current bugs in the BeOS shell that affect
  2. configure, and also patch up some Makefile targets that are not
  3. yet fully supported.
  4.  
  5. ============================================================================
  6.  
  7. diff -rc autoconf-ref/Makefile.in autoconf/Makefile.in
  8. *** autoconf-ref/Makefile.in    Mon Jun 10 07:00:00 1996
  9. --- autoconf/Makefile.in    Mon Sep 16 23:46:45 1996
  10. ***************
  11. *** 87,93 ****
  12.       's,@''M4''@,$(M4),g'  -e 's,@''AWK''@,$(AWK),g'
  13.   editpl = sed -e 's,@''datadir''@,$(acdatadir),g' -e 's,@''PERL''@,$(PERL),g'
  14.   
  15. ! all: ${SCRIPTS} info guide dvi ps
  16.   
  17.   .SUFFIXES:
  18.   .SUFFIXES: .sh .pl
  19. --- 87,93 ----
  20.       's,@''M4''@,$(M4),g'  -e 's,@''AWK''@,$(AWK),g'
  21.   editpl = sed -e 's,@''datadir''@,$(acdatadir),g' -e 's,@''PERL''@,$(PERL),g'
  22.   
  23. ! all: ${SCRIPTS} info guide
  24.   
  25.   .SUFFIXES:
  26.   .SUFFIXES: .sh .pl
  27. ***************
  28. *** 149,155 ****
  29.   installdirs:
  30.       $(SHELL) ${srcdir}/mkinstalldirs $(bindir) $(infodir) $(guidedir) $(dvidir) $(psdir) $(acdatadir)
  31.   
  32. ! install: all $(M4FILES) acconfig.h installdirs install-info install-guide install-dvi install-ps
  33.       @case `$(M4) --help < /dev/null 2>&1` in \
  34.       *reload-state*) echo installing frozen m4 files; \
  35.         $(M4) -F $(acdatadir)/autoconf.m4f -I${srcdir} ${srcdir}/autoconf.m4 ; \
  36. --- 149,155 ----
  37.   installdirs:
  38.       $(SHELL) ${srcdir}/mkinstalldirs $(bindir) $(infodir) $(guidedir) $(dvidir) $(psdir) $(acdatadir)
  39.   
  40. ! install: all $(M4FILES) acconfig.h installdirs install-info install-guide
  41.       @case `$(M4) --help < /dev/null 2>&1` in \
  42.       *reload-state*) echo installing frozen m4 files; \
  43.         $(M4) -F $(acdatadir)/autoconf.m4f -I${srcdir} ${srcdir}/autoconf.m4 ; \
  44. diff -rc autoconf-ref/acgeneral.m4 autoconf/acgeneral.m4
  45. *** autoconf-ref/acgeneral.m4    Tue Sep 10 02:18:58 1996
  46. --- autoconf/acgeneral.m4    Thu Sep 19 00:54:44 1996
  47. ***************
  48. *** 1039,1047 ****
  49.   dnl Allow a site initialization script to override cache values.
  50.   # Ultrix sh set writes to stderr and can't be redirected directly,
  51.   # and sets the high bit in the cache file unless we assign to the vars.
  52. ! (set) 2>&1 |
  53.     sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  54. !   >> confcache
  55.   changequote([, ])dnl
  56.   if cmp -s $cache_file confcache; then
  57.     :
  58. --- 1039,1047 ----
  59.   dnl Allow a site initialization script to override cache values.
  60.   # Ultrix sh set writes to stderr and can't be redirected directly,
  61.   # and sets the high bit in the cache file unless we assign to the vars.
  62. ! (set) >cache.tmp 2>&1 
  63.     sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  64. !   <cache.tmp >> confcache
  65.   changequote([, ])dnl
  66.   if cmp -s $cache_file confcache; then
  67.     :
  68. ***************
  69. *** 1053,1059 ****
  70.       echo "not updating unwritable cache $cache_file"
  71.     fi
  72.   fi
  73. ! rm -f confcache
  74.   ])
  75.   
  76.   dnl The name of shell var CACHE-ID must contain `_cv_' in order to get saved.
  77. --- 1053,1059 ----
  78.       echo "not updating unwritable cache $cache_file"
  79.     fi
  80.   fi
  81. ! rm -f confcache cache.tmp
  82.   ])
  83.   
  84.   dnl The name of shell var CACHE-ID must contain `_cv_' in order to get saved.
  85. ***************
  86. *** 1192,1198 ****
  87.   dnl AC_TRY_EVAL(VARIABLE)
  88.   AC_DEFUN(AC_TRY_EVAL,
  89.   [{ (eval echo configure:__oline__: \"[$]$1\") 1>&AC_FD_CC; dnl
  90. ! (eval [$]$1) 2>&AC_FD_CC; }])
  91.   
  92.   dnl AC_TRY_COMMAND(COMMAND)
  93.   AC_DEFUN(AC_TRY_COMMAND,
  94. --- 1192,1198 ----
  95.   dnl AC_TRY_EVAL(VARIABLE)
  96.   AC_DEFUN(AC_TRY_EVAL,
  97.   [{ (eval echo configure:__oline__: \"[$]$1\") 1>&AC_FD_CC; dnl
  98. ! xxx=`(eval [$]$1 2>&AC_FD_CC ; echo [$]?)` ; test "$xxx" = "0" ; }])
  99.   
  100.   dnl AC_TRY_COMMAND(COMMAND)
  101.   AC_DEFUN(AC_TRY_COMMAND,
  102. ***************
  103. *** 1522,1529 ****
  104.   EOF
  105.   dnl eval is necessary to expand ac_cpp.
  106.   dnl Ultrix and Pyramid sh refuse to redirect output of eval, so use subshell.
  107. ! if (eval "$ac_cpp conftest.$ac_ext") 2>&AC_FD_CC |
  108. !   egrep "$1" >/dev/null 2>&1; then
  109.     ifelse([$3], , :, [rm -rf conftest*
  110.     $3])
  111.   ifelse([$4], , , [else
  112. --- 1522,1529 ----
  113.   EOF
  114.   dnl eval is necessary to expand ac_cpp.
  115.   dnl Ultrix and Pyramid sh refuse to redirect output of eval, so use subshell.
  116. ! eval "$ac_cpp conftest.$ac_ext" 2>&AC_FD_CC >conftest.tmp
  117. ! if egrep "$1" <conftest.tmp >/dev/null 2>&1; then
  118.     ifelse([$3], , :, [rm -rf conftest*
  119.     $3])
  120.   ifelse([$4], , , [else
  121. ***************
  122. *** 2182,2192 ****
  123.     *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
  124.     esac
  125.   
  126. !   # Make a symlink if possible; otherwise try a hard link.
  127. !   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
  128. !     ln $srcdir/$ac_source $ac_dest; then :
  129.     else
  130. !     AC_MSG_ERROR(can not link $ac_dest to $srcdir/$ac_source)
  131.     fi
  132.   done
  133.   ])
  134. --- 2182,2195 ----
  135.     *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
  136.     esac
  137.   
  138. !   # Make a symlink if possible; otherwise try a hard link,
  139. !   # otherwise just copy the damn file.
  140. !   # HACK - for BeOS, the current bash returns a success code
  141. !   # when it tries to run programs (like ln) that don't exist.
  142. !   # so force cp for now.
  143. !   if cp $srcdir/$ac_source $ac_dest; then :
  144.     else
  145. !     AC_MSG_ERROR(can not link or copy $srcdir/$ac_source to $ac_dest)
  146.     fi
  147.   done
  148.   ])
  149. diff -rc autoconf-ref/configure autoconf/configure
  150. *** autoconf-ref/configure    Tue Sep 10 02:18:57 1996
  151. --- autoconf/configure    Thu Sep 19 01:06:28 1996
  152. ***************
  153. *** 743,751 ****
  154.   EOF
  155.   # Ultrix sh set writes to stderr and can't be redirected directly,
  156.   # and sets the high bit in the cache file unless we assign to the vars.
  157. ! (set) 2>&1 |
  158.     sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  159. !   >> confcache
  160.   if cmp -s $cache_file confcache; then
  161.     :
  162.   else
  163. --- 743,751 ----
  164.   EOF
  165.   # Ultrix sh set writes to stderr and can't be redirected directly,
  166.   # and sets the high bit in the cache file unless we assign to the vars.
  167. ! (set) >cache.tmp 2>&1 
  168.     sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  169. !   <cache.tmp >> confcache
  170.   if cmp -s $cache_file confcache; then
  171.     :
  172.   else
  173. ***************
  174. *** 756,762 ****
  175.       echo "not updating unwritable cache $cache_file"
  176.     fi
  177.   fi
  178. ! rm -f confcache
  179.   
  180.   trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  181.   
  182. --- 756,762 ----
  183.       echo "not updating unwritable cache $cache_file"
  184.     fi
  185.   fi
  186. ! rm -f confcache cache.tmp
  187.   
  188.   trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  189.   
  190.