diff options
Diffstat (limited to 'm4/ac-define-dir.m4')
-rwxr-xr-x | m4/ac-define-dir.m4 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/m4/ac-define-dir.m4 b/m4/ac-define-dir.m4 new file mode 100755 index 00000000..a8969e1a --- /dev/null +++ b/m4/ac-define-dir.m4 @@ -0,0 +1,12 @@ +dnl from ac-archives +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` + $1="$ac_define_dir" + AC_SUBST($1) + ifelse($3, , + AC_DEFINE_UNQUOTED($1, "$ac_define_dir"), + AC_DEFINE_UNQUOTED($1, "$ac_define_dir", $3)) +]) |