5
5
# ----------------------------------------
6
6
# Initialization
7
7
# ----------------------------------------
8
- AC_PREREQ([2.50 ])
8
+ AC_PREREQ([2.59 ])
9
9
AC_INIT([tesseract], [4.00.00dev], [https://github.com/tesseract-ocr/tesseract/issues])
10
10
AC_PROG_CXX([g++ clang++])
11
11
AC_LANG([C++])
118
118
includedir=" ${includedir} /tesseract"
119
119
120
120
AC_ARG_WITH([extra-includes],
121
- [AC_HELP_STRING ([--with-extra-includes= DIR],
121
+ [AS_HELP_STRING ([--with-extra-includes= DIR],
122
122
[Define an additional directory for include files])],
123
123
[if test -d " $withval " ; then
124
124
CFLAGS= " $CFLAGS -I$withval "
@@ -127,7 +127,7 @@ AC_ARG_WITH([extra-includes],
127
127
fi])
128
128
129
129
AC_ARG_WITH([extra-libraries],
130
- [AC_HELP_STRING ([--with-extra-libraries= DIR],
130
+ [AS_HELP_STRING ([--with-extra-libraries= DIR],
131
131
[Define an additional directory for library files])],
132
132
[if test -d " $withval " ; then
133
133
LDFLAGS= " $LDFLAGS -L$withval "
@@ -137,8 +137,8 @@ AC_ARG_WITH([extra-libraries],
137
137
138
138
AC_MSG_CHECKING([--enable-graphics argument])
139
139
AC_ARG_ENABLE([graphics],
140
- [AC_HELP_STRING ([--enable-graphics],[enable graphics (ScrollView) (default)])
141
- AC_HELP_STRING ([--disable-graphics],[disable graphics (ScrollView)])],
140
+ [AS_HELP_STRING ([--enable-graphics],[enable graphics (ScrollView) (default)])
141
+ AS_HELP_STRING ([--disable-graphics],[disable graphics (ScrollView)])],
142
142
[enable_graphics= $enableval ],
143
143
[enable_graphics= " yes" ])
144
144
AC_MSG_RESULT([$enable_graphics ])
@@ -244,7 +244,7 @@ AC_SUBST([OPENCL_LDFLAGS])
244
244
# http://groups.google.com/group/tesseract-dev/browse_thread/thread/976645ae98189127
245
245
AC_MSG_CHECKING([--enable-visibility argument])
246
246
AC_ARG_ENABLE([visibility],
247
- [AC_HELP_STRING ([--enable-visibility],[enable experimental build with fvisibility (default=no)])],
247
+ [AS_HELP_STRING ([--enable-visibility],[enable experimental build with fvisibility (default=no)])],
248
248
[enable_visibility= $enableval ],
249
249
[enable_visibility= " no" ])
250
250
AC_MSG_RESULT([$enable_visibility ])
@@ -253,7 +253,7 @@ AM_CONDITIONAL([VISIBILITY], [test "$enable_visibility" = "yes"])
253
253
# check whether to build multiple libraries
254
254
AC_MSG_CHECKING([--enable-multiple-libraries argument])
255
255
AC_ARG_ENABLE([multiple-libraries],
256
- [AC_HELP_STRING ([--enable-multiple-libraries],[enable multiple libraries (default=no)])],
256
+ [AS_HELP_STRING ([--enable-multiple-libraries],[enable multiple libraries (default=no)])],
257
257
[enable_mlibs= $enableval ],
258
258
[enable_mlibs= " no" ])
259
259
AC_MSG_RESULT([$enable_mlibs ])
@@ -262,7 +262,7 @@ AM_CONDITIONAL([USING_MULTIPLELIBS], [test "$enable_mlibs" = "yes"])
262
262
# Check if tessdata-prefix is disabled
263
263
AC_MSG_CHECKING([whether to use tessdata-prefix])
264
264
AC_ARG_ENABLE([tessdata-prefix],
265
- [AC_HELP_STRING ([--disable-tessdata-prefix],
265
+ [AS_HELP_STRING ([--disable-tessdata-prefix],
266
266
[don' t set TESSDATA-PREFIX during compile])],
267
267
[tessdata_prefix="no"], [tessdata_prefix="yes"])
268
268
AC_MSG_RESULT([$tessdata_prefix])
@@ -271,7 +271,7 @@ AM_CONDITIONAL([NO_TESSDATA_PREFIX], [test "$tessdata_prefix" = "no"])
271
271
# Check whether enable debuging
272
272
AC_MSG_CHECKING([whether to enable debugging])
273
273
AC_ARG_ENABLE([debug],
274
- [AC_HELP_STRING ([--enable-debug],
274
+ [AS_HELP_STRING ([--enable-debug],
275
275
[turn on debugging (default=no)])],
276
276
[debug=$enableval],
277
277
[debug="no"])
0 commit comments