Karsten Hopp 8f0e32
To: vim_dev@googlegroups.com
Karsten Hopp 8f0e32
Subject: Patch 7.3.555
Karsten Hopp 8f0e32
Fcc: outbox
Karsten Hopp 8f0e32
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 8f0e32
Mime-Version: 1.0
Karsten Hopp 8f0e32
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 8f0e32
Content-Transfer-Encoding: 8bit
Karsten Hopp 8f0e32
------------
Karsten Hopp 8f0e32
Karsten Hopp 8f0e32
Patch 7.3.555
Karsten Hopp 8f0e32
Problem:    Building on IBM z/OS fails.
Karsten Hopp 8f0e32
Solution:   Adjust configure. Use the QUOTESED value from config.mk instead of
Karsten Hopp 8f0e32
	    the hard coded one in Makefile. (Stephen Bovy)
Karsten Hopp 8f0e32
Files:	    src/configure.in, src/auto/configure, src/Makefile
Karsten Hopp 8f0e32
Karsten Hopp 8f0e32
Karsten Hopp 8f0e32
*** ../vim-7.3.554/src/configure.in	2012-02-05 22:51:27.000000000 +0100
Karsten Hopp 8f0e32
--- src/configure.in	2012-06-13 18:52:11.000000000 +0200
Karsten Hopp 8f0e32
***************
Karsten Hopp 8f0e32
*** 329,343 ****
Karsten Hopp 8f0e32
  		  echo ""
Karsten Hopp 8f0e32
  		  echo "------------------------------------------"
Karsten Hopp 8f0e32
  		  echo " On z/OS Unix, the environment variable"
Karsten Hopp 8f0e32
! 		  echo " __CC_${ccn}MODE must be set to \"1\"!"
Karsten Hopp 8f0e32
  		  echo " Do:"
Karsten Hopp 8f0e32
  		  echo "    export _CC_${ccn}MODE=1"
Karsten Hopp 8f0e32
  		  echo " and then call configure again."
Karsten Hopp 8f0e32
  		  echo "------------------------------------------"
Karsten Hopp 8f0e32
  		  exit 1
Karsten Hopp 8f0e32
  		fi
Karsten Hopp 8f0e32
! 		CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float\\(IEEE\\)";
Karsten Hopp 8f0e32
!                 LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
Karsten Hopp 8f0e32
  		AC_MSG_RESULT(yes)
Karsten Hopp 8f0e32
  		;;
Karsten Hopp 8f0e32
      *)		zOSUnix="no";
Karsten Hopp 8f0e32
--- 329,346 ----
Karsten Hopp 8f0e32
  		  echo ""
Karsten Hopp 8f0e32
  		  echo "------------------------------------------"
Karsten Hopp 8f0e32
  		  echo " On z/OS Unix, the environment variable"
Karsten Hopp 8f0e32
! 		  echo " _CC_${ccn}MODE must be set to \"1\"!"
Karsten Hopp 8f0e32
  		  echo " Do:"
Karsten Hopp 8f0e32
  		  echo "    export _CC_${ccn}MODE=1"
Karsten Hopp 8f0e32
  		  echo " and then call configure again."
Karsten Hopp 8f0e32
  		  echo "------------------------------------------"
Karsten Hopp 8f0e32
  		  exit 1
Karsten Hopp 8f0e32
  		fi
Karsten Hopp 8f0e32
! 		# Set CFLAGS for configure process.
Karsten Hopp 8f0e32
! 		# This will be reset later for config.mk.
Karsten Hopp 8f0e32
! 		# Use haltonmsg to force error for missing H files.
Karsten Hopp 8f0e32
! 		CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float(ieee),haltonmsg(3296)";
Karsten Hopp 8f0e32
! 		LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
Karsten Hopp 8f0e32
  		AC_MSG_RESULT(yes)
Karsten Hopp 8f0e32
  		;;
Karsten Hopp 8f0e32
      *)		zOSUnix="no";
Karsten Hopp 8f0e32
***************
Karsten Hopp 8f0e32
*** 2378,2387 ****
Karsten Hopp 8f0e32
  if test -z "$SKIP_MOTIF"; then
Karsten Hopp 8f0e32
    cppflags_save=$CPPFLAGS
