-### CHECK FOR LIBRARIES #######################################################
-
-GTK_REQUIRED_VERSION=2.8
-GLIB_REQUIRED_VERSION=2.6
+### ILIAD #####################################################################
+AC_ARG_ENABLE([iliad],
+ [AS_HELP_STRING([--enable-iliad],[Compiles Chimara for the iLiad])],
+ [AS_CASE([${enableval}],
+ [yes], [iliad=true],
+ [no], [iliad=false],
+ [AC_MSG_ERROR([bad value ${enableval} for --enable-iliad])]
+ )],
+ [iliad=false]
+)
+
+AM_CONDITIONAL([TARGET_ILIAD], [$TEST "x$iliad" = xtrue])
+
+### RPM CONFIGURATION ##########################################################
+# --enable-rpm requires rpm and rpmbuild
+AC_PATH_PROG([RPMBUILD], [rpmbuild], [notfound])
+AC_ARG_ENABLE([rpm],
+ [AS_HELP_STRING([--enable-rpm],[Configure for building RPM package [no] (requires rpm and rpmbuild)])],
+ [AS_CASE([${enableval}],
+ [yes], [AS_IF(
+ [$TEST "x$RPMBUILD" = xnotfound],
+ [AC_MSG_ERROR([rpmbuild is required for --enable-rpm])],
+ [rpm=true])],
+ [no], [rpm=false],
+ [AC_MSG_ERROR([bad value ${enableval} for --enable-rpm])]
+ )],
+ [rpm=false]
+)
+AM_CONDITIONAL([BUILDING_RPM], [$TEST "x$rpm" = xtrue])