IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11836


Ignore:
Timestamp:
Feb 15, 2007, 1:16:19 PM (19 years ago)
Author:
Paul Price
Message:

According to the autoconf manual (section 4.7.2), you should NOT use AC_CONFIG_FILES to do variable substitution in anything except Makefiles (it does not completely qualify the path, i.e., $datadir resolves to $prefix/whatever). Instead, it recommends using sed within a Makefile. Implemented this to solve problem with getting $prefix in installed configuration files.

Location:
trunk/ippconfig
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippconfig/Makefile.am

    r11576 r11836  
    3030
    3131ACLOCAL_AMFLAGS = -I m4
     32
     33# From the autoconf manual, section 4.7.2 "Installation Directory Variables"
     34edit = sed \
     35        -e 's|@datadir[@]|$(datadir)|g' \
     36        -e 's|@prefix[@]|$(prefix)|g' \
     37        -e 's|@IPP_CONFIG_DIR[@]|$(IPP_CONFIG_DIR)|g'
     38
     39ipprc.config dvo.site: Makefile
     40        rm -f $@
     41        $(edit) '$(srcdir)/$@.in' > $@
     42
     43ipprc.config: $(srcdir)/ipprc.config.in
     44dvo.site: $(srcdir)/dvo.site.in
  • trunk/ippconfig/configure.ac

    r11611 r11836  
    1919  megacam/Makefile
    2020  simple/Makefile
    21   ipprc.config
    22   dvo.site
    2321])
    2422AC_OUTPUT
Note: See TracChangeset for help on using the changeset viewer.