Changes between Version 8 and Version 9 of pm-config-header


Ignore:
Timestamp:
Jun 6, 2011 10:22:22 AM (9 years ago)
Author:
stefan
Comment:

simpler install of CoinUtilsConfig?.h

Legend:

Unmodified
Added
Removed
Modified
  • pm-config-header

    v8 v9  
    5656/* src/config_coinutils.h.in.  */
    5757
     58#ifndef __CONFIG_COINUTILS_H__
     59#define __CONFIG_COINUTILS_H__
     60
    5861/* Version number of project */
    5962#undef COINUTILS_VERSION
     
    7679/* Define to 64bit unsigned integer type */
    7780#undef COIN_UINT64_T
     81
     82#endif
    7883}}}
    7984After a user run configure, the {{{#undef}}} statements are replaced by corresponding {{{#define}}} statements, depending on the outcome of tests performed by configure.
     
    152157Note that the file '''config_coinutils.h''' is installed as '''!CoinUtilsConfig.h''' for use by users building against the !CoinUtils library. This functionality is implemented by the following lines in {{{src/Makefile.am}}}:
    153158{{{
    154 ConfigHeader = CoinUtilsConfig.h
    155 
    156159install-exec-local:
    157         echo "#ifndef __CONFIG_COINUTILS_H__" > bla
    158         echo "#define __CONFIG_COINUTILS_H__" >> bla
    159         tail -n +3 config_coinutils.h >> bla
    160         echo "#endif" >> bla
    161         $(install_sh_DATA) bla $(DESTDIR)$(includecoindir)/$(ConfigHeader)
    162         rm -f bla
     160        $(install_sh_DATA) config_coinutils.h $(DESTDIR)$(includecoindir)/CoinUtilsConfig.h
    163161
    164162uninstall-local:
    165         rm -f $(DESTDIR)$(includecoindir)/$(ConfigHeader)
    166 
     163        rm -f $(DESTDIR)$(includecoindir)/CoinUtilsConfig.h
    167164}}}