Please check the GNU Autoconf Macro Archive for Updates
AC-Archive
Autoconf Macro Archive

ac-archive.sf.net: - Project CVS - Download
Macro Index
- AM Support
- C++ Support
- C Support
- Fortran Support
- Java Support
- Cross Compilation
- Installed Packages
- Miscellaneous
- LaTeX Support
- Uncategorized
- archive macros
- adl's macros
- bkorb's macros
- guidod's macros
- latex's macros
- other's macros
- rleigh's macros
- obsoleted macros
- released macros
- search index

Documentation
- Contribute!
- History
- acincludedir m4
- acinclude (tool)
- macro howto
- ax tricks
- maintainers
- License
- Topics

generated...
2007-08-05

(C) 2007 guidod
Download the M4 Source.

ac_subst_dir

Back to the Main Page.

Synopsis
AC_SUBST_DIR(VARNAME, [DIR])
, 
, 
Version

2005-07-29

Author

Stepan Kasal <kasal@ucw.cz> Mathias Hasselmann <mathias.hasselmann@gmx.de>

License

AllPermissive
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. Users of this software should generally follow the principles of the MIT License includings its disclaimer.

Category

cryp.to ac-archive's Obsoleted (obsoleted)

Documentation

  • obsoleted The macro AC_DEFINE_DIR provides this functionality directly now.

This macro substitutes (with AC_SUBST) VARNAME with the expansion of itself or the DIR variable if specified, taking care of fixing up ${prefix} and such.

Side effect: VARNAME is replaced with the expansion.

AC_SUBST_DIR bases on Alexandre Oliva's AC_DEFINE_DIR macro.

Examples:

  AC_SUBST_DIR(DATADIR)

M4 Source Code
AC_DEFUN([AC_SUBST_DIR], [
        ifelse($2,,,$1="[$]$2")
        $1=`(
            test "x$prefix" = xNONE &amp;&amp; prefix="$ac_default_prefix"
            test "x$exec_prefix" = xNONE &amp;&amp; exec_prefix="${prefix}"
            eval $1=\""[$]$1"\"
            eval echo \""[$]$1"\"
        )`
        AC_SUBST($1)
])