summaryrefslogtreecommitdiff
path: root/m4/ac-define-dir.m4
blob: a8969e1a5d23b818098adb5f7828dad4e5837612 (plain)
1
2
3
4
5
6
7
8
9
10
11
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))
])