Edit

kc3-lang/gnulib/modules/link-warning

Branch :

  • Show log

    Commit

  • Author : Bruno Haible
    Date : 2010-11-20 23:46:16
    Hash : b2e33d4d
    Message : Ensure that <features.h> is included before __GLIBC__ is tested. * lib/printf-parse.h: Include <features.h>. * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H. * lib/wchar.in.h: Include <features.h>. * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H. * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H. * lib/arpa_inet.in.h: Include <features.h>. * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H. * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H. * build-aux/link-warning.h: Include <features.h>. * modules/link-warning (configure.ac): Require gl_FEATURES_H. (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h. * m4/gnulib-common.m4 (gl_FEATURES_H): New macro. Reported by Mike Frysinger <vapier@gentoo.org>.

  • modules/link-warning
  • Description:
    A C macro for emitting link time warnings.
    
    Applicability:
    all
    
    Files:
    build-aux/link-warning.h
    
    Depends-on:
    
    configure.ac:
    AC_REQUIRE([gl_FEATURES_H])
    
    Makefile.am:
    # The BUILT_SOURCES created by this Makefile snippet are not used via #include
    # statements but through direct file reference. Therefore this snippet must be
    # present in all Makefile.am that need it. This is ensured by the applicability
    # 'all' defined above.
    
    BUILT_SOURCES += link-warning.h
    # The link-warning.h that gets inserted into generated .h files is the same as
    # build-aux/link-warning.h, except that it has the copyright header cut off.
    link-warning.h: $(top_srcdir)/build-aux/link-warning.h
    	$(AM_V_GEN)rm -f $@-t $@ && \
    	sed -n -e '/HAVE_FEATURES_H/,$$p' \
    	  < $(top_srcdir)/build-aux/link-warning.h \
    	| sed -e 's|@''HAVE_FEATURES_H''@|$(HAVE_FEATURES_H)|g' \
    	  > $@-t && \
    	mv $@-t $@
    MOSTLYCLEANFILES += link-warning.h link-warning.h-t
    
    LINK_WARNING_H=link-warning.h
    
    Include:
    
    License:
    LGPLv2+
    
    Maintainer:
    Bruno Haible