Skip to content

Commit 91f1dc6

Browse files
yetistraveit65
authored andcommitted
Add --disable-self-check for configure
Fixed make distcheck, see #1129
1 parent 2fde826 commit 91f1dc6

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed

‎Makefile.am‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ DISTCHECK_CONFIGURE_FLAGS = \
3333
--disable-update-mimedb \
3434
--disable-icon-update \
3535
--enable-gtk-doc \
36+
--disable-self-check \
3637
CFLAGS='-Wno-deprecated-declarations'
3738

3839
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}

‎configure.ac‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,17 @@ AC_ARG_ENABLE(empty_view,
190190
AC_SUBST(ENABLE_EMPTY_VIEW)
191191
AM_CONDITIONAL(ENABLE_EMPTY_VIEW, test "x$ENABLE_EMPTY_VIEW" = "x1")
192192

193+
dnl ========== EEL/CAJA OMIT SELF CHECK ====================================
194+
AC_ARG_ENABLE(self-check,
195+
AC_HELP_STRING([--disable-self-check], [build with self check]))
196+
msg_self_check=yes
197+
if test "x$enable_self_check" == "xno"; then
198+
msg_self_check=no
199+
AC_DEFINE(EEL_OMIT_SELF_CHECK, 1, [define to disable eel self check])
200+
AC_DEFINE(CAJA_OMIT_SELF_CHECK, 1, [define to disable caja self check])
201+
fi
202+
AM_CONDITIONAL(ENABLE_SELF_CHECK, test "x$msg_self_check" = "xyes")
203+
193204
dnl ==========================================================================
194205

195206
AC_ARG_ENABLE(packagekit,
@@ -366,6 +377,7 @@ caja-$VERSION:
366377
compiler: ${CC}
367378
xmp support: $msg_xmp
368379
PackageKit support: $msg_packagekit
380+
Self check: $msg_self_check
369381

370382
caja-extension documentation: ${enable_gtk_doc}
371383
caja-extension introspection: ${found_introspection}

‎libcaja-private/caja-icon-container.c‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10033,6 +10033,7 @@ caja_self_check_icon_container (void)
1003310033
EEL_CHECK_STRING_RESULT (check_compute_stretch (0, 0, 16, 16, 16, 17, 16), "0,0:16");
1003410034
EEL_CHECK_STRING_RESULT (check_compute_stretch (100, 100, 64, 105, 105, 40, 40), "35,35:129");
1003510035
}
10036+
#endif /* ! CAJA_OMIT_SELF_CHECK */
1003610037

1003710038
gboolean
1003810039
caja_icon_container_is_layout_rtl (CajaIconContainer *container)
@@ -10132,7 +10133,6 @@ store_layout_timestamps_now (CajaIconContainer *container)
1013210133
}
1013310134
}
1013410135

10135-
1013610136
void
1013710137
caja_icon_container_end_loading (CajaIconContainer *container,
1013810138
gboolean all_icons_added)
@@ -10157,13 +10157,9 @@ caja_icon_container_get_store_layout_timestamps (CajaIconContainer *container)
1015710157
return container->details->store_layout_timestamps;
1015810158
}
1015910159

10160-
1016110160
void
1016210161
caja_icon_container_set_store_layout_timestamps (CajaIconContainer *container,
1016310162
gboolean store_layout_timestamps)
1016410163
{
1016510164
container->details->store_layout_timestamps = store_layout_timestamps;
1016610165
}
10167-
10168-
10169-
#endif /* ! CAJA_OMIT_SELF_CHECK */

‎src/Makefile.am‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,9 @@ caja_connect_server_SOURCES = \
197197
$(NULL)
198198

199199

200+
if ENABLE_SELF_CHECK
200201
TESTS=check-caja
202+
endif
201203

202204
@INTLTOOL_SERVER_RULE@
203205

0 commit comments

Comments
 (0)