ax_submodule.m4: don't let --with-module conflict with --with-module-prefix=
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 1 Jan 2010 17:02:30 +0000 (18:02 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Fri, 1 Jan 2010 17:02:30 +0000 (18:02 +0100)
m4/ax_submodule.m4

index 637b4a9..7cf8995 100644 (file)
@@ -22,13 +22,13 @@ if test "x$with_$1_prefix" != "x" -a "x$with_$1_exec_prefix" = "x"; then
        with_$1_exec_prefix=$with_$1_prefix
 fi
 if test "x$with_$1_prefix" != "x" -o "x$with_$1_exec_prefix" != "x"; then
-       if test "x$with_$1" != "x" -a "x$with_$1" != "xsystem"; then
+       if test "x$with_$1" != "x" -a "x$with_$1" != "xyes" -a "x$with_$1" != "xsystem"; then
                AC_MSG_ERROR([Setting $with_$1_prefix implies use of system $1])
        fi
        with_$1="system"
 fi
 if test "x$with_$1_builddir" != "x"; then
-       if test "x$with_$1" != "x" -a "x$with_$1" != "xbuild"; then
+       if test "x$with_$1" != "x" -a "x$with_$1" != "xyes" -a "x$with_$1" != "xbuild"; then
                AC_MSG_ERROR([Setting $with_$1_builddir implies use of build $1])
        fi
        with_$1="build"