|
Lines 241-246
Link Here
|
| 241 |
FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_REISERFS=1" |
241 |
FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_REISERFS=1" |
| 242 |
fi |
242 |
fi |
| 243 |
|
243 |
|
|
|
244 |
dnl Checking for reiser4 |
| 245 |
REISER4_LIBS="" |
| 246 |
REISER4_CFLAGS="" |
| 247 |
|
| 248 |
OLD_LIBS=$LIBS |
| 249 |
OLD_CFLAGS=$CFLAGS |
| 250 |
LIBS="" |
| 251 |
CFLAGS="" |
| 252 |
|
| 253 |
AC_ARG_ENABLE(reiser4, |
| 254 |
[ --disable-reiser4 disable Reiser4 support in Stage 2]) |
| 255 |
|
| 256 |
enable_reiser4_support=yes |
| 257 |
|
| 258 |
AC_CHECK_LIB(aal-alone, aal_mem_init, , |
| 259 |
AC_MSG_WARN( |
| 260 |
Reiser4 support is disabled due to inability find libaal-alone with |
| 261 |
memory manager support turned on.) |
| 262 |
enable_reiser4_support=no |
| 263 |
) |
| 264 |
|
| 265 |
if test x"$enable_reiser4_support" != xno; then |
| 266 |
AC_CHECK_HEADER(aal/libaal.h, , |
| 267 |
AC_MSG_WARN( |
| 268 |
Libaal header files are not found. Reiser4 support is disabled |
| 269 |
) |
| 270 |
enable_reiser4_support=no) |
| 271 |
fi |
| 272 |
|
| 273 |
if test x"$enable_reiser4_support" != xno; then |
| 274 |
AC_CHECK_LIB(reiser4-alone, reiser4_fs_open, , |
| 275 |
AC_MSG_WARN( |
| 276 |
Reiser4 support is disabled due to inability find valid libreiser4-alone.) |
| 277 |
enable_reiser4_support=no, |
| 278 |
-laal-alone |
| 279 |
) |
| 280 |
fi |
| 281 |
|
| 282 |
if test x"$enable_reiser4_support" != xno; then |
| 283 |
AC_CHECK_HEADER(reiser4/libreiser4.h, , |
| 284 |
AC_MSG_WARN( |
| 285 |
Reiser4 header files are not found. Reiser4 support is disabled. |
| 286 |
) |
| 287 |
enable_reiser4_support=no) |
| 288 |
fi |
| 289 |
|
| 290 |
if test x"$enable_reiser4_support" != xno; then |
| 291 |
REISER4_CFLAGS="$REISER4_CFLAGS -DFSYS_REISER4=1" |
| 292 |
REISER4_LIBS=$LIBS |
| 293 |
fi |
| 294 |
|
| 295 |
if test x"$enable_reiser4_support" != xno; then |
| 296 |
AC_CHECK_LIB(reiser4-alone, __sym40_plug_init, |
| 297 |
REISER4_CFLAGS="$REISER4_CFLAGS -DENABLE_SYMLINKS=1", |
| 298 |
AC_MSG_WARN(Reiser4 symlinks support is disabled.), |
| 299 |
-laal-alone |
| 300 |
) |
| 301 |
fi |
| 302 |
|
| 303 |
LIBS=$OLD_LIBS |
| 304 |
CFLAGS=$OLD_CFLAGS |
| 305 |
|
| 306 |
if test x"$enable_reiser4" != xno; then |
| 307 |
(test x"$enable_reiser4_support" != xno) && |
| 308 |
FSYS_CFLAGS="$FSYS_CFLAGS $REISER4_CFLAGS" |
| 309 |
fi |
| 310 |
|
| 311 |
AC_SUBST(REISER4_LIBS) |
| 312 |
AC_SUBST(REISER4_CFLAGS) |
| 313 |
AM_CONDITIONAL(ENABLE_REISER4_SUPPORT, test x"$enable_reiser4_support" != xno) |
| 314 |
|
| 244 |
AC_ARG_ENABLE(vstafs, |
315 |
AC_ARG_ENABLE(vstafs, |
| 245 |
[ --disable-vstafs disable VSTa FS support in Stage 2]) |
316 |
[ --disable-vstafs disable VSTa FS support in Stage 2]) |