Skip to content

Commit

Permalink
add --disable-scrollview option, plus make disable-graphics and disab…
Browse files Browse the repository at this point in the history
…le-scrollview actually *do* something

git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@403 d0cd1f9f-072b-0410-8dd7-cf729c803f20
  • Loading branch information
joregan committed Jun 27, 2010
1 parent d2c234d commit 16db4eb
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,16 @@ AC_ARG_WITH(extra-libraries,
AC_MSG_ERROR([Cannot stat directory $withval])
fi ] )

AC_MSG_CHECKING(--enable-scrollview argument)
AC_ARG_ENABLE(scrollview,
[ --enable-scrollview Enable scrollview (default).],
[enable_scrollview=$enableval],
[enable_scrollview="yes"])
AC_MSG_RESULT($enable_scrollview)
if test "$enable_scrollview" = "no"; then
AC_DEFINE([DISABLE_SCROLLVIEW], [], [Disable scrollview])
fi

AC_MSG_CHECKING(--enable-graphics argument)
AC_ARG_ENABLE(graphics,
[ --enable-graphics Enable graphics (default).],
Expand Down Expand Up @@ -354,12 +364,14 @@ AC_CONFIG_FILES(tessdata/Makefile)
AC_CONFIG_FILES(tessdata/configs/Makefile)
AC_CONFIG_FILES(tessdata/tessconfigs/Makefile)
AC_CONFIG_FILES(testing/Makefile)
if test "$enable_scrollview" = "yes"; then
AC_CONFIG_FILES(java/Makefile)
AC_CONFIG_FILES(java/com/Makefile)
AC_CONFIG_FILES(java/com/google/Makefile)
AC_CONFIG_FILES(java/com/google/scrollview/Makefile)
AC_CONFIG_FILES(java/com/google/scrollview/events/Makefile)
AC_CONFIG_FILES(java/com/google/scrollview/ui/Makefile)
fi
# AC_CONFIG_FILES(doc/Doxyfile)
# AC_CONFIG_FILES(doc/header.html)
# AC_CONFIG_FILES(doc/footer.html)
Expand Down Expand Up @@ -394,6 +406,15 @@ AH_BOTTOM([
/* Miscellaneous defines */
#define AUTOCONF 1

#ifdef DISABLE_SCROLLVIEW
#define SCROLLVIEW_DISABLED
#endif

#ifdef DISABLE_GRAPHICS
#define SCROLLVIEW_DISABLED
#define GRAPHICS_DISABLED
#endif

/* config_auto.h: end */
#endif
])
Expand Down

0 comments on commit 16db4eb

Please sign in to comment.