1
dnl AS_AC_EXPAND(VAR, CONFIGURE_VAR)
3
dnl AS_AC_EXPAND(SYSCONFDIR, $sysconfdir)
4
dnl will set SYSCONFDIR to /usr/local/etc
6
dnl written by thomas vander stichele
8
AC_DEFUN([AS_AC_EXPAND],
13
dnl first expand prefix and exec_prefix if necessary
15
if test "x$prefix" = "xNONE"; then
18
exec_prefix_save=$exec_prefix
19
if test "x$exec_prefix" = "xNONE"; then
20
if test "x$prefix_save" = "xNONE"; then
21
exec_prefix=/usr/local
28
dnl loop until it doesn't change anymore
30
new_full_var="`eval echo $full_var`"
31
if test "x$new_full_var" = "x$full_var"; then break; fi
32
full_var=$new_full_var
36
full_var=$new_full_var
39
exec_prefix=$exec_prefix_save