www.delorie.com/gnu/docs/autoconf/autoconf_179.html   search  
 
Buy the book!


Autoconf

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

17.5 How Do I #define Installation Directories?

 
My program needs library files, installed in datadir and
similar.  If I use

 
AC_DEFINE_UNQUOTED([DATADIR], [$datadir],
                   [Define to the read-only architecture-independent
                    data directory.])

I get

 
#define DATADIR "${prefix}/share"

As already explained, this behavior is on purpose, mandated by the GNU Coding Standards, see 4.7.2 Installation Directory Variables. There are several means to achieve a similar goal:


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003