21588
# Check whether --enable-grub-mount was given.
21589
if test "${enable_grub_mount+set}" = set; then :
21590
enableval=$enable_grub_mount;
21593
if test x"$enable_grub_mount" = xno ; then
21594
grub_mount_excuse="explicitly disabled"
21597
if test x"$grub_mount_excuse" = x ; then
21598
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main_real in -lfuse" >&5
21599
$as_echo_n "checking for fuse_main_real in -lfuse... " >&6; }
21600
if ${ac_cv_lib_fuse_fuse_main_real+:} false; then :
21601
$as_echo_n "(cached) " >&6
21603
ac_check_lib_save_LIBS=$LIBS
21604
LIBS="-lfuse $LIBS"
21605
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21606
/* end confdefs.h. */
21608
/* Override any GCC internal prototype to avoid an error.
21609
Use char because int might match the return type of a GCC
21610
builtin and then its argument prototype would still apply. */
21614
char fuse_main_real ();
21618
return fuse_main_real ();
21623
if ac_fn_c_try_link "$LINENO"; then :
21624
ac_cv_lib_fuse_fuse_main_real=yes
21626
ac_cv_lib_fuse_fuse_main_real=no
21628
rm -f core conftest.err conftest.$ac_objext \
21629
conftest$ac_exeext conftest.$ac_ext
21630
LIBS=$ac_check_lib_save_LIBS
21632
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main_real" >&5
21633
$as_echo "$ac_cv_lib_fuse_fuse_main_real" >&6; }
21634
if test "x$ac_cv_lib_fuse_fuse_main_real" = xyes; then :
21635
cat >>confdefs.h <<_ACEOF
21636
#define HAVE_LIBFUSE 1
21639
LIBS="-lfuse $LIBS"
21642
grub_mount_excuse="need FUSE library"
21647
if test x"$grub_mount_excuse" = x ; then
21648
# Check for fuse headers.
21649
SAVED_CPPFLAGS="$CPPFLAGS"
21650
CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26"
21651
for ac_header in fuse/fuse.h
21653
ac_fn_c_check_header_mongrel "$LINENO" "fuse/fuse.h" "ac_cv_header_fuse_fuse_h" "$ac_includes_default"
21654
if test "x$ac_cv_header_fuse_fuse_h" = xyes; then :
21655
cat >>confdefs.h <<_ACEOF
21656
#define HAVE_FUSE_FUSE_H 1
21660
grub_mount_excuse="need FUSE headers"
21665
CPPFLAGS="$SAVED_CPPFLAGS"
21668
if test x"$enable_grub_mount" = xyes && test x"$grub_mount_excuse" != x ; then
21669
as_fn_error $? "grub-mount was explicitly requested but can't be compiled" "$LINENO" 5
21671
if test x"$grub_mount_excuse" = x ; then
21672
enable_grub_mount=yes
21674
enable_grub_mount=no
21678
21582
# Check whether --enable-device-mapper was given.
21679
21583
if test "${enable_device_mapper+set}" = set; then :
21680
21584
enableval=$enable_device_mapper;
22585
22481
as_fn_error $? "conditional \"COND_GRUB_MKFONT\" was never defined.
22586
22482
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22588
if test -z "${COND_GRUB_MOUNT_TRUE}" && test -z "${COND_GRUB_MOUNT_FALSE}"; then
22589
as_fn_error $? "conditional \"COND_GRUB_MOUNT\" was never defined.
22590
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22592
22484
if test -z "${COND_HAVE_FONT_SOURCE_TRUE}" && test -z "${COND_HAVE_FONT_SOURCE_FALSE}"; then
22593
22485
as_fn_error $? "conditional \"COND_HAVE_FONT_SOURCE\" was never defined.
22594
22486
Usually this means the macro was only invoked conditionally." "$LINENO" 5