2011-01-12 Jeff Johnston <jjohnstn@redhat.com>

* configure.host: Add noinclude variable to allow specification
        of header files to remove from installation.
        * acinclude.m4: Provide NO_INCLUDE_LIST variable based on
        noinclude variable in configure.host.
        * configure: Regenerated.
        * Makefile.am: Remove all header files in NO_INCLUDE_LIST.
        * Makefile.in: Regenerated.
This commit is contained in:
Jeff Johnston 2011-01-12 22:24:06 +00:00
parent 7c0be7cbdb
commit 0597fe0adc
6 changed files with 37 additions and 2 deletions

View File

@ -1,3 +1,13 @@
2011-01-12 Jeff Johnston <jjohnstn@redhat.com>
* configure.host: Add noinclude variable to allow specification
of header files to remove from installation.
* acinclude.m4: Provide NO_INCLUDE_LIST variable based on
noinclude variable in configure.host.
* configure: Regenerated.
* Makefile.am: Remove all header files in NO_INCLUDE_LIST.
* Makefile.in: Regenerated.
2011-01-12 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
* libc/include/linux/sys/signal.h (sig_t): Move from here...

View File

@ -330,6 +330,11 @@ endif
$(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/machine/`basename $$i`; \
else true; fi ; \
done ; \
for i in $(NO_INCLUDE_LIST); do \
if [ -f $(DESTDIR)$(tooldir)/include/$$i]; then \
-rm $(DESTDIR)$(tooldir)/include/$$i; \
else true; fi ; \
done ; \
else true; fi
# Force makedoc to be built before building info files.

View File

@ -198,6 +198,7 @@ MKDIR_P = @MKDIR_P@
NEWLIB_CFLAGS = @NEWLIB_CFLAGS@
NM = @NM@
NMEDIT = @NMEDIT@
NO_INCLUDE_LIST = @NO_INCLUDE_LIST@
OBJDUMP = @OBJDUMP@
OBJEXT = @OBJEXT@
OTOOL = @OTOOL@
@ -1036,6 +1037,11 @@ install-data-local: install-toollibLIBRARIES
$(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/machine/`basename $$i`; \
else true; fi ; \
done ; \
for i in $(NO_INCLUDE_LIST); do \
if [ -f $(DESTDIR)$(tooldir)/include/$$i]; then \
-rm $(DESTDIR)$(tooldir)/include/$$i; \
else true; fi ; \
done ; \
else true; fi
# Force makedoc to be built before building info files.

View File

@ -205,6 +205,9 @@ newlib_cflags="[$]{newlib_cflags} -fno-builtin"
NEWLIB_CFLAGS=${newlib_cflags}
AC_SUBST(NEWLIB_CFLAGS)
NO_INCLUDE_LIST=${noinclude}
AC_SUBST(NO_INCLUDE_LIST)
LDFLAGS=${ldflags}
AC_SUBST(LDFLAGS)

8
newlib/configure vendored
View File

@ -672,6 +672,7 @@ ELIX_LEVEL_1_TRUE
ELIX_LEVEL_0_FALSE
ELIX_LEVEL_0_TRUE
LDFLAGS
NO_INCLUDE_LIST
NEWLIB_CFLAGS
CCASFLAGS
CCAS
@ -3838,6 +3839,9 @@ newlib_cflags="${newlib_cflags} -fno-builtin"
NEWLIB_CFLAGS=${newlib_cflags}
NO_INCLUDE_LIST=${noinclude}
LDFLAGS=${ldflags}
@ -11631,7 +11635,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
#line 11634 "configure"
#line 11638 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@ -11737,7 +11741,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
#line 11740 "configure"
#line 11744 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H

View File

@ -46,6 +46,7 @@
# crt1_dir directory where crt1 object is found
# have_crt0 "yes"/"no" if crt0 is/isn't provided.
# "" if crt0 is provided when sys_dir is set
# noinclude list of include files to not install
newlib_cflags=
libm_machine_dir=
@ -58,6 +59,7 @@ stdio64_dir=
xdr_dir=
syscall_dir=
unix_dir=
noinclude=
mach_add_setjmp=
crt1=
crt1_dir=
@ -852,6 +854,11 @@ if [ "x${newlib_atexit_dynamic_alloc}" = "x" ]; then
fi
fi
# Remove rpc headers if xdr_dir not specified
if [ "x${xdir_dir}" = "x" ]; then
noinclude="${noinclude} rpc/types.h rpc/xdr.h"
fi
if test -z "${have_crt0}" && test -n "${sys_dir}"; then
have_crt0="yes"
fi