source: trunk/package/xfsprogs/patches/001-automake-compat.patch @ 25626

Last change on this file since 25626 was 25626, checked in by jow, 6 years ago

[package] xfsprogs: add the usual round of voodoo-workarounds for autofail, issue of the day is overwriting template files when AC_CONFIG_HEADER(S) is used, but only the first one, because consistency is for loosers

File size: 2.5 KB
  • m4/package_types.m4

    a b AC_DEFUN([AC_TYPE_PSINT], 
    99#include <stddef.h> 
    1010    ], [ 
    1111         __psint_t  psint; 
    12     ], AC_DEFINE(HAVE___PSINT_T) AC_MSG_RESULT(yes) , AC_MSG_RESULT(no)) 
     12    ], AC_DEFINE([HAVE___PSINT_T], [1], [Define if __psint_t exists]) AC_MSG_RESULT(yes) , AC_MSG_RESULT(no)) 
    1313  ]) 
    1414 
    1515#  
    AC_DEFUN([AC_TYPE_PSUNSIGNED], 
    2323#include <stddef.h> 
    2424    ], [ 
    2525        __psunsigned_t  psuint; 
    26     ], AC_DEFINE(HAVE___PSUNSIGNED_T) AC_MSG_RESULT(yes) , AC_MSG_RESULT(no)) 
     26    ], AC_DEFINE([HAVE___PSUNSIGNED_T], [1], [Define if __psunsigned_t exists]) AC_MSG_RESULT(yes) , AC_MSG_RESULT(no)) 
    2727  ]) 
    2828 
    2929#  
    AC_DEFUN([AC_TYPE_U32], 
    3737#include <stddef.h> 
    3838    ], [ 
    3939         __u32  u32; 
    40     ], AC_DEFINE(HAVE___U32) AC_MSG_RESULT(yes) , AC_MSG_RESULT(no)) 
     40    ], AC_DEFINE([HAVE___U32], [1], [Define if __u32 exists]) AC_MSG_RESULT(yes) , AC_MSG_RESULT(no)) 
    4141  ]) 
    4242 
    4343#  
    AC_DEFUN([AC_SIZEOF_POINTERS_AND_LONG], 
    5050    AC_CHECK_SIZEOF(long, 4) 
    5151    AC_CHECK_SIZEOF(char *, 4) 
    5252    if test $ac_cv_sizeof_long -eq 4 -o $ac_cv_sizeof_long -eq 0; then 
    53       AC_DEFINE(HAVE_32BIT_LONG) 
     53      AC_DEFINE([HAVE_32BIT_LONG], [1], [Define if long is 32bit]) 
    5454    fi 
    5555    if test $ac_cv_sizeof_long -eq 8; then 
    56       AC_DEFINE(HAVE_64BIT_LONG) 
     56      AC_DEFINE([HAVE_64BIT_LONG], [1], [Define if long is 64bit]) 
    5757    fi 
    5858    if test $ac_cv_sizeof_char_p -eq 4 -o $ac_cv_sizeof_char_p -eq 0; then 
    59       AC_DEFINE(HAVE_32BIT_PTR) 
     59      AC_DEFINE([HAVE_32BIT_PTR], [1], [Define if char* is 32bit]) 
    6060    fi 
    6161    if test $ac_cv_sizeof_char_p -eq 8; then 
    62       AC_DEFINE(HAVE_64BIT_PTR) 
     62      AC_DEFINE([HAVE_64BIT_PTR], [1], [Define if char* is 64bit]) 
    6363    fi 
    6464  ]) 
  • include/builddefs.in

    a b  
    2020ifndef _BUILDDEFS_INCLUDED_ 
    2121_BUILDDEFS_INCLUDED_ = 1 
    2222 
     23SHELL = @SHELL@ 
     24 
    2325DEBUG = @debug_build@ 
    2426OPTIMIZER = @opt_build@ 
    2527MALLOCLIB = @malloc_lib@ 
  • include/buildmacros

    a b OBJECTS = $(ASFILES:.s=.o) \ 
    3232 
    3333INSTALL = $(TOPDIR)/install-sh -o $(PKG_USER) -g $(PKG_GROUP) 
    3434 
    35 SHELL = /bin/sh 
    3635IMAGES_DIR = $(TOPDIR)/all-images 
    3736DIST_DIR = $(TOPDIR)/dist 
    3837 
  • configure.in

    a b  
    11AC_INIT(include/libxfs.h) 
    22AC_CONFIG_AUX_DIR([.]) 
    33AC_CONFIG_MACRO_DIR([m4]) 
    4 AC_CONFIG_HEADER(include/platform_defs.h) 
     4# Put a dummy here (http://www.mail-archive.com/automake@gnu.org/msg09241.html) 
     5AC_CONFIG_HEADERS([doesnotexist.h include/platform_defs.h]) 
    56AC_PREFIX_DEFAULT(/usr) 
    67 
    78AC_PROG_LIBTOOL 
Note: See TracBrowser for help on using the repository browser.