/[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 1230 by ph10, Fri Dec 7 10:22:16 2012 UTC revision 1235 by ph10, Mon Dec 10 13:36:29 2012 UTC
# Line 138  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. However, some trickery is needed,  # configuration macros such as MATCH_LIMIT and NEWLINE. We can get this by
143  # 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. For this reason,  # because the source directory may already be configured. If you just try
145  # we move config.status out of the way while doing the default configuration.  # running configure in a new directory, it complains. For this reason, we move
146  # The resulting config.h is munged by perl to put #ifdefs round any #defines  # config.status out of the way while doing the default configuration. The
147  # and to get rid of any gcc-specific visibility settings. Make sure that  # resulting config.h is munged by perl to put #ifdefs round any #defines for
148  # PCRE_EXP_DEFN is unset (in case it has visibility settings).  # 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 158  config.h.generic: configure.ac Line 160  config.h.generic: configure.ac
160            -e 'if(/PCRE_EXP_DEFN/){print"/* #undef PCRE_EXP_DEFN */\n";$$blank=0;next;}' \            -e 'if(/PCRE_EXP_DEFN/){print"/* #undef PCRE_EXP_DEFN */\n";$$blank=0;next;}' \
161            -e 'if(/to make a symbol visible/){next;}' \            -e 'if(/to make a symbol visible/){next;}' \
162            -e 'if(/__attribute__ \(\(visibility/){next;}' \            -e 'if(/__attribute__ \(\(visibility/){next;}' \
163            -e 'if(/^#define\s(?!PACKAGE)(\w+)/){print"#ifndef $$1\n$$_#endif\n";$$blank=0;}' \            -e 'if(/LT_OBJDIR/){print"/* This is ignored unless you are using libtool. */\n";}' \
164            -e 'else {if(/^\s*$$/){print unless $$blank; $$blank=1;} else{print;$$blank=0;}}' \            -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 >$@            _generic/config.h >$@
168          rm -rf _generic          rm -rf _generic
169    

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

  ViewVC Help
Powered by ViewVC 1.1.5