dnl# CHECKING COMMAND LINE OPTIONS
dnl# --------------------------------------------------------------------------
-# -------------------------------------------
-# static-fd (default off)
-# -------------------------------------------
-AC_ARG_ENABLE(static-fd,
- [ --enable-static-fd enable static File daemon [disabled]],
- [if test x$enableval = xyes; then
- support_static_fd=yes
- fi])
-
-STATIC_FD=
-if test x$support_static_fd = xyes; then
- STATIC_FD="static-bacula-fd"
-fi
-AC_SUBST(STATIC_FD)
where=
# ------------------------------------------
# Where to get iso
# ------------------------------------------
AC_ARG_WITH(iso,
- [ --with-iso=PATH specify path to iso],
+ [ --with-iso=PATH specify path to iso (not implemented)],
[
if test "x$withval" != "xno" ; then
where=$withval
AC_SUBST(where)
AC_SUBST(type)
+
+# ------------------------------------------
+# Which kernel to take
+# ------------------------------------------
+AC_ARG_WITH(kernel,
+ [ --with-kernel=version specify complete kernel version (e.g. 2.6.14-2) ],
+ [
+ if test "x$withval" != "xno" ; then
+ KERNEL=$withval
+ fi
+ ]
+)
+AC_SUBST(KERNEL)
+
+
# ------------------------------------------
# Where to get Bacula source
# ------------------------------------------
fi
]
)
-
-if test x${bacula} = x; then
- AC_MSG_ERROR(Missing --with-bacula=PATH)
-fi
-
AC_SUBST(bacula)
+STATIC_FD=
+# ------------------------------------------
+# Where to get static-bacula-fd
+# ------------------------------------------
+AC_ARG_WITH(static-fd,
+ [ --with-static-fd=PATH specify path to static FD],
+ [
+ if test "x$withval" != "xno" ; then
+ STATIC_FD=$withval
+ fi
+ ]
+)
+AC_SUBST(STATIC_FD)
+
+if test x${bacula} = x -a x${STATIC_FD} = x ; then
+ AC_MSG_ERROR(You must specify either --with-bacula=PATH or --with-static-fd=PATH)
+fi
#
# Finally we set appropriate distribution specific
Host: $host -- ${DISTNAME} ${DISTVER}
Rescue version: ${VERSION} (${DATE})
Source code location: ${bacula}
- Rescue disk image type: ${type}
- Rescue disk image location: ${where}
-
+ Static FD location: ${STATIC_FD}
+ Specific kernel version: ${KERNEL}
" > config.out