/[pcre]/code/trunk/Makefile.am
ViewVC logotype

Diff of /code/trunk/Makefile.am

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1196 by ph10, Thu Nov 1 17:41:36 2012 UTC revision 1235 by ph10, Mon Dec 10 13:36:29 2012 UTC
# Line 18  dist_html_DATA = \ Line 18  dist_html_DATA = \
18    doc/html/index.html \    doc/html/index.html \
19    doc/html/pcre.html \    doc/html/pcre.html \
20    doc/html/pcre16.html \    doc/html/pcre16.html \
21      doc/html/pcre32.html \
22    doc/html/pcre-config.html \    doc/html/pcre-config.html \
23    doc/html/pcre_assign_jit_stack.html \    doc/html/pcre_assign_jit_stack.html \
24    doc/html/pcre_compile.html \    doc/html/pcre_compile.html \
# Line 44  dist_html_DATA = \ Line 45  dist_html_DATA = \
45    doc/html/pcre_refcount.html \    doc/html/pcre_refcount.html \
46    doc/html/pcre_study.html \    doc/html/pcre_study.html \
47    doc/html/pcre_utf16_to_host_byte_order.html \    doc/html/pcre_utf16_to_host_byte_order.html \
48      doc/html/pcre_utf32_to_host_byte_order.html \
49    doc/html/pcre_version.html \    doc/html/pcre_version.html \
50    doc/html/pcreapi.html \    doc/html/pcreapi.html \
51    doc/html/pcrebuild.html \    doc/html/pcrebuild.html \
# Line 65  dist_html_DATA = \ Line 67  dist_html_DATA = \
67    doc/html/pcretest.html \    doc/html/pcretest.html \
68    doc/html/pcreunicode.html    doc/html/pcreunicode.html
69    
 #   doc/html/pcre32.html \  
 #   doc/html/pcre_utf32_to_host_byte_order.html \  
 #  
   
70  pcrecpp_html = doc/html/pcrecpp.html  pcrecpp_html = doc/html/pcrecpp.html
71  dist_noinst_DATA = $(pcrecpp_html)  dist_noinst_DATA = $(pcrecpp_html)
72    
# Line 140  pcre.h.generic: pcre.h.in configure.ac Line 138  pcre.h.generic: pcre.h.in configure.ac
138          cp -p pcre.h $@          cp -p pcre.h $@
139    
140  # It is more complicated for config.h.generic. We need the version that results  # It is more complicated for config.h.generic. We need the version that results
141  # from a default configuration. We can get this by doing a configure in a  # from a default configuration so as to get all the default values for PCRE
142  # temporary directory. It has to be entirely done using files in that  # configuration macros such as MATCH_LIMIT and NEWLINE. We can get this by
143  # directory, because the source directory may already be configured. If you  # doing a configure in a temporary directory. However, some trickery is needed,
144  # just try running configure in a new directory, it complains that the source  # because the source directory may already be configured. If you just try
145  # directory is already configured.  # running configure in a new directory, it complains. For this reason, we move
146    # config.status out of the way while doing the default configuration. The
147    # resulting config.h is munged by perl to put #ifdefs round any #defines for
148    # macros with values, and to #undef all boolean macros such as HAVE_xxx and
149    # SUPPORT_xxx. We also get rid of any gcc-specific visibility settings. Make
150    # sure that PCRE_EXP_DEFN is unset (in case it has visibility settings).
151  config.h.generic: configure.ac  config.h.generic: configure.ac
152          rm -rf $@ _generic          rm -rf $@ _generic
153          mkdir _generic          mkdir _generic
# Line 152  config.h.generic: configure.ac Line 155  config.h.generic: configure.ac
155          cd _generic && $(abs_top_srcdir)/configure || :          cd _generic && $(abs_top_srcdir)/configure || :
156          cs=$(srcdir)/config.status; test ! -f $$cs.aside || mv -f $$cs.aside $$cs          cs=$(srcdir)/config.status; test ! -f $$cs.aside || mv -f $$cs.aside $$cs
157          test -f _generic/config.h          test -f _generic/config.h
158          perl -pe 'if(/^#define\s(?!PACKAGE)(\w+)/){print"#ifndef $$1\n$$_#endif\n";$$_="";}' _generic/config.h >$@          perl -n \
159              -e 'BEGIN{$$blank=0;}' \
160              -e 'if(/PCRE_EXP_DEFN/){print"/* #undef PCRE_EXP_DEFN */\n";$$blank=0;next;}' \
161              -e 'if(/to make a symbol visible/){next;}' \
162              -e 'if(/__attribute__ \(\(visibility/){next;}' \
163              -e 'if(/LT_OBJDIR/){print"/* This is ignored unless you are using libtool. */\n";}' \
164              -e 'if(/^#define\s((?:HAVE|SUPPORT|STDC)_\w+)/){print"/* #undef $$1 */\n";$$blank=0;next;}' \
165              -e 'if(/^#define\s(?!PACKAGE|VERSION)(\w+)/){print"#ifndef $$1\n$$_#endif\n";$$blank=0;next;}' \
166              -e 'if(/^\s*$$/){print unless $$blank; $$blank=1;} else{print;$$blank=0;}' \
167              _generic/config.h >$@
168          rm -rf _generic          rm -rf _generic
169    
170  MAINTAINERCLEANFILES += pcre.h.generic config.h.generic  MAINTAINERCLEANFILES += pcre.h.generic config.h.generic

Legend:
Removed from v.1196  
changed lines
  Added in v.1235

  ViewVC Help
Powered by ViewVC 1.1.5