Make options to ./configure arguments mandatory
authorJoachim Breitner <mail@joachim-breitner.de>
Thu, 31 Dec 2009 17:09:37 +0000 (17:09 +0000)
committerJoachim Breitner <mail@joachim-breitner.de>
Thu, 31 Dec 2009 17:09:37 +0000 (17:09 +0000)
configure.ac

index 4b6f2ac..72cc64c 100644 (file)
@@ -20,6 +20,10 @@ AC_ARG_WITH([iscc],
             [ ],
             [with_iscc=no])
 
+AS_IF([test "x$with_iscc" = xyes],[
+       AC_MSG_ERROR("You need to pass a parameter to --with-iscc")
+       ])
+
 AS_IF([test "x$with_iscc" != xno],
            [
            AC_SUBST(ISCC,[$with_iscc])
@@ -38,6 +42,10 @@ AC_ARG_WITH([win32-gtk],
             [],
             [with_win32_gtk=no])
 
+AS_IF([test "x$with_win32_gtk" = xyes],[
+       AC_MSG_ERROR("You need to pass a parameter to --with-win32_-gtk")
+       ])
+
 AS_IF([test "x$with_win32_gtk" != xno],
            [AC_SUBST(WIN32_GTK, [`$WINEPATH -w $with_win32_gtk`])
             AS_VAR_APPEND(PKG_CONFIG," --define-variable prefix=$with_win32_gtk")