Ignore:
Timestamp:
28/01/2008 23:53:26 (4 years ago)
Author:
chris
Message:

Change the default sysconfdir to /etc.

Generate expanded versions of sysconfdir and localstatedir, as well as
bindir.

Expand variables in BoxPortsAndFiles?.h.in.

Changed default configuration dir in BoxPortsAndFiles?.h.in to use
@sysconfdir_expanded@/box, defaulting to /etc/box as before. But now
you can override it with something like --sysconfdir=/usr/etc
(to place config files in /usr/etc/box).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/configure.ac

    r2054 r2061  
    66AC_CONFIG_SRCDIR([lib/common/Box.h]) 
    77AC_CONFIG_HEADERS([lib/common/BoxConfig.h]) 
     8 
     9# override default sysconfdir, for backwards compatibility 
     10AC_SUBST([sysconfdir], ['/etc'])dnl 
    811 
    912touch install-sh 
     
    274277test "x$prefix" = xNONE && prefix=$ac_default_prefix 
    275278test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 
    276 bindir_expanded=`eval "echo $bindir"` 
    277 bindir_expanded=`eval "echo $bindir_expanded"` 
     279bindir_expanded=`       eval "echo $bindir"` 
     280bindir_expanded=`       eval "echo $bindir_expanded"` 
     281sysconfdir_expanded=`   eval "echo $sysconfdir"` 
     282localstatedir_expanded=`eval "echo $localstatedir"` 
    278283prefix=$saved_prefix 
    279284exec_prefix=$saved_exec_prefix 
    280 AC_SUBST([bindir_expanded]) 
     285AC_SUBST([bindir_expanded sysconfdir_expanded localstatedir_expanded]) 
    281286 
    282287 
     
    294299                   infrastructure/makeparcels.pl 
    295300                   infrastructure/makedistribution.pl 
     301                   lib/common/BoxPortsAndFiles.h 
    296302                   lib/common/makeexception.pl 
    297303                   lib/raidfile/raidfile-config 
Note: See TracChangeset for help on using the changeset viewer.