Karsten Hopp 8f0e32
    CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Karsten Hopp 8f0e32
!   AC_CHECK_HEADERS(Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
Karsten Hopp 8f0e32
! 		   Xm/UnhighlightT.h Xm/Notebook.h)
Karsten Hopp 8f0e32
  
Karsten Hopp 8f0e32
!   if test $ac_cv_header_Xm_XpmP_h = yes; then
Karsten Hopp 8f0e32
      dnl Solaris uses XpmAttributes_21, very annoying.
Karsten Hopp 8f0e32
      AC_MSG_CHECKING([for XpmAttributes_21 in Xm/XpmP.h])
Karsten Hopp 8f0e32
      AC_TRY_COMPILE([#include <Xm/XpmP.h>], [XpmAttributes_21 attr;],
Karsten Hopp 8f0e32
--- 2381,2395 ----
Karsten Hopp 8f0e32
  if test -z "$SKIP_MOTIF"; then
Karsten Hopp 8f0e32
    cppflags_save=$CPPFLAGS
Karsten Hopp 8f0e32
    CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Karsten Hopp 8f0e32
!   if test "$zOSUnix" = "yes"; then
Karsten Hopp 8f0e32
! 	xmheader="Xm/Xm.h"
Karsten Hopp 8f0e32
!   else
Karsten Hopp 8f0e32
! 	xmheader="Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h
Karsten Hopp 8f0e32
!   	   Xm/UnhighlightT.h Xm/Notebook.h"  
Karsten Hopp 8f0e32
!   fi    
Karsten Hopp 8f0e32
!   AC_CHECK_HEADERS($xmheader)
Karsten Hopp 8f0e32
  
Karsten Hopp 8f0e32
!   if test "x$ac_cv_header_Xm_XpmP_h" = "xyes"; then
Karsten Hopp 8f0e32
      dnl Solaris uses XpmAttributes_21, very annoying.
Karsten Hopp 8f0e32
      AC_MSG_CHECKING([for XpmAttributes_21 in Xm/XpmP.h])
Karsten Hopp 8f0e32
      AC_TRY_COMPILE([#include <Xm/XpmP.h>], [XpmAttributes_21 attr;],
Karsten Hopp 8f0e32
***************
Karsten Hopp 8f0e32
*** 3642,3647 ****
Karsten Hopp 8f0e32
--- 3650,3660 ----
Karsten Hopp 8f0e32
  fi
Karsten Hopp 8f0e32
  AC_SUBST(LINK_AS_NEEDED)
Karsten Hopp 8f0e32
  
Karsten Hopp 8f0e32
+ # IBM z/OS reset CFLAGS for config.mk
Karsten Hopp 8f0e32
+ if test "$zOSUnix" = "yes"; then
Karsten Hopp 8f0e32
+ 	CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll"
Karsten Hopp 8f0e32
+ fi
Karsten Hopp 8f0e32
+ 
Karsten Hopp 8f0e32
  dnl write output files
Karsten Hopp 8f0e32
  AC_OUTPUT(auto/config.mk:config.mk.in)
Karsten Hopp 8f0e32
  
Karsten Hopp 8f0e32
*** ../vim-7.3.554/src/auto/configure	2012-02-05 22:51:27.000000000 +0100
Karsten Hopp 8f0e32
--- src/auto/configure	2012-06-13 18:53:04.000000000 +0200
Karsten Hopp 8f0e32
***************
Karsten Hopp 8f0e32
*** 4426,4440 ****
Karsten Hopp 8f0e32
  		  echo ""
Karsten Hopp 8f0e32
  		  echo "------------------------------------------"
Karsten Hopp 8f0e32
  		  echo " On z/OS Unix, the environment variable"
Karsten Hopp 8f0e32
! 		  echo " __CC_${ccn}MODE must be set to \"1\"!"
Karsten Hopp 8f0e32
  		  echo " Do:"
Karsten Hopp 8f0e32
  		  echo "    export _CC_${ccn}MODE=1"
Karsten Hopp 8f0e32
  		  echo " and then call configure again."
Karsten Hopp 8f0e32
  		  echo "------------------------------------------"
Karsten Hopp 8f0e32
  		  exit 1
Karsten Hopp 8f0e32
  		fi
Karsten Hopp 8f0e32
! 		CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float\\(IEEE\\)";
Karsten Hopp 8f0e32
!                 LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
Karsten Hopp 8f0e32
  		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Karsten Hopp 8f0e32
  $as_echo "yes" >&6; }
Karsten Hopp 8f0e32
  		;;
Karsten Hopp 8f0e32
--- 4426,4443 ----
Karsten Hopp 8f0e32
  		  echo ""
Karsten Hopp 8f0e32
  		  echo "------------------------------------------"
Karsten Hopp 8f0e32
  		  echo " On z/OS Unix, the environment variable"
Karsten Hopp 8f0e32
! 		  echo " _CC_${ccn}MODE must be set to \"1\"!"
Karsten Hopp 8f0e32
  		  echo " Do:"
Karsten Hopp 8f0e32
  		  echo "    export _CC_${ccn}MODE=1"
Karsten Hopp 8f0e32
  		  echo " and then call configure again."
Karsten Hopp 8f0e32
  		  echo "------------------------------------------"
Karsten Hopp 8f0e32
  		  exit 1
Karsten Hopp 8f0e32
  		fi
Karsten Hopp 8f0e32
! 		# Set CFLAGS for configure process.
Karsten Hopp 8f0e32
! 		# This will be reset later for config.mk.
Karsten Hopp 8f0e32
! 		# Use haltonmsg to force error for missing H files.
Karsten Hopp 8f0e32
! 		CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float(ieee),haltonmsg(3296)";
Karsten Hopp 8f0e32
! 		LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
Karsten Hopp 8f0e32
  		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Karsten Hopp 8f0e32
  $as_echo "yes" >&6; }
Karsten Hopp 8f0e32
  		;;
Karsten Hopp 8f0e32
***************
Karsten Hopp 8f0e32
*** 8697,8704 ****
Karsten Hopp 8f0e32
  if test -z "$SKIP_MOTIF"; then
Karsten Hopp 8f0e32
    cppflags_save=$CPPFLAGS
Karsten Hopp 8f0e32
    CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Karsten Hopp 8f0e32
!   for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
Karsten Hopp 8f0e32
! 		   Xm/UnhighlightT.h Xm/Notebook.h
Karsten Hopp 8f0e32
  do :
Karsten Hopp 8f0e32
    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Karsten Hopp 8f0e32
  ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Karsten Hopp 8f0e32
--- 8700,8712 ----
Karsten Hopp 8f0e32
  if test -z "$SKIP_MOTIF"; then
Karsten Hopp 8f0e32
    cppflags_save=$CPPFLAGS
Karsten Hopp 8f0e32
    CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Karsten Hopp 8f0e32
!   if test "$zOSUnix" = "yes"; then
Karsten Hopp 8f0e32
! 	xmheader="Xm/Xm.h"
Karsten Hopp 8f0e32
!   else
Karsten Hopp 8f0e32
! 	xmheader="Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h
Karsten Hopp 8f0e32
!   	   Xm/UnhighlightT.h Xm/Notebook.h"
Karsten Hopp 8f0e32
!   fi
Karsten Hopp 8f0e32
!   for ac_header in $xmheader
Karsten Hopp 8f0e32
  do :
Karsten Hopp 8f0e32
    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Karsten Hopp 8f0e32
  ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Karsten Hopp 8f0e32
***************
Karsten Hopp 8f0e32
*** 8713,8719 ****
Karsten Hopp 8f0e32
  done
Karsten Hopp 8f0e32
  
Karsten Hopp 8f0e32
  
Karsten Hopp 8f0e32
!   if test $ac_cv_header_Xm_XpmP_h = yes; then
Karsten Hopp 8f0e32
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
Karsten Hopp 8f0e32
  $as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
Karsten Hopp 8f0e32
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Karsten Hopp 8f0e32
--- 8721,8727 ----
Karsten Hopp 8f0e32
  done
Karsten Hopp 8f0e32
  
Karsten Hopp 8f0e32
  
Karsten Hopp 8f0e32
!   if test "x$ac_cv_header_Xm_XpmP_h" = "xyes"; then
Karsten Hopp 8f0e32
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
Karsten Hopp 8f0e32
  $as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
Karsten Hopp 8f0e32
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Karsten Hopp 8f0e32
***************
Karsten Hopp 8f0e32
*** 12590,12595 ****
Karsten Hopp 8f0e32
--- 12598,12608 ----
Karsten Hopp 8f0e32
  fi
Karsten Hopp 8f0e32
  
Karsten Hopp 8f0e32
  
Karsten Hopp 8f0e32
+ # IBM z/OS reset CFLAGS for config.mk
Karsten Hopp 8f0e32
+ if test "$zOSUnix" = "yes"; then
Karsten Hopp 8f0e32
+ 	CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll"
Karsten Hopp 8f0e32
+ fi
Karsten Hopp 8f0e32
+ 
Karsten Hopp 8f0e32
  ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
Karsten Hopp 8f0e32
  
Karsten Hopp 8f0e32
  cat >confcache <<\_ACEOF
Karsten Hopp 8f0e32
*** ../vim-7.3.554/src/Makefile	2012-03-28 17:17:45.000000000 +0200
Karsten Hopp 8f0e32
--- src/Makefile	2012-06-13 18:48:13.000000000 +0200
Karsten Hopp 8f0e32
***************
Karsten Hopp 8f0e32
*** 875,880 ****
Karsten Hopp 8f0e32
--- 875,884 ----
Karsten Hopp 8f0e32
  #CFLAGS = -O -Qtarget=m88110compat
Karsten Hopp 8f0e32
  #EXTRA_LIBS = -lgen
Karsten Hopp 8f0e32
  
Karsten Hopp 8f0e32
+ # The value of QUOTESED comes from auto/config.mk.
Karsten Hopp 8f0e32
+ # Uncomment the next line to use the default value.
Karsten Hopp 8f0e32
+ # QUOTESED = sed -e 's/[\\"]/\\&/g' -e 's/\\"/"/' -e 's/\\";$$/";/'
Karsten Hopp 8f0e32
+ 
Karsten Hopp 8f0e32
  ##################### end of system specific lines ################### }}}
Karsten Hopp 8f0e32
  
Karsten Hopp 8f0e32
  ### Names of the programs and targets  {{{1
Karsten Hopp 8f0e32
***************
Karsten Hopp 8f0e32
*** 2411,2417 ****
Karsten Hopp 8f0e32
  auto/osdef.h: auto/config.h osdef.sh osdef1.h.in osdef2.h.in
Karsten Hopp 8f0e32
  	CC="$(CC) $(OSDEF_CFLAGS)" srcdir=$(srcdir) sh $(srcdir)/osdef.sh
Karsten Hopp 8f0e32
  
Karsten Hopp 8f0e32
- QUOTESED = sed -e 's/[\\"]/\\&/g' -e 's/\\"/"/' -e 's/\\";$$/";/'
Karsten Hopp 8f0e32
  auto/pathdef.c: Makefile auto/config.mk
Karsten Hopp 8f0e32
  	-@echo creating $@
Karsten Hopp 8f0e32
  	-@echo '/* pathdef.c */' > $@
Karsten Hopp 8f0e32
--- 2415,2420 ----
Karsten Hopp 8f0e32
*** ../vim-7.3.554/src/version.c	2012-06-13 18:15:13.000000000 +0200
Karsten Hopp 8f0e32
--- src/version.c	2012-06-13 19:13:54.000000000 +0200
Karsten Hopp 8f0e32
***************
Karsten Hopp 8f0e32
*** 716,717 ****
Karsten Hopp 8f0e32
--- 716,719 ----
Karsten Hopp 8f0e32
  {   /* Add new patch number below this line */
Karsten Hopp 8f0e32
+ /**/
Karsten Hopp 8f0e32
+     555,
Karsten Hopp 8f0e32
  /**/
Karsten Hopp 8f0e32
Karsten Hopp 8f0e32
-- 
Karsten Hopp 8f0e32
My sister Cecilia opened a computer store in Hawaii.
Karsten Hopp 8f0e32
She sells C shells by the seashore.
Karsten Hopp 8f0e32
Karsten Hopp 8f0e32
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 8f0e32
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 8f0e32
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 8f0e32
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///