mirror of
https://salsa.debian.org/debian/dash.git
synced 2026-01-26 15:39:05 +00:00
[BUILD] Added --with-libedit option to configure
Add to the configure.ac new option: --with-libedit - Compile with libedit support.
This commit is contained in:
parent
d8014392bc
commit
13537aaa48
@ -1,3 +1,7 @@
|
||||
2006-05-23 Alexey Gladkov <legion@altlinux.org>
|
||||
|
||||
* Added --with-libedit option to configure.
|
||||
|
||||
2006-03-29 Herbert Xu <herbert@gondor.apana.org.au>
|
||||
|
||||
* Removed useless parsebackquote flag.
|
||||
|
||||
13
configure.ac
13
configure.ac
@ -42,5 +42,18 @@ AC_CHECK_FUNC(stat64,, [
|
||||
AC_DEFINE(open64, open, [64-bit operations are the same as 32-bit])
|
||||
])
|
||||
|
||||
AC_ARG_WITH(libedit, AS_HELP_STRING(--with-libedit, [Compile with libedit support]))
|
||||
use_libedit=
|
||||
if test "$with_libedit" = "yes"; then
|
||||
AC_CHECK_LIB(edit, history_init, [
|
||||
AC_CHECK_HEADER([histedit.h], [use_libedit="yes"],
|
||||
AC_MSG_ERROR(
|
||||
[Can't find required header files.]))])
|
||||
fi
|
||||
if test "$use_libedit" != "yes"; then
|
||||
AC_DEFINE([SMALL], 1, [Define if you build with -DSMALL])
|
||||
else
|
||||
export LIBS="$LIBS -ledit"
|
||||
fi
|
||||
AC_CONFIG_FILES([Makefile src/Makefile])
|
||||
AC_OUTPUT
|
||||
|
||||
@ -3,7 +3,7 @@ AM_YFLAGS = -d
|
||||
COMMON_CFLAGS = -Wall
|
||||
COMMON_CPPFLAGS = \
|
||||
-include $(top_builddir)/config.h \
|
||||
-DBSD=1 -DSMALL -DSHELL \
|
||||
-DBSD=1 -DSHELL \
|
||||
-DGLOB_BROKEN -DFNMATCH_BROKEN -DIFS_BROKEN
|
||||
|
||||
AM_CFLAGS = $(COMMON_CFLAGS)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user