cvs commit: patches/bash bash-2.05b-crosscompile-osx-1.patch

jim at linuxfromscratch.org jim at linuxfromscratch.org
Fri Apr 2 08:16:58 PST 2004


jim         04/04/02 09:16:58

  Added:       bash     bash-2.05b-crosscompile-osx-1.patch
  Log:
  Added: bash-2.05b-crosscompile-osx-1.patch
  
  Revision  Changes    Path
  1.1                  patches/bash/bash-2.05b-crosscompile-osx-1.patch
  
  Index: bash-2.05b-crosscompile-osx-1.patch
  ===================================================================
  Submitted By: Martin Schaffner <schaffner at gmx.li>
  Date: 2004-04-02
  Initial Package Version: 2.05b
  Origin: Martin Schaffner
  Description: Fixes a cross-compilation issue by turning an unnecessary configure run test into a compile test. Run "autoconf" after applying this patch, which also fixes another cross-compilation issue.
  
  --- a/aclocal.m4	Mon Mar 15 15:43:29 2004
  +++ b/aclocal.m4	Mon Mar 15 17:40:56 2004
  @@ -1656,14 +1656,11 @@
   AC_CHECK_FUNC(wcwidth, AC_DEFINE(HAVE_WCWIDTH))
   
   AC_CACHE_CHECK([for mbstate_t], bash_cv_have_mbstate_t,
  -[AC_TRY_RUN([
  +[AC_TRY_COMPILE([
   #include <wchar.h>
  -int
  -main ()
  -{
  +],[
     mbstate_t ps;
  -  return 0;
  -}], bash_cv_have_mbstate_t=yes,  bash_cv_have_mbstate_t=no)])
  +], bash_cv_have_mbstate_t=yes,  bash_cv_have_mbstate_t=no)])
   if test $bash_cv_have_mbstate_t = yes; then
   	AC_DEFINE(HAVE_MBSTATE_T)
   fi
  
  
  



More information about the patches mailing list