Macro for configure.in from the autoconf macro archive. It allows one to define preprocessor definitions for swigconfig.h when the #define contains the installation directory. Autoconf won't normally expand installation directory variables.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4796 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
eec969f4cd
commit
9a5504eb87
1 changed files with 12 additions and 0 deletions
12
SWIG/Tools/config/ac_define_dir.m4
Normal file
12
SWIG/Tools/config/ac_define_dir.m4
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
dnl Available from the GNU Autoconf Macro Archive at:
|
||||
dnl http://www.gnu.org/software/ac-archive/htmldoc/ac_define_dir.html
|
||||
dnl
|
||||
AC_DEFUN([AC_DEFINE_DIR], [
|
||||
test "x$prefix" = xNONE && prefix="$ac_default_prefix"
|
||||
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
||||
ac_define_dir=`eval echo [$]$2`
|
||||
ac_define_dir=`eval echo [$]ac_define_dir`
|
||||
ifelse($3, ,
|
||||
AC_DEFINE_UNQUOTED($1, "$ac_define_dir"),
|
||||
AC_DEFINE_UNQUOTED($1, "$ac_define_dir", $3))
|
||||
])
|
||||
Loading…
Add table
Add a link
Reference in a new issue