Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add --disable-self-check for configure
Fixed make distcheck, see #1129
  • Loading branch information
yetist authored and raveit65 committed Feb 8, 2019
1 parent e6bfa07 commit 89a3be2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
1 change: 1 addition & 0 deletions Makefile.am
Expand Up @@ -33,6 +33,7 @@ DISTCHECK_CONFIGURE_FLAGS = \
--disable-update-mimedb \
--disable-icon-update \
--enable-gtk-doc \
--disable-self-check \
CFLAGS='-Wno-deprecated-declarations'

ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
Expand Down
12 changes: 12 additions & 0 deletions configure.ac
Expand Up @@ -186,6 +186,17 @@ AC_ARG_ENABLE(empty_view,
AC_SUBST(ENABLE_EMPTY_VIEW)
AM_CONDITIONAL(ENABLE_EMPTY_VIEW, test "x$ENABLE_EMPTY_VIEW" = "x1")

dnl ========== EEL/CAJA OMIT SELF CHECK ====================================
AC_ARG_ENABLE(self-check,
AC_HELP_STRING([--disable-self-check], [build with self check]))
msg_self_check=yes
if test "x$enable_self_check" == "xno"; then
msg_self_check=no
AC_DEFINE(EEL_OMIT_SELF_CHECK, 1, [define to disable eel self check])
AC_DEFINE(CAJA_OMIT_SELF_CHECK, 1, [define to disable caja self check])
fi
AM_CONDITIONAL(ENABLE_SELF_CHECK, test "x$msg_self_check" = "xyes")

dnl ==========================================================================

AC_ARG_ENABLE(packagekit,
Expand Down Expand Up @@ -355,6 +366,7 @@ caja-$VERSION:
compiler: ${CC}
xmp support: $msg_xmp
PackageKit support: $msg_packagekit
Self check: $msg_self_check

caja-extension documentation: ${enable_gtk_doc}
caja-extension introspection: ${found_introspection}
Expand Down
6 changes: 1 addition & 5 deletions libcaja-private/caja-icon-container.c
Expand Up @@ -10010,6 +10010,7 @@ caja_self_check_icon_container (void)
EEL_CHECK_STRING_RESULT (check_compute_stretch (0, 0, 16, 16, 16, 17, 16), "0,0:16");
EEL_CHECK_STRING_RESULT (check_compute_stretch (100, 100, 64, 105, 105, 40, 40), "35,35:129");
}
#endif /* ! CAJA_OMIT_SELF_CHECK */

gboolean
caja_icon_container_is_layout_rtl (CajaIconContainer *container)
Expand Down Expand Up @@ -10109,7 +10110,6 @@ store_layout_timestamps_now (CajaIconContainer *container)
}
}


void
caja_icon_container_end_loading (CajaIconContainer *container,
gboolean all_icons_added)
Expand All @@ -10134,13 +10134,9 @@ caja_icon_container_get_store_layout_timestamps (CajaIconContainer *container)
return container->details->store_layout_timestamps;
}


void
caja_icon_container_set_store_layout_timestamps (CajaIconContainer *container,
gboolean store_layout_timestamps)
{
container->details->store_layout_timestamps = store_layout_timestamps;
}


#endif /* ! CAJA_OMIT_SELF_CHECK */
2 changes: 2 additions & 0 deletions src/Makefile.am
Expand Up @@ -197,7 +197,9 @@ caja_connect_server_SOURCES = \
$(NULL)


if ENABLE_SELF_CHECK
TESTS=check-caja
endif

@INTLTOOL_SERVER_RULE@

Expand Down

0 comments on commit 89a3be2

Please sign in to comment.