Branch: Tag:

2008-06-29

2008-06-29 11:20:06 by Marcus Agehall <agehall@gmail.com>

Building external modules normally doesn't require anything but the
location of the Pike C headers. This patch tries to save the header
location in the master and provides a pike -x cflags command to
extract the compiler flags for using them.

Rev: bin/install.pike:1.187
Rev: lib/master.pike.in:1.448
Rev: lib/modules/Tools.pmod/Standalone.pmod/cflags.pike:1.1
Rev: src/Makefile.in:1.466
Rev: src/configure.in:1.1057

1:   # - # $Id: Makefile.in,v 1.465 2008/06/28 10:06:32 marcus Exp $ + # $Id: Makefile.in,v 1.466 2008/06/29 11:20:05 agehall Exp $   #      # This line is needed on some machines.
51:   data_prefix = @datadir@   share_prefix = $(data_prefix)/pike   man_prefix = $(prefix)/man + include_prefix = @includedir@      # Arguments for test_pike.pike used by the verify targets.   # TESTARGS = -F -a
113:   AR=@AR@      LD=@LD@ - LDFLAGS=@LDFLAGS@ @LINKFORSHARED@ $(EXTRALDFLAGS) + LINKFORSHARED=@LINKFORSHARED@ + LDFLAGS=@LDFLAGS@ $(LINKFORSHARED) $(EXTRALDFLAGS)   LDSHARED=@LDSHARED@      DEFAULT_RUNPIKE=$(TMP_BUILDDIR)/pike -DNOT_INSTALLED -DPRECOMPILED_SEARCH_MORE -m$(TMP_BUILDDIR)/master.pike $(PIKEOPTS)
613:    SRCDIR="$(SRCDIR)" prefix="$(prefix)" DOCDIR_SRC="$(DOCDIR_SRC)" \    MANDIR_SRC="$(MANDIR_SRC)" \    BASEDIR="$(BASEDIR)" man_prefix="$(man_prefix)" \ +  cflags="@DYNAMIC_MODULE_FLAGS@ -I$(include_prefix)" ldflags="" \    pike_name=$(pike_name) PIKE_MODULE_RELOC="$(PIKE_MODULE_RELOC)"      Pike.wxs: $(TMP_BINDIR)/install.pike Makefile
625:    SRCDIR="$(SRCDIR)" prefix="$(prefix)" DOCDIR_SRC="$(DOCDIR_SRC)" \    MANDIR_SRC="$(MANDIR_SRC)" \    BASEDIR="$(BASEDIR)" man_prefix="$(man_prefix)" \ +  cflags="@DYNAMIC_MODULE_FLAGS@ -I$(include_prefix)" ldflags="" \    pike_name=$(pike_name) PIKE_MODULE_RELOC="$(PIKE_MODULE_RELOC)"      Pike.msi: Pike.wixobj Pike_ui.wixobj Pike_module.msm Pike_banner.bmp UpFldrBtn.ibd NewFldrBtn.ibd
653:    MANDIR_SRC="$(MANDIR_SRC)" \    man_prefix="$(man_prefix)" pike_name=$(pike_name) \    fakeroot="$(buildroot)" PIKE_MODULE_RELOC="$(PIKE_MODULE_RELOC)" \ +  cflags="@DYNAMIC_MODULE_FLAGS@ -I$(include_prefix)" ldflags="" \    $(INSTALLARGS)      install_interactive: pike-complete-stamp tools    @$(RUNPIKE) $(TMP_BINDIR)/install.pike --interactive \    exec_prefix="$(exec_prefix)" prefix=$(prefix) \ -  +  include_prefix="$(include_prefix)" \    TMP_LIBDIR="$(TMP_LIBDIR)" LIBDIR_SRC="$(LIBDIR_SRC)" \    SRCDIR="$(SRCDIR)" DOCDIR_SRC="$(DOCDIR_SRC)" \    MANDIR_SRC="$(MANDIR_SRC)" \ -  +  cflags="@DYNAMIC_MODULE_FLAGS@ -I$(include_prefix)" ldflags="" \    fakeroot="$(buildroot)" PIKE_MODULE_RELOC="$(PIKE_MODULE_RELOC)"      # tidy up a bit
775:    MANDIR_SRC="$(MANDIR_SRC)" \    man_prefix="$(man_prefix)" fakeroot="$(buildroot)" \    PIKE_MODULE_RELOC="$(PIKE_MODULE_RELOC)" pike_name="test-pike" \ +  cflags="@DYNAMIC_MODULE_FLAGS@ -I$(include_prefix)" ldflags="" \    prefix="./test-install" $(INSTALLARGS)      just-tinstall: master-stamp
786:    MANDIR_SRC="$(MANDIR_SRC)" \    man_prefix="$(man_prefix)" fakeroot="$(buildroot)" \    PIKE_MODULE_RELOC="$(PIKE_MODULE_RELOC)" pike_name="test-pike" \ +  cflags="@DYNAMIC_MODULE_FLAGS@ -I$(include_prefix)" ldflags="" \    prefix="./test-install" $(INSTALLARGS)      
1047:    SRCDIR="$(SRCDIR)" prefix="$(prefix)" DOCDIR_SRC="$(DOCDIR_SRC)" \    MANDIR_SRC="$(MANDIR_SRC)" \    BASEDIR="$(BASEDIR)" man_prefix="$(man_prefix)" \ +  cflags="@DYNAMIC_MODULE_FLAGS@ -I$(include_prefix)" ldflags="" \    pike_name=$(pike_name) PIKE_MODULE_RELOC="$(PIKE_MODULE_RELOC)"    @case " $(CC)" in \    *\ rnt*) \