mirror of
https://github.com/troglobit/editline.git
synced 2025-09-17 17:58:07 +08:00
Compare commits
101 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
85e606d093 | ||
![]() |
9cc0cc1ccd | ||
![]() |
08b7f57c98 | ||
![]() |
29b7f91165 | ||
![]() |
7330f21c28 | ||
![]() |
33ffb150f2 | ||
![]() |
4bc12834fe | ||
![]() |
c7a6ff9317 | ||
![]() |
897a98be55 | ||
![]() |
111fc5e1fb | ||
![]() |
8e81add050 | ||
![]() |
088dc1d1b2 | ||
![]() |
c59c62951f | ||
![]() |
0646b511ab | ||
![]() |
4f134f1025 | ||
![]() |
850e36f9db | ||
![]() |
d72069144e | ||
![]() |
fc08d47bce | ||
![]() |
87e69be38b | ||
![]() |
f984a48dae | ||
![]() |
d4d0c002dc | ||
![]() |
2b747467f0 | ||
![]() |
56478685d6 | ||
![]() |
916fac7cad | ||
![]() |
1c89c9886c | ||
![]() |
de6ff117bb | ||
![]() |
5e9177fd18 | ||
![]() |
27fcc878a1 | ||
![]() |
5de90af58f | ||
![]() |
0a75b182b1 | ||
![]() |
6a8ecd7e2e | ||
![]() |
bdf5384c5b | ||
![]() |
ff404e2088 | ||
![]() |
d04bdaf38f | ||
![]() |
aea0d60478 | ||
![]() |
04a0cbd902 | ||
![]() |
55aaddbc54 | ||
![]() |
dde4471eda | ||
![]() |
76ec5adba6 | ||
![]() |
80ca9e1811 | ||
![]() |
b48de203e7 | ||
![]() |
3fedfd4444 | ||
![]() |
f1edf7ae52 | ||
![]() |
2a9b087bbc | ||
![]() |
f617f84293 | ||
![]() |
bde0c0c9d6 | ||
![]() |
02acd55b2e | ||
![]() |
167059d159 | ||
![]() |
20c55a58da | ||
![]() |
0d9ce0ce06 | ||
![]() |
67e9aa3f2b | ||
![]() |
dbad0d0871 | ||
![]() |
f16cbece5a | ||
![]() |
be921400bb | ||
![]() |
83e4837f39 | ||
![]() |
a7eea67253 | ||
![]() |
8e13c7b5ae | ||
![]() |
02ea37e4de | ||
![]() |
c7b78df006 | ||
![]() |
5a8ad742d9 | ||
![]() |
522e534448 | ||
![]() |
d4aa5ac293 | ||
![]() |
a848011073 | ||
![]() |
ceb1995733 | ||
![]() |
98b846c8b1 | ||
![]() |
511a1a65a4 | ||
![]() |
64219dc1f0 | ||
![]() |
b51dad6408 | ||
![]() |
cc1fd1e9dc | ||
![]() |
536dcacb06 | ||
![]() |
009d3f0568 | ||
![]() |
60245e5e51 | ||
![]() |
576e437290 | ||
![]() |
6d2f4c99a3 | ||
![]() |
8b85bab216 | ||
![]() |
a0ec848f7b | ||
![]() |
d76ca9f1d6 | ||
![]() |
98fbc6cd41 | ||
![]() |
4c4a7e808c | ||
![]() |
7d0aff5ba3 | ||
![]() |
f874ad60ab | ||
![]() |
2d2ec7db98 | ||
![]() |
ca56b74763 | ||
![]() |
89261724d2 | ||
![]() |
885475fc49 | ||
![]() |
ad0fee03aa | ||
![]() |
da4bd00eef | ||
![]() |
3c4cf96bfc | ||
![]() |
00dd651835 | ||
![]() |
34a314c8e7 | ||
![]() |
4c9c71faae | ||
![]() |
cbf276d9ff | ||
![]() |
722dae35a2 | ||
![]() |
c52e75cb01 | ||
![]() |
e16f245672 | ||
![]() |
bc6dd1c34e | ||
![]() |
07fe826324 | ||
![]() |
9973cc2a9a | ||
![]() |
348eb97440 | ||
![]() |
e0c7e38d4e | ||
![]() |
e8fc7788aa |
15
.bzrignore → .gitignore
vendored
15
.bzrignore → .gitignore
vendored
@@ -4,13 +4,22 @@ autom4te.cache
|
|||||||
config.h
|
config.h
|
||||||
config.log
|
config.log
|
||||||
config.status
|
config.status
|
||||||
stamp-h1
|
libtool
|
||||||
examples/.deps
|
examples/.deps
|
||||||
examples/Makefile
|
examples/Makefile
|
||||||
examples/cli
|
examples/cli
|
||||||
|
examples/cli.o
|
||||||
examples/testit
|
examples/testit
|
||||||
man/Makefile
|
examples/testit.o
|
||||||
man/Makefile
|
|
||||||
include/Makefile
|
include/Makefile
|
||||||
|
man/Makefile
|
||||||
|
man/Makefile
|
||||||
src/.deps
|
src/.deps
|
||||||
src/Makefile
|
src/Makefile
|
||||||
|
src/*.o
|
||||||
|
src/*.lo
|
||||||
|
src/libeditline.a
|
||||||
|
src/libeditline.la
|
||||||
|
stamp-h1
|
||||||
|
*~
|
||||||
|
*/.libs/
|
44
INSTALL
Normal file
44
INSTALL
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
HowTo Build Minix Editline
|
||||||
|
==========================
|
||||||
|
|
||||||
|
Minix editline makes use of GNU configure tools, which includes autoconf, automake
|
||||||
|
and libtool. This enables high levels of portability and ease of use In most cases
|
||||||
|
all you need to do is unpack the tarball, enter the directory and type:
|
||||||
|
|
||||||
|
./configure
|
||||||
|
|
||||||
|
There are are, however, more options available. For instance, sometimes it is useful
|
||||||
|
to build editline as a static library, type:
|
||||||
|
|
||||||
|
./configure --disable-shared
|
||||||
|
|
||||||
|
By default editline employs a default handler for the TAB key, pressing it once
|
||||||
|
completes to the nearest matching filename in the current working directory, or it
|
||||||
|
can display a listing of possible completions. For some uses this default is not
|
||||||
|
desirable at all, type:
|
||||||
|
|
||||||
|
./configure --disable-default-complete
|
||||||
|
|
||||||
|
An even more common desire is to change the default install location. By default all
|
||||||
|
configure scripts setup /usr/local as the install "prefix", to change this type:
|
||||||
|
|
||||||
|
./configure --prefix=/home/troglobit/tmp
|
||||||
|
|
||||||
|
Advanced users are encouraged to read up on --libdir, --mandir, etc. in the GNU
|
||||||
|
Configure and Build System.
|
||||||
|
|
||||||
|
For more available options, type:
|
||||||
|
|
||||||
|
./configure --help
|
||||||
|
|
||||||
|
To build and install, simply type:
|
||||||
|
|
||||||
|
make
|
||||||
|
|
||||||
|
followed by
|
||||||
|
|
||||||
|
sudo make install
|
||||||
|
|
||||||
|
Good Luck!
|
||||||
|
//Joachim
|
||||||
|
|
19
Make.os9
Normal file
19
Make.os9
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
## $Revision: 1.2 $
|
||||||
|
##
|
||||||
|
## OS-9 makefile for editline library.
|
||||||
|
##
|
||||||
|
|
||||||
|
.SUFFIXES:
|
||||||
|
|
||||||
|
RFILES = editline.r complete.r sysos9.r
|
||||||
|
|
||||||
|
%.r: %.c
|
||||||
|
cc68 -r -Dstrchr=index -Dstrrchr=rindex -DNEED_STRDUP -DSYS_OS9 $*.c
|
||||||
|
|
||||||
|
testit: testit.r editline.lib
|
||||||
|
cc68 -f=testit testit.r -l=editline.lib
|
||||||
|
|
||||||
|
$(RFILES): $(RFILES:%.r=%.c)
|
||||||
|
|
||||||
|
editline.lib: $(RFILES)
|
||||||
|
cat $(RFILES) >$@
|
@@ -1,44 +0,0 @@
|
|||||||
## $Revision: 1390 $
|
|
||||||
##
|
|
||||||
## Unix makefile for editline library.
|
|
||||||
##
|
|
||||||
|
|
||||||
|
|
||||||
## Set your options:
|
|
||||||
## -DANSI_ARROWS ANSI arrows keys work like emacs.
|
|
||||||
## -DHAVE_STDLIB Have <stdlib.h>.
|
|
||||||
## -DHAVE_TCGETATTR Have , .
|
|
||||||
## -DHAVE_TERMIO Have "struct termio" and <termio.h>
|
|
||||||
## (If neither of above two, we use <sgttyb.h> and BSD ioctl's)
|
|
||||||
## -DHIDE Make static functions static (non debug).
|
|
||||||
## -DHIST_SIZE=n History size.
|
|
||||||
## -DNEED_STRDUP Don't have .
|
|
||||||
## -DUNIQUE_HISTORY Don't save command if same as last one.
|
|
||||||
## -DUSE_DIRENT Use <dirent.h>, not <sys/dir.h>?
|
|
||||||
## -DUSE_TERMCAP Use the termcap library for terminal size
|
|
||||||
## see LDFLAGS, below, if you set this.
|
|
||||||
## -DNEED_PERROR Don't have (used in testit)
|
|
||||||
DEFS="-DANSI_ARROWS -DHAVE_STDLIB -DHAVE_TCGETATTR -DHIDE -DUSE_DIRENT \
|
|
||||||
-DHIST_SIZE=100 -DUSE_TERMCAP -DSYS_UNIX"
|
|
||||||
#-DNEED_STRDUP
|
|
||||||
|
|
||||||
CFLAGS="-O -D_MINIX -D_POSIX_SOURCE $DEFS -wo"
|
|
||||||
#CC1 = $(CC) $(CFLAGS) -c
|
|
||||||
|
|
||||||
## If you have -DUSE_TERMCAP, set this as appropriate:
|
|
||||||
#LDFLAGS = -ltermlib
|
|
||||||
#LDFLAGS = -ltermcap
|
|
||||||
|
|
||||||
## End of configuration.
|
|
||||||
|
|
||||||
#SOURCES = editline.c complete.c sysunix.c
|
|
||||||
#LIBRARY = ../libedit.a
|
|
||||||
LIBRARIES=libedit
|
|
||||||
#OBJECTS = editline.o complete.o sysunix.o
|
|
||||||
libedit_FILES="editline.c complete.c sysunix.c"
|
|
||||||
#SHARFILES = README Makefile editline.3 editline.h unix.h editline.c \
|
|
||||||
|
|
||||||
TYPE=both
|
|
||||||
#include ../Makefile.inc
|
|
||||||
|
|
||||||
#$(call ADDDEPENDENCIES,$(libedit_OBJECTS),editline.h)
|
|
@@ -1,3 +1,4 @@
|
|||||||
AUTOMAKE_OPTIONS = foreign
|
AUTOMAKE_OPTIONS = foreign
|
||||||
EXTRA_DIST = LICENSE
|
ACLOCAL_AMFLAGS = -I m4
|
||||||
SUBDIRS = src include man examples
|
EXTRA_DIST = LICENSE
|
||||||
|
SUBDIRS = src include man examples
|
||||||
|
207
Makefile.in
207
Makefile.in
@@ -1,9 +1,9 @@
|
|||||||
# Makefile.in generated by automake 1.11 from Makefile.am.
|
# Makefile.in generated by automake 1.11.6 from Makefile.am.
|
||||||
# @configure_input@
|
# @configure_input@
|
||||||
|
|
||||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||||
# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
|
# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
|
||||||
# Inc.
|
# Foundation, Inc.
|
||||||
# This Makefile.in is free software; the Free Software Foundation
|
# This Makefile.in is free software; the Free Software Foundation
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
# with or without modifications, as long as this notice is preserved.
|
# with or without modifications, as long as this notice is preserved.
|
||||||
@@ -15,6 +15,23 @@
|
|||||||
|
|
||||||
@SET_MAKE@
|
@SET_MAKE@
|
||||||
VPATH = @srcdir@
|
VPATH = @srcdir@
|
||||||
|
am__make_dryrun = \
|
||||||
|
{ \
|
||||||
|
am__dry=no; \
|
||||||
|
case $$MAKEFLAGS in \
|
||||||
|
*\\[\ \ ]*) \
|
||||||
|
echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
|
||||||
|
| grep '^AM OK$$' >/dev/null || am__dry=yes;; \
|
||||||
|
*) \
|
||||||
|
for am__flg in $$MAKEFLAGS; do \
|
||||||
|
case $$am__flg in \
|
||||||
|
*=*|--*) ;; \
|
||||||
|
*n*) am__dry=yes; break;; \
|
||||||
|
esac; \
|
||||||
|
done;; \
|
||||||
|
esac; \
|
||||||
|
test $$am__dry = yes; \
|
||||||
|
}
|
||||||
pkgdatadir = $(datadir)/@PACKAGE@
|
pkgdatadir = $(datadir)/@PACKAGE@
|
||||||
pkgincludedir = $(includedir)/@PACKAGE@
|
pkgincludedir = $(includedir)/@PACKAGE@
|
||||||
pkglibdir = $(libdir)/@PACKAGE@
|
pkglibdir = $(libdir)/@PACKAGE@
|
||||||
@@ -31,12 +48,18 @@ POST_INSTALL = :
|
|||||||
NORMAL_UNINSTALL = :
|
NORMAL_UNINSTALL = :
|
||||||
PRE_UNINSTALL = :
|
PRE_UNINSTALL = :
|
||||||
POST_UNINSTALL = :
|
POST_UNINSTALL = :
|
||||||
|
build_triplet = @build@
|
||||||
|
host_triplet = @host@
|
||||||
subdir = .
|
subdir = .
|
||||||
DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
|
DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
|
||||||
$(srcdir)/Makefile.in $(srcdir)/config.h.in \
|
$(srcdir)/Makefile.in $(srcdir)/config.h.in \
|
||||||
$(top_srcdir)/configure NEWS TODO depcomp install-sh missing
|
$(top_srcdir)/configure INSTALL NEWS TODO config.guess \
|
||||||
|
config.sub depcomp install-sh ltmain.sh missing
|
||||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||||
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
|
||||||
|
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||||
|
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||||
|
$(top_srcdir)/configure.ac
|
||||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||||
$(ACLOCAL_M4)
|
$(ACLOCAL_M4)
|
||||||
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
|
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
|
||||||
@@ -45,11 +68,11 @@ mkinstalldirs = $(install_sh) -d
|
|||||||
CONFIG_HEADER = config.h
|
CONFIG_HEADER = config.h
|
||||||
CONFIG_CLEAN_FILES =
|
CONFIG_CLEAN_FILES =
|
||||||
CONFIG_CLEAN_VPATH_FILES =
|
CONFIG_CLEAN_VPATH_FILES =
|
||||||
AM_V_GEN = $(am__v_GEN_$(V))
|
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
||||||
am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
|
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
||||||
am__v_GEN_0 = @echo " GEN " $@;
|
am__v_GEN_0 = @echo " GEN " $@;
|
||||||
AM_V_at = $(am__v_at_$(V))
|
AM_V_at = $(am__v_at_@AM_V@)
|
||||||
am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
|
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
||||||
am__v_at_0 = @
|
am__v_at_0 = @
|
||||||
SOURCES =
|
SOURCES =
|
||||||
DIST_SOURCES =
|
DIST_SOURCES =
|
||||||
@@ -60,6 +83,11 @@ RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
|
|||||||
install-pdf-recursive install-ps-recursive install-recursive \
|
install-pdf-recursive install-ps-recursive install-recursive \
|
||||||
installcheck-recursive installdirs-recursive pdf-recursive \
|
installcheck-recursive installdirs-recursive pdf-recursive \
|
||||||
ps-recursive uninstall-recursive
|
ps-recursive uninstall-recursive
|
||||||
|
am__can_run_installinfo = \
|
||||||
|
case $$AM_UPDATE_INFO_DIR in \
|
||||||
|
n|no|NO) false;; \
|
||||||
|
*) (install-info --version) >/dev/null 2>&1;; \
|
||||||
|
esac
|
||||||
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
|
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
|
||||||
distclean-recursive maintainer-clean-recursive
|
distclean-recursive maintainer-clean-recursive
|
||||||
AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
|
AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
|
||||||
@@ -72,9 +100,11 @@ DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
|||||||
distdir = $(PACKAGE)-$(VERSION)
|
distdir = $(PACKAGE)-$(VERSION)
|
||||||
top_distdir = $(distdir)
|
top_distdir = $(distdir)
|
||||||
am__remove_distdir = \
|
am__remove_distdir = \
|
||||||
{ test ! -d "$(distdir)" \
|
if test -d "$(distdir)"; then \
|
||||||
|| { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
|
find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
|
||||||
&& rm -fr "$(distdir)"; }; }
|
&& rm -rf "$(distdir)" \
|
||||||
|
|| { sleep 5 && rm -rf "$(distdir)"; }; \
|
||||||
|
else :; fi
|
||||||
am__relativize = \
|
am__relativize = \
|
||||||
dir0=`pwd`; \
|
dir0=`pwd`; \
|
||||||
sed_first='s,^\([^/]*\)/.*$$,\1,'; \
|
sed_first='s,^\([^/]*\)/.*$$,\1,'; \
|
||||||
@@ -100,14 +130,17 @@ am__relativize = \
|
|||||||
dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
|
dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
|
||||||
done; \
|
done; \
|
||||||
reldir="$$dir2"
|
reldir="$$dir2"
|
||||||
DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2 \
|
|
||||||
$(distdir).tar.lzma
|
|
||||||
GZIP_ENV = --best
|
GZIP_ENV = --best
|
||||||
|
DIST_ARCHIVES = $(distdir).tar.xz
|
||||||
distuninstallcheck_listfiles = find . -type f -print
|
distuninstallcheck_listfiles = find . -type f -print
|
||||||
|
am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
|
||||||
|
| sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
|
||||||
distcleancheck_listfiles = find . -type f -print
|
distcleancheck_listfiles = find . -type f -print
|
||||||
ACLOCAL = @ACLOCAL@
|
ACLOCAL = @ACLOCAL@
|
||||||
AMTAR = @AMTAR@
|
AMTAR = @AMTAR@
|
||||||
|
AM_CFLAGS = @AM_CFLAGS@
|
||||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||||
|
AR = @AR@
|
||||||
AUTOCONF = @AUTOCONF@
|
AUTOCONF = @AUTOCONF@
|
||||||
AUTOHEADER = @AUTOHEADER@
|
AUTOHEADER = @AUTOHEADER@
|
||||||
AUTOMAKE = @AUTOMAKE@
|
AUTOMAKE = @AUTOMAKE@
|
||||||
@@ -120,24 +153,38 @@ CPPFLAGS = @CPPFLAGS@
|
|||||||
CYGPATH_W = @CYGPATH_W@
|
CYGPATH_W = @CYGPATH_W@
|
||||||
DEFS = @DEFS@
|
DEFS = @DEFS@
|
||||||
DEPDIR = @DEPDIR@
|
DEPDIR = @DEPDIR@
|
||||||
|
DLLTOOL = @DLLTOOL@
|
||||||
|
DSYMUTIL = @DSYMUTIL@
|
||||||
|
DUMPBIN = @DUMPBIN@
|
||||||
ECHO_C = @ECHO_C@
|
ECHO_C = @ECHO_C@
|
||||||
ECHO_N = @ECHO_N@
|
ECHO_N = @ECHO_N@
|
||||||
ECHO_T = @ECHO_T@
|
ECHO_T = @ECHO_T@
|
||||||
EGREP = @EGREP@
|
EGREP = @EGREP@
|
||||||
EXEEXT = @EXEEXT@
|
EXEEXT = @EXEEXT@
|
||||||
|
FGREP = @FGREP@
|
||||||
GREP = @GREP@
|
GREP = @GREP@
|
||||||
INSTALL = @INSTALL@
|
INSTALL = @INSTALL@
|
||||||
INSTALL_DATA = @INSTALL_DATA@
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||||
|
LD = @LD@
|
||||||
LDFLAGS = @LDFLAGS@
|
LDFLAGS = @LDFLAGS@
|
||||||
LIBOBJS = @LIBOBJS@
|
LIBOBJS = @LIBOBJS@
|
||||||
LIBS = @LIBS@
|
LIBS = @LIBS@
|
||||||
|
LIBTOOL = @LIBTOOL@
|
||||||
|
LIPO = @LIPO@
|
||||||
|
LN_S = @LN_S@
|
||||||
LTLIBOBJS = @LTLIBOBJS@
|
LTLIBOBJS = @LTLIBOBJS@
|
||||||
MAKEINFO = @MAKEINFO@
|
MAKEINFO = @MAKEINFO@
|
||||||
|
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||||
MKDIR_P = @MKDIR_P@
|
MKDIR_P = @MKDIR_P@
|
||||||
|
NM = @NM@
|
||||||
|
NMEDIT = @NMEDIT@
|
||||||
|
OBJDUMP = @OBJDUMP@
|
||||||
OBJEXT = @OBJEXT@
|
OBJEXT = @OBJEXT@
|
||||||
|
OTOOL = @OTOOL@
|
||||||
|
OTOOL64 = @OTOOL64@
|
||||||
PACKAGE = @PACKAGE@
|
PACKAGE = @PACKAGE@
|
||||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||||
PACKAGE_NAME = @PACKAGE_NAME@
|
PACKAGE_NAME = @PACKAGE_NAME@
|
||||||
@@ -147,6 +194,7 @@ PACKAGE_URL = @PACKAGE_URL@
|
|||||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||||
RANLIB = @RANLIB@
|
RANLIB = @RANLIB@
|
||||||
|
SED = @SED@
|
||||||
SET_MAKE = @SET_MAKE@
|
SET_MAKE = @SET_MAKE@
|
||||||
SHELL = @SHELL@
|
SHELL = @SHELL@
|
||||||
STRIP = @STRIP@
|
STRIP = @STRIP@
|
||||||
@@ -155,21 +203,31 @@ abs_builddir = @abs_builddir@
|
|||||||
abs_srcdir = @abs_srcdir@
|
abs_srcdir = @abs_srcdir@
|
||||||
abs_top_builddir = @abs_top_builddir@
|
abs_top_builddir = @abs_top_builddir@
|
||||||
abs_top_srcdir = @abs_top_srcdir@
|
abs_top_srcdir = @abs_top_srcdir@
|
||||||
|
ac_ct_AR = @ac_ct_AR@
|
||||||
ac_ct_CC = @ac_ct_CC@
|
ac_ct_CC = @ac_ct_CC@
|
||||||
|
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||||
am__include = @am__include@
|
am__include = @am__include@
|
||||||
am__leading_dot = @am__leading_dot@
|
am__leading_dot = @am__leading_dot@
|
||||||
am__quote = @am__quote@
|
am__quote = @am__quote@
|
||||||
am__tar = @am__tar@
|
am__tar = @am__tar@
|
||||||
am__untar = @am__untar@
|
am__untar = @am__untar@
|
||||||
bindir = @bindir@
|
bindir = @bindir@
|
||||||
|
build = @build@
|
||||||
build_alias = @build_alias@
|
build_alias = @build_alias@
|
||||||
|
build_cpu = @build_cpu@
|
||||||
|
build_os = @build_os@
|
||||||
|
build_vendor = @build_vendor@
|
||||||
builddir = @builddir@
|
builddir = @builddir@
|
||||||
datadir = @datadir@
|
datadir = @datadir@
|
||||||
datarootdir = @datarootdir@
|
datarootdir = @datarootdir@
|
||||||
docdir = @docdir@
|
docdir = @docdir@
|
||||||
dvidir = @dvidir@
|
dvidir = @dvidir@
|
||||||
exec_prefix = @exec_prefix@
|
exec_prefix = @exec_prefix@
|
||||||
|
host = @host@
|
||||||
host_alias = @host_alias@
|
host_alias = @host_alias@
|
||||||
|
host_cpu = @host_cpu@
|
||||||
|
host_os = @host_os@
|
||||||
|
host_vendor = @host_vendor@
|
||||||
htmldir = @htmldir@
|
htmldir = @htmldir@
|
||||||
includedir = @includedir@
|
includedir = @includedir@
|
||||||
infodir = @infodir@
|
infodir = @infodir@
|
||||||
@@ -194,13 +252,14 @@ top_build_prefix = @top_build_prefix@
|
|||||||
top_builddir = @top_builddir@
|
top_builddir = @top_builddir@
|
||||||
top_srcdir = @top_srcdir@
|
top_srcdir = @top_srcdir@
|
||||||
AUTOMAKE_OPTIONS = foreign
|
AUTOMAKE_OPTIONS = foreign
|
||||||
|
ACLOCAL_AMFLAGS = -I m4
|
||||||
EXTRA_DIST = LICENSE
|
EXTRA_DIST = LICENSE
|
||||||
SUBDIRS = src include man examples
|
SUBDIRS = src include man examples
|
||||||
all: config.h
|
all: config.h
|
||||||
$(MAKE) $(AM_MAKEFLAGS) all-recursive
|
$(MAKE) $(AM_MAKEFLAGS) all-recursive
|
||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
am--refresh:
|
am--refresh: Makefile
|
||||||
@:
|
@:
|
||||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||||
@for dep in $?; do \
|
@for dep in $?; do \
|
||||||
@@ -236,10 +295,8 @@ $(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
|||||||
$(am__aclocal_m4_deps):
|
$(am__aclocal_m4_deps):
|
||||||
|
|
||||||
config.h: stamp-h1
|
config.h: stamp-h1
|
||||||
@if test ! -f $@; then \
|
@if test ! -f $@; then rm -f stamp-h1; else :; fi
|
||||||
rm -f stamp-h1; \
|
@if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi
|
||||||
$(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
|
|
||||||
else :; fi
|
|
||||||
|
|
||||||
stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
|
stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
|
||||||
@rm -f stamp-h1
|
@rm -f stamp-h1
|
||||||
@@ -252,6 +309,15 @@ $(srcdir)/config.h.in: $(am__configure_deps)
|
|||||||
distclean-hdr:
|
distclean-hdr:
|
||||||
-rm -f config.h stamp-h1
|
-rm -f config.h stamp-h1
|
||||||
|
|
||||||
|
mostlyclean-libtool:
|
||||||
|
-rm -f *.lo
|
||||||
|
|
||||||
|
clean-libtool:
|
||||||
|
-rm -rf .libs _libs
|
||||||
|
|
||||||
|
distclean-libtool:
|
||||||
|
-rm -f libtool config.lt
|
||||||
|
|
||||||
# This directory's subdirectories are mostly independent; you can cd
|
# This directory's subdirectories are mostly independent; you can cd
|
||||||
# into them and run `make' without going through this Makefile.
|
# into them and run `make' without going through this Makefile.
|
||||||
# To change the values of `make' variables: instead of editing Makefiles,
|
# To change the values of `make' variables: instead of editing Makefiles,
|
||||||
@@ -259,7 +325,7 @@ distclean-hdr:
|
|||||||
# (which will cause the Makefiles to be regenerated when you run `make');
|
# (which will cause the Makefiles to be regenerated when you run `make');
|
||||||
# (2) otherwise, pass the desired values on the `make' command line.
|
# (2) otherwise, pass the desired values on the `make' command line.
|
||||||
$(RECURSIVE_TARGETS):
|
$(RECURSIVE_TARGETS):
|
||||||
@failcom='exit 1'; \
|
@fail= failcom='exit 1'; \
|
||||||
for f in x $$MAKEFLAGS; do \
|
for f in x $$MAKEFLAGS; do \
|
||||||
case $$f in \
|
case $$f in \
|
||||||
*=* | --[!k]*);; \
|
*=* | --[!k]*);; \
|
||||||
@@ -284,7 +350,7 @@ $(RECURSIVE_TARGETS):
|
|||||||
fi; test -z "$$fail"
|
fi; test -z "$$fail"
|
||||||
|
|
||||||
$(RECURSIVE_CLEAN_TARGETS):
|
$(RECURSIVE_CLEAN_TARGETS):
|
||||||
@failcom='exit 1'; \
|
@fail= failcom='exit 1'; \
|
||||||
for f in x $$MAKEFLAGS; do \
|
for f in x $$MAKEFLAGS; do \
|
||||||
case $$f in \
|
case $$f in \
|
||||||
*=* | --[!k]*);; \
|
*=* | --[!k]*);; \
|
||||||
@@ -421,13 +487,10 @@ distdir: $(DISTFILES)
|
|||||||
done
|
done
|
||||||
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
|
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
|
||||||
if test "$$subdir" = .; then :; else \
|
if test "$$subdir" = .; then :; else \
|
||||||
test -d "$(distdir)/$$subdir" \
|
$(am__make_dryrun) \
|
||||||
|| $(MKDIR_P) "$(distdir)/$$subdir" \
|
|| test -d "$(distdir)/$$subdir" \
|
||||||
|| exit 1; \
|
|| $(MKDIR_P) "$(distdir)/$$subdir" \
|
||||||
fi; \
|
|| exit 1; \
|
||||||
done
|
|
||||||
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
|
|
||||||
if test "$$subdir" = .; then :; else \
|
|
||||||
dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
|
dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
|
||||||
$(am__relativize); \
|
$(am__relativize); \
|
||||||
new_distdir=$$reldir; \
|
new_distdir=$$reldir; \
|
||||||
@@ -448,7 +511,8 @@ distdir: $(DISTFILES)
|
|||||||
fi; \
|
fi; \
|
||||||
done
|
done
|
||||||
-test -n "$(am__skip_mode_fix)" \
|
-test -n "$(am__skip_mode_fix)" \
|
||||||
|| find "$(distdir)" -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
|
|| find "$(distdir)" -type d ! -perm -755 \
|
||||||
|
-exec chmod u+rwx,go+rx {} \; -o \
|
||||||
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
|
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
|
||||||
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
|
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
|
||||||
! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
|
! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
|
||||||
@@ -456,15 +520,20 @@ distdir: $(DISTFILES)
|
|||||||
dist-gzip: distdir
|
dist-gzip: distdir
|
||||||
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
||||||
$(am__remove_distdir)
|
$(am__remove_distdir)
|
||||||
|
|
||||||
dist-bzip2: distdir
|
dist-bzip2: distdir
|
||||||
tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
|
tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
|
||||||
$(am__remove_distdir)
|
$(am__remove_distdir)
|
||||||
|
|
||||||
|
dist-lzip: distdir
|
||||||
|
tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
|
||||||
|
$(am__remove_distdir)
|
||||||
|
|
||||||
dist-lzma: distdir
|
dist-lzma: distdir
|
||||||
tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
|
tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
|
||||||
$(am__remove_distdir)
|
$(am__remove_distdir)
|
||||||
|
|
||||||
dist-xz: distdir
|
dist-xz: distdir
|
||||||
tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
|
tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
|
||||||
$(am__remove_distdir)
|
$(am__remove_distdir)
|
||||||
|
|
||||||
dist-tarZ: distdir
|
dist-tarZ: distdir
|
||||||
@@ -481,9 +550,7 @@ dist-zip: distdir
|
|||||||
$(am__remove_distdir)
|
$(am__remove_distdir)
|
||||||
|
|
||||||
dist dist-all: distdir
|
dist dist-all: distdir
|
||||||
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
|
||||||
tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
|
|
||||||
tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
|
|
||||||
$(am__remove_distdir)
|
$(am__remove_distdir)
|
||||||
|
|
||||||
# This target untars the dist file and tries a VPATH configuration. Then
|
# This target untars the dist file and tries a VPATH configuration. Then
|
||||||
@@ -492,21 +559,23 @@ dist dist-all: distdir
|
|||||||
distcheck: dist
|
distcheck: dist
|
||||||
case '$(DIST_ARCHIVES)' in \
|
case '$(DIST_ARCHIVES)' in \
|
||||||
*.tar.gz*) \
|
*.tar.gz*) \
|
||||||
GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
|
GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
|
||||||
*.tar.bz2*) \
|
*.tar.bz2*) \
|
||||||
bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
|
bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
|
||||||
*.tar.lzma*) \
|
*.tar.lzma*) \
|
||||||
unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
|
lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
|
||||||
|
*.tar.lz*) \
|
||||||
|
lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
|
||||||
*.tar.xz*) \
|
*.tar.xz*) \
|
||||||
xz -dc $(distdir).tar.xz | $(am__untar) ;;\
|
xz -dc $(distdir).tar.xz | $(am__untar) ;;\
|
||||||
*.tar.Z*) \
|
*.tar.Z*) \
|
||||||
uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
|
uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
|
||||||
*.shar.gz*) \
|
*.shar.gz*) \
|
||||||
GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
|
GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
|
||||||
*.zip*) \
|
*.zip*) \
|
||||||
unzip $(distdir).zip ;;\
|
unzip $(distdir).zip ;;\
|
||||||
esac
|
esac
|
||||||
chmod -R a-w $(distdir); chmod a+w $(distdir)
|
chmod -R a-w $(distdir); chmod u+w $(distdir)
|
||||||
mkdir $(distdir)/_build
|
mkdir $(distdir)/_build
|
||||||
mkdir $(distdir)/_inst
|
mkdir $(distdir)/_inst
|
||||||
chmod a-w $(distdir)
|
chmod a-w $(distdir)
|
||||||
@@ -516,6 +585,7 @@ distcheck: dist
|
|||||||
&& am__cwd=`pwd` \
|
&& am__cwd=`pwd` \
|
||||||
&& $(am__cd) $(distdir)/_build \
|
&& $(am__cd) $(distdir)/_build \
|
||||||
&& ../configure --srcdir=.. --prefix="$$dc_install_base" \
|
&& ../configure --srcdir=.. --prefix="$$dc_install_base" \
|
||||||
|
$(AM_DISTCHECK_CONFIGURE_FLAGS) \
|
||||||
$(DISTCHECK_CONFIGURE_FLAGS) \
|
$(DISTCHECK_CONFIGURE_FLAGS) \
|
||||||
&& $(MAKE) $(AM_MAKEFLAGS) \
|
&& $(MAKE) $(AM_MAKEFLAGS) \
|
||||||
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
|
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
|
||||||
@@ -544,8 +614,16 @@ distcheck: dist
|
|||||||
list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
|
list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
|
||||||
sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
|
sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
|
||||||
distuninstallcheck:
|
distuninstallcheck:
|
||||||
@$(am__cd) '$(distuninstallcheck_dir)' \
|
@test -n '$(distuninstallcheck_dir)' || { \
|
||||||
&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
|
echo 'ERROR: trying to run $@ with an empty' \
|
||||||
|
'$$(distuninstallcheck_dir)' >&2; \
|
||||||
|
exit 1; \
|
||||||
|
}; \
|
||||||
|
$(am__cd) '$(distuninstallcheck_dir)' || { \
|
||||||
|
echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
|
||||||
|
exit 1; \
|
||||||
|
}; \
|
||||||
|
test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
|
||||||
|| { echo "ERROR: files left after uninstall:" ; \
|
|| { echo "ERROR: files left after uninstall:" ; \
|
||||||
if test -n "$(DESTDIR)"; then \
|
if test -n "$(DESTDIR)"; then \
|
||||||
echo " (check DESTDIR support)"; \
|
echo " (check DESTDIR support)"; \
|
||||||
@@ -576,10 +654,15 @@ install-am: all-am
|
|||||||
|
|
||||||
installcheck: installcheck-recursive
|
installcheck: installcheck-recursive
|
||||||
install-strip:
|
install-strip:
|
||||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
if test -z '$(STRIP)'; then \
|
||||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||||
`test -z '$(STRIP)' || \
|
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
install; \
|
||||||
|
else \
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||||
|
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||||
|
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||||
|
fi
|
||||||
mostlyclean-generic:
|
mostlyclean-generic:
|
||||||
|
|
||||||
clean-generic:
|
clean-generic:
|
||||||
@@ -593,12 +676,13 @@ maintainer-clean-generic:
|
|||||||
@echo "it deletes files that may require special tools to rebuild."
|
@echo "it deletes files that may require special tools to rebuild."
|
||||||
clean: clean-recursive
|
clean: clean-recursive
|
||||||
|
|
||||||
clean-am: clean-generic mostlyclean-am
|
clean-am: clean-generic clean-libtool mostlyclean-am
|
||||||
|
|
||||||
distclean: distclean-recursive
|
distclean: distclean-recursive
|
||||||
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||||
-rm -f Makefile
|
-rm -f Makefile
|
||||||
distclean-am: clean-am distclean-generic distclean-hdr distclean-tags
|
distclean-am: clean-am distclean-generic distclean-hdr \
|
||||||
|
distclean-libtool distclean-tags
|
||||||
|
|
||||||
dvi: dvi-recursive
|
dvi: dvi-recursive
|
||||||
|
|
||||||
@@ -648,7 +732,7 @@ maintainer-clean-am: distclean-am maintainer-clean-generic
|
|||||||
|
|
||||||
mostlyclean: mostlyclean-recursive
|
mostlyclean: mostlyclean-recursive
|
||||||
|
|
||||||
mostlyclean-am: mostlyclean-generic
|
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||||
|
|
||||||
pdf: pdf-recursive
|
pdf: pdf-recursive
|
||||||
|
|
||||||
@@ -665,18 +749,19 @@ uninstall-am:
|
|||||||
|
|
||||||
.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
|
.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
|
||||||
all all-am am--refresh check check-am clean clean-generic \
|
all all-am am--refresh check check-am clean clean-generic \
|
||||||
ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
|
clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
|
||||||
dist-lzma dist-shar dist-tarZ dist-xz dist-zip distcheck \
|
dist-gzip dist-lzip dist-lzma dist-shar dist-tarZ dist-xz \
|
||||||
distclean distclean-generic distclean-hdr distclean-tags \
|
dist-zip distcheck distclean distclean-generic distclean-hdr \
|
||||||
distcleancheck distdir distuninstallcheck dvi dvi-am html \
|
distclean-libtool distclean-tags distcleancheck distdir \
|
||||||
html-am info info-am install install-am install-data \
|
distuninstallcheck dvi dvi-am html html-am info info-am \
|
||||||
install-data-am install-dvi install-dvi-am install-exec \
|
install install-am install-data install-data-am install-dvi \
|
||||||
install-exec-am install-html install-html-am install-info \
|
install-dvi-am install-exec install-exec-am install-html \
|
||||||
install-info-am install-man install-pdf install-pdf-am \
|
install-html-am install-info install-info-am install-man \
|
||||||
install-ps install-ps-am install-strip installcheck \
|
install-pdf install-pdf-am install-ps install-ps-am \
|
||||||
installcheck-am installdirs installdirs-am maintainer-clean \
|
install-strip installcheck installcheck-am installdirs \
|
||||||
maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
|
installdirs-am maintainer-clean maintainer-clean-generic \
|
||||||
pdf-am ps ps-am tags tags-recursive uninstall uninstall-am
|
mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
|
||||||
|
ps ps-am tags tags-recursive uninstall uninstall-am
|
||||||
|
|
||||||
|
|
||||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||||
|
14
NEWS
14
NEWS
@@ -1,14 +0,0 @@
|
|||||||
Notable Changes
|
|
||||||
|
|
||||||
* v1.13.0 - Adaptations to Debian editline package
|
|
||||||
** Major version number bump, adapt to Jum Studt's v1.12
|
|
||||||
** Import debian/ directory and adapt it to configure et al.
|
|
||||||
** Change library name to libeditline to distinguish it from BSD libedit.
|
|
||||||
|
|
||||||
* v0.3.0
|
|
||||||
** Support for ANSI arrow keys using --enable-arrow-keys
|
|
||||||
|
|
||||||
* v0.2.x
|
|
||||||
** Patches from Debian package merged.
|
|
||||||
** Support for custom command completion.
|
|
||||||
|
|
50
NEWS.md
Normal file
50
NEWS.md
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
ChangeLog
|
||||||
|
=========
|
||||||
|
Notable Changes
|
||||||
|
|
||||||
|
* v1.14.2 - Bug fixes only
|
||||||
|
- Fix `el_no_echo` bug causing secrets to leak when disabling no-echo
|
||||||
|
- Handle `EINTR` in syscalls better
|
||||||
|
|
||||||
|
* v1.14.1 - Minor fixes and additions
|
||||||
|
- Don't print status message on `stderr` in key binding funcions
|
||||||
|
- Export `el_del_char()`
|
||||||
|
- Check for and return pending signals when detected
|
||||||
|
- Allow custom key bindings ...
|
||||||
|
- Bug fixes ...
|
||||||
|
|
||||||
|
* v1.14.0 - Major cleanups and further merges with Debian editline package
|
||||||
|
- Merge in changes to `debian/` from editline_1.12-6.debian.tar.gz
|
||||||
|
- Migrate to use libtool
|
||||||
|
- Cleanups and fixes thanks to the Sparse static code analysis tool
|
||||||
|
- Make `UNIQUE_HISTORY` configurable
|
||||||
|
- Make scrollback history (`HIST_SIZE`) configurable
|
||||||
|
- Configure options for toggling terminal bell and `SIGSTOP` (Ctrl-Z)
|
||||||
|
- Configure option for using termcap to read/control terminal size
|
||||||
|
- Merge `el_no_echo` patch from Festival speech-tools
|
||||||
|
- Rename Signal to `el_intr_pending`, from Festival speech-tools
|
||||||
|
- Merge support for capitalizing words (`M-c`) from Festival
|
||||||
|
speech-tools by Alan W Black <awb()cstr!ed!ac!uk>
|
||||||
|
- Merge fixes from Heimdal project
|
||||||
|
- Completely refactor `rl_complete()` and `rl_list_possib()` with
|
||||||
|
fixes from the Heimdal project. Use `rl_set_complete_func()` and
|
||||||
|
`rl_set_list_possib_func()`. Default completion callbacks are now
|
||||||
|
available as a configure option `--enable-default-complete`
|
||||||
|
- Memory leak fixes
|
||||||
|
- Fallback backspace handling, in case `tgetstr("le")` fails
|
||||||
|
- Actually fix 8-bit handling by reverting old Debian patch
|
||||||
|
- Merge patch to improve compatibility with GNU readline, thanks to
|
||||||
|
Steve Tell from way back in 1997 and 1998
|
||||||
|
|
||||||
|
* v1.13.0 - Adaptations to Debian editline package
|
||||||
|
- Major version number bump, adapt to Jum Studt's v1.12
|
||||||
|
- Import `debian/` directory and adapt it to configure et al.
|
||||||
|
- Change library name to libeditline to distinguish it from BSD libedit
|
||||||
|
|
||||||
|
* v0.3.0
|
||||||
|
- Support for ANSI arrow keys using `--enable-arrow-keys`
|
||||||
|
|
||||||
|
* v0.2.x
|
||||||
|
- Patches from Debian package merged
|
||||||
|
- Support for custom command completion
|
||||||
|
|
37
README
37
README
@@ -1,37 +0,0 @@
|
|||||||
README -*-text-*-
|
|
||||||
|
|
||||||
This is a line editing library. It can be linked into almost any program to provide
|
|
||||||
command-line editing and history.
|
|
||||||
|
|
||||||
It is call-compatible with the FSF readline library, but it is a fraction of the size
|
|
||||||
(and offers fewer features). It does not use standard I/O. It is distributed under
|
|
||||||
a "C News-like" copyright, see the file LICENSE for details.
|
|
||||||
|
|
||||||
Configuration is made by supplying different options to the GNU configure script. In
|
|
||||||
the examples/ directory you can find a couple of small & slow shell implementations
|
|
||||||
used for testing.
|
|
||||||
|
|
||||||
Before finding out about the Debian version I was on the lookout for a really small
|
|
||||||
replacement for the GNU readline package. Not only was it large and GPL:ed (instead
|
|
||||||
of LGPL:ed), it also depends on libncurses, so the resulting size was a bit too much
|
|
||||||
for my embedded system. I eventually stubmled upon the BSD libedit library, which
|
|
||||||
was sufficient for a while, even though it too depends on libncurses. I searched my
|
|
||||||
soul and went back to where I, back in 1996, started out -- Minix. And there it was,
|
|
||||||
a really small readline replacement!
|
|
||||||
|
|
||||||
In 2000 Jim Studt packaged libeditline for Debian[1], the exact origin of the Debian
|
|
||||||
code base is unclear, see the Sid package[2] for details. There were some notable
|
|
||||||
differences between that version and the upstream Minix sources, all of which have
|
|
||||||
now been merged here.
|
|
||||||
|
|
||||||
An explanation of the version numbering may be in order. I didn't know about the
|
|
||||||
Debian version for quite some time, so I kept a different name for the package and a
|
|
||||||
different versioning scheme. In June 2009, I decided to line up alongside Debian,
|
|
||||||
with the intent of merging the efforts. Sorry for any confusion this might cause.
|
|
||||||
|
|
||||||
Enjoy,
|
|
||||||
Joachim Nilsson <troglobit()vmlinux!org>
|
|
||||||
|
|
||||||
[1] - http://lists.debian.org/debian-devel/2000/05/msg00548.html
|
|
||||||
[2] - http://packages.debian.org/sid/libeditline0
|
|
||||||
|
|
37
README.md
Normal file
37
README.md
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
editline
|
||||||
|
========
|
||||||
|
|
||||||
|
This is a line editing library. It can be linked into almost any program to
|
||||||
|
provide command-line editing and history. It is call-compatible with the FSF
|
||||||
|
readline library, but is a fraction of the size (and offers fewer features).
|
||||||
|
|
||||||
|
The editline library was created by Simmule Turner and Rich Salz back in 1992.
|
||||||
|
At the time they chose to distribute the code under a "C News-like" copyright,
|
||||||
|
see the file LICENSE for details.
|
||||||
|
|
||||||
|
The small size (<30k), lack of dependencies (no ncurses needed!) and the free
|
||||||
|
license should make this library interesting to many embedded developers.
|
||||||
|
|
||||||
|
Configuration is made by supplying different options to the GNU configure
|
||||||
|
script. In the `examples/` directory you can find some small code snippets used
|
||||||
|
for testing.
|
||||||
|
|
||||||
|
This version of the editline library is a fork off the Minix3 sources. Other
|
||||||
|
know versions, often based off of the original comp.sources.unix posting are:
|
||||||
|
|
||||||
|
* Debian [libeditline](http://packages.qa.debian.org/e/editline.html)
|
||||||
|
* [Heimdal](http://www.h5l.org)
|
||||||
|
* [Festival speech-tools](http://festvox.org/festival/)
|
||||||
|
* Steve Tell's [editline patches](http://www.cs.unc.edu/~tell/dist.html)
|
||||||
|
|
||||||
|
The most intersting patches and bug fixes from each fork have been merged here.
|
||||||
|
Outstanding issues are listed in the TODO file.
|
||||||
|
|
||||||
|
An explanation of the version numbering may be in order. I didn't know about
|
||||||
|
the Debian version for quite some time, so I kept a different name for the
|
||||||
|
package and a different versioning scheme. In June 2009, I decided to line up
|
||||||
|
alongside Debian, with the intent of merging the efforts.
|
||||||
|
|
||||||
|
----
|
||||||
|
Joachim Nilsson <[troglobit()gmail!com](mailto:troglobit@gmail!com)>
|
||||||
|
|
37
TODO
37
TODO
@@ -1,6 +1,35 @@
|
|||||||
TODO
|
TODO -*-org-*-
|
||||||
|
|
||||||
* Add --enable-FEATURE for remaining features defined in Makefile-minix.in
|
Issues in need of work. Mostly compatibility with GNU readline, BSD libedit,
|
||||||
* Add support for rl_bind_key(), currently one needs to "hack" the Map[]
|
http://www.thrysoee.dk/editline/, and usability improvements.
|
||||||
* Add support for inhibiting completion: rl_inhibit_completion
|
|
||||||
|
Remember, the general idea is to keep Minix editline small.
|
||||||
|
|
||||||
|
* Verify for 1.14.0 that custom completion handlers still work
|
||||||
|
After reverting "fix" in 0.2.2 that made rl_complete() a function pointer we need to
|
||||||
|
make sure the same functionality is still available with the new infrastructure.
|
||||||
|
(Which is more inspired by BSD libedit and GNU readline.
|
||||||
|
|
||||||
|
* Investigate GNU readline dependencies needed for "fileman" example
|
||||||
|
The BSD libedit library has imported the GNU readline "fileman" example into its
|
||||||
|
tree to demonstrate the abilities of that library. This would also be quite useful
|
||||||
|
for Minix editline.
|
||||||
|
|
||||||
|
The first task is to investigate the depependencies and form TODO list items
|
||||||
|
detailing what is missing and, if possible, proposals how to implement including any
|
||||||
|
optional configure flags.
|
||||||
|
|
||||||
|
* Instead of supporting multiline input, try the Emacs approach, line scrolling.
|
||||||
|
|
||||||
|
* Add support for rl_bind_key(), currently only en editline specific el_bind_key() exists.
|
||||||
|
|
||||||
|
* Make "char *rl_prompt" globally visible.
|
||||||
|
|
||||||
|
* Add support for rl_set_prompt().
|
||||||
|
|
||||||
|
* Add support for --enable-utf8 to configure
|
||||||
|
|
||||||
|
* Use strcmp(nl_langinfo(CODESET), "UTF-8") to look for utf8 capable terminal.
|
||||||
|
|
||||||
|
* Implement simple UTF-8 parser according to http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
|
||||||
|
|
||||||
|
111
aclocal.m4
vendored
111
aclocal.m4
vendored
@@ -1,7 +1,8 @@
|
|||||||
# generated automatically by aclocal 1.11 -*- Autoconf -*-
|
# generated automatically by aclocal 1.11.6 -*- Autoconf -*-
|
||||||
|
|
||||||
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
|
||||||
# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
|
# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
|
||||||
|
# Inc.
|
||||||
# This file is free software; the Free Software Foundation
|
# This file is free software; the Free Software Foundation
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
# with or without modifications, as long as this notice is preserved.
|
# with or without modifications, as long as this notice is preserved.
|
||||||
@@ -13,18 +14,21 @@
|
|||||||
|
|
||||||
m4_ifndef([AC_AUTOCONF_VERSION],
|
m4_ifndef([AC_AUTOCONF_VERSION],
|
||||||
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
||||||
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.64],,
|
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
|
||||||
[m4_warning([this file was generated for autoconf 2.64.
|
[m4_warning([this file was generated for autoconf 2.69.
|
||||||
You have another version of autoconf. It may work, but is not guaranteed to.
|
You have another version of autoconf. It may work, but is not guaranteed to.
|
||||||
If you have problems, you may need to regenerate the build system entirely.
|
If you have problems, you may need to regenerate the build system entirely.
|
||||||
To do so, use the procedure documented by the package, typically `autoreconf'.])])
|
To do so, use the procedure documented by the package, typically `autoreconf'.])])
|
||||||
|
|
||||||
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
|
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
|
||||||
|
# Foundation, Inc.
|
||||||
#
|
#
|
||||||
# This file is free software; the Free Software Foundation
|
# This file is free software; the Free Software Foundation
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
# with or without modifications, as long as this notice is preserved.
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# serial 1
|
||||||
|
|
||||||
# AM_AUTOMAKE_VERSION(VERSION)
|
# AM_AUTOMAKE_VERSION(VERSION)
|
||||||
# ----------------------------
|
# ----------------------------
|
||||||
# Automake X.Y traces this macro to ensure aclocal.m4 has been
|
# Automake X.Y traces this macro to ensure aclocal.m4 has been
|
||||||
@@ -34,7 +38,7 @@ AC_DEFUN([AM_AUTOMAKE_VERSION],
|
|||||||
[am__api_version='1.11'
|
[am__api_version='1.11'
|
||||||
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
|
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
|
||||||
dnl require some minimum version. Point them to the right macro.
|
dnl require some minimum version. Point them to the right macro.
|
||||||
m4_if([$1], [1.11], [],
|
m4_if([$1], [1.11.6], [],
|
||||||
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
|
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
|
||||||
])
|
])
|
||||||
|
|
||||||
@@ -50,19 +54,21 @@ m4_define([_AM_AUTOCONF_VERSION], [])
|
|||||||
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
|
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
|
||||||
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
|
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
|
||||||
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
|
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
|
||||||
[AM_AUTOMAKE_VERSION([1.11])dnl
|
[AM_AUTOMAKE_VERSION([1.11.6])dnl
|
||||||
m4_ifndef([AC_AUTOCONF_VERSION],
|
m4_ifndef([AC_AUTOCONF_VERSION],
|
||||||
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
||||||
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
|
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
|
||||||
|
|
||||||
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
|
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
|
||||||
|
|
||||||
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# This file is free software; the Free Software Foundation
|
# This file is free software; the Free Software Foundation
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
# with or without modifications, as long as this notice is preserved.
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# serial 1
|
||||||
|
|
||||||
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
|
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
|
||||||
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
|
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
|
||||||
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
|
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
|
||||||
@@ -144,14 +150,14 @@ AC_CONFIG_COMMANDS_PRE(
|
|||||||
Usually this means the macro was only invoked conditionally.]])
|
Usually this means the macro was only invoked conditionally.]])
|
||||||
fi])])
|
fi])])
|
||||||
|
|
||||||
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
|
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
|
||||||
# Free Software Foundation, Inc.
|
# 2010, 2011 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# This file is free software; the Free Software Foundation
|
# This file is free software; the Free Software Foundation
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
# with or without modifications, as long as this notice is preserved.
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
# serial 10
|
# serial 12
|
||||||
|
|
||||||
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
|
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
|
||||||
# written in clear, in which case automake, when reading aclocal.m4,
|
# written in clear, in which case automake, when reading aclocal.m4,
|
||||||
@@ -191,6 +197,7 @@ AC_CACHE_CHECK([dependency style of $depcc],
|
|||||||
# instance it was reported that on HP-UX the gcc test will end up
|
# instance it was reported that on HP-UX the gcc test will end up
|
||||||
# making a dummy file named `D' -- because `-MD' means `put the output
|
# making a dummy file named `D' -- because `-MD' means `put the output
|
||||||
# in D'.
|
# in D'.
|
||||||
|
rm -rf conftest.dir
|
||||||
mkdir conftest.dir
|
mkdir conftest.dir
|
||||||
# Copy depcomp to subdir because otherwise we won't find it if we're
|
# Copy depcomp to subdir because otherwise we won't find it if we're
|
||||||
# using a relative directory.
|
# using a relative directory.
|
||||||
@@ -255,7 +262,7 @@ AC_CACHE_CHECK([dependency style of $depcc],
|
|||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
msvisualcpp | msvcmsys)
|
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
|
||||||
# This compiler won't grok `-c -o', but also, the minuso test has
|
# This compiler won't grok `-c -o', but also, the minuso test has
|
||||||
# not run yet. These depmodes are late enough in the game, and
|
# not run yet. These depmodes are late enough in the game, and
|
||||||
# so weak that their functioning should not be impacted.
|
# so weak that their functioning should not be impacted.
|
||||||
@@ -320,10 +327,13 @@ AC_DEFUN([AM_DEP_TRACK],
|
|||||||
if test "x$enable_dependency_tracking" != xno; then
|
if test "x$enable_dependency_tracking" != xno; then
|
||||||
am_depcomp="$ac_aux_dir/depcomp"
|
am_depcomp="$ac_aux_dir/depcomp"
|
||||||
AMDEPBACKSLASH='\'
|
AMDEPBACKSLASH='\'
|
||||||
|
am__nodep='_no'
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
|
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
|
||||||
AC_SUBST([AMDEPBACKSLASH])dnl
|
AC_SUBST([AMDEPBACKSLASH])dnl
|
||||||
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
|
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
|
||||||
|
AC_SUBST([am__nodep])dnl
|
||||||
|
_AM_SUBST_NOTMAKE([am__nodep])dnl
|
||||||
])
|
])
|
||||||
|
|
||||||
# Generate code to set up dependency tracking. -*- Autoconf -*-
|
# Generate code to set up dependency tracking. -*- Autoconf -*-
|
||||||
@@ -545,12 +555,15 @@ for _am_header in $config_headers :; do
|
|||||||
done
|
done
|
||||||
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
|
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
|
||||||
|
|
||||||
# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
|
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
|
||||||
|
# Inc.
|
||||||
#
|
#
|
||||||
# This file is free software; the Free Software Foundation
|
# This file is free software; the Free Software Foundation
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
# with or without modifications, as long as this notice is preserved.
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# serial 1
|
||||||
|
|
||||||
# AM_PROG_INSTALL_SH
|
# AM_PROG_INSTALL_SH
|
||||||
# ------------------
|
# ------------------
|
||||||
# Define $install_sh.
|
# Define $install_sh.
|
||||||
@@ -682,12 +695,15 @@ else
|
|||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
|
||||||
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
|
||||||
|
# Inc.
|
||||||
#
|
#
|
||||||
# This file is free software; the Free Software Foundation
|
# This file is free software; the Free Software Foundation
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
# with or without modifications, as long as this notice is preserved.
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# serial 1
|
||||||
|
|
||||||
# AM_PROG_MKDIR_P
|
# AM_PROG_MKDIR_P
|
||||||
# ---------------
|
# ---------------
|
||||||
# Check for `mkdir -p'.
|
# Check for `mkdir -p'.
|
||||||
@@ -710,13 +726,14 @@ esac
|
|||||||
|
|
||||||
# Helper functions for option handling. -*- Autoconf -*-
|
# Helper functions for option handling. -*- Autoconf -*-
|
||||||
|
|
||||||
# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
|
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
|
||||||
|
# Foundation, Inc.
|
||||||
#
|
#
|
||||||
# This file is free software; the Free Software Foundation
|
# This file is free software; the Free Software Foundation
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
# with or without modifications, as long as this notice is preserved.
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
# serial 4
|
# serial 5
|
||||||
|
|
||||||
# _AM_MANGLE_OPTION(NAME)
|
# _AM_MANGLE_OPTION(NAME)
|
||||||
# -----------------------
|
# -----------------------
|
||||||
@@ -724,13 +741,13 @@ AC_DEFUN([_AM_MANGLE_OPTION],
|
|||||||
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
|
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
|
||||||
|
|
||||||
# _AM_SET_OPTION(NAME)
|
# _AM_SET_OPTION(NAME)
|
||||||
# ------------------------------
|
# --------------------
|
||||||
# Set option NAME. Presently that only means defining a flag for this option.
|
# Set option NAME. Presently that only means defining a flag for this option.
|
||||||
AC_DEFUN([_AM_SET_OPTION],
|
AC_DEFUN([_AM_SET_OPTION],
|
||||||
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
|
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
|
||||||
|
|
||||||
# _AM_SET_OPTIONS(OPTIONS)
|
# _AM_SET_OPTIONS(OPTIONS)
|
||||||
# ----------------------------------
|
# ------------------------
|
||||||
# OPTIONS is a space-separated list of Automake options.
|
# OPTIONS is a space-separated list of Automake options.
|
||||||
AC_DEFUN([_AM_SET_OPTIONS],
|
AC_DEFUN([_AM_SET_OPTIONS],
|
||||||
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
|
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
|
||||||
@@ -806,13 +823,13 @@ Check your system clock])
|
|||||||
fi
|
fi
|
||||||
AC_MSG_RESULT(yes)])
|
AC_MSG_RESULT(yes)])
|
||||||
|
|
||||||
# Copyright (C) 2009 Free Software Foundation, Inc.
|
# Copyright (C) 2009, 2011 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# This file is free software; the Free Software Foundation
|
# This file is free software; the Free Software Foundation
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
# with or without modifications, as long as this notice is preserved.
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
# serial 1
|
# serial 2
|
||||||
|
|
||||||
# AM_SILENT_RULES([DEFAULT])
|
# AM_SILENT_RULES([DEFAULT])
|
||||||
# --------------------------
|
# --------------------------
|
||||||
@@ -827,18 +844,50 @@ yes) AM_DEFAULT_VERBOSITY=0;;
|
|||||||
no) AM_DEFAULT_VERBOSITY=1;;
|
no) AM_DEFAULT_VERBOSITY=1;;
|
||||||
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
|
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
|
||||||
esac
|
esac
|
||||||
|
dnl
|
||||||
|
dnl A few `make' implementations (e.g., NonStop OS and NextStep)
|
||||||
|
dnl do not support nested variable expansions.
|
||||||
|
dnl See automake bug#9928 and bug#10237.
|
||||||
|
am_make=${MAKE-make}
|
||||||
|
AC_CACHE_CHECK([whether $am_make supports nested variables],
|
||||||
|
[am_cv_make_support_nested_variables],
|
||||||
|
[if AS_ECHO([['TRUE=$(BAR$(V))
|
||||||
|
BAR0=false
|
||||||
|
BAR1=true
|
||||||
|
V=1
|
||||||
|
am__doit:
|
||||||
|
@$(TRUE)
|
||||||
|
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
|
||||||
|
am_cv_make_support_nested_variables=yes
|
||||||
|
else
|
||||||
|
am_cv_make_support_nested_variables=no
|
||||||
|
fi])
|
||||||
|
if test $am_cv_make_support_nested_variables = yes; then
|
||||||
|
dnl Using `$V' instead of `$(V)' breaks IRIX make.
|
||||||
|
AM_V='$(V)'
|
||||||
|
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
|
||||||
|
else
|
||||||
|
AM_V=$AM_DEFAULT_VERBOSITY
|
||||||
|
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
|
||||||
|
fi
|
||||||
|
AC_SUBST([AM_V])dnl
|
||||||
|
AM_SUBST_NOTMAKE([AM_V])dnl
|
||||||
|
AC_SUBST([AM_DEFAULT_V])dnl
|
||||||
|
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
|
||||||
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
|
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
|
||||||
AM_BACKSLASH='\'
|
AM_BACKSLASH='\'
|
||||||
AC_SUBST([AM_BACKSLASH])dnl
|
AC_SUBST([AM_BACKSLASH])dnl
|
||||||
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
|
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
|
||||||
])
|
])
|
||||||
|
|
||||||
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# This file is free software; the Free Software Foundation
|
# This file is free software; the Free Software Foundation
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
# with or without modifications, as long as this notice is preserved.
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# serial 1
|
||||||
|
|
||||||
# AM_PROG_INSTALL_STRIP
|
# AM_PROG_INSTALL_STRIP
|
||||||
# ---------------------
|
# ---------------------
|
||||||
# One issue with vendor `install' (even GNU) is that you can't
|
# One issue with vendor `install' (even GNU) is that you can't
|
||||||
@@ -861,13 +910,13 @@ fi
|
|||||||
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
||||||
AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
||||||
|
|
||||||
# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
|
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# This file is free software; the Free Software Foundation
|
# This file is free software; the Free Software Foundation
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
# with or without modifications, as long as this notice is preserved.
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
# serial 2
|
# serial 3
|
||||||
|
|
||||||
# _AM_SUBST_NOTMAKE(VARIABLE)
|
# _AM_SUBST_NOTMAKE(VARIABLE)
|
||||||
# ---------------------------
|
# ---------------------------
|
||||||
@@ -876,13 +925,13 @@ AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
|||||||
AC_DEFUN([_AM_SUBST_NOTMAKE])
|
AC_DEFUN([_AM_SUBST_NOTMAKE])
|
||||||
|
|
||||||
# AM_SUBST_NOTMAKE(VARIABLE)
|
# AM_SUBST_NOTMAKE(VARIABLE)
|
||||||
# ---------------------------
|
# --------------------------
|
||||||
# Public sister of _AM_SUBST_NOTMAKE.
|
# Public sister of _AM_SUBST_NOTMAKE.
|
||||||
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
|
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
|
||||||
|
|
||||||
# Check how to create a tarball. -*- Autoconf -*-
|
# Check how to create a tarball. -*- Autoconf -*-
|
||||||
|
|
||||||
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
|
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# This file is free software; the Free Software Foundation
|
# This file is free software; the Free Software Foundation
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
@@ -904,10 +953,11 @@ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
|
|||||||
# a tarball read from stdin.
|
# a tarball read from stdin.
|
||||||
# $(am__untar) < result.tar
|
# $(am__untar) < result.tar
|
||||||
AC_DEFUN([_AM_PROG_TAR],
|
AC_DEFUN([_AM_PROG_TAR],
|
||||||
[# Always define AMTAR for backward compatibility.
|
[# Always define AMTAR for backward compatibility. Yes, it's still used
|
||||||
AM_MISSING_PROG([AMTAR], [tar])
|
# in the wild :-( We should find a proper way to deprecate it ...
|
||||||
|
AC_SUBST([AMTAR], ['$${TAR-tar}'])
|
||||||
m4_if([$1], [v7],
|
m4_if([$1], [v7],
|
||||||
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
|
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
|
||||||
[m4_case([$1], [ustar],, [pax],,
|
[m4_case([$1], [ustar],, [pax],,
|
||||||
[m4_fatal([Unknown tar format])])
|
[m4_fatal([Unknown tar format])])
|
||||||
AC_MSG_CHECKING([how to create a $1 tar archive])
|
AC_MSG_CHECKING([how to create a $1 tar archive])
|
||||||
@@ -976,3 +1026,8 @@ AC_SUBST([am__tar])
|
|||||||
AC_SUBST([am__untar])
|
AC_SUBST([am__untar])
|
||||||
]) # _AM_PROG_TAR
|
]) # _AM_PROG_TAR
|
||||||
|
|
||||||
|
m4_include([m4/libtool.m4])
|
||||||
|
m4_include([m4/ltoptions.m4])
|
||||||
|
m4_include([m4/ltsugar.m4])
|
||||||
|
m4_include([m4/ltversion.m4])
|
||||||
|
m4_include([m4/lt~obsolete.m4])
|
||||||
|
1530
config.guess
vendored
Executable file
1530
config.guess
vendored
Executable file
File diff suppressed because it is too large
Load Diff
37
config.h.in
37
config.h.in
@@ -1,15 +1,36 @@
|
|||||||
/* config.h.in. Generated from configure.ac by autoheader. */
|
/* config.h.in. Generated from configure.ac by autoheader. */
|
||||||
|
|
||||||
/* Define to include ANSI arrow keys support in minix-editline */
|
|
||||||
#undef ANSI_ARROWS
|
|
||||||
|
|
||||||
/* Define to 1 if the `closedir' function returns void instead of `int'. */
|
/* Define to 1 if the `closedir' function returns void instead of `int'. */
|
||||||
#undef CLOSEDIR_VOID
|
#undef CLOSEDIR_VOID
|
||||||
|
|
||||||
|
/* Define to enable terminal bell on completion. */
|
||||||
|
#undef CONFIG_ANNOYING_NOISE
|
||||||
|
|
||||||
|
/* Define to include ANSI arrow keys support. */
|
||||||
|
#undef CONFIG_ANSI_ARROWS
|
||||||
|
|
||||||
|
/* Define to enable the default completion handler. */
|
||||||
|
#undef CONFIG_DEFAULT_COMPLETE
|
||||||
|
|
||||||
|
/* Define to enable SIGSTOP (Ctrl-Z) key. */
|
||||||
|
#undef CONFIG_SIGSTOP
|
||||||
|
|
||||||
|
/* Define to skip duplicate lines in the scrollback history. */
|
||||||
|
#undef CONFIG_UNIQUE_HISTORY
|
||||||
|
|
||||||
|
/* Define to use the termcap library for terminal size. */
|
||||||
|
#undef CONFIG_USE_TERMCAP
|
||||||
|
|
||||||
|
/* Define to 1 if `TIOCGWINSZ' requires <sys/ioctl.h>. */
|
||||||
|
#undef GWINSZ_IN_SYS_IOCTL
|
||||||
|
|
||||||
/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
|
/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
|
||||||
*/
|
*/
|
||||||
#undef HAVE_DIRENT_H
|
#undef HAVE_DIRENT_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||||
|
#undef HAVE_DLFCN_H
|
||||||
|
|
||||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||||
#undef HAVE_INTTYPES_H
|
#undef HAVE_INTTYPES_H
|
||||||
|
|
||||||
@@ -73,6 +94,9 @@
|
|||||||
/* Define to 1 if you have the `tcgetattr' function. */
|
/* Define to 1 if you have the `tcgetattr' function. */
|
||||||
#undef HAVE_TCGETATTR
|
#undef HAVE_TCGETATTR
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <termcap.h> header file. */
|
||||||
|
#undef HAVE_TERMCAP_H
|
||||||
|
|
||||||
/* Define to 1 if you have the <termios.h> header file. */
|
/* Define to 1 if you have the <termios.h> header file. */
|
||||||
#undef HAVE_TERMIOS_H
|
#undef HAVE_TERMIOS_H
|
||||||
|
|
||||||
@@ -82,13 +106,14 @@
|
|||||||
/* Define to 1 if you have the <unistd.h> header file. */
|
/* Define to 1 if you have the <unistd.h> header file. */
|
||||||
#undef HAVE_UNISTD_H
|
#undef HAVE_UNISTD_H
|
||||||
|
|
||||||
/* Enable static keyword, hides internal methods. */
|
|
||||||
#undef HIDE
|
|
||||||
|
|
||||||
/* Define to 1 if `lstat' dereferences a symlink specified with a trailing
|
/* Define to 1 if `lstat' dereferences a symlink specified with a trailing
|
||||||
slash. */
|
slash. */
|
||||||
#undef LSTAT_FOLLOWS_SLASHED_SYMLINK
|
#undef LSTAT_FOLLOWS_SLASHED_SYMLINK
|
||||||
|
|
||||||
|
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
||||||
|
*/
|
||||||
|
#undef LT_OBJDIR
|
||||||
|
|
||||||
/* Name of package */
|
/* Name of package */
|
||||||
#undef PACKAGE
|
#undef PACKAGE
|
||||||
|
|
||||||
|
1782
config.sub
vendored
Executable file
1782
config.sub
vendored
Executable file
File diff suppressed because it is too large
Load Diff
75
configure.ac
75
configure.ac
@@ -1,72 +1,83 @@
|
|||||||
# Minix libeditline -*- Autoconf -*-
|
# Minix libeditline -*- Autoconf -*-
|
||||||
|
#
|
||||||
|
# Copyright (c) 2008-2013 Joachim Nilsson <troglobit()gmail!com>
|
||||||
|
#
|
||||||
# Process this file with autoconf to produce a configure script.
|
# Process this file with autoconf to produce a configure script.
|
||||||
|
#
|
||||||
|
# This file is free software; as a special exception the author gives
|
||||||
|
# unlimited permission to copy and/or distribute it, with or without
|
||||||
|
# modifications, as long as this notice is preserved.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful, but
|
||||||
|
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
|
||||||
|
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
|
||||||
AC_PREREQ(2.61)
|
AC_PREREQ(2.61)
|
||||||
AC_INIT(editline, 1.13.0, joachim.nilsson@vmlinux.org)
|
AC_INIT(editline, 1.14.2, troglobit@gmail.com)
|
||||||
AC_CONFIG_SRCDIR([src/editline.c])
|
AC_CONFIG_SRCDIR([src/editline.c])
|
||||||
AC_CONFIG_HEADER([config.h])
|
AC_CONFIG_HEADER([config.h])
|
||||||
|
AC_CONFIG_MACRO_DIR([m4])
|
||||||
|
|
||||||
# Prepare automake
|
# Prepare automake
|
||||||
AM_INIT_AUTOMAKE([dist-bzip2 dist-lzma])
|
AM_INIT_AUTOMAKE([no-dist-gzip dist-xz])
|
||||||
|
|
||||||
# Silent "kernel" style build from automake 1.11 and later.
|
# Silent "kernel" style build from automake 1.11 and later.
|
||||||
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
||||||
|
|
||||||
# Checks for programs.
|
# Checks for programs.
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
AC_PROG_RANLIB
|
|
||||||
|
|
||||||
# Checks for libraries.
|
# Checks for libraries.
|
||||||
|
LT_INIT
|
||||||
|
|
||||||
# Checks for header files.
|
# Checks for header files.
|
||||||
AC_HEADER_DIRENT
|
AC_HEADER_DIRENT
|
||||||
|
AC_HEADER_STAT
|
||||||
AC_HEADER_STDC
|
AC_HEADER_STDC
|
||||||
# Check for malloc.h instead of AC_FUNC_MALLOC/REALLOC AIX and others
|
# Check for malloc.h instead of AC_FUNC_MALLOC/REALLOC AIX and others
|
||||||
# mess up the traditional malloc check.
|
# mess up the traditional malloc check.
|
||||||
AC_CHECK_HEADERS([malloc.h signal.h sgtty.h stdlib.h string.h termio.h termios.h])
|
AC_CHECK_HEADERS([malloc.h signal.h stdlib.h string.h termcap.h termio.h termios.h sgtty.h])
|
||||||
|
|
||||||
# Checks for typedefs, structures, and compiler characteristics.
|
# In termios.h or in sys/ioctl.g?
|
||||||
AC_HEADER_STAT
|
AC_HEADER_TIOCGWINSZ
|
||||||
|
|
||||||
# Overrides and types, should be a check.
|
# Overrides and types, should be a check.
|
||||||
AC_DEFINE([SYS_UNIX], [1], [Default to UNIX backend, should be detected.])
|
AC_DEFINE([SYS_UNIX], [1], [Default to UNIX backend, should be detected.])
|
||||||
AC_DEFINE([HIDE], [1], [Enable static keyword, hides internal methods.])
|
|
||||||
AC_TYPE_SIZE_T
|
AC_TYPE_SIZE_T
|
||||||
|
|
||||||
# Checks for library functions.
|
# Checks for library functions.
|
||||||
AC_FUNC_CLOSEDIR_VOID
|
AC_FUNC_CLOSEDIR_VOID
|
||||||
AC_PROG_GCC_TRADITIONAL
|
AC_PROG_GCC_TRADITIONAL
|
||||||
# Check for malloc.h instead of AC_FUNC_MALLOC/REALLOC AIX and others
|
|
||||||
# mess up the traditional malloc check.
|
|
||||||
#AC_FUNC_MALLOC
|
|
||||||
#AC_FUNC_REALLOC
|
|
||||||
AC_FUNC_STAT
|
AC_FUNC_STAT
|
||||||
AC_CHECK_FUNCS([strchr strdup strrchr tcgetattr perror])
|
AC_CHECK_FUNCS([strchr strdup strrchr tcgetattr perror])
|
||||||
|
|
||||||
AC_ARG_ENABLE([default-complete],
|
AC_ARG_ENABLE(unique-history,
|
||||||
[ --enable-default-complete Enable default completion handler.],[
|
[AS_HELP_STRING([--disable-unique-history],
|
||||||
case "${enableval}" in
|
[Disable uniqify of scrollback. Default: duplicate entries are ignored. Use this to save dupes.])],
|
||||||
yes)
|
, AC_DEFINE(CONFIG_UNIQUE_HISTORY, 1, [Define to skip duplicate lines in the scrollback history.]))
|
||||||
complete=true
|
|
||||||
;;
|
AC_ARG_ENABLE(default-complete,
|
||||||
no)
|
[AS_HELP_STRING([--disable-default-complete], [Disable default (filename) completion handler.])],
|
||||||
complete=false
|
, AC_DEFINE(CONFIG_DEFAULT_COMPLETE, 1, [Define to enable the default completion handler.]))
|
||||||
;;
|
|
||||||
*)
|
|
||||||
AC_MSG_ERROR([bad value ${enableval} for --enable-default-complete])
|
|
||||||
;;
|
|
||||||
esac],[complete=false])
|
|
||||||
AM_CONDITIONAL([COMPLETE], [test x$complete = xtrue])
|
|
||||||
|
|
||||||
ac_enable_arrow_keys=no
|
|
||||||
AC_ARG_ENABLE(arrow-keys,
|
AC_ARG_ENABLE(arrow-keys,
|
||||||
[ --enable-arrow-keys Enable ANSI arrow keys.],
|
[AS_HELP_STRING([--disable-arrow-keys], [Disable ANSI arrow keys.])],
|
||||||
[ ac_enable_arrow_keys=$enableval ], [ ac_enable_arrow_keys=no])
|
, AC_DEFINE(CONFIG_ANSI_ARROWS, 1, [Define to include ANSI arrow keys support.]))
|
||||||
|
|
||||||
if test "x${ac_enable_arrow_keys}" = xyes ; then
|
AC_ARG_ENABLE(sigstop,
|
||||||
AC_DEFINE([ANSI_ARROWS], [],
|
[AS_HELP_STRING([--enable-sigstop], [Enable SIGSTOP key.])],
|
||||||
[Define to include ANSI arrow keys support in minix-editline])
|
AC_DEFINE([CONFIG_SIGSTOP], 1, [Define to enable SIGSTOP (Ctrl-Z) key.]))
|
||||||
fi
|
|
||||||
|
AC_ARG_ENABLE(terminal-bell,
|
||||||
|
[AS_HELP_STRING([--enable-terminal-bell], [Enable terminal bell on completion.])],
|
||||||
|
AC_DEFINE([CONFIG_ANNOYING_NOISE], 1, [Define to enable terminal bell on completion.]))
|
||||||
|
|
||||||
|
AC_ARG_ENABLE(termcap,
|
||||||
|
[AS_HELP_STRING([--enable-termcap], [Use termcap library to query terminal size.])],
|
||||||
|
AC_DEFINE([CONFIG_USE_TERMCAP], 1, [Define to use the termcap library for terminal size.]))
|
||||||
|
|
||||||
|
AM_CFLAGS="-std=gnu99 $inline_cflags -W -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration $nopointersign_cflags -Wshadow -Wcast-qual"
|
||||||
|
AC_SUBST(AM_CFLAGS)
|
||||||
|
|
||||||
AC_OUTPUT(Makefile src/Makefile include/Makefile man/Makefile examples/Makefile)
|
AC_OUTPUT(Makefile src/Makefile include/Makefile man/Makefile examples/Makefile)
|
||||||
|
|
||||||
|
32
debian/changelog
vendored
32
debian/changelog
vendored
@@ -1,3 +1,35 @@
|
|||||||
|
editline (1.14.2-1) unstable; urgency=low
|
||||||
|
|
||||||
|
* Minor bugfix release:
|
||||||
|
+ Fix `el_no_echo` bug causing secrets to leak when disabling no-echo
|
||||||
|
+ Handle `EINTR` in syscalls better
|
||||||
|
|
||||||
|
-- Joachim Nilsson <troglobit@gmail.com> Sun, 14 Sep 2014 04:27:25 +0200
|
||||||
|
|
||||||
|
editline (1.14.1-1) unstable; urgency=low
|
||||||
|
|
||||||
|
* New release.
|
||||||
|
+ Minor fixes to key binding.
|
||||||
|
+ Check signals and custom keys before acting on them in readline().
|
||||||
|
+ Update maintainer email address.
|
||||||
|
|
||||||
|
-- Joachim Nilsson <troglobit@gmail.com> Mon, 8 Jul 2013 17:04:00 +0100
|
||||||
|
|
||||||
|
editline (1.14.0-1) unstable; urgency=low
|
||||||
|
|
||||||
|
* Update to new configure based build.
|
||||||
|
|
||||||
|
-- Joachim Nilsson <joachim.nilsson@vmlinux.org> Wed, 11 Aug 2010 13:28:00 +0100
|
||||||
|
|
||||||
|
editline (1.12-6) unstable; urgency=low
|
||||||
|
|
||||||
|
* Switch package format to 3.0 (quilt).
|
||||||
|
* 200_fix-truncation-at-64-char.diff: fix invalid 64-char truncation in
|
||||||
|
batch mode, courtesy of Mark O'Donohue. Thanks to Damyan Ivanov for
|
||||||
|
forwarding the patch from Ubuntu (Closes: #508640).
|
||||||
|
|
||||||
|
-- Sam Hocevar <sho@debian.org> Sun, 03 Jan 2010 15:45:34 +0100
|
||||||
|
|
||||||
editline (1.12-5) unstable; urgency=low
|
editline (1.12-5) unstable; urgency=low
|
||||||
|
|
||||||
* New maintainer (Closes: #229962).
|
* New maintainer (Closes: #229962).
|
||||||
|
2
debian/compat
vendored
2
debian/compat
vendored
@@ -1 +1 @@
|
|||||||
4
|
5
|
||||||
|
10
debian/control
vendored
10
debian/control
vendored
@@ -1,14 +1,14 @@
|
|||||||
Source: editline
|
Source: editline
|
||||||
Section: devel
|
Section: devel
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Build-Depends: debhelper (>= 4.0), libtool
|
Build-Depends: debhelper (>= 5.0), libtool
|
||||||
Maintainer: Sam Hocevar (Debian packages) <sam+deb@zoy.org>
|
Maintainer: Sam Hocevar <sho@debian.org>
|
||||||
Standards-Version: 3.6.1.0
|
Standards-Version: 3.8.3
|
||||||
|
|
||||||
Package: libeditline-dev
|
Package: libeditline-dev
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Section: libdevel
|
Section: libdevel
|
||||||
Depends: libeditline0 (= ${Source-Version})
|
Depends: libeditline0 (= ${binary:Version}), ${misc:Depends}
|
||||||
Description: development files for libeditline
|
Description: development files for libeditline
|
||||||
This is a line-editing library. It can be linked into almost any program
|
This is a line-editing library. It can be linked into almost any program
|
||||||
to provide command-line editing and recall. It is call-compatible with a
|
to provide command-line editing and recall. It is call-compatible with a
|
||||||
@@ -21,7 +21,7 @@ Description: development files for libeditline
|
|||||||
Package: libeditline0
|
Package: libeditline0
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Section: libs
|
Section: libs
|
||||||
Depends: ${shlibs:Depends}
|
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||||
Description: line editing library similar to readline
|
Description: line editing library similar to readline
|
||||||
This is a line-editing library. It can be linked into almost any program
|
This is a line-editing library. It can be linked into almost any program
|
||||||
to provide command-line editing and recall. It is call-compatible with a
|
to provide command-line editing and recall. It is call-compatible with a
|
||||||
|
1
debian/editline1.files
vendored
1
debian/editline1.files
vendored
@@ -1 +0,0 @@
|
|||||||
usr/lib/*.so.*
|
|
4
debian/libeditline-dev.install
vendored
Normal file
4
debian/libeditline-dev.install
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
usr/include
|
||||||
|
usr/lib/libeditline*.*a
|
||||||
|
usr/lib/libeditline*.so
|
||||||
|
usr/share/man/man3
|
1
debian/libeditline0.install
vendored
Normal file
1
debian/libeditline0.install
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
usr/lib/libeditline*.so.*
|
44
debian/rules
vendored
44
debian/rules
vendored
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/make -f
|
#!/usr/bin/make -f
|
||||||
# Sample debian/rules that uses debhelper.
|
# debian/rules for libeditline
|
||||||
# GNU copyright 1997 to 1999 by Joey Hess.
|
# GNU copyright 1997 to 1999 by Joey Hess.
|
||||||
|
|
||||||
# Uncomment this to turn on verbose mode.
|
# Uncomment this to turn on verbose mode.
|
||||||
@@ -9,50 +9,42 @@
|
|||||||
version=0.0.0
|
version=0.0.0
|
||||||
major=0
|
major=0
|
||||||
|
|
||||||
|
configure: configure-stamp
|
||||||
|
configure-stamp:
|
||||||
|
dh_testdir
|
||||||
|
dh_auto_configure
|
||||||
|
touch configure-stamp
|
||||||
|
|
||||||
build: build-stamp
|
build: build-stamp
|
||||||
build-stamp:
|
build-stamp:
|
||||||
dh_testdir
|
dh_testdir
|
||||||
$(MAKE)
|
dh_auto_configure
|
||||||
touch build-stamp
|
dh_auto_build
|
||||||
|
touch $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
dh_testdir
|
dh_testdir
|
||||||
dh_testroot
|
dh_auto_clean
|
||||||
rm -f build-stamp
|
|
||||||
-$(MAKE) clean
|
|
||||||
dh_clean
|
dh_clean
|
||||||
|
@rm -f build-stamp configure-stamp
|
||||||
|
|
||||||
install: build
|
install: build
|
||||||
dh_testdir
|
dh_testdir
|
||||||
dh_testroot
|
dh_testroot
|
||||||
dh_clean -k
|
dh_clean -k
|
||||||
dh_installdirs
|
dh_installdirs
|
||||||
$(MAKE) install DESTDIR=`pwd`/debian/libeditline-dev
|
dh_auto_install
|
||||||
cp include_editline.h \
|
|
||||||
`pwd`/debian/libeditline-dev/usr/include/editline.h
|
|
||||||
|
|
||||||
binary-indep: build install
|
binary-indep: install
|
||||||
|
|
||||||
binary-arch: build install
|
# build libeditline${major} package by moving files from editline-dev
|
||||||
# dh_testversion
|
binary-arch: install
|
||||||
dh_testdir
|
dh_testdir
|
||||||
dh_testroot
|
dh_testroot
|
||||||
|
dh_auto_install
|
||||||
# build libeditline${major} package by moving files from editline-dev
|
dh_install --sourcedir=debian/tmp
|
||||||
dh_movefiles --sourcedir=debian/libeditline-dev \
|
|
||||||
-plibeditline$(major) \
|
|
||||||
usr/lib/libeditline.so.$(major) \
|
|
||||||
usr/lib/libeditline.so.$(version)
|
|
||||||
|
|
||||||
dh_installdocs
|
dh_installdocs
|
||||||
dh_installexamples
|
|
||||||
dh_installmenu
|
|
||||||
dh_installmanpages
|
|
||||||
rm -r debian/libeditline0/usr/share/man/
|
|
||||||
dh_installcron
|
|
||||||
dh_installinfo
|
|
||||||
dh_installchangelogs
|
dh_installchangelogs
|
||||||
dh_link
|
|
||||||
dh_strip
|
dh_strip
|
||||||
dh_compress
|
dh_compress
|
||||||
dh_fixperms
|
dh_fixperms
|
||||||
|
@@ -1,7 +1,6 @@
|
|||||||
AUTOMAKE_OPTIONS = foreign
|
AUTOMAKE_OPTIONS = foreign
|
||||||
|
|
||||||
LDADD = $(top_builddir)/src/libeditline.a
|
noinst_PROGRAMS = testit cli
|
||||||
AM_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/include
|
LDADD = $(top_builddir)/src/libeditline.la $(TERMLIBS)
|
||||||
|
AM_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/include
|
||||||
# TODO: Port "fileman" example from BSD editline
|
AM_LDFLAGS = -static
|
||||||
noinst_PROGRAMS = testit cli
|
|
||||||
|
@@ -1,9 +1,9 @@
|
|||||||
# Makefile.in generated by automake 1.11 from Makefile.am.
|
# Makefile.in generated by automake 1.11.6 from Makefile.am.
|
||||||
# @configure_input@
|
# @configure_input@
|
||||||
|
|
||||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||||
# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
|
# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
|
||||||
# Inc.
|
# Foundation, Inc.
|
||||||
# This Makefile.in is free software; the Free Software Foundation
|
# This Makefile.in is free software; the Free Software Foundation
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
# with or without modifications, as long as this notice is preserved.
|
# with or without modifications, as long as this notice is preserved.
|
||||||
@@ -16,6 +16,23 @@
|
|||||||
@SET_MAKE@
|
@SET_MAKE@
|
||||||
|
|
||||||
VPATH = @srcdir@
|
VPATH = @srcdir@
|
||||||
|
am__make_dryrun = \
|
||||||
|
{ \
|
||||||
|
am__dry=no; \
|
||||||
|
case $$MAKEFLAGS in \
|
||||||
|
*\\[\ \ ]*) \
|
||||||
|
echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
|
||||||
|
| grep '^AM OK$$' >/dev/null || am__dry=yes;; \
|
||||||
|
*) \
|
||||||
|
for am__flg in $$MAKEFLAGS; do \
|
||||||
|
case $$am__flg in \
|
||||||
|
*=*|--*) ;; \
|
||||||
|
*n*) am__dry=yes; break;; \
|
||||||
|
esac; \
|
||||||
|
done;; \
|
||||||
|
esac; \
|
||||||
|
test $$am__dry = yes; \
|
||||||
|
}
|
||||||
pkgdatadir = $(datadir)/@PACKAGE@
|
pkgdatadir = $(datadir)/@PACKAGE@
|
||||||
pkgincludedir = $(includedir)/@PACKAGE@
|
pkgincludedir = $(includedir)/@PACKAGE@
|
||||||
pkglibdir = $(libdir)/@PACKAGE@
|
pkglibdir = $(libdir)/@PACKAGE@
|
||||||
@@ -32,11 +49,16 @@ POST_INSTALL = :
|
|||||||
NORMAL_UNINSTALL = :
|
NORMAL_UNINSTALL = :
|
||||||
PRE_UNINSTALL = :
|
PRE_UNINSTALL = :
|
||||||
POST_UNINSTALL = :
|
POST_UNINSTALL = :
|
||||||
|
build_triplet = @build@
|
||||||
|
host_triplet = @host@
|
||||||
noinst_PROGRAMS = testit$(EXEEXT) cli$(EXEEXT)
|
noinst_PROGRAMS = testit$(EXEEXT) cli$(EXEEXT)
|
||||||
subdir = examples
|
subdir = examples
|
||||||
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
|
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
|
||||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||||
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
|
||||||
|
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||||
|
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||||
|
$(top_srcdir)/configure.ac
|
||||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||||
$(ACLOCAL_M4)
|
$(ACLOCAL_M4)
|
||||||
mkinstalldirs = $(install_sh) -d
|
mkinstalldirs = $(install_sh) -d
|
||||||
@@ -47,39 +69,55 @@ PROGRAMS = $(noinst_PROGRAMS)
|
|||||||
cli_SOURCES = cli.c
|
cli_SOURCES = cli.c
|
||||||
cli_OBJECTS = cli.$(OBJEXT)
|
cli_OBJECTS = cli.$(OBJEXT)
|
||||||
cli_LDADD = $(LDADD)
|
cli_LDADD = $(LDADD)
|
||||||
cli_DEPENDENCIES = $(top_builddir)/src/libeditline.a
|
cli_DEPENDENCIES = $(top_builddir)/src/libeditline.la
|
||||||
|
AM_V_lt = $(am__v_lt_@AM_V@)
|
||||||
|
am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
|
||||||
|
am__v_lt_0 = --silent
|
||||||
testit_SOURCES = testit.c
|
testit_SOURCES = testit.c
|
||||||
testit_OBJECTS = testit.$(OBJEXT)
|
testit_OBJECTS = testit.$(OBJEXT)
|
||||||
testit_LDADD = $(LDADD)
|
testit_LDADD = $(LDADD)
|
||||||
testit_DEPENDENCIES = $(top_builddir)/src/libeditline.a
|
testit_DEPENDENCIES = $(top_builddir)/src/libeditline.la
|
||||||
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
|
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
|
||||||
depcomp = $(SHELL) $(top_srcdir)/depcomp
|
depcomp = $(SHELL) $(top_srcdir)/depcomp
|
||||||
am__depfiles_maybe = depfiles
|
am__depfiles_maybe = depfiles
|
||||||
am__mv = mv -f
|
am__mv = mv -f
|
||||||
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
||||||
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||||
AM_V_CC = $(am__v_CC_$(V))
|
LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
|
||||||
am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
|
$(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
|
||||||
|
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
|
||||||
|
$(AM_CFLAGS) $(CFLAGS)
|
||||||
|
AM_V_CC = $(am__v_CC_@AM_V@)
|
||||||
|
am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
|
||||||
am__v_CC_0 = @echo " CC " $@;
|
am__v_CC_0 = @echo " CC " $@;
|
||||||
AM_V_at = $(am__v_at_$(V))
|
AM_V_at = $(am__v_at_@AM_V@)
|
||||||
am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
|
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
||||||
am__v_at_0 = @
|
am__v_at_0 = @
|
||||||
CCLD = $(CC)
|
CCLD = $(CC)
|
||||||
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
|
||||||
AM_V_CCLD = $(am__v_CCLD_$(V))
|
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
|
||||||
am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
|
$(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||||
|
AM_V_CCLD = $(am__v_CCLD_@AM_V@)
|
||||||
|
am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
|
||||||
am__v_CCLD_0 = @echo " CCLD " $@;
|
am__v_CCLD_0 = @echo " CCLD " $@;
|
||||||
AM_V_GEN = $(am__v_GEN_$(V))
|
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
||||||
am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
|
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
||||||
am__v_GEN_0 = @echo " GEN " $@;
|
am__v_GEN_0 = @echo " GEN " $@;
|
||||||
SOURCES = cli.c testit.c
|
SOURCES = cli.c testit.c
|
||||||
DIST_SOURCES = cli.c testit.c
|
DIST_SOURCES = cli.c testit.c
|
||||||
|
am__can_run_installinfo = \
|
||||||
|
case $$AM_UPDATE_INFO_DIR in \
|
||||||
|
n|no|NO) false;; \
|
||||||
|
*) (install-info --version) >/dev/null 2>&1;; \
|
||||||
|
esac
|
||||||
ETAGS = etags
|
ETAGS = etags
|
||||||
CTAGS = ctags
|
CTAGS = ctags
|
||||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
ACLOCAL = @ACLOCAL@
|
ACLOCAL = @ACLOCAL@
|
||||||
AMTAR = @AMTAR@
|
AMTAR = @AMTAR@
|
||||||
|
AM_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/include
|
||||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||||
|
AR = @AR@
|
||||||
AUTOCONF = @AUTOCONF@
|
AUTOCONF = @AUTOCONF@
|
||||||
AUTOHEADER = @AUTOHEADER@
|
AUTOHEADER = @AUTOHEADER@
|
||||||
AUTOMAKE = @AUTOMAKE@
|
AUTOMAKE = @AUTOMAKE@
|
||||||
@@ -92,24 +130,38 @@ CPPFLAGS = @CPPFLAGS@
|
|||||||
CYGPATH_W = @CYGPATH_W@
|
CYGPATH_W = @CYGPATH_W@
|
||||||
DEFS = @DEFS@
|
DEFS = @DEFS@
|
||||||
DEPDIR = @DEPDIR@
|
DEPDIR = @DEPDIR@
|
||||||
|
DLLTOOL = @DLLTOOL@
|
||||||
|
DSYMUTIL = @DSYMUTIL@
|
||||||
|
DUMPBIN = @DUMPBIN@
|
||||||
ECHO_C = @ECHO_C@
|
ECHO_C = @ECHO_C@
|
||||||
ECHO_N = @ECHO_N@
|
ECHO_N = @ECHO_N@
|
||||||
ECHO_T = @ECHO_T@
|
ECHO_T = @ECHO_T@
|
||||||
EGREP = @EGREP@
|
EGREP = @EGREP@
|
||||||
EXEEXT = @EXEEXT@
|
EXEEXT = @EXEEXT@
|
||||||
|
FGREP = @FGREP@
|
||||||
GREP = @GREP@
|
GREP = @GREP@
|
||||||
INSTALL = @INSTALL@
|
INSTALL = @INSTALL@
|
||||||
INSTALL_DATA = @INSTALL_DATA@
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||||
|
LD = @LD@
|
||||||
LDFLAGS = @LDFLAGS@
|
LDFLAGS = @LDFLAGS@
|
||||||
LIBOBJS = @LIBOBJS@
|
LIBOBJS = @LIBOBJS@
|
||||||
LIBS = @LIBS@
|
LIBS = @LIBS@
|
||||||
|
LIBTOOL = @LIBTOOL@
|
||||||
|
LIPO = @LIPO@
|
||||||
|
LN_S = @LN_S@
|
||||||
LTLIBOBJS = @LTLIBOBJS@
|
LTLIBOBJS = @LTLIBOBJS@
|
||||||
MAKEINFO = @MAKEINFO@
|
MAKEINFO = @MAKEINFO@
|
||||||
|
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||||
MKDIR_P = @MKDIR_P@
|
MKDIR_P = @MKDIR_P@
|
||||||
|
NM = @NM@
|
||||||
|
NMEDIT = @NMEDIT@
|
||||||
|
OBJDUMP = @OBJDUMP@
|
||||||
OBJEXT = @OBJEXT@
|
OBJEXT = @OBJEXT@
|
||||||
|
OTOOL = @OTOOL@
|
||||||
|
OTOOL64 = @OTOOL64@
|
||||||
PACKAGE = @PACKAGE@
|
PACKAGE = @PACKAGE@
|
||||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||||
PACKAGE_NAME = @PACKAGE_NAME@
|
PACKAGE_NAME = @PACKAGE_NAME@
|
||||||
@@ -119,6 +171,7 @@ PACKAGE_URL = @PACKAGE_URL@
|
|||||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||||
RANLIB = @RANLIB@
|
RANLIB = @RANLIB@
|
||||||
|
SED = @SED@
|
||||||
SET_MAKE = @SET_MAKE@
|
SET_MAKE = @SET_MAKE@
|
||||||
SHELL = @SHELL@
|
SHELL = @SHELL@
|
||||||
STRIP = @STRIP@
|
STRIP = @STRIP@
|
||||||
@@ -127,21 +180,31 @@ abs_builddir = @abs_builddir@
|
|||||||
abs_srcdir = @abs_srcdir@
|
abs_srcdir = @abs_srcdir@
|
||||||
abs_top_builddir = @abs_top_builddir@
|
abs_top_builddir = @abs_top_builddir@
|
||||||
abs_top_srcdir = @abs_top_srcdir@
|
abs_top_srcdir = @abs_top_srcdir@
|
||||||
|
ac_ct_AR = @ac_ct_AR@
|
||||||
ac_ct_CC = @ac_ct_CC@
|
ac_ct_CC = @ac_ct_CC@
|
||||||
|
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||||
am__include = @am__include@
|
am__include = @am__include@
|
||||||
am__leading_dot = @am__leading_dot@
|
am__leading_dot = @am__leading_dot@
|
||||||
am__quote = @am__quote@
|
am__quote = @am__quote@
|
||||||
am__tar = @am__tar@
|
am__tar = @am__tar@
|
||||||
am__untar = @am__untar@
|
am__untar = @am__untar@
|
||||||
bindir = @bindir@
|
bindir = @bindir@
|
||||||
|
build = @build@
|
||||||
build_alias = @build_alias@
|
build_alias = @build_alias@
|
||||||
|
build_cpu = @build_cpu@
|
||||||
|
build_os = @build_os@
|
||||||
|
build_vendor = @build_vendor@
|
||||||
builddir = @builddir@
|
builddir = @builddir@
|
||||||
datadir = @datadir@
|
datadir = @datadir@
|
||||||
datarootdir = @datarootdir@
|
datarootdir = @datarootdir@
|
||||||
docdir = @docdir@
|
docdir = @docdir@
|
||||||
dvidir = @dvidir@
|
dvidir = @dvidir@
|
||||||
exec_prefix = @exec_prefix@
|
exec_prefix = @exec_prefix@
|
||||||
|
host = @host@
|
||||||
host_alias = @host_alias@
|
host_alias = @host_alias@
|
||||||
|
host_cpu = @host_cpu@
|
||||||
|
host_os = @host_os@
|
||||||
|
host_vendor = @host_vendor@
|
||||||
htmldir = @htmldir@
|
htmldir = @htmldir@
|
||||||
includedir = @includedir@
|
includedir = @includedir@
|
||||||
infodir = @infodir@
|
infodir = @infodir@
|
||||||
@@ -166,12 +229,12 @@ top_build_prefix = @top_build_prefix@
|
|||||||
top_builddir = @top_builddir@
|
top_builddir = @top_builddir@
|
||||||
top_srcdir = @top_srcdir@
|
top_srcdir = @top_srcdir@
|
||||||
AUTOMAKE_OPTIONS = foreign
|
AUTOMAKE_OPTIONS = foreign
|
||||||
LDADD = $(top_builddir)/src/libeditline.a
|
LDADD = $(top_builddir)/src/libeditline.la $(TERMLIBS)
|
||||||
AM_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/include
|
AM_LDFLAGS = -static
|
||||||
all: all-am
|
all: all-am
|
||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
.SUFFIXES: .c .o .obj
|
.SUFFIXES: .c .lo .o .obj
|
||||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||||
@for dep in $?; do \
|
@for dep in $?; do \
|
||||||
case '$(am__configure_deps)' in \
|
case '$(am__configure_deps)' in \
|
||||||
@@ -204,11 +267,17 @@ $(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
|||||||
$(am__aclocal_m4_deps):
|
$(am__aclocal_m4_deps):
|
||||||
|
|
||||||
clean-noinstPROGRAMS:
|
clean-noinstPROGRAMS:
|
||||||
-test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
|
@list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \
|
||||||
cli$(EXEEXT): $(cli_OBJECTS) $(cli_DEPENDENCIES)
|
echo " rm -f" $$list; \
|
||||||
|
rm -f $$list || exit $$?; \
|
||||||
|
test -n "$(EXEEXT)" || exit 0; \
|
||||||
|
list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
|
||||||
|
echo " rm -f" $$list; \
|
||||||
|
rm -f $$list
|
||||||
|
cli$(EXEEXT): $(cli_OBJECTS) $(cli_DEPENDENCIES) $(EXTRA_cli_DEPENDENCIES)
|
||||||
@rm -f cli$(EXEEXT)
|
@rm -f cli$(EXEEXT)
|
||||||
$(AM_V_CCLD)$(LINK) $(cli_OBJECTS) $(cli_LDADD) $(LIBS)
|
$(AM_V_CCLD)$(LINK) $(cli_OBJECTS) $(cli_LDADD) $(LIBS)
|
||||||
testit$(EXEEXT): $(testit_OBJECTS) $(testit_DEPENDENCIES)
|
testit$(EXEEXT): $(testit_OBJECTS) $(testit_DEPENDENCIES) $(EXTRA_testit_DEPENDENCIES)
|
||||||
@rm -f testit$(EXEEXT)
|
@rm -f testit$(EXEEXT)
|
||||||
$(AM_V_CCLD)$(LINK) $(testit_OBJECTS) $(testit_LDADD) $(LIBS)
|
$(AM_V_CCLD)$(LINK) $(testit_OBJECTS) $(testit_LDADD) $(LIBS)
|
||||||
|
|
||||||
@@ -224,18 +293,29 @@ distclean-compile:
|
|||||||
.c.o:
|
.c.o:
|
||||||
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
||||||
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
||||||
@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
@am__fastdepCC_FALSE@ $(COMPILE) -c $<
|
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $<
|
||||||
|
|
||||||
.c.obj:
|
.c.obj:
|
||||||
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
|
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
|
||||||
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
||||||
@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
|
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'`
|
||||||
|
|
||||||
|
.c.lo:
|
||||||
|
@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
||||||
|
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
|
||||||
|
|
||||||
|
mostlyclean-libtool:
|
||||||
|
-rm -f *.lo
|
||||||
|
|
||||||
|
clean-libtool:
|
||||||
|
-rm -rf .libs _libs
|
||||||
|
|
||||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||||
@@ -333,10 +413,15 @@ install-am: all-am
|
|||||||
|
|
||||||
installcheck: installcheck-am
|
installcheck: installcheck-am
|
||||||
install-strip:
|
install-strip:
|
||||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
if test -z '$(STRIP)'; then \
|
||||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||||
`test -z '$(STRIP)' || \
|
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
install; \
|
||||||
|
else \
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||||
|
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||||
|
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||||
|
fi
|
||||||
mostlyclean-generic:
|
mostlyclean-generic:
|
||||||
|
|
||||||
clean-generic:
|
clean-generic:
|
||||||
@@ -350,7 +435,8 @@ maintainer-clean-generic:
|
|||||||
@echo "it deletes files that may require special tools to rebuild."
|
@echo "it deletes files that may require special tools to rebuild."
|
||||||
clean: clean-am
|
clean: clean-am
|
||||||
|
|
||||||
clean-am: clean-generic clean-noinstPROGRAMS mostlyclean-am
|
clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \
|
||||||
|
mostlyclean-am
|
||||||
|
|
||||||
distclean: distclean-am
|
distclean: distclean-am
|
||||||
-rm -rf ./$(DEPDIR)
|
-rm -rf ./$(DEPDIR)
|
||||||
@@ -405,7 +491,8 @@ maintainer-clean-am: distclean-am maintainer-clean-generic
|
|||||||
|
|
||||||
mostlyclean: mostlyclean-am
|
mostlyclean: mostlyclean-am
|
||||||
|
|
||||||
mostlyclean-am: mostlyclean-compile mostlyclean-generic
|
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
|
||||||
|
mostlyclean-libtool
|
||||||
|
|
||||||
pdf: pdf-am
|
pdf: pdf-am
|
||||||
|
|
||||||
@@ -420,17 +507,17 @@ uninstall-am:
|
|||||||
.MAKE: install-am install-strip
|
.MAKE: install-am install-strip
|
||||||
|
|
||||||
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
|
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
|
||||||
clean-noinstPROGRAMS ctags distclean distclean-compile \
|
clean-libtool clean-noinstPROGRAMS ctags distclean \
|
||||||
distclean-generic distclean-tags distdir dvi dvi-am html \
|
distclean-compile distclean-generic distclean-libtool \
|
||||||
html-am info info-am install install-am install-data \
|
distclean-tags distdir dvi dvi-am html html-am info info-am \
|
||||||
install-data-am install-dvi install-dvi-am install-exec \
|
install install-am install-data install-data-am install-dvi \
|
||||||
install-exec-am install-html install-html-am install-info \
|
install-dvi-am install-exec install-exec-am install-html \
|
||||||
install-info-am install-man install-pdf install-pdf-am \
|
install-html-am install-info install-info-am install-man \
|
||||||
install-ps install-ps-am install-strip installcheck \
|
install-pdf install-pdf-am install-ps install-ps-am \
|
||||||
installcheck-am installdirs maintainer-clean \
|
install-strip installcheck installcheck-am installdirs \
|
||||||
maintainer-clean-generic mostlyclean mostlyclean-compile \
|
maintainer-clean maintainer-clean-generic mostlyclean \
|
||||||
mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \
|
mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
|
||||||
uninstall-am
|
pdf pdf-am ps ps-am tags uninstall uninstall-am
|
||||||
|
|
||||||
|
|
||||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||||
|
@@ -1,16 +1,36 @@
|
|||||||
/* Custom CLI command completion. */
|
/* Custom CLI command completion.
|
||||||
|
*
|
||||||
|
* Copyright (c) 1992, 1993 Simmule Turner and Rich Salz. All rights reserved.
|
||||||
|
*
|
||||||
|
* This software is not subject to any license of the American Telephone
|
||||||
|
* and Telegraph Company or of the Regents of the University of California.
|
||||||
|
*
|
||||||
|
* Permission is granted to anyone to use this software for any purpose on
|
||||||
|
* any computer system, and to alter it and redistribute it freely, subject
|
||||||
|
* to the following restrictions:
|
||||||
|
* 1. The authors are not responsible for the consequences of use of this
|
||||||
|
* software, no matter how awful, even if they arise from flaws in it.
|
||||||
|
* 2. The origin of this software must not be misrepresented, either by
|
||||||
|
* explicit claim or by omission. Since few users ever read sources,
|
||||||
|
* credits must appear in the documentation.
|
||||||
|
* 3. Altered versions must be plainly marked as such, and must not be
|
||||||
|
* misrepresented as being the original software. Since few users
|
||||||
|
* ever read sources, credits must appear in the documentation.
|
||||||
|
* 4. This notice may not be removed or altered.
|
||||||
|
*/
|
||||||
|
|
||||||
#include "editline.h"
|
#include "editline.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
char *list[] = {
|
#define HISTORY "/tmp/.cli-history"
|
||||||
|
|
||||||
|
static char *list[] = {
|
||||||
"foo ", "bar ", "bsd ", "cli ", "ls ", "cd ", "malloc ", "tee ", NULL
|
"foo ", "bar ", "bsd ", "cli ", "ls ", "cd ", "malloc ", "tee ", NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/* Attempt to complete the pathname, returning an allocated copy.
|
||||||
** Attempt to complete the pathname, returning an allocated copy.
|
* Fill in *unique if we completed it, or set it to 0 if ambiguous. */
|
||||||
** Fill in *unique if we completed it, or set it to 0 if ambiguous.
|
static char *my_rl_complete(char *token, int *match)
|
||||||
*/
|
|
||||||
char *my_rl_complete(char *token, int *match)
|
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int index = -1;
|
int index = -1;
|
||||||
@@ -38,10 +58,8 @@ char *my_rl_complete(char *token, int *match)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/* Return all possible completions. */
|
||||||
** Return all possible completions.
|
static int my_rl_list_possib(char *token, char ***av)
|
||||||
*/
|
|
||||||
int my_rl_list_possib(char *token, char ***av)
|
|
||||||
{
|
{
|
||||||
int i, num, total = 0;
|
int i, num, total = 0;
|
||||||
char **copy;
|
char **copy;
|
||||||
@@ -62,19 +80,45 @@ int my_rl_list_possib(char *token, char ***av)
|
|||||||
return total;
|
return total;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
el_status_t list_possible(void)
|
||||||
|
{
|
||||||
|
char **av;
|
||||||
|
char *word;
|
||||||
|
int ac;
|
||||||
|
|
||||||
|
word = el_find_word();
|
||||||
|
ac = rl_list_possib(word, &av);
|
||||||
|
if (word)
|
||||||
|
free(word);
|
||||||
|
if (ac) {
|
||||||
|
el_print_columns(ac, av);
|
||||||
|
while (--ac >= 0)
|
||||||
|
free(av[ac]);
|
||||||
|
free(av);
|
||||||
|
|
||||||
|
return CSmove;
|
||||||
|
}
|
||||||
|
|
||||||
|
return el_ring_bell();
|
||||||
|
}
|
||||||
|
|
||||||
int main(int ac __attribute__ ((unused)), char *av[] __attribute__ ((unused)))
|
int main(int ac __attribute__ ((unused)), char *av[] __attribute__ ((unused)))
|
||||||
{
|
{
|
||||||
char *line;
|
char *line;
|
||||||
char *prompt = "cli> ";
|
char *prompt = "cli> ";
|
||||||
|
|
||||||
/* Setup callbacks */
|
/* Setup callbacks */
|
||||||
rl_complete = &my_rl_complete;
|
rl_set_complete_func(&my_rl_complete);
|
||||||
rl_list_possib = &my_rl_list_possib;
|
rl_set_list_possib_func(&my_rl_list_possib);
|
||||||
|
el_bind_key('?', list_possible);
|
||||||
|
read_history(HISTORY);
|
||||||
|
|
||||||
while ((line = readline(prompt)) != NULL) {
|
while ((line = readline(prompt)) != NULL) {
|
||||||
(void)printf("\t\t\t|%s|\n", line);
|
printf("\t\t\t|%s|\n", line);
|
||||||
free(line);
|
free(line);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
write_history(HISTORY);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
99
examples/testit.c
Executable file → Normal file
99
examples/testit.c
Executable file → Normal file
@@ -1,74 +1,64 @@
|
|||||||
/* $Revision: 5 $
|
/* A "micro-shell" to test editline library.
|
||||||
**
|
* If given any arguments, commands aren't executed.
|
||||||
** A "micro-shell" to test editline library.
|
*
|
||||||
** If given any arguments, commands aren't executed.
|
* Copyright (c) 1992, 1993 Simmule Turner and Rich Salz. All rights reserved.
|
||||||
*/
|
*
|
||||||
|
* This software is not subject to any license of the American Telephone
|
||||||
|
* and Telegraph Company or of the Regents of the University of California.
|
||||||
|
*
|
||||||
|
* Permission is granted to anyone to use this software for any purpose on
|
||||||
|
* any computer system, and to alter it and redistribute it freely, subject
|
||||||
|
* to the following restrictions:
|
||||||
|
* 1. The authors are not responsible for the consequences of use of this
|
||||||
|
* software, no matter how awful, even if they arise from flaws in it.
|
||||||
|
* 2. The origin of this software must not be misrepresented, either by
|
||||||
|
* explicit claim or by omission. Since few users ever read sources,
|
||||||
|
* credits must appear in the documentation.
|
||||||
|
* 3. Altered versions must be plainly marked as such, and must not be
|
||||||
|
* misrepresented as being the original software. Since few users
|
||||||
|
* ever read sources, credits must appear in the documentation.
|
||||||
|
* 4. This notice may not be removed or altered.
|
||||||
|
*/
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#if defined(HAVE_STDLIB_H)
|
#ifdef HAVE_STDLIB_H
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#endif
|
#endif
|
||||||
#if defined(HAVE_STRING_H)
|
#ifdef HAVE_STRING_H
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#endif
|
#endif
|
||||||
#if defined(HAVE_UNISTD_H)
|
#ifdef HAVE_UNISTD_H
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
#include "editline.h"
|
||||||
|
|
||||||
extern char *readline();
|
#ifndef HAVE_PERROR
|
||||||
extern void add_history();
|
extern int errno;
|
||||||
|
void perror(char *s)
|
||||||
#if !defined(HAVE_STDLIB_H)
|
|
||||||
extern int free();
|
|
||||||
extern int system();
|
|
||||||
extern void exit();
|
|
||||||
extern char *getenv();
|
|
||||||
#endif /* !defined(HAVE_STDLIB) */
|
|
||||||
#if !defined(HAVE_STRING_H)
|
|
||||||
extern int strncmp();
|
|
||||||
#endif
|
|
||||||
#if !defined(HAVE_UNISTD_H)
|
|
||||||
extern int chdir();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined(HAVE_PERROR)
|
|
||||||
void
|
|
||||||
perror(s)
|
|
||||||
char *s;
|
|
||||||
{
|
{
|
||||||
extern int errno;
|
fprintf(stderr, "%s: error %d\n", s, errno);
|
||||||
|
|
||||||
(voidf)printf(stderr, "%s: error %d\n", s, errno);
|
|
||||||
}
|
}
|
||||||
#endif /* defined(NEED_PERROR) */
|
#endif /* !HAVE_PERROR */
|
||||||
|
|
||||||
|
int main(int argc, char *argv[] __attribute__ ((unused)))
|
||||||
/* ARGSUSED1 */
|
|
||||||
int
|
|
||||||
main(ac, av)
|
|
||||||
int ac;
|
|
||||||
char *av[] __attribute__ ((unused));
|
|
||||||
{
|
{
|
||||||
char *prompt;
|
int doit;
|
||||||
char *p;
|
char *prompt, *p;
|
||||||
int doit;
|
|
||||||
|
|
||||||
doit = ac == 1;
|
doit = argc == 1;
|
||||||
if ((prompt = getenv("TESTPROMPT")) == NULL)
|
if ((prompt = getenv("TESTPROMPT")) == NULL)
|
||||||
prompt = "testit> ";
|
prompt = "testit> ";
|
||||||
|
|
||||||
while ((p = readline(prompt)) != NULL) {
|
while ((p = readline(prompt)) != NULL) {
|
||||||
(void)printf("\t\t\t|%s|\n", p);
|
printf("\t\t\t|%s|\n", p);
|
||||||
if (doit) {
|
if (doit) {
|
||||||
if (strncmp(p, "cd ", 3) == 0) {
|
if (strncmp(p, "cd ", 3) == 0) {
|
||||||
if (chdir(&p[3]) < 0) {
|
if (chdir(&p[3]) < 0)
|
||||||
perror(&p[3]);
|
perror(&p[3]);
|
||||||
}
|
} else if (system(p) != 0) {
|
||||||
}
|
|
||||||
else if (system(p) != 0) {
|
|
||||||
perror(p);
|
perror(p);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
add_history(p);
|
add_history(p);
|
||||||
free(p);
|
free(p);
|
||||||
}
|
}
|
||||||
@@ -76,6 +66,11 @@ main(ac, av)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* $PchId: testit.c,v 1.3 1996/02/22 21:18:51 philip Exp $
|
* Local Variables:
|
||||||
|
* version-control: t
|
||||||
|
* indent-tabs-mode: t
|
||||||
|
* c-file-style: "ellemtel"
|
||||||
|
* c-basic-offset: 4
|
||||||
|
* End:
|
||||||
*/
|
*/
|
||||||
|
@@ -1,9 +1,9 @@
|
|||||||
# Makefile.in generated by automake 1.11 from Makefile.am.
|
# Makefile.in generated by automake 1.11.6 from Makefile.am.
|
||||||
# @configure_input@
|
# @configure_input@
|
||||||
|
|
||||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||||
# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
|
# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
|
||||||
# Inc.
|
# Foundation, Inc.
|
||||||
# This Makefile.in is free software; the Free Software Foundation
|
# This Makefile.in is free software; the Free Software Foundation
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
# with or without modifications, as long as this notice is preserved.
|
# with or without modifications, as long as this notice is preserved.
|
||||||
@@ -16,6 +16,23 @@
|
|||||||
@SET_MAKE@
|
@SET_MAKE@
|
||||||
|
|
||||||
VPATH = @srcdir@
|
VPATH = @srcdir@
|
||||||
|
am__make_dryrun = \
|
||||||
|
{ \
|
||||||
|
am__dry=no; \
|
||||||
|
case $$MAKEFLAGS in \
|
||||||
|
*\\[\ \ ]*) \
|
||||||
|
echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
|
||||||
|
| grep '^AM OK$$' >/dev/null || am__dry=yes;; \
|
||||||
|
*) \
|
||||||
|
for am__flg in $$MAKEFLAGS; do \
|
||||||
|
case $$am__flg in \
|
||||||
|
*=*|--*) ;; \
|
||||||
|
*n*) am__dry=yes; break;; \
|
||||||
|
esac; \
|
||||||
|
done;; \
|
||||||
|
esac; \
|
||||||
|
test $$am__dry = yes; \
|
||||||
|
}
|
||||||
pkgdatadir = $(datadir)/@PACKAGE@
|
pkgdatadir = $(datadir)/@PACKAGE@
|
||||||
pkgincludedir = $(includedir)/@PACKAGE@
|
pkgincludedir = $(includedir)/@PACKAGE@
|
||||||
pkglibdir = $(libdir)/@PACKAGE@
|
pkglibdir = $(libdir)/@PACKAGE@
|
||||||
@@ -32,25 +49,35 @@ POST_INSTALL = :
|
|||||||
NORMAL_UNINSTALL = :
|
NORMAL_UNINSTALL = :
|
||||||
PRE_UNINSTALL = :
|
PRE_UNINSTALL = :
|
||||||
POST_UNINSTALL = :
|
POST_UNINSTALL = :
|
||||||
|
build_triplet = @build@
|
||||||
|
host_triplet = @host@
|
||||||
subdir = include
|
subdir = include
|
||||||
DIST_COMMON = $(library_include_HEADERS) $(srcdir)/Makefile.am \
|
DIST_COMMON = $(library_include_HEADERS) $(srcdir)/Makefile.am \
|
||||||
$(srcdir)/Makefile.in
|
$(srcdir)/Makefile.in
|
||||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||||
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
|
||||||
|
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||||
|
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||||
|
$(top_srcdir)/configure.ac
|
||||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||||
$(ACLOCAL_M4)
|
$(ACLOCAL_M4)
|
||||||
mkinstalldirs = $(install_sh) -d
|
mkinstalldirs = $(install_sh) -d
|
||||||
CONFIG_HEADER = $(top_builddir)/config.h
|
CONFIG_HEADER = $(top_builddir)/config.h
|
||||||
CONFIG_CLEAN_FILES =
|
CONFIG_CLEAN_FILES =
|
||||||
CONFIG_CLEAN_VPATH_FILES =
|
CONFIG_CLEAN_VPATH_FILES =
|
||||||
AM_V_GEN = $(am__v_GEN_$(V))
|
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
||||||
am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
|
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
||||||
am__v_GEN_0 = @echo " GEN " $@;
|
am__v_GEN_0 = @echo " GEN " $@;
|
||||||
AM_V_at = $(am__v_at_$(V))
|
AM_V_at = $(am__v_at_@AM_V@)
|
||||||
am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
|
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
||||||
am__v_at_0 = @
|
am__v_at_0 = @
|
||||||
SOURCES =
|
SOURCES =
|
||||||
DIST_SOURCES =
|
DIST_SOURCES =
|
||||||
|
am__can_run_installinfo = \
|
||||||
|
case $$AM_UPDATE_INFO_DIR in \
|
||||||
|
n|no|NO) false;; \
|
||||||
|
*) (install-info --version) >/dev/null 2>&1;; \
|
||||||
|
esac
|
||||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||||
am__vpath_adj = case $$p in \
|
am__vpath_adj = case $$p in \
|
||||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||||
@@ -72,6 +99,12 @@ am__nobase_list = $(am__nobase_strip_setup); \
|
|||||||
am__base_list = \
|
am__base_list = \
|
||||||
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
|
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
|
||||||
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
|
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
|
||||||
|
am__uninstall_files_from_dir = { \
|
||||||
|
test -z "$$files" \
|
||||||
|
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
|
||||||
|
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
|
||||||
|
$(am__cd) "$$dir" && rm -f $$files; }; \
|
||||||
|
}
|
||||||
am__installdirs = "$(DESTDIR)$(library_includedir)"
|
am__installdirs = "$(DESTDIR)$(library_includedir)"
|
||||||
HEADERS = $(library_include_HEADERS)
|
HEADERS = $(library_include_HEADERS)
|
||||||
ETAGS = etags
|
ETAGS = etags
|
||||||
@@ -79,7 +112,9 @@ CTAGS = ctags
|
|||||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
ACLOCAL = @ACLOCAL@
|
ACLOCAL = @ACLOCAL@
|
||||||
AMTAR = @AMTAR@
|
AMTAR = @AMTAR@
|
||||||
|
AM_CFLAGS = @AM_CFLAGS@
|
||||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||||
|
AR = @AR@
|
||||||
AUTOCONF = @AUTOCONF@
|
AUTOCONF = @AUTOCONF@
|
||||||
AUTOHEADER = @AUTOHEADER@
|
AUTOHEADER = @AUTOHEADER@
|
||||||
AUTOMAKE = @AUTOMAKE@
|
AUTOMAKE = @AUTOMAKE@
|
||||||
@@ -92,24 +127,38 @@ CPPFLAGS = @CPPFLAGS@
|
|||||||
CYGPATH_W = @CYGPATH_W@
|
CYGPATH_W = @CYGPATH_W@
|
||||||
DEFS = @DEFS@
|
DEFS = @DEFS@
|
||||||
DEPDIR = @DEPDIR@
|
DEPDIR = @DEPDIR@
|
||||||
|
DLLTOOL = @DLLTOOL@
|
||||||
|
DSYMUTIL = @DSYMUTIL@
|
||||||
|
DUMPBIN = @DUMPBIN@
|
||||||
ECHO_C = @ECHO_C@
|
ECHO_C = @ECHO_C@
|
||||||
ECHO_N = @ECHO_N@
|
ECHO_N = @ECHO_N@
|
||||||
ECHO_T = @ECHO_T@
|
ECHO_T = @ECHO_T@
|
||||||
EGREP = @EGREP@
|
EGREP = @EGREP@
|
||||||
EXEEXT = @EXEEXT@
|
EXEEXT = @EXEEXT@
|
||||||
|
FGREP = @FGREP@
|
||||||
GREP = @GREP@
|
GREP = @GREP@
|
||||||
INSTALL = @INSTALL@
|
INSTALL = @INSTALL@
|
||||||
INSTALL_DATA = @INSTALL_DATA@
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||||
|
LD = @LD@
|
||||||
LDFLAGS = @LDFLAGS@
|
LDFLAGS = @LDFLAGS@
|
||||||
LIBOBJS = @LIBOBJS@
|
LIBOBJS = @LIBOBJS@
|
||||||
LIBS = @LIBS@
|
LIBS = @LIBS@
|
||||||
|
LIBTOOL = @LIBTOOL@
|
||||||
|
LIPO = @LIPO@
|
||||||
|
LN_S = @LN_S@
|
||||||
LTLIBOBJS = @LTLIBOBJS@
|
LTLIBOBJS = @LTLIBOBJS@
|
||||||
MAKEINFO = @MAKEINFO@
|
MAKEINFO = @MAKEINFO@
|
||||||
|
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||||
MKDIR_P = @MKDIR_P@
|
MKDIR_P = @MKDIR_P@
|
||||||
|
NM = @NM@
|
||||||
|
NMEDIT = @NMEDIT@
|
||||||
|
OBJDUMP = @OBJDUMP@
|
||||||
OBJEXT = @OBJEXT@
|
OBJEXT = @OBJEXT@
|
||||||
|
OTOOL = @OTOOL@
|
||||||
|
OTOOL64 = @OTOOL64@
|
||||||
PACKAGE = @PACKAGE@
|
PACKAGE = @PACKAGE@
|
||||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||||
PACKAGE_NAME = @PACKAGE_NAME@
|
PACKAGE_NAME = @PACKAGE_NAME@
|
||||||
@@ -119,6 +168,7 @@ PACKAGE_URL = @PACKAGE_URL@
|
|||||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||||
RANLIB = @RANLIB@
|
RANLIB = @RANLIB@
|
||||||
|
SED = @SED@
|
||||||
SET_MAKE = @SET_MAKE@
|
SET_MAKE = @SET_MAKE@
|
||||||
SHELL = @SHELL@
|
SHELL = @SHELL@
|
||||||
STRIP = @STRIP@
|
STRIP = @STRIP@
|
||||||
@@ -127,21 +177,31 @@ abs_builddir = @abs_builddir@
|
|||||||
abs_srcdir = @abs_srcdir@
|
abs_srcdir = @abs_srcdir@
|
||||||
abs_top_builddir = @abs_top_builddir@
|
abs_top_builddir = @abs_top_builddir@
|
||||||
abs_top_srcdir = @abs_top_srcdir@
|
abs_top_srcdir = @abs_top_srcdir@
|
||||||
|
ac_ct_AR = @ac_ct_AR@
|
||||||
ac_ct_CC = @ac_ct_CC@
|
ac_ct_CC = @ac_ct_CC@
|
||||||
|
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||||
am__include = @am__include@
|
am__include = @am__include@
|
||||||
am__leading_dot = @am__leading_dot@
|
am__leading_dot = @am__leading_dot@
|
||||||
am__quote = @am__quote@
|
am__quote = @am__quote@
|
||||||
am__tar = @am__tar@
|
am__tar = @am__tar@
|
||||||
am__untar = @am__untar@
|
am__untar = @am__untar@
|
||||||
bindir = @bindir@
|
bindir = @bindir@
|
||||||
|
build = @build@
|
||||||
build_alias = @build_alias@
|
build_alias = @build_alias@
|
||||||
|
build_cpu = @build_cpu@
|
||||||
|
build_os = @build_os@
|
||||||
|
build_vendor = @build_vendor@
|
||||||
builddir = @builddir@
|
builddir = @builddir@
|
||||||
datadir = @datadir@
|
datadir = @datadir@
|
||||||
datarootdir = @datarootdir@
|
datarootdir = @datarootdir@
|
||||||
docdir = @docdir@
|
docdir = @docdir@
|
||||||
dvidir = @dvidir@
|
dvidir = @dvidir@
|
||||||
exec_prefix = @exec_prefix@
|
exec_prefix = @exec_prefix@
|
||||||
|
host = @host@
|
||||||
host_alias = @host_alias@
|
host_alias = @host_alias@
|
||||||
|
host_cpu = @host_cpu@
|
||||||
|
host_os = @host_os@
|
||||||
|
host_vendor = @host_vendor@
|
||||||
htmldir = @htmldir@
|
htmldir = @htmldir@
|
||||||
includedir = @includedir@
|
includedir = @includedir@
|
||||||
infodir = @infodir@
|
infodir = @infodir@
|
||||||
@@ -201,10 +261,19 @@ $(top_srcdir)/configure: $(am__configure_deps)
|
|||||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||||
$(am__aclocal_m4_deps):
|
$(am__aclocal_m4_deps):
|
||||||
|
|
||||||
|
mostlyclean-libtool:
|
||||||
|
-rm -f *.lo
|
||||||
|
|
||||||
|
clean-libtool:
|
||||||
|
-rm -rf .libs _libs
|
||||||
install-library_includeHEADERS: $(library_include_HEADERS)
|
install-library_includeHEADERS: $(library_include_HEADERS)
|
||||||
@$(NORMAL_INSTALL)
|
@$(NORMAL_INSTALL)
|
||||||
test -z "$(library_includedir)" || $(MKDIR_P) "$(DESTDIR)$(library_includedir)"
|
|
||||||
@list='$(library_include_HEADERS)'; test -n "$(library_includedir)" || list=; \
|
@list='$(library_include_HEADERS)'; test -n "$(library_includedir)" || list=; \
|
||||||
|
if test -n "$$list"; then \
|
||||||
|
echo " $(MKDIR_P) '$(DESTDIR)$(library_includedir)'"; \
|
||||||
|
$(MKDIR_P) "$(DESTDIR)$(library_includedir)" || exit 1; \
|
||||||
|
fi; \
|
||||||
for p in $$list; do \
|
for p in $$list; do \
|
||||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||||
echo "$$d$$p"; \
|
echo "$$d$$p"; \
|
||||||
@@ -218,9 +287,7 @@ uninstall-library_includeHEADERS:
|
|||||||
@$(NORMAL_UNINSTALL)
|
@$(NORMAL_UNINSTALL)
|
||||||
@list='$(library_include_HEADERS)'; test -n "$(library_includedir)" || list=; \
|
@list='$(library_include_HEADERS)'; test -n "$(library_includedir)" || list=; \
|
||||||
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
|
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
|
||||||
test -n "$$files" || exit 0; \
|
dir='$(DESTDIR)$(library_includedir)'; $(am__uninstall_files_from_dir)
|
||||||
echo " ( cd '$(DESTDIR)$(library_includedir)' && rm -f" $$files ")"; \
|
|
||||||
cd "$(DESTDIR)$(library_includedir)" && rm -f $$files
|
|
||||||
|
|
||||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||||
@@ -321,10 +388,15 @@ install-am: all-am
|
|||||||
|
|
||||||
installcheck: installcheck-am
|
installcheck: installcheck-am
|
||||||
install-strip:
|
install-strip:
|
||||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
if test -z '$(STRIP)'; then \
|
||||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||||
`test -z '$(STRIP)' || \
|
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
install; \
|
||||||
|
else \
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||||
|
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||||
|
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||||
|
fi
|
||||||
mostlyclean-generic:
|
mostlyclean-generic:
|
||||||
|
|
||||||
clean-generic:
|
clean-generic:
|
||||||
@@ -338,7 +410,7 @@ maintainer-clean-generic:
|
|||||||
@echo "it deletes files that may require special tools to rebuild."
|
@echo "it deletes files that may require special tools to rebuild."
|
||||||
clean: clean-am
|
clean: clean-am
|
||||||
|
|
||||||
clean-am: clean-generic mostlyclean-am
|
clean-am: clean-generic clean-libtool mostlyclean-am
|
||||||
|
|
||||||
distclean: distclean-am
|
distclean: distclean-am
|
||||||
-rm -f Makefile
|
-rm -f Makefile
|
||||||
@@ -390,7 +462,7 @@ maintainer-clean-am: distclean-am maintainer-clean-generic
|
|||||||
|
|
||||||
mostlyclean: mostlyclean-am
|
mostlyclean: mostlyclean-am
|
||||||
|
|
||||||
mostlyclean-am: mostlyclean-generic
|
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||||
|
|
||||||
pdf: pdf-am
|
pdf: pdf-am
|
||||||
|
|
||||||
@@ -405,16 +477,17 @@ uninstall-am: uninstall-library_includeHEADERS
|
|||||||
.MAKE: install-am install-strip
|
.MAKE: install-am install-strip
|
||||||
|
|
||||||
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
|
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
|
||||||
ctags distclean distclean-generic distclean-tags distdir dvi \
|
clean-libtool ctags distclean distclean-generic \
|
||||||
dvi-am html html-am info info-am install install-am \
|
distclean-libtool distclean-tags distdir dvi dvi-am html \
|
||||||
install-data install-data-am install-dvi install-dvi-am \
|
html-am info info-am install install-am install-data \
|
||||||
install-exec install-exec-am install-html install-html-am \
|
install-data-am install-dvi install-dvi-am install-exec \
|
||||||
install-info install-info-am install-library_includeHEADERS \
|
install-exec-am install-html install-html-am install-info \
|
||||||
install-man install-pdf install-pdf-am install-ps \
|
install-info-am install-library_includeHEADERS install-man \
|
||||||
install-ps-am install-strip installcheck installcheck-am \
|
install-pdf install-pdf-am install-ps install-ps-am \
|
||||||
installdirs maintainer-clean maintainer-clean-generic \
|
install-strip installcheck installcheck-am installdirs \
|
||||||
mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags \
|
maintainer-clean maintainer-clean-generic mostlyclean \
|
||||||
uninstall uninstall-am uninstall-library_includeHEADERS
|
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
|
||||||
|
tags uninstall uninstall-am uninstall-library_includeHEADERS
|
||||||
|
|
||||||
|
|
||||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||||
|
@@ -1,19 +1,95 @@
|
|||||||
/* Minix editline */
|
/* Minix editline
|
||||||
|
*
|
||||||
|
* Copyright (c) 1992, 1993 Simmule Turner and Rich Salz. All rights reserved.
|
||||||
|
*
|
||||||
|
* This software is not subject to any license of the American Telephone
|
||||||
|
* and Telegraph Company or of the Regents of the University of California.
|
||||||
|
*
|
||||||
|
* Permission is granted to anyone to use this software for any purpose on
|
||||||
|
* any computer system, and to alter it and redistribute it freely, subject
|
||||||
|
* to the following restrictions:
|
||||||
|
* 1. The authors are not responsible for the consequences of use of this
|
||||||
|
* software, no matter how awful, even if they arise from flaws in it.
|
||||||
|
* 2. The origin of this software must not be misrepresented, either by
|
||||||
|
* explicit claim or by omission. Since few users ever read sources,
|
||||||
|
* credits must appear in the documentation.
|
||||||
|
* 3. Altered versions must be plainly marked as such, and must not be
|
||||||
|
* misrepresented as being the original software. Since few users
|
||||||
|
* ever read sources, credits must appear in the documentation.
|
||||||
|
* 4. This notice may not be removed or altered.
|
||||||
|
*/
|
||||||
#ifndef __EDITLINE_H__
|
#ifndef __EDITLINE_H__
|
||||||
#define __EDITLINE_H__
|
#define __EDITLINE_H__
|
||||||
|
|
||||||
/* Assign these to get command completion, see cli.c for
|
/* Handy macros when binding keys. */
|
||||||
* example usage. */
|
#define CTL(x) ((x) & 0x1F)
|
||||||
extern char *(*rl_complete)(char *token, int *match);
|
#define ISCTL(x) ((x) && (x) < ' ')
|
||||||
extern int (*rl_list_possib)(char *token, char ***av);
|
#define UNCTL(x) ((x) + 64)
|
||||||
|
#define META(x) ((x) | 0x80)
|
||||||
|
#define ISMETA(x) ((x) & 0x80)
|
||||||
|
#define UNMETA(x) ((x) & 0x7F)
|
||||||
|
|
||||||
|
/* Command status codes. */
|
||||||
|
typedef enum {
|
||||||
|
CSdone = 0, /* OK */
|
||||||
|
CSeof, /* Error, or EOF */
|
||||||
|
CSmove,
|
||||||
|
CSdispatch,
|
||||||
|
CSstay,
|
||||||
|
CSsignal
|
||||||
|
} el_status_t;
|
||||||
|
|
||||||
|
/* Editline specific types, despite rl_ prefix. From Heimdal project. */
|
||||||
|
typedef char* rl_complete_func_t(char*, int*);
|
||||||
|
typedef int rl_list_possib_func_t(char*, char***);
|
||||||
|
typedef el_status_t el_keymap_func_t(void);
|
||||||
|
typedef int rl_hook_func_t(void);
|
||||||
|
typedef int rl_getc_func_t(void);
|
||||||
|
typedef void rl_voidfunc_t(void);
|
||||||
|
typedef void rl_vintfunc_t(int);
|
||||||
|
|
||||||
|
/* Display 8-bit chars "as-is" or as `M-x'? Toggle with M-m. (Default:0 - "as-is") */
|
||||||
|
extern int rl_meta_chars;
|
||||||
|
|
||||||
|
/* Editline specific functions. */
|
||||||
|
extern char * el_find_word(void);
|
||||||
|
extern void el_print_columns(int ac, char **av);
|
||||||
|
extern el_status_t el_ring_bell(void);
|
||||||
|
extern el_status_t el_del_char(void);
|
||||||
|
|
||||||
|
extern el_status_t el_bind_key(int key, el_keymap_func_t function);
|
||||||
|
extern el_status_t el_bind_key_in_metamap(int key, el_keymap_func_t function);
|
||||||
|
|
||||||
|
extern char *rl_complete(char *token, int *match);
|
||||||
|
extern int rl_list_possib(char *token, char ***av);
|
||||||
|
|
||||||
|
/* For compatibility with FSF readline. */
|
||||||
|
extern int rl_point;
|
||||||
|
extern int rl_mark;
|
||||||
|
extern int rl_end;
|
||||||
|
extern int rl_inhibit_complete;
|
||||||
|
extern char *rl_line_buffer;
|
||||||
|
extern const char *rl_readline_name;
|
||||||
|
extern FILE *rl_instream; /* The stdio stream from which input is read. Defaults to stdin if NULL - Not supported yet! */
|
||||||
|
extern FILE *rl_outstream; /* The stdio stream to which output is flushed. Defaults to stdout if NULL - Not supported yet! */
|
||||||
|
extern int el_no_echo; /* e.g under emacs, don't echo except prompt */
|
||||||
|
extern int el_hist_size; /* size of history scrollback buffer, default: 15 */
|
||||||
|
|
||||||
/*
|
|
||||||
** For compatibility with FSF readline.
|
|
||||||
*/
|
|
||||||
extern void rl_reset_terminal(char *p);
|
|
||||||
extern void rl_initialize(void);
|
extern void rl_initialize(void);
|
||||||
|
extern void rl_reset_terminal(const char *terminal_name);
|
||||||
|
|
||||||
extern char *readline(const char *prompt);
|
extern char *readline(const char *prompt);
|
||||||
extern void add_history(char *line); /* OBSOLETE: Made part of readline(). -- kjb */
|
extern void add_history(const char *line);
|
||||||
|
|
||||||
|
extern int read_history(const char *filename);
|
||||||
|
extern int write_history(const char *filename);
|
||||||
|
|
||||||
|
rl_complete_func_t *rl_set_complete_func(rl_complete_func_t *func);
|
||||||
|
rl_list_possib_func_t *rl_set_list_possib_func(rl_list_possib_func_t *func);
|
||||||
|
|
||||||
|
void rl_prep_terminal(int meta_flag);
|
||||||
|
void rl_deprep_terminal(void);
|
||||||
|
|
||||||
|
int rl_getc(void);
|
||||||
|
|
||||||
#endif /* __EDITLINE_H__ */
|
#endif /* __EDITLINE_H__ */
|
||||||
|
32
install-sh
32
install-sh
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# install - install a program, script, or datafile
|
# install - install a program, script, or datafile
|
||||||
|
|
||||||
scriptversion=2006-12-25.00
|
scriptversion=2011-01-19.21; # UTC
|
||||||
|
|
||||||
# This originates from X11R5 (mit/util/scripts/install.sh), which was
|
# This originates from X11R5 (mit/util/scripts/install.sh), which was
|
||||||
# later released in X11R6 (xc/config/util/install.sh) with the
|
# later released in X11R6 (xc/config/util/install.sh) with the
|
||||||
@@ -156,6 +156,10 @@ while test $# -ne 0; do
|
|||||||
-s) stripcmd=$stripprog;;
|
-s) stripcmd=$stripprog;;
|
||||||
|
|
||||||
-t) dst_arg=$2
|
-t) dst_arg=$2
|
||||||
|
# Protect names problematic for `test' and other utilities.
|
||||||
|
case $dst_arg in
|
||||||
|
-* | [=\(\)!]) dst_arg=./$dst_arg;;
|
||||||
|
esac
|
||||||
shift;;
|
shift;;
|
||||||
|
|
||||||
-T) no_target_directory=true;;
|
-T) no_target_directory=true;;
|
||||||
@@ -186,6 +190,10 @@ if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
|
|||||||
fi
|
fi
|
||||||
shift # arg
|
shift # arg
|
||||||
dst_arg=$arg
|
dst_arg=$arg
|
||||||
|
# Protect names problematic for `test' and other utilities.
|
||||||
|
case $dst_arg in
|
||||||
|
-* | [=\(\)!]) dst_arg=./$dst_arg;;
|
||||||
|
esac
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -200,7 +208,11 @@ if test $# -eq 0; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if test -z "$dir_arg"; then
|
if test -z "$dir_arg"; then
|
||||||
trap '(exit $?); exit' 1 2 13 15
|
do_exit='(exit $ret); exit $ret'
|
||||||
|
trap "ret=129; $do_exit" 1
|
||||||
|
trap "ret=130; $do_exit" 2
|
||||||
|
trap "ret=141; $do_exit" 13
|
||||||
|
trap "ret=143; $do_exit" 15
|
||||||
|
|
||||||
# Set umask so as not to create temps with too-generous modes.
|
# Set umask so as not to create temps with too-generous modes.
|
||||||
# However, 'strip' requires both read and write access to temps.
|
# However, 'strip' requires both read and write access to temps.
|
||||||
@@ -228,9 +240,9 @@ fi
|
|||||||
|
|
||||||
for src
|
for src
|
||||||
do
|
do
|
||||||
# Protect names starting with `-'.
|
# Protect names problematic for `test' and other utilities.
|
||||||
case $src in
|
case $src in
|
||||||
-*) src=./$src;;
|
-* | [=\(\)!]) src=./$src;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if test -n "$dir_arg"; then
|
if test -n "$dir_arg"; then
|
||||||
@@ -252,12 +264,7 @@ do
|
|||||||
echo "$0: no destination specified." >&2
|
echo "$0: no destination specified." >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dst=$dst_arg
|
dst=$dst_arg
|
||||||
# Protect names starting with `-'.
|
|
||||||
case $dst in
|
|
||||||
-*) dst=./$dst;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# If destination is a directory, append the input filename; won't work
|
# If destination is a directory, append the input filename; won't work
|
||||||
# if double slashes aren't ignored.
|
# if double slashes aren't ignored.
|
||||||
@@ -385,7 +392,7 @@ do
|
|||||||
|
|
||||||
case $dstdir in
|
case $dstdir in
|
||||||
/*) prefix='/';;
|
/*) prefix='/';;
|
||||||
-*) prefix='./';;
|
[-=\(\)!]*) prefix='./';;
|
||||||
*) prefix='';;
|
*) prefix='';;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@@ -403,7 +410,7 @@ do
|
|||||||
|
|
||||||
for d
|
for d
|
||||||
do
|
do
|
||||||
test -z "$d" && continue
|
test X"$d" = X && continue
|
||||||
|
|
||||||
prefix=$prefix$d
|
prefix=$prefix$d
|
||||||
if test -d "$prefix"; then
|
if test -d "$prefix"; then
|
||||||
@@ -515,5 +522,6 @@ done
|
|||||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||||
# time-stamp-start: "scriptversion="
|
# time-stamp-start: "scriptversion="
|
||||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||||
# time-stamp-end: "$"
|
# time-stamp-time-zone: "UTC"
|
||||||
|
# time-stamp-end: "; # UTC"
|
||||||
# End:
|
# End:
|
||||||
|
7991
m4/libtool.m4
vendored
Normal file
7991
m4/libtool.m4
vendored
Normal file
File diff suppressed because it is too large
Load Diff
384
m4/ltoptions.m4
vendored
Normal file
384
m4/ltoptions.m4
vendored
Normal file
@@ -0,0 +1,384 @@
|
|||||||
|
# Helper functions for option handling. -*- Autoconf -*-
|
||||||
|
#
|
||||||
|
# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
|
||||||
|
# Inc.
|
||||||
|
# Written by Gary V. Vaughan, 2004
|
||||||
|
#
|
||||||
|
# This file is free software; the Free Software Foundation gives
|
||||||
|
# unlimited permission to copy and/or distribute it, with or without
|
||||||
|
# modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# serial 7 ltoptions.m4
|
||||||
|
|
||||||
|
# This is to help aclocal find these macros, as it can't see m4_define.
|
||||||
|
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
|
||||||
|
|
||||||
|
|
||||||
|
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
|
||||||
|
# ------------------------------------------
|
||||||
|
m4_define([_LT_MANGLE_OPTION],
|
||||||
|
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
|
||||||
|
|
||||||
|
|
||||||
|
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
|
||||||
|
# ---------------------------------------
|
||||||
|
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
|
||||||
|
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
|
||||||
|
# saved as a flag.
|
||||||
|
m4_define([_LT_SET_OPTION],
|
||||||
|
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
|
||||||
|
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
|
||||||
|
_LT_MANGLE_DEFUN([$1], [$2]),
|
||||||
|
[m4_warning([Unknown $1 option `$2'])])[]dnl
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
|
||||||
|
# ------------------------------------------------------------
|
||||||
|
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
|
||||||
|
m4_define([_LT_IF_OPTION],
|
||||||
|
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
|
||||||
|
|
||||||
|
|
||||||
|
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
|
||||||
|
# -------------------------------------------------------
|
||||||
|
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
|
||||||
|
# are set.
|
||||||
|
m4_define([_LT_UNLESS_OPTIONS],
|
||||||
|
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
|
||||||
|
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
|
||||||
|
[m4_define([$0_found])])])[]dnl
|
||||||
|
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
|
||||||
|
])[]dnl
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
|
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
|
||||||
|
# ----------------------------------------
|
||||||
|
# OPTION-LIST is a space-separated list of Libtool options associated
|
||||||
|
# with MACRO-NAME. If any OPTION has a matching handler declared with
|
||||||
|
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
|
||||||
|
# the unknown option and exit.
|
||||||
|
m4_defun([_LT_SET_OPTIONS],
|
||||||
|
[# Set options
|
||||||
|
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
|
||||||
|
[_LT_SET_OPTION([$1], _LT_Option)])
|
||||||
|
|
||||||
|
m4_if([$1],[LT_INIT],[
|
||||||
|
dnl
|
||||||
|
dnl Simply set some default values (i.e off) if boolean options were not
|
||||||
|
dnl specified:
|
||||||
|
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
|
||||||
|
])
|
||||||
|
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
|
||||||
|
])
|
||||||
|
dnl
|
||||||
|
dnl If no reference was made to various pairs of opposing options, then
|
||||||
|
dnl we run the default mode handler for the pair. For example, if neither
|
||||||
|
dnl `shared' nor `disable-shared' was passed, we enable building of shared
|
||||||
|
dnl archives by default:
|
||||||
|
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
|
||||||
|
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
|
||||||
|
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
|
||||||
|
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
|
||||||
|
[_LT_ENABLE_FAST_INSTALL])
|
||||||
|
])
|
||||||
|
])# _LT_SET_OPTIONS
|
||||||
|
|
||||||
|
|
||||||
|
## --------------------------------- ##
|
||||||
|
## Macros to handle LT_INIT options. ##
|
||||||
|
## --------------------------------- ##
|
||||||
|
|
||||||
|
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
|
||||||
|
# -----------------------------------------
|
||||||
|
m4_define([_LT_MANGLE_DEFUN],
|
||||||
|
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
|
||||||
|
|
||||||
|
|
||||||
|
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
|
||||||
|
# -----------------------------------------------
|
||||||
|
m4_define([LT_OPTION_DEFINE],
|
||||||
|
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
|
||||||
|
])# LT_OPTION_DEFINE
|
||||||
|
|
||||||
|
|
||||||
|
# dlopen
|
||||||
|
# ------
|
||||||
|
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
|
||||||
|
])
|
||||||
|
|
||||||
|
AU_DEFUN([AC_LIBTOOL_DLOPEN],
|
||||||
|
[_LT_SET_OPTION([LT_INIT], [dlopen])
|
||||||
|
AC_DIAGNOSE([obsolete],
|
||||||
|
[$0: Remove this warning and the call to _LT_SET_OPTION when you
|
||||||
|
put the `dlopen' option into LT_INIT's first parameter.])
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl aclocal-1.4 backwards compatibility:
|
||||||
|
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
|
||||||
|
|
||||||
|
|
||||||
|
# win32-dll
|
||||||
|
# ---------
|
||||||
|
# Declare package support for building win32 dll's.
|
||||||
|
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
|
||||||
|
[enable_win32_dll=yes
|
||||||
|
|
||||||
|
case $host in
|
||||||
|
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
|
||||||
|
AC_CHECK_TOOL(AS, as, false)
|
||||||
|
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
|
||||||
|
AC_CHECK_TOOL(OBJDUMP, objdump, false)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
test -z "$AS" && AS=as
|
||||||
|
_LT_DECL([], [AS], [1], [Assembler program])dnl
|
||||||
|
|
||||||
|
test -z "$DLLTOOL" && DLLTOOL=dlltool
|
||||||
|
_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
|
||||||
|
|
||||||
|
test -z "$OBJDUMP" && OBJDUMP=objdump
|
||||||
|
_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
|
||||||
|
])# win32-dll
|
||||||
|
|
||||||
|
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
|
||||||
|
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
||||||
|
_LT_SET_OPTION([LT_INIT], [win32-dll])
|
||||||
|
AC_DIAGNOSE([obsolete],
|
||||||
|
[$0: Remove this warning and the call to _LT_SET_OPTION when you
|
||||||
|
put the `win32-dll' option into LT_INIT's first parameter.])
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl aclocal-1.4 backwards compatibility:
|
||||||
|
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
|
||||||
|
|
||||||
|
|
||||||
|
# _LT_ENABLE_SHARED([DEFAULT])
|
||||||
|
# ----------------------------
|
||||||
|
# implement the --enable-shared flag, and supports the `shared' and
|
||||||
|
# `disable-shared' LT_INIT options.
|
||||||
|
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
||||||
|
m4_define([_LT_ENABLE_SHARED],
|
||||||
|
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
|
||||||
|
AC_ARG_ENABLE([shared],
|
||||||
|
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
|
||||||
|
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
|
||||||
|
[p=${PACKAGE-default}
|
||||||
|
case $enableval in
|
||||||
|
yes) enable_shared=yes ;;
|
||||||
|
no) enable_shared=no ;;
|
||||||
|
*)
|
||||||
|
enable_shared=no
|
||||||
|
# Look at the argument we got. We use all the common list separators.
|
||||||
|
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
||||||
|
for pkg in $enableval; do
|
||||||
|
IFS="$lt_save_ifs"
|
||||||
|
if test "X$pkg" = "X$p"; then
|
||||||
|
enable_shared=yes
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
IFS="$lt_save_ifs"
|
||||||
|
;;
|
||||||
|
esac],
|
||||||
|
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
|
||||||
|
|
||||||
|
_LT_DECL([build_libtool_libs], [enable_shared], [0],
|
||||||
|
[Whether or not to build shared libraries])
|
||||||
|
])# _LT_ENABLE_SHARED
|
||||||
|
|
||||||
|
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
|
||||||
|
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
|
||||||
|
|
||||||
|
# Old names:
|
||||||
|
AC_DEFUN([AC_ENABLE_SHARED],
|
||||||
|
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN([AC_DISABLE_SHARED],
|
||||||
|
[_LT_SET_OPTION([LT_INIT], [disable-shared])
|
||||||
|
])
|
||||||
|
|
||||||
|
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
|
||||||
|
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
|
||||||
|
|
||||||
|
dnl aclocal-1.4 backwards compatibility:
|
||||||
|
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
|
||||||
|
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# _LT_ENABLE_STATIC([DEFAULT])
|
||||||
|
# ----------------------------
|
||||||
|
# implement the --enable-static flag, and support the `static' and
|
||||||
|
# `disable-static' LT_INIT options.
|
||||||
|
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
||||||
|
m4_define([_LT_ENABLE_STATIC],
|
||||||
|
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
|
||||||
|
AC_ARG_ENABLE([static],
|
||||||
|
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
|
||||||
|
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
|
||||||
|
[p=${PACKAGE-default}
|
||||||
|
case $enableval in
|
||||||
|
yes) enable_static=yes ;;
|
||||||
|
no) enable_static=no ;;
|
||||||
|
*)
|
||||||
|
enable_static=no
|
||||||
|
# Look at the argument we got. We use all the common list separators.
|
||||||
|
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
||||||
|
for pkg in $enableval; do
|
||||||
|
IFS="$lt_save_ifs"
|
||||||
|
if test "X$pkg" = "X$p"; then
|
||||||
|
enable_static=yes
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
IFS="$lt_save_ifs"
|
||||||
|
;;
|
||||||
|
esac],
|
||||||
|
[enable_static=]_LT_ENABLE_STATIC_DEFAULT)
|
||||||
|
|
||||||
|
_LT_DECL([build_old_libs], [enable_static], [0],
|
||||||
|
[Whether or not to build static libraries])
|
||||||
|
])# _LT_ENABLE_STATIC
|
||||||
|
|
||||||
|
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
|
||||||
|
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
|
||||||
|
|
||||||
|
# Old names:
|
||||||
|
AC_DEFUN([AC_ENABLE_STATIC],
|
||||||
|
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN([AC_DISABLE_STATIC],
|
||||||
|
[_LT_SET_OPTION([LT_INIT], [disable-static])
|
||||||
|
])
|
||||||
|
|
||||||
|
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
|
||||||
|
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
|
||||||
|
|
||||||
|
dnl aclocal-1.4 backwards compatibility:
|
||||||
|
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
|
||||||
|
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
|
||||||
|
# ----------------------------------
|
||||||
|
# implement the --enable-fast-install flag, and support the `fast-install'
|
||||||
|
# and `disable-fast-install' LT_INIT options.
|
||||||
|
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
|
||||||
|
m4_define([_LT_ENABLE_FAST_INSTALL],
|
||||||
|
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
|
||||||
|
AC_ARG_ENABLE([fast-install],
|
||||||
|
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
|
||||||
|
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
|
||||||
|
[p=${PACKAGE-default}
|
||||||
|
case $enableval in
|
||||||
|
yes) enable_fast_install=yes ;;
|
||||||
|
no) enable_fast_install=no ;;
|
||||||
|
*)
|
||||||
|
enable_fast_install=no
|
||||||
|
# Look at the argument we got. We use all the common list separators.
|
||||||
|
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
||||||
|
for pkg in $enableval; do
|
||||||
|
IFS="$lt_save_ifs"
|
||||||
|
if test "X$pkg" = "X$p"; then
|
||||||
|
enable_fast_install=yes
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
IFS="$lt_save_ifs"
|
||||||
|
;;
|
||||||
|
esac],
|
||||||
|
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
|
||||||
|
|
||||||
|
_LT_DECL([fast_install], [enable_fast_install], [0],
|
||||||
|
[Whether or not to optimize for fast installation])dnl
|
||||||
|
])# _LT_ENABLE_FAST_INSTALL
|
||||||
|
|
||||||
|
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
|
||||||
|
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
|
||||||
|
|
||||||
|
# Old names:
|
||||||
|
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
|
||||||
|
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
|
||||||
|
AC_DIAGNOSE([obsolete],
|
||||||
|
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
|
||||||
|
the `fast-install' option into LT_INIT's first parameter.])
|
||||||
|
])
|
||||||
|
|
||||||
|
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
|
||||||
|
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
|
||||||
|
AC_DIAGNOSE([obsolete],
|
||||||
|
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
|
||||||
|
the `disable-fast-install' option into LT_INIT's first parameter.])
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl aclocal-1.4 backwards compatibility:
|
||||||
|
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
|
||||||
|
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
|
||||||
|
|
||||||
|
|
||||||
|
# _LT_WITH_PIC([MODE])
|
||||||
|
# --------------------
|
||||||
|
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
|
||||||
|
# LT_INIT options.
|
||||||
|
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
|
||||||
|
m4_define([_LT_WITH_PIC],
|
||||||
|
[AC_ARG_WITH([pic],
|
||||||
|
[AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
|
||||||
|
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
|
||||||
|
[lt_p=${PACKAGE-default}
|
||||||
|
case $withval in
|
||||||
|
yes|no) pic_mode=$withval ;;
|
||||||
|
*)
|
||||||
|
pic_mode=default
|
||||||
|
# Look at the argument we got. We use all the common list separators.
|
||||||
|
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
|
||||||
|
for lt_pkg in $withval; do
|
||||||
|
IFS="$lt_save_ifs"
|
||||||
|
if test "X$lt_pkg" = "X$lt_p"; then
|
||||||
|
pic_mode=yes
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
IFS="$lt_save_ifs"
|
||||||
|
;;
|
||||||
|
esac],
|
||||||
|
[pic_mode=default])
|
||||||
|
|
||||||
|
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
|
||||||
|
|
||||||
|
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
|
||||||
|
])# _LT_WITH_PIC
|
||||||
|
|
||||||
|
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
|
||||||
|
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
|
||||||
|
|
||||||
|
# Old name:
|
||||||
|
AU_DEFUN([AC_LIBTOOL_PICMODE],
|
||||||
|
[_LT_SET_OPTION([LT_INIT], [pic-only])
|
||||||
|
AC_DIAGNOSE([obsolete],
|
||||||
|
[$0: Remove this warning and the call to _LT_SET_OPTION when you
|
||||||
|
put the `pic-only' option into LT_INIT's first parameter.])
|
||||||
|
])
|
||||||
|
|
||||||
|
dnl aclocal-1.4 backwards compatibility:
|
||||||
|
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
|
||||||
|
|
||||||
|
## ----------------- ##
|
||||||
|
## LTDL_INIT Options ##
|
||||||
|
## ----------------- ##
|
||||||
|
|
||||||
|
m4_define([_LTDL_MODE], [])
|
||||||
|
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
|
||||||
|
[m4_define([_LTDL_MODE], [nonrecursive])])
|
||||||
|
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
|
||||||
|
[m4_define([_LTDL_MODE], [recursive])])
|
||||||
|
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
|
||||||
|
[m4_define([_LTDL_MODE], [subproject])])
|
||||||
|
|
||||||
|
m4_define([_LTDL_TYPE], [])
|
||||||
|
LT_OPTION_DEFINE([LTDL_INIT], [installable],
|
||||||
|
[m4_define([_LTDL_TYPE], [installable])])
|
||||||
|
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
|
||||||
|
[m4_define([_LTDL_TYPE], [convenience])])
|
123
m4/ltsugar.m4
vendored
Normal file
123
m4/ltsugar.m4
vendored
Normal file
@@ -0,0 +1,123 @@
|
|||||||
|
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
|
||||||
|
#
|
||||||
|
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
|
||||||
|
# Written by Gary V. Vaughan, 2004
|
||||||
|
#
|
||||||
|
# This file is free software; the Free Software Foundation gives
|
||||||
|
# unlimited permission to copy and/or distribute it, with or without
|
||||||
|
# modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# serial 6 ltsugar.m4
|
||||||
|
|
||||||
|
# This is to help aclocal find these macros, as it can't see m4_define.
|
||||||
|
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
|
||||||
|
|
||||||
|
|
||||||
|
# lt_join(SEP, ARG1, [ARG2...])
|
||||||
|
# -----------------------------
|
||||||
|
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
|
||||||
|
# associated separator.
|
||||||
|
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
|
||||||
|
# versions in m4sugar had bugs.
|
||||||
|
m4_define([lt_join],
|
||||||
|
[m4_if([$#], [1], [],
|
||||||
|
[$#], [2], [[$2]],
|
||||||
|
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
|
||||||
|
m4_define([_lt_join],
|
||||||
|
[m4_if([$#$2], [2], [],
|
||||||
|
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
|
||||||
|
|
||||||
|
|
||||||
|
# lt_car(LIST)
|
||||||
|
# lt_cdr(LIST)
|
||||||
|
# ------------
|
||||||
|
# Manipulate m4 lists.
|
||||||
|
# These macros are necessary as long as will still need to support
|
||||||
|
# Autoconf-2.59 which quotes differently.
|
||||||
|
m4_define([lt_car], [[$1]])
|
||||||
|
m4_define([lt_cdr],
|
||||||
|
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
|
||||||
|
[$#], 1, [],
|
||||||
|
[m4_dquote(m4_shift($@))])])
|
||||||
|
m4_define([lt_unquote], $1)
|
||||||
|
|
||||||
|
|
||||||
|
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
|
||||||
|
# ------------------------------------------
|
||||||
|
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
|
||||||
|
# Note that neither SEPARATOR nor STRING are expanded; they are appended
|
||||||
|
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
|
||||||
|
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
|
||||||
|
# than defined and empty).
|
||||||
|
#
|
||||||
|
# This macro is needed until we can rely on Autoconf 2.62, since earlier
|
||||||
|
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
|
||||||
|
m4_define([lt_append],
|
||||||
|
[m4_define([$1],
|
||||||
|
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
|
||||||
|
# ----------------------------------------------------------
|
||||||
|
# Produce a SEP delimited list of all paired combinations of elements of
|
||||||
|
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
|
||||||
|
# has the form PREFIXmINFIXSUFFIXn.
|
||||||
|
# Needed until we can rely on m4_combine added in Autoconf 2.62.
|
||||||
|
m4_define([lt_combine],
|
||||||
|
[m4_if(m4_eval([$# > 3]), [1],
|
||||||
|
[m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
|
||||||
|
[[m4_foreach([_Lt_prefix], [$2],
|
||||||
|
[m4_foreach([_Lt_suffix],
|
||||||
|
]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
|
||||||
|
[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
|
||||||
|
|
||||||
|
|
||||||
|
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
|
||||||
|
# -----------------------------------------------------------------------
|
||||||
|
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
|
||||||
|
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
|
||||||
|
m4_define([lt_if_append_uniq],
|
||||||
|
[m4_ifdef([$1],
|
||||||
|
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
|
||||||
|
[lt_append([$1], [$2], [$3])$4],
|
||||||
|
[$5])],
|
||||||
|
[lt_append([$1], [$2], [$3])$4])])
|
||||||
|
|
||||||
|
|
||||||
|
# lt_dict_add(DICT, KEY, VALUE)
|
||||||
|
# -----------------------------
|
||||||
|
m4_define([lt_dict_add],
|
||||||
|
[m4_define([$1($2)], [$3])])
|
||||||
|
|
||||||
|
|
||||||
|
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
|
||||||
|
# --------------------------------------------
|
||||||
|
m4_define([lt_dict_add_subkey],
|
||||||
|
[m4_define([$1($2:$3)], [$4])])
|
||||||
|
|
||||||
|
|
||||||
|
# lt_dict_fetch(DICT, KEY, [SUBKEY])
|
||||||
|
# ----------------------------------
|
||||||
|
m4_define([lt_dict_fetch],
|
||||||
|
[m4_ifval([$3],
|
||||||
|
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
|
||||||
|
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
|
||||||
|
|
||||||
|
|
||||||
|
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
|
||||||
|
# -----------------------------------------------------------------
|
||||||
|
m4_define([lt_if_dict_fetch],
|
||||||
|
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
|
||||||
|
[$5],
|
||||||
|
[$6])])
|
||||||
|
|
||||||
|
|
||||||
|
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
|
||||||
|
# --------------------------------------------------------------
|
||||||
|
m4_define([lt_dict_filter],
|
||||||
|
[m4_if([$5], [], [],
|
||||||
|
[lt_join(m4_quote(m4_default([$4], [[, ]])),
|
||||||
|
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
|
||||||
|
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
|
||||||
|
])
|
23
m4/ltversion.m4
vendored
Normal file
23
m4/ltversion.m4
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# ltversion.m4 -- version numbers -*- Autoconf -*-
|
||||||
|
#
|
||||||
|
# Copyright (C) 2004 Free Software Foundation, Inc.
|
||||||
|
# Written by Scott James Remnant, 2004
|
||||||
|
#
|
||||||
|
# This file is free software; the Free Software Foundation gives
|
||||||
|
# unlimited permission to copy and/or distribute it, with or without
|
||||||
|
# modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# @configure_input@
|
||||||
|
|
||||||
|
# serial 3337 ltversion.m4
|
||||||
|
# This file is part of GNU Libtool
|
||||||
|
|
||||||
|
m4_define([LT_PACKAGE_VERSION], [2.4.2])
|
||||||
|
m4_define([LT_PACKAGE_REVISION], [1.3337])
|
||||||
|
|
||||||
|
AC_DEFUN([LTVERSION_VERSION],
|
||||||
|
[macro_version='2.4.2'
|
||||||
|
macro_revision='1.3337'
|
||||||
|
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
|
||||||
|
_LT_DECL(, macro_revision, 0)
|
||||||
|
])
|
98
m4/lt~obsolete.m4
vendored
Normal file
98
m4/lt~obsolete.m4
vendored
Normal file
@@ -0,0 +1,98 @@
|
|||||||
|
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
|
||||||
|
#
|
||||||
|
# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
|
||||||
|
# Written by Scott James Remnant, 2004.
|
||||||
|
#
|
||||||
|
# This file is free software; the Free Software Foundation gives
|
||||||
|
# unlimited permission to copy and/or distribute it, with or without
|
||||||
|
# modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# serial 5 lt~obsolete.m4
|
||||||
|
|
||||||
|
# These exist entirely to fool aclocal when bootstrapping libtool.
|
||||||
|
#
|
||||||
|
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
|
||||||
|
# which have later been changed to m4_define as they aren't part of the
|
||||||
|
# exported API, or moved to Autoconf or Automake where they belong.
|
||||||
|
#
|
||||||
|
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
|
||||||
|
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
|
||||||
|
# using a macro with the same name in our local m4/libtool.m4 it'll
|
||||||
|
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
|
||||||
|
# and doesn't know about Autoconf macros at all.)
|
||||||
|
#
|
||||||
|
# So we provide this file, which has a silly filename so it's always
|
||||||
|
# included after everything else. This provides aclocal with the
|
||||||
|
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
|
||||||
|
# because those macros already exist, or will be overwritten later.
|
||||||
|
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
|
||||||
|
#
|
||||||
|
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
|
||||||
|
# Yes, that means every name once taken will need to remain here until
|
||||||
|
# we give up compatibility with versions before 1.7, at which point
|
||||||
|
# we need to keep only those names which we still refer to.
|
||||||
|
|
||||||
|
# This is to help aclocal find these macros, as it can't see m4_define.
|
||||||
|
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
|
||||||
|
|
||||||
|
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
|
||||||
|
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
|
||||||
|
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
|
||||||
|
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
|
||||||
|
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
|
||||||
|
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
|
||||||
|
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
|
||||||
|
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
|
||||||
|
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
|
||||||
|
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
|
||||||
|
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
|
||||||
|
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
|
||||||
|
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
|
||||||
|
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
|
||||||
|
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
|
||||||
|
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
|
||||||
|
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
|
||||||
|
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
|
||||||
|
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
|
||||||
|
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
|
||||||
|
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
|
||||||
|
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
|
||||||
|
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
|
||||||
|
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
|
||||||
|
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
|
||||||
|
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
|
||||||
|
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
|
||||||
|
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
|
||||||
|
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
|
||||||
|
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
|
||||||
|
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
|
||||||
|
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
|
||||||
|
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
|
||||||
|
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
|
||||||
|
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
|
||||||
|
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
|
||||||
|
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
|
||||||
|
m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
|
||||||
|
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
|
||||||
|
m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
|
||||||
|
m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
|
||||||
|
m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
|
||||||
|
m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
|
141
man/Makefile.in
141
man/Makefile.in
@@ -1,9 +1,9 @@
|
|||||||
# Makefile.in generated by automake 1.11 from Makefile.am.
|
# Makefile.in generated by automake 1.11.6 from Makefile.am.
|
||||||
# @configure_input@
|
# @configure_input@
|
||||||
|
|
||||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||||
# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
|
# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
|
||||||
# Inc.
|
# Foundation, Inc.
|
||||||
# This Makefile.in is free software; the Free Software Foundation
|
# This Makefile.in is free software; the Free Software Foundation
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
# with or without modifications, as long as this notice is preserved.
|
# with or without modifications, as long as this notice is preserved.
|
||||||
@@ -15,6 +15,23 @@
|
|||||||
|
|
||||||
@SET_MAKE@
|
@SET_MAKE@
|
||||||
VPATH = @srcdir@
|
VPATH = @srcdir@
|
||||||
|
am__make_dryrun = \
|
||||||
|
{ \
|
||||||
|
am__dry=no; \
|
||||||
|
case $$MAKEFLAGS in \
|
||||||
|
*\\[\ \ ]*) \
|
||||||
|
echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
|
||||||
|
| grep '^AM OK$$' >/dev/null || am__dry=yes;; \
|
||||||
|
*) \
|
||||||
|
for am__flg in $$MAKEFLAGS; do \
|
||||||
|
case $$am__flg in \
|
||||||
|
*=*|--*) ;; \
|
||||||
|
*n*) am__dry=yes; break;; \
|
||||||
|
esac; \
|
||||||
|
done;; \
|
||||||
|
esac; \
|
||||||
|
test $$am__dry = yes; \
|
||||||
|
}
|
||||||
pkgdatadir = $(datadir)/@PACKAGE@
|
pkgdatadir = $(datadir)/@PACKAGE@
|
||||||
pkgincludedir = $(includedir)/@PACKAGE@
|
pkgincludedir = $(includedir)/@PACKAGE@
|
||||||
pkglibdir = $(libdir)/@PACKAGE@
|
pkglibdir = $(libdir)/@PACKAGE@
|
||||||
@@ -31,25 +48,35 @@ POST_INSTALL = :
|
|||||||
NORMAL_UNINSTALL = :
|
NORMAL_UNINSTALL = :
|
||||||
PRE_UNINSTALL = :
|
PRE_UNINSTALL = :
|
||||||
POST_UNINSTALL = :
|
POST_UNINSTALL = :
|
||||||
|
build_triplet = @build@
|
||||||
|
host_triplet = @host@
|
||||||
subdir = man
|
subdir = man
|
||||||
DIST_COMMON = $(dist_man_MANS) $(srcdir)/Makefile.am \
|
DIST_COMMON = $(dist_man_MANS) $(srcdir)/Makefile.am \
|
||||||
$(srcdir)/Makefile.in
|
$(srcdir)/Makefile.in
|
||||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||||
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
|
||||||
|
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||||
|
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||||
|
$(top_srcdir)/configure.ac
|
||||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||||
$(ACLOCAL_M4)
|
$(ACLOCAL_M4)
|
||||||
mkinstalldirs = $(install_sh) -d
|
mkinstalldirs = $(install_sh) -d
|
||||||
CONFIG_HEADER = $(top_builddir)/config.h
|
CONFIG_HEADER = $(top_builddir)/config.h
|
||||||
CONFIG_CLEAN_FILES =
|
CONFIG_CLEAN_FILES =
|
||||||
CONFIG_CLEAN_VPATH_FILES =
|
CONFIG_CLEAN_VPATH_FILES =
|
||||||
AM_V_GEN = $(am__v_GEN_$(V))
|
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
||||||
am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
|
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
||||||
am__v_GEN_0 = @echo " GEN " $@;
|
am__v_GEN_0 = @echo " GEN " $@;
|
||||||
AM_V_at = $(am__v_at_$(V))
|
AM_V_at = $(am__v_at_@AM_V@)
|
||||||
am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
|
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
||||||
am__v_at_0 = @
|
am__v_at_0 = @
|
||||||
SOURCES =
|
SOURCES =
|
||||||
DIST_SOURCES =
|
DIST_SOURCES =
|
||||||
|
am__can_run_installinfo = \
|
||||||
|
case $$AM_UPDATE_INFO_DIR in \
|
||||||
|
n|no|NO) false;; \
|
||||||
|
*) (install-info --version) >/dev/null 2>&1;; \
|
||||||
|
esac
|
||||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||||
am__vpath_adj = case $$p in \
|
am__vpath_adj = case $$p in \
|
||||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||||
@@ -71,6 +98,12 @@ am__nobase_list = $(am__nobase_strip_setup); \
|
|||||||
am__base_list = \
|
am__base_list = \
|
||||||
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
|
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
|
||||||
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
|
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
|
||||||
|
am__uninstall_files_from_dir = { \
|
||||||
|
test -z "$$files" \
|
||||||
|
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
|
||||||
|
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
|
||||||
|
$(am__cd) "$$dir" && rm -f $$files; }; \
|
||||||
|
}
|
||||||
man3dir = $(mandir)/man3
|
man3dir = $(mandir)/man3
|
||||||
am__installdirs = "$(DESTDIR)$(man3dir)"
|
am__installdirs = "$(DESTDIR)$(man3dir)"
|
||||||
NROFF = nroff
|
NROFF = nroff
|
||||||
@@ -78,7 +111,9 @@ MANS = $(dist_man_MANS)
|
|||||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
ACLOCAL = @ACLOCAL@
|
ACLOCAL = @ACLOCAL@
|
||||||
AMTAR = @AMTAR@
|
AMTAR = @AMTAR@
|
||||||
|
AM_CFLAGS = @AM_CFLAGS@
|
||||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||||
|
AR = @AR@
|
||||||
AUTOCONF = @AUTOCONF@
|
AUTOCONF = @AUTOCONF@
|
||||||
AUTOHEADER = @AUTOHEADER@
|
AUTOHEADER = @AUTOHEADER@
|
||||||
AUTOMAKE = @AUTOMAKE@
|
AUTOMAKE = @AUTOMAKE@
|
||||||
@@ -91,24 +126,38 @@ CPPFLAGS = @CPPFLAGS@
|
|||||||
CYGPATH_W = @CYGPATH_W@
|
CYGPATH_W = @CYGPATH_W@
|
||||||
DEFS = @DEFS@
|
DEFS = @DEFS@
|
||||||
DEPDIR = @DEPDIR@
|
DEPDIR = @DEPDIR@
|
||||||
|
DLLTOOL = @DLLTOOL@
|
||||||
|
DSYMUTIL = @DSYMUTIL@
|
||||||
|
DUMPBIN = @DUMPBIN@
|
||||||
ECHO_C = @ECHO_C@
|
ECHO_C = @ECHO_C@
|
||||||
ECHO_N = @ECHO_N@
|
ECHO_N = @ECHO_N@
|
||||||
ECHO_T = @ECHO_T@
|
ECHO_T = @ECHO_T@
|
||||||
EGREP = @EGREP@
|
EGREP = @EGREP@
|
||||||
EXEEXT = @EXEEXT@
|
EXEEXT = @EXEEXT@
|
||||||
|
FGREP = @FGREP@
|
||||||
GREP = @GREP@
|
GREP = @GREP@
|
||||||
INSTALL = @INSTALL@
|
INSTALL = @INSTALL@
|
||||||
INSTALL_DATA = @INSTALL_DATA@
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||||
|
LD = @LD@
|
||||||
LDFLAGS = @LDFLAGS@
|
LDFLAGS = @LDFLAGS@
|
||||||
LIBOBJS = @LIBOBJS@
|
LIBOBJS = @LIBOBJS@
|
||||||
LIBS = @LIBS@
|
LIBS = @LIBS@
|
||||||
|
LIBTOOL = @LIBTOOL@
|
||||||
|
LIPO = @LIPO@
|
||||||
|
LN_S = @LN_S@
|
||||||
LTLIBOBJS = @LTLIBOBJS@
|
LTLIBOBJS = @LTLIBOBJS@
|
||||||
MAKEINFO = @MAKEINFO@
|
MAKEINFO = @MAKEINFO@
|
||||||
|
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||||
MKDIR_P = @MKDIR_P@
|
MKDIR_P = @MKDIR_P@
|
||||||
|
NM = @NM@
|
||||||
|
NMEDIT = @NMEDIT@
|
||||||
|
OBJDUMP = @OBJDUMP@
|
||||||
OBJEXT = @OBJEXT@
|
OBJEXT = @OBJEXT@
|
||||||
|
OTOOL = @OTOOL@
|
||||||
|
OTOOL64 = @OTOOL64@
|
||||||
PACKAGE = @PACKAGE@
|
PACKAGE = @PACKAGE@
|
||||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||||
PACKAGE_NAME = @PACKAGE_NAME@
|
PACKAGE_NAME = @PACKAGE_NAME@
|
||||||
@@ -118,6 +167,7 @@ PACKAGE_URL = @PACKAGE_URL@
|
|||||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||||
RANLIB = @RANLIB@
|
RANLIB = @RANLIB@
|
||||||
|
SED = @SED@
|
||||||
SET_MAKE = @SET_MAKE@
|
SET_MAKE = @SET_MAKE@
|
||||||
SHELL = @SHELL@
|
SHELL = @SHELL@
|
||||||
STRIP = @STRIP@
|
STRIP = @STRIP@
|
||||||
@@ -126,21 +176,31 @@ abs_builddir = @abs_builddir@
|
|||||||
abs_srcdir = @abs_srcdir@
|
abs_srcdir = @abs_srcdir@
|
||||||
abs_top_builddir = @abs_top_builddir@
|
abs_top_builddir = @abs_top_builddir@
|
||||||
abs_top_srcdir = @abs_top_srcdir@
|
abs_top_srcdir = @abs_top_srcdir@
|
||||||
|
ac_ct_AR = @ac_ct_AR@
|
||||||
ac_ct_CC = @ac_ct_CC@
|
ac_ct_CC = @ac_ct_CC@
|
||||||
|
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||||
am__include = @am__include@
|
am__include = @am__include@
|
||||||
am__leading_dot = @am__leading_dot@
|
am__leading_dot = @am__leading_dot@
|
||||||
am__quote = @am__quote@
|
am__quote = @am__quote@
|
||||||
am__tar = @am__tar@
|
am__tar = @am__tar@
|
||||||
am__untar = @am__untar@
|
am__untar = @am__untar@
|
||||||
bindir = @bindir@
|
bindir = @bindir@
|
||||||
|
build = @build@
|
||||||
build_alias = @build_alias@
|
build_alias = @build_alias@
|
||||||
|
build_cpu = @build_cpu@
|
||||||
|
build_os = @build_os@
|
||||||
|
build_vendor = @build_vendor@
|
||||||
builddir = @builddir@
|
builddir = @builddir@
|
||||||
datadir = @datadir@
|
datadir = @datadir@
|
||||||
datarootdir = @datarootdir@
|
datarootdir = @datarootdir@
|
||||||
docdir = @docdir@
|
docdir = @docdir@
|
||||||
dvidir = @dvidir@
|
dvidir = @dvidir@
|
||||||
exec_prefix = @exec_prefix@
|
exec_prefix = @exec_prefix@
|
||||||
|
host = @host@
|
||||||
host_alias = @host_alias@
|
host_alias = @host_alias@
|
||||||
|
host_cpu = @host_cpu@
|
||||||
|
host_os = @host_os@
|
||||||
|
host_vendor = @host_vendor@
|
||||||
htmldir = @htmldir@
|
htmldir = @htmldir@
|
||||||
includedir = @includedir@
|
includedir = @includedir@
|
||||||
infodir = @infodir@
|
infodir = @infodir@
|
||||||
@@ -199,13 +259,26 @@ $(top_srcdir)/configure: $(am__configure_deps)
|
|||||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||||
$(am__aclocal_m4_deps):
|
$(am__aclocal_m4_deps):
|
||||||
|
|
||||||
|
mostlyclean-libtool:
|
||||||
|
-rm -f *.lo
|
||||||
|
|
||||||
|
clean-libtool:
|
||||||
|
-rm -rf .libs _libs
|
||||||
install-man3: $(dist_man_MANS)
|
install-man3: $(dist_man_MANS)
|
||||||
@$(NORMAL_INSTALL)
|
@$(NORMAL_INSTALL)
|
||||||
test -z "$(man3dir)" || $(MKDIR_P) "$(DESTDIR)$(man3dir)"
|
@list1=''; \
|
||||||
@list=''; test -n "$(man3dir)" || exit 0; \
|
list2='$(dist_man_MANS)'; \
|
||||||
{ for i in $$list; do echo "$$i"; done; \
|
test -n "$(man3dir)" \
|
||||||
l2='$(dist_man_MANS)'; for i in $$l2; do echo "$$i"; done | \
|
&& test -n "`echo $$list1$$list2`" \
|
||||||
sed -n '/\.3[a-z]*$$/p'; \
|
|| exit 0; \
|
||||||
|
echo " $(MKDIR_P) '$(DESTDIR)$(man3dir)'"; \
|
||||||
|
$(MKDIR_P) "$(DESTDIR)$(man3dir)" || exit 1; \
|
||||||
|
{ for i in $$list1; do echo "$$i"; done; \
|
||||||
|
if test -n "$$list2"; then \
|
||||||
|
for i in $$list2; do echo "$$i"; done \
|
||||||
|
| sed -n '/\.3[a-z]*$$/p'; \
|
||||||
|
fi; \
|
||||||
} | while read p; do \
|
} | while read p; do \
|
||||||
if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
|
if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
|
||||||
echo "$$d$$p"; echo "$$p"; \
|
echo "$$d$$p"; echo "$$p"; \
|
||||||
@@ -234,9 +307,7 @@ uninstall-man3:
|
|||||||
sed -n '/\.3[a-z]*$$/p'; \
|
sed -n '/\.3[a-z]*$$/p'; \
|
||||||
} | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^3][0-9a-z]*$$,3,;x' \
|
} | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^3][0-9a-z]*$$,3,;x' \
|
||||||
-e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
|
-e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
|
||||||
test -z "$$files" || { \
|
dir='$(DESTDIR)$(man3dir)'; $(am__uninstall_files_from_dir)
|
||||||
echo " ( cd '$(DESTDIR)$(man3dir)' && rm -f" $$files ")"; \
|
|
||||||
cd "$(DESTDIR)$(man3dir)" && rm -f $$files; }
|
|
||||||
tags: TAGS
|
tags: TAGS
|
||||||
TAGS:
|
TAGS:
|
||||||
|
|
||||||
@@ -304,10 +375,15 @@ install-am: all-am
|
|||||||
|
|
||||||
installcheck: installcheck-am
|
installcheck: installcheck-am
|
||||||
install-strip:
|
install-strip:
|
||||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
if test -z '$(STRIP)'; then \
|
||||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||||
`test -z '$(STRIP)' || \
|
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
install; \
|
||||||
|
else \
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||||
|
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||||
|
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||||
|
fi
|
||||||
mostlyclean-generic:
|
mostlyclean-generic:
|
||||||
|
|
||||||
clean-generic:
|
clean-generic:
|
||||||
@@ -321,7 +397,7 @@ maintainer-clean-generic:
|
|||||||
@echo "it deletes files that may require special tools to rebuild."
|
@echo "it deletes files that may require special tools to rebuild."
|
||||||
clean: clean-am
|
clean: clean-am
|
||||||
|
|
||||||
clean-am: clean-generic mostlyclean-am
|
clean-am: clean-generic clean-libtool mostlyclean-am
|
||||||
|
|
||||||
distclean: distclean-am
|
distclean: distclean-am
|
||||||
-rm -f Makefile
|
-rm -f Makefile
|
||||||
@@ -373,7 +449,7 @@ maintainer-clean-am: distclean-am maintainer-clean-generic
|
|||||||
|
|
||||||
mostlyclean: mostlyclean-am
|
mostlyclean: mostlyclean-am
|
||||||
|
|
||||||
mostlyclean-am: mostlyclean-generic
|
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||||
|
|
||||||
pdf: pdf-am
|
pdf: pdf-am
|
||||||
|
|
||||||
@@ -389,16 +465,17 @@ uninstall-man: uninstall-man3
|
|||||||
|
|
||||||
.MAKE: install-am install-strip
|
.MAKE: install-am install-strip
|
||||||
|
|
||||||
.PHONY: all all-am check check-am clean clean-generic distclean \
|
.PHONY: all all-am check check-am clean clean-generic clean-libtool \
|
||||||
distclean-generic distdir dvi dvi-am html html-am info info-am \
|
distclean distclean-generic distclean-libtool distdir dvi \
|
||||||
install install-am install-data install-data-am install-dvi \
|
dvi-am html html-am info info-am install install-am \
|
||||||
install-dvi-am install-exec install-exec-am install-html \
|
install-data install-data-am install-dvi install-dvi-am \
|
||||||
install-html-am install-info install-info-am install-man \
|
install-exec install-exec-am install-html install-html-am \
|
||||||
install-man3 install-pdf install-pdf-am install-ps \
|
install-info install-info-am install-man install-man3 \
|
||||||
install-ps-am install-strip installcheck installcheck-am \
|
install-pdf install-pdf-am install-ps install-ps-am \
|
||||||
installdirs maintainer-clean maintainer-clean-generic \
|
install-strip installcheck installcheck-am installdirs \
|
||||||
mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
|
maintainer-clean maintainer-clean-generic mostlyclean \
|
||||||
uninstall-am uninstall-man uninstall-man3
|
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
|
||||||
|
uninstall uninstall-am uninstall-man uninstall-man3
|
||||||
|
|
||||||
|
|
||||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||||
|
106
man/editline.3
106
man/editline.3
@@ -3,54 +3,43 @@
|
|||||||
editline \- command-line editing library with history
|
editline \- command-line editing library with history
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.nf
|
.nf
|
||||||
.B "char *"
|
.B "char *readline(char *prompt);"
|
||||||
.B "readline(prompt)"
|
|
||||||
.B " char *prompt;"
|
|
||||||
|
|
||||||
.B "void"
|
|
||||||
.B "add_history(line)"
|
|
||||||
.B " char *line;"
|
|
||||||
.fi
|
.fi
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
.I Editline
|
.I Editline
|
||||||
is a library that provides an line-editing interface with text recall.
|
is a library that provides an line-editing interface with history.
|
||||||
It is intended to be compatible with the
|
It is intended to be functionally equivalent with the
|
||||||
.I readline
|
.I readline
|
||||||
library provided by the Free Software Foundation, but much smaller.
|
library provided by the Free Software Foundation, but much smaller.
|
||||||
The bulk of this manual page describes the user interface.
|
The bulk of this manual page describes the user interface.
|
||||||
.PP
|
.PP
|
||||||
The
|
The
|
||||||
.I readline
|
.I readline()
|
||||||
routine returns a line of text with the trailing newline removed.
|
function displays the given
|
||||||
The data is returned in a buffer allocated with
|
.I prompt
|
||||||
|
on stdout, waits for user input on stdin and then
|
||||||
|
returns a line of text with the trailing newline removed. The data is returned in a
|
||||||
|
buffer allocated with
|
||||||
.IR malloc (3),
|
.IR malloc (3),
|
||||||
so the space should be released with
|
so the space should be released with
|
||||||
.IR free (3)
|
.IR free (3)
|
||||||
when the calling program is done with it.
|
when the calling program is done with it.
|
||||||
Before accepting input from the user, the specified
|
|
||||||
.I prompt
|
|
||||||
is displayed on the terminal.
|
|
||||||
.PP
|
.PP
|
||||||
Each line returned is copied to the internal history list, unless it happens
|
Each line returned is copied to the internal history list, unless it happens
|
||||||
to be equal to the previous line.
|
to be equal to the previous line. This is configurable if you are building editline
|
||||||
|
from source.
|
||||||
.SS "User Interface"
|
.SS "User Interface"
|
||||||
A program that uses this library provides a simple emacs-like editing
|
A program that uses this library provides a simple emacs-like editing interface to
|
||||||
interface to its users.
|
its users. A line may be edited before it is sent to the calling program by typing
|
||||||
A line may be edited before it is sent to the calling program by typing either
|
either control characters or escape sequences. A control character, shown as a caret
|
||||||
control characters or escape sequences.
|
followed by a letter, is typed by holding down the ``control'' key while the letter
|
||||||
A control character, shown as a caret followed by a letter, is typed by
|
is typed. For example, ``^A'' is a control-A. An escape sequence is entered by
|
||||||
holding down the ``control'' key while the letter is typed.
|
typing the ``escape'' key followed by one or more characters. The escape key is
|
||||||
For example, ``^A'' is a control-A.
|
abbreviated as ``ESC''. Note that unlike control keys, case matters in escape
|
||||||
An escape sequence is entered by typing the ``escape'' key followed by one or
|
sequences; ``ESC\ F'' is not the same as ``ESC\ f''.
|
||||||
more characters.
|
|
||||||
The escape key is abbreviated as ``ESC''.
|
|
||||||
Note that unlike control keys, case matters in escape sequences; ``ESC\ F''
|
|
||||||
is not the same as ``ESC\ f''.
|
|
||||||
.PP
|
.PP
|
||||||
An editing command may be typed anywhere on the line, not just at the
|
An editing command may be typed anywhere on the line, not just at the beginning. In
|
||||||
beginning.
|
addition, a return may also be typed anywhere on the line, not just at the end.
|
||||||
In addition, a return may also be typed anywhere on the line, not just at
|
|
||||||
the end.
|
|
||||||
.PP
|
.PP
|
||||||
Most editing commands may be given a repeat count,
|
Most editing commands may be given a repeat count,
|
||||||
.IR n ,
|
.IR n ,
|
||||||
@@ -81,8 +70,8 @@ The following control characters are accepted:
|
|||||||
^M Done with line (alternate return key)
|
^M Done with line (alternate return key)
|
||||||
^N Get next line from history [n]
|
^N Get next line from history [n]
|
||||||
^P Get previous line from history [n]
|
^P Get previous line from history [n]
|
||||||
^R Search backward (forward if [n]) through history for text;
|
^R Search backward (forward if [n]) through history for
|
||||||
\& must start line if text begins with an uparrow
|
\& text; must start line if text begins with an uparrow
|
||||||
^T Transpose characters
|
^T Transpose characters
|
||||||
^V Insert next character, even if it is an edit command
|
^V Insert next character, even if it is an edit command
|
||||||
^W Wipe to the mark
|
^W Wipe to the mark
|
||||||
@@ -102,14 +91,15 @@ ESC\ ^H Delete previous word (backspace key) [n]
|
|||||||
ESC\ DEL Delete previous word (delete key) [n]
|
ESC\ DEL Delete previous word (delete key) [n]
|
||||||
ESC\ SP Set the mark (space key); see ^X^X and ^Y above
|
ESC\ SP Set the mark (space key); see ^X^X and ^Y above
|
||||||
ESC\ \. Get the last (or [n]'th) word from previous line
|
ESC\ \. Get the last (or [n]'th) word from previous line
|
||||||
ESC\ \? Show possible completions; see below
|
ESC\ ? Show possible completions; see below
|
||||||
ESC\ < Move to start of history
|
ESC\ < Move to start of history
|
||||||
ESC\ > Move to end of history
|
ESC\ > Move to end of history
|
||||||
ESC\ b Move backward a word [n]
|
ESC\ b Move backward a word [n]
|
||||||
ESC\ d Delete word under cursor [n]
|
ESC\ d Delete word under cursor [n]
|
||||||
ESC\ f Move forward a word [n]
|
ESC\ f Move forward a word [n]
|
||||||
ESC\ l Make word lowercase [n]
|
ESC\ l Make word lowercase [n]
|
||||||
ESC\ m Toggle if 8bit chars display normally or with ``M\-'' prefix
|
ESC\ m Toggle if 8bit chars display normally or with an
|
||||||
|
\& ``M\-'' prefix
|
||||||
ESC\ u Make word uppercase [n]
|
ESC\ u Make word uppercase [n]
|
||||||
ESC\ y Yank back last killed text
|
ESC\ y Yank back last killed text
|
||||||
ESC\ v Show library version
|
ESC\ v Show library version
|
||||||
@@ -164,11 +154,41 @@ for you:
|
|||||||
.RE
|
.RE
|
||||||
The tab key is shown by ``[TAB]'' and the automatically-entered text
|
The tab key is shown by ``[TAB]'' and the automatically-entered text
|
||||||
is shown in italics.
|
is shown in italics.
|
||||||
.SH "BUGS AND LIMITATIONS"
|
|
||||||
Doesn't know how to handle multiple lines.
|
|
||||||
.SH AUTHORS
|
|
||||||
Simmule R. Turner <uunet.uu.net!capitol!sysgo!simmy>
|
|
||||||
and Rich $alz <rsalz@osf.org>.
|
|
||||||
Original manual page by DaviD W. Sanderson <dws@ssec.wisc.edu>.
|
|
||||||
|
|
||||||
.\" $PchId: editline.3,v 1.3 1996/02/22 21:18:51 philip Exp $
|
.SH "USAGE"
|
||||||
|
To include
|
||||||
|
.I readline()
|
||||||
|
in your program, simply call it as you do any other function. Just make sure to link
|
||||||
|
your program with libeditline.
|
||||||
|
|
||||||
|
.SS "Example"
|
||||||
|
The following brief example lets you enter a line and edit it, then displays it.
|
||||||
|
|
||||||
|
.nf
|
||||||
|
.B "#include <stdlib.h>"
|
||||||
|
.B ""
|
||||||
|
.B "extern char *readline(char *prompt);"
|
||||||
|
.B ""
|
||||||
|
.B "int main (void)"
|
||||||
|
.B "{"
|
||||||
|
.B " char *p;"
|
||||||
|
.B ""
|
||||||
|
.B " while ((p = readline(``CLI> '')) != NULL) {"
|
||||||
|
.B " printf(\"%s\n\", p);"
|
||||||
|
.B " free(p);"
|
||||||
|
.B " }"
|
||||||
|
.B ""
|
||||||
|
.B " return 0;"
|
||||||
|
.B "}"
|
||||||
|
.fi
|
||||||
|
|
||||||
|
.SH "BUGS AND LIMITATIONS"
|
||||||
|
Doesn't know how to handle multiple lines or unicode characters well. See the TODO
|
||||||
|
file in the distribution if you want to help out.
|
||||||
|
|
||||||
|
.SH AUTHORS
|
||||||
|
The original editline library was created by Simmule R. Turner and Rich $alz. It is
|
||||||
|
now maintained in several forks: Heimdal, Festival speech tools, Mozilla, Google
|
||||||
|
Gadgets for Linux, and many other places. The original manual page was made by DaviD
|
||||||
|
W. Sanderson. This version was made by Joachim Nilsson <troglobit@gmail.com>.
|
||||||
|
|
||||||
|
@@ -1,8 +1,3 @@
|
|||||||
AUTOMAKE_OPTIONS = foreign
|
AUTOMAKE_OPTIONS = foreign
|
||||||
lib_LIBRARIES = libeditline.a
|
lib_LTLIBRARIES = libeditline.la
|
||||||
libeditline_a_SOURCES = editline.c editline.h sysunix.c unix.h
|
libeditline_la_SOURCES = editline.c editline.h complete.c sysunix.c unix.h
|
||||||
if COMPLETE
|
|
||||||
# Built-in completion handler.
|
|
||||||
libeditline_a_SOURCES += complete.c
|
|
||||||
AM_CPPFLAGS = -DCOMPLETE
|
|
||||||
endif
|
|
||||||
|
254
src/Makefile.in
254
src/Makefile.in
@@ -1,9 +1,9 @@
|
|||||||
# Makefile.in generated by automake 1.11 from Makefile.am.
|
# Makefile.in generated by automake 1.11.6 from Makefile.am.
|
||||||
# @configure_input@
|
# @configure_input@
|
||||||
|
|
||||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||||
# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
|
# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
|
||||||
# Inc.
|
# Foundation, Inc.
|
||||||
# This Makefile.in is free software; the Free Software Foundation
|
# This Makefile.in is free software; the Free Software Foundation
|
||||||
# gives unlimited permission to copy and/or distribute it,
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
# with or without modifications, as long as this notice is preserved.
|
# with or without modifications, as long as this notice is preserved.
|
||||||
@@ -16,6 +16,23 @@
|
|||||||
@SET_MAKE@
|
@SET_MAKE@
|
||||||
|
|
||||||
VPATH = @srcdir@
|
VPATH = @srcdir@
|
||||||
|
am__make_dryrun = \
|
||||||
|
{ \
|
||||||
|
am__dry=no; \
|
||||||
|
case $$MAKEFLAGS in \
|
||||||
|
*\\[\ \ ]*) \
|
||||||
|
echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
|
||||||
|
| grep '^AM OK$$' >/dev/null || am__dry=yes;; \
|
||||||
|
*) \
|
||||||
|
for am__flg in $$MAKEFLAGS; do \
|
||||||
|
case $$am__flg in \
|
||||||
|
*=*|--*) ;; \
|
||||||
|
*n*) am__dry=yes; break;; \
|
||||||
|
esac; \
|
||||||
|
done;; \
|
||||||
|
esac; \
|
||||||
|
test $$am__dry = yes; \
|
||||||
|
}
|
||||||
pkgdatadir = $(datadir)/@PACKAGE@
|
pkgdatadir = $(datadir)/@PACKAGE@
|
||||||
pkgincludedir = $(includedir)/@PACKAGE@
|
pkgincludedir = $(includedir)/@PACKAGE@
|
||||||
pkglibdir = $(libdir)/@PACKAGE@
|
pkglibdir = $(libdir)/@PACKAGE@
|
||||||
@@ -32,12 +49,15 @@ POST_INSTALL = :
|
|||||||
NORMAL_UNINSTALL = :
|
NORMAL_UNINSTALL = :
|
||||||
PRE_UNINSTALL = :
|
PRE_UNINSTALL = :
|
||||||
POST_UNINSTALL = :
|
POST_UNINSTALL = :
|
||||||
# Built-in completion handler.
|
build_triplet = @build@
|
||||||
@COMPLETE_TRUE@am__append_1 = complete.c
|
host_triplet = @host@
|
||||||
subdir = src
|
subdir = src
|
||||||
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
|
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
|
||||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||||
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
|
||||||
|
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||||
|
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||||
|
$(top_srcdir)/configure.ac
|
||||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||||
$(ACLOCAL_M4)
|
$(ACLOCAL_M4)
|
||||||
mkinstalldirs = $(install_sh) -d
|
mkinstalldirs = $(install_sh) -d
|
||||||
@@ -65,49 +85,61 @@ am__nobase_list = $(am__nobase_strip_setup); \
|
|||||||
am__base_list = \
|
am__base_list = \
|
||||||
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
|
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
|
||||||
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
|
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
|
||||||
|
am__uninstall_files_from_dir = { \
|
||||||
|
test -z "$$files" \
|
||||||
|
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
|
||||||
|
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
|
||||||
|
$(am__cd) "$$dir" && rm -f $$files; }; \
|
||||||
|
}
|
||||||
am__installdirs = "$(DESTDIR)$(libdir)"
|
am__installdirs = "$(DESTDIR)$(libdir)"
|
||||||
LIBRARIES = $(lib_LIBRARIES)
|
LTLIBRARIES = $(lib_LTLIBRARIES)
|
||||||
AR = ar
|
libeditline_la_LIBADD =
|
||||||
ARFLAGS = cru
|
am_libeditline_la_OBJECTS = editline.lo complete.lo sysunix.lo
|
||||||
AM_V_AR = $(am__v_AR_$(V))
|
libeditline_la_OBJECTS = $(am_libeditline_la_OBJECTS)
|
||||||
am__v_AR_ = $(am__v_AR_$(AM_DEFAULT_VERBOSITY))
|
AM_V_lt = $(am__v_lt_@AM_V@)
|
||||||
am__v_AR_0 = @echo " AR " $@;
|
am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
|
||||||
AM_V_at = $(am__v_at_$(V))
|
am__v_lt_0 = --silent
|
||||||
am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
|
|
||||||
am__v_at_0 = @
|
|
||||||
libeditline_a_AR = $(AR) $(ARFLAGS)
|
|
||||||
libeditline_a_LIBADD =
|
|
||||||
am__libeditline_a_SOURCES_DIST = editline.c editline.h sysunix.c \
|
|
||||||
unix.h complete.c
|
|
||||||
@COMPLETE_TRUE@am__objects_1 = complete.$(OBJEXT)
|
|
||||||
am_libeditline_a_OBJECTS = editline.$(OBJEXT) sysunix.$(OBJEXT) \
|
|
||||||
$(am__objects_1)
|
|
||||||
libeditline_a_OBJECTS = $(am_libeditline_a_OBJECTS)
|
|
||||||
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
|
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
|
||||||
depcomp = $(SHELL) $(top_srcdir)/depcomp
|
depcomp = $(SHELL) $(top_srcdir)/depcomp
|
||||||
am__depfiles_maybe = depfiles
|
am__depfiles_maybe = depfiles
|
||||||
am__mv = mv -f
|
am__mv = mv -f
|
||||||
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
||||||
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||||
AM_V_CC = $(am__v_CC_$(V))
|
LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
|
||||||
am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
|
$(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
|
||||||
|
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
|
||||||
|
$(AM_CFLAGS) $(CFLAGS)
|
||||||
|
AM_V_CC = $(am__v_CC_@AM_V@)
|
||||||
|
am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
|
||||||
am__v_CC_0 = @echo " CC " $@;
|
am__v_CC_0 = @echo " CC " $@;
|
||||||
|
AM_V_at = $(am__v_at_@AM_V@)
|
||||||
|
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
||||||
|
am__v_at_0 = @
|
||||||
CCLD = $(CC)
|
CCLD = $(CC)
|
||||||
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
|
||||||
AM_V_CCLD = $(am__v_CCLD_$(V))
|
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
|
||||||
am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
|
$(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||||
|
AM_V_CCLD = $(am__v_CCLD_@AM_V@)
|
||||||
|
am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
|
||||||
am__v_CCLD_0 = @echo " CCLD " $@;
|
am__v_CCLD_0 = @echo " CCLD " $@;
|
||||||
AM_V_GEN = $(am__v_GEN_$(V))
|
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
||||||
am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
|
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
||||||
am__v_GEN_0 = @echo " GEN " $@;
|
am__v_GEN_0 = @echo " GEN " $@;
|
||||||
SOURCES = $(libeditline_a_SOURCES)
|
SOURCES = $(libeditline_la_SOURCES)
|
||||||
DIST_SOURCES = $(am__libeditline_a_SOURCES_DIST)
|
DIST_SOURCES = $(libeditline_la_SOURCES)
|
||||||
|
am__can_run_installinfo = \
|
||||||
|
case $$AM_UPDATE_INFO_DIR in \
|
||||||
|
n|no|NO) false;; \
|
||||||
|
*) (install-info --version) >/dev/null 2>&1;; \
|
||||||
|
esac
|
||||||
ETAGS = etags
|
ETAGS = etags
|
||||||
CTAGS = ctags
|
CTAGS = ctags
|
||||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||||
ACLOCAL = @ACLOCAL@
|
ACLOCAL = @ACLOCAL@
|
||||||
AMTAR = @AMTAR@
|
AMTAR = @AMTAR@
|
||||||
|
AM_CFLAGS = @AM_CFLAGS@
|
||||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||||
|
AR = @AR@
|
||||||
AUTOCONF = @AUTOCONF@
|
AUTOCONF = @AUTOCONF@
|
||||||
AUTOHEADER = @AUTOHEADER@
|
AUTOHEADER = @AUTOHEADER@
|
||||||
AUTOMAKE = @AUTOMAKE@
|
AUTOMAKE = @AUTOMAKE@
|
||||||
@@ -120,24 +152,38 @@ CPPFLAGS = @CPPFLAGS@
|
|||||||
CYGPATH_W = @CYGPATH_W@
|
CYGPATH_W = @CYGPATH_W@
|
||||||
DEFS = @DEFS@
|
DEFS = @DEFS@
|
||||||
DEPDIR = @DEPDIR@
|
DEPDIR = @DEPDIR@
|
||||||
|
DLLTOOL = @DLLTOOL@
|
||||||
|
DSYMUTIL = @DSYMUTIL@
|
||||||
|
DUMPBIN = @DUMPBIN@
|
||||||
ECHO_C = @ECHO_C@
|
ECHO_C = @ECHO_C@
|
||||||
ECHO_N = @ECHO_N@
|
ECHO_N = @ECHO_N@
|
||||||
ECHO_T = @ECHO_T@
|
ECHO_T = @ECHO_T@
|
||||||
EGREP = @EGREP@
|
EGREP = @EGREP@
|
||||||
EXEEXT = @EXEEXT@
|
EXEEXT = @EXEEXT@
|
||||||
|
FGREP = @FGREP@
|
||||||
GREP = @GREP@
|
GREP = @GREP@
|
||||||
INSTALL = @INSTALL@
|
INSTALL = @INSTALL@
|
||||||
INSTALL_DATA = @INSTALL_DATA@
|
INSTALL_DATA = @INSTALL_DATA@
|
||||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||||
|
LD = @LD@
|
||||||
LDFLAGS = @LDFLAGS@
|
LDFLAGS = @LDFLAGS@
|
||||||
LIBOBJS = @LIBOBJS@
|
LIBOBJS = @LIBOBJS@
|
||||||
LIBS = @LIBS@
|
LIBS = @LIBS@
|
||||||
|
LIBTOOL = @LIBTOOL@
|
||||||
|
LIPO = @LIPO@
|
||||||
|
LN_S = @LN_S@
|
||||||
LTLIBOBJS = @LTLIBOBJS@
|
LTLIBOBJS = @LTLIBOBJS@
|
||||||
MAKEINFO = @MAKEINFO@
|
MAKEINFO = @MAKEINFO@
|
||||||
|
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||||
MKDIR_P = @MKDIR_P@
|
MKDIR_P = @MKDIR_P@
|
||||||
|
NM = @NM@
|
||||||
|
NMEDIT = @NMEDIT@
|
||||||
|
OBJDUMP = @OBJDUMP@
|
||||||
OBJEXT = @OBJEXT@
|
OBJEXT = @OBJEXT@
|
||||||
|
OTOOL = @OTOOL@
|
||||||
|
OTOOL64 = @OTOOL64@
|
||||||
PACKAGE = @PACKAGE@
|
PACKAGE = @PACKAGE@
|
||||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||||
PACKAGE_NAME = @PACKAGE_NAME@
|
PACKAGE_NAME = @PACKAGE_NAME@
|
||||||
@@ -147,6 +193,7 @@ PACKAGE_URL = @PACKAGE_URL@
|
|||||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||||
RANLIB = @RANLIB@
|
RANLIB = @RANLIB@
|
||||||
|
SED = @SED@
|
||||||
SET_MAKE = @SET_MAKE@
|
SET_MAKE = @SET_MAKE@
|
||||||
SHELL = @SHELL@
|
SHELL = @SHELL@
|
||||||
STRIP = @STRIP@
|
STRIP = @STRIP@
|
||||||
@@ -155,21 +202,31 @@ abs_builddir = @abs_builddir@
|
|||||||
abs_srcdir = @abs_srcdir@
|
abs_srcdir = @abs_srcdir@
|
||||||
abs_top_builddir = @abs_top_builddir@
|
abs_top_builddir = @abs_top_builddir@
|
||||||
abs_top_srcdir = @abs_top_srcdir@
|
abs_top_srcdir = @abs_top_srcdir@
|
||||||
|
ac_ct_AR = @ac_ct_AR@
|
||||||
ac_ct_CC = @ac_ct_CC@
|
ac_ct_CC = @ac_ct_CC@
|
||||||
|
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||||
am__include = @am__include@
|
am__include = @am__include@
|
||||||
am__leading_dot = @am__leading_dot@
|
am__leading_dot = @am__leading_dot@
|
||||||
am__quote = @am__quote@
|
am__quote = @am__quote@
|
||||||
am__tar = @am__tar@
|
am__tar = @am__tar@
|
||||||
am__untar = @am__untar@
|
am__untar = @am__untar@
|
||||||
bindir = @bindir@
|
bindir = @bindir@
|
||||||
|
build = @build@
|
||||||
build_alias = @build_alias@
|
build_alias = @build_alias@
|
||||||
|
build_cpu = @build_cpu@
|
||||||
|
build_os = @build_os@
|
||||||
|
build_vendor = @build_vendor@
|
||||||
builddir = @builddir@
|
builddir = @builddir@
|
||||||
datadir = @datadir@
|
datadir = @datadir@
|
||||||
datarootdir = @datarootdir@
|
datarootdir = @datarootdir@
|
||||||
docdir = @docdir@
|
docdir = @docdir@
|
||||||
dvidir = @dvidir@
|
dvidir = @dvidir@
|
||||||
exec_prefix = @exec_prefix@
|
exec_prefix = @exec_prefix@
|
||||||
|
host = @host@
|
||||||
host_alias = @host_alias@
|
host_alias = @host_alias@
|
||||||
|
host_cpu = @host_cpu@
|
||||||
|
host_os = @host_os@
|
||||||
|
host_vendor = @host_vendor@
|
||||||
htmldir = @htmldir@
|
htmldir = @htmldir@
|
||||||
includedir = @includedir@
|
includedir = @includedir@
|
||||||
infodir = @infodir@
|
infodir = @infodir@
|
||||||
@@ -194,14 +251,12 @@ top_build_prefix = @top_build_prefix@
|
|||||||
top_builddir = @top_builddir@
|
top_builddir = @top_builddir@
|
||||||
top_srcdir = @top_srcdir@
|
top_srcdir = @top_srcdir@
|
||||||
AUTOMAKE_OPTIONS = foreign
|
AUTOMAKE_OPTIONS = foreign
|
||||||
lib_LIBRARIES = libeditline.a
|
lib_LTLIBRARIES = libeditline.la
|
||||||
libeditline_a_SOURCES = editline.c editline.h sysunix.c unix.h \
|
libeditline_la_SOURCES = editline.c editline.h complete.c sysunix.c unix.h
|
||||||
$(am__append_1)
|
|
||||||
@COMPLETE_TRUE@AM_CPPFLAGS = -DCOMPLETE
|
|
||||||
all: all-am
|
all: all-am
|
||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
.SUFFIXES: .c .o .obj
|
.SUFFIXES: .c .lo .o .obj
|
||||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||||
@for dep in $?; do \
|
@for dep in $?; do \
|
||||||
case '$(am__configure_deps)' in \
|
case '$(am__configure_deps)' in \
|
||||||
@@ -232,42 +287,40 @@ $(top_srcdir)/configure: $(am__configure_deps)
|
|||||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||||
$(am__aclocal_m4_deps):
|
$(am__aclocal_m4_deps):
|
||||||
install-libLIBRARIES: $(lib_LIBRARIES)
|
install-libLTLIBRARIES: $(lib_LTLIBRARIES)
|
||||||
@$(NORMAL_INSTALL)
|
@$(NORMAL_INSTALL)
|
||||||
test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
|
@list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
|
||||||
@list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \
|
|
||||||
list2=; for p in $$list; do \
|
list2=; for p in $$list; do \
|
||||||
if test -f $$p; then \
|
if test -f $$p; then \
|
||||||
list2="$$list2 $$p"; \
|
list2="$$list2 $$p"; \
|
||||||
else :; fi; \
|
else :; fi; \
|
||||||
done; \
|
done; \
|
||||||
test -z "$$list2" || { \
|
test -z "$$list2" || { \
|
||||||
echo " $(INSTALL_DATA) $$list2 '$(DESTDIR)$(libdir)'"; \
|
echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
|
||||||
$(INSTALL_DATA) $$list2 "$(DESTDIR)$(libdir)" || exit $$?; }
|
$(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
|
||||||
@$(POST_INSTALL)
|
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
|
||||||
@list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \
|
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
|
||||||
|
}
|
||||||
|
|
||||||
|
uninstall-libLTLIBRARIES:
|
||||||
|
@$(NORMAL_UNINSTALL)
|
||||||
|
@list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
|
||||||
for p in $$list; do \
|
for p in $$list; do \
|
||||||
if test -f $$p; then \
|
$(am__strip_dir) \
|
||||||
$(am__strip_dir) \
|
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
|
||||||
echo " ( cd '$(DESTDIR)$(libdir)' && $(RANLIB) $$f )"; \
|
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
|
||||||
( cd "$(DESTDIR)$(libdir)" && $(RANLIB) $$f ) || exit $$?; \
|
|
||||||
else :; fi; \
|
|
||||||
done
|
done
|
||||||
|
|
||||||
uninstall-libLIBRARIES:
|
clean-libLTLIBRARIES:
|
||||||
@$(NORMAL_UNINSTALL)
|
-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
|
||||||
@list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \
|
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
|
||||||
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
|
dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
|
||||||
test -n "$$files" || exit 0; \
|
test "$$dir" != "$$p" || dir=.; \
|
||||||
echo " ( cd '$(DESTDIR)$(libdir)' && rm -f "$$files" )"; \
|
echo "rm -f \"$${dir}/so_locations\""; \
|
||||||
cd "$(DESTDIR)$(libdir)" && rm -f $$files
|
rm -f "$${dir}/so_locations"; \
|
||||||
|
done
|
||||||
clean-libLIBRARIES:
|
libeditline.la: $(libeditline_la_OBJECTS) $(libeditline_la_DEPENDENCIES) $(EXTRA_libeditline_la_DEPENDENCIES)
|
||||||
-test -z "$(lib_LIBRARIES)" || rm -f $(lib_LIBRARIES)
|
$(AM_V_CCLD)$(LINK) -rpath $(libdir) $(libeditline_la_OBJECTS) $(libeditline_la_LIBADD) $(LIBS)
|
||||||
libeditline.a: $(libeditline_a_OBJECTS) $(libeditline_a_DEPENDENCIES)
|
|
||||||
$(AM_V_at)-rm -f libeditline.a
|
|
||||||
$(AM_V_AR)$(libeditline_a_AR) libeditline.a $(libeditline_a_OBJECTS) $(libeditline_a_LIBADD)
|
|
||||||
$(AM_V_at)$(RANLIB) libeditline.a
|
|
||||||
|
|
||||||
mostlyclean-compile:
|
mostlyclean-compile:
|
||||||
-rm -f *.$(OBJEXT)
|
-rm -f *.$(OBJEXT)
|
||||||
@@ -275,25 +328,36 @@ mostlyclean-compile:
|
|||||||
distclean-compile:
|
distclean-compile:
|
||||||
-rm -f *.tab.c
|
-rm -f *.tab.c
|
||||||
|
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/complete.Po@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/complete.Plo@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/editline.Po@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/editline.Plo@am__quote@
|
||||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sysunix.Po@am__quote@
|
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sysunix.Plo@am__quote@
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
||||||
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
||||||
@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
@am__fastdepCC_FALSE@ $(COMPILE) -c $<
|
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $<
|
||||||
|
|
||||||
.c.obj:
|
.c.obj:
|
||||||
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
|
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
|
||||||
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
||||||
@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
|
||||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
|
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'`
|
||||||
|
|
||||||
|
.c.lo:
|
||||||
|
@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
||||||
|
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
|
||||||
|
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||||
|
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
|
||||||
|
|
||||||
|
mostlyclean-libtool:
|
||||||
|
-rm -f *.lo
|
||||||
|
|
||||||
|
clean-libtool:
|
||||||
|
-rm -rf .libs _libs
|
||||||
|
|
||||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||||
@@ -379,7 +443,7 @@ distdir: $(DISTFILES)
|
|||||||
done
|
done
|
||||||
check-am: all-am
|
check-am: all-am
|
||||||
check: check-am
|
check: check-am
|
||||||
all-am: Makefile $(LIBRARIES)
|
all-am: Makefile $(LTLIBRARIES)
|
||||||
installdirs:
|
installdirs:
|
||||||
for dir in "$(DESTDIR)$(libdir)"; do \
|
for dir in "$(DESTDIR)$(libdir)"; do \
|
||||||
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
|
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
|
||||||
@@ -394,10 +458,15 @@ install-am: all-am
|
|||||||
|
|
||||||
installcheck: installcheck-am
|
installcheck: installcheck-am
|
||||||
install-strip:
|
install-strip:
|
||||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
if test -z '$(STRIP)'; then \
|
||||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||||
`test -z '$(STRIP)' || \
|
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
install; \
|
||||||
|
else \
|
||||||
|
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||||
|
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||||
|
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||||
|
fi
|
||||||
mostlyclean-generic:
|
mostlyclean-generic:
|
||||||
|
|
||||||
clean-generic:
|
clean-generic:
|
||||||
@@ -411,7 +480,8 @@ maintainer-clean-generic:
|
|||||||
@echo "it deletes files that may require special tools to rebuild."
|
@echo "it deletes files that may require special tools to rebuild."
|
||||||
clean: clean-am
|
clean: clean-am
|
||||||
|
|
||||||
clean-am: clean-generic clean-libLIBRARIES mostlyclean-am
|
clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
|
||||||
|
mostlyclean-am
|
||||||
|
|
||||||
distclean: distclean-am
|
distclean: distclean-am
|
||||||
-rm -rf ./$(DEPDIR)
|
-rm -rf ./$(DEPDIR)
|
||||||
@@ -437,7 +507,7 @@ install-dvi: install-dvi-am
|
|||||||
|
|
||||||
install-dvi-am:
|
install-dvi-am:
|
||||||
|
|
||||||
install-exec-am: install-libLIBRARIES
|
install-exec-am: install-libLTLIBRARIES
|
||||||
|
|
||||||
install-html: install-html-am
|
install-html: install-html-am
|
||||||
|
|
||||||
@@ -466,7 +536,8 @@ maintainer-clean-am: distclean-am maintainer-clean-generic
|
|||||||
|
|
||||||
mostlyclean: mostlyclean-am
|
mostlyclean: mostlyclean-am
|
||||||
|
|
||||||
mostlyclean-am: mostlyclean-compile mostlyclean-generic
|
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
|
||||||
|
mostlyclean-libtool
|
||||||
|
|
||||||
pdf: pdf-am
|
pdf: pdf-am
|
||||||
|
|
||||||
@@ -476,22 +547,23 @@ ps: ps-am
|
|||||||
|
|
||||||
ps-am:
|
ps-am:
|
||||||
|
|
||||||
uninstall-am: uninstall-libLIBRARIES
|
uninstall-am: uninstall-libLTLIBRARIES
|
||||||
|
|
||||||
.MAKE: install-am install-strip
|
.MAKE: install-am install-strip
|
||||||
|
|
||||||
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
|
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
|
||||||
clean-libLIBRARIES ctags distclean distclean-compile \
|
clean-libLTLIBRARIES clean-libtool ctags distclean \
|
||||||
distclean-generic distclean-tags distdir dvi dvi-am html \
|
distclean-compile distclean-generic distclean-libtool \
|
||||||
html-am info info-am install install-am install-data \
|
distclean-tags distdir dvi dvi-am html html-am info info-am \
|
||||||
install-data-am install-dvi install-dvi-am install-exec \
|
install install-am install-data install-data-am install-dvi \
|
||||||
install-exec-am install-html install-html-am install-info \
|
install-dvi-am install-exec install-exec-am install-html \
|
||||||
install-info-am install-libLIBRARIES install-man install-pdf \
|
install-html-am install-info install-info-am \
|
||||||
install-pdf-am install-ps install-ps-am install-strip \
|
install-libLTLIBRARIES install-man install-pdf install-pdf-am \
|
||||||
installcheck installcheck-am installdirs maintainer-clean \
|
install-ps install-ps-am install-strip installcheck \
|
||||||
|
installcheck-am installdirs maintainer-clean \
|
||||||
maintainer-clean-generic mostlyclean mostlyclean-compile \
|
maintainer-clean-generic mostlyclean mostlyclean-compile \
|
||||||
mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \
|
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
|
||||||
uninstall-am uninstall-libLIBRARIES
|
tags uninstall uninstall-am uninstall-libLTLIBRARIES
|
||||||
|
|
||||||
|
|
||||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||||
|
247
src/complete.c
Executable file → Normal file
247
src/complete.c
Executable file → Normal file
@@ -1,58 +1,50 @@
|
|||||||
/* $Revision: 5 $
|
/* History and file completion functions for editline library.
|
||||||
**
|
*
|
||||||
** History and file completion functions for editline library.
|
* Copyright (c) 1992, 1993 Simmule Turner and Rich Salz. All rights reserved.
|
||||||
*/
|
*
|
||||||
|
* This software is not subject to any license of the American Telephone
|
||||||
|
* and Telegraph Company or of the Regents of the University of California.
|
||||||
|
*
|
||||||
|
* Permission is granted to anyone to use this software for any purpose on
|
||||||
|
* any computer system, and to alter it and redistribute it freely, subject
|
||||||
|
* to the following restrictions:
|
||||||
|
* 1. The authors are not responsible for the consequences of use of this
|
||||||
|
* software, no matter how awful, even if they arise from flaws in it.
|
||||||
|
* 2. The origin of this software must not be misrepresented, either by
|
||||||
|
* explicit claim or by omission. Since few users ever read sources,
|
||||||
|
* credits must appear in the documentation.
|
||||||
|
* 3. Altered versions must be plainly marked as such, and must not be
|
||||||
|
* misrepresented as being the original software. Since few users
|
||||||
|
* ever read sources, credits must appear in the documentation.
|
||||||
|
* 4. This notice may not be removed or altered.
|
||||||
|
*/
|
||||||
|
|
||||||
#include "editline.h"
|
#include "editline.h"
|
||||||
|
|
||||||
|
#define MAX_TOTAL_MATCHES (256 << sizeof(char *))
|
||||||
|
|
||||||
#if defined(NEED_STRDUP)
|
/* Wrap strcmp() for qsort() -- weird construct to pass -Wcast-qual */
|
||||||
/*
|
static int compare(const void *p1, const void *p2)
|
||||||
** Return an allocated copy of a string.
|
|
||||||
*/
|
|
||||||
char *
|
|
||||||
strdup(p)
|
|
||||||
char *p;
|
|
||||||
{
|
{
|
||||||
char *new;
|
char *const *v1 = (char *const *)p1;
|
||||||
|
char *const *v2 = (char *const *)p2;
|
||||||
if ((new = NEW(char, strlen(p) + 1)) != NULL)
|
|
||||||
(void)strcpy(new, p);
|
|
||||||
return new;
|
|
||||||
}
|
|
||||||
#endif /* defined(NEED_STRDUP) */
|
|
||||||
|
|
||||||
/*
|
|
||||||
** strcmp-like sorting predicate for qsort.
|
|
||||||
*/
|
|
||||||
static int
|
|
||||||
compare(void *p1, void *p2)
|
|
||||||
{
|
|
||||||
char **v1 = (char **)p1;
|
|
||||||
char **v2 = (char **)p2;
|
|
||||||
|
|
||||||
return strcmp(*v1, *v2);
|
return strcmp(*v1, *v2);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/* Fill in *avp with an array of names that match file, up to its length.
|
||||||
** Fill in *avp with an array of names that match file, up to its length.
|
* Ignore . and .. . */
|
||||||
** Ignore . and .. .
|
static int FindMatches(char *dir, char *file, char ***avp)
|
||||||
*/
|
|
||||||
static int
|
|
||||||
FindMatches(dir, file, avp)
|
|
||||||
char *dir;
|
|
||||||
char *file;
|
|
||||||
char ***avp;
|
|
||||||
{
|
{
|
||||||
char **av;
|
char **av;
|
||||||
char **new;
|
char **new;
|
||||||
char *p;
|
char *p;
|
||||||
DIR *dp;
|
DIR *dp;
|
||||||
DIRENTRY *ep;
|
DIRENTRY *ep;
|
||||||
SIZE_T ac;
|
size_t ac;
|
||||||
SIZE_T len;
|
size_t len;
|
||||||
SIZE_T choices;
|
size_t choices;
|
||||||
SIZE_T total;
|
size_t total;
|
||||||
#define MAX_TOTAL (256 << sizeof(char *))
|
|
||||||
|
|
||||||
if ((dp = opendir(dir)) == NULL)
|
if ((dp = opendir(dir)) == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
@@ -70,27 +62,28 @@ FindMatches(dir, file, avp)
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
choices++;
|
choices++;
|
||||||
if ((total += strlen(p)) > MAX_TOTAL) {
|
if ((total += strlen(p)) > MAX_TOTAL_MATCHES) {
|
||||||
/* This is a bit too much. */
|
/* This is a bit too much. */
|
||||||
while (ac > 0) DISPOSE(av[--ac]);
|
while (ac > 0) free(av[--ac]);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((ac % MEM_INC) == 0) {
|
if ((ac % MEM_INC) == 0) {
|
||||||
if ((new = NEW(char*, ac + MEM_INC)) == NULL) {
|
new = malloc(sizeof(char *) * (ac + MEM_INC));
|
||||||
|
if (!new) {
|
||||||
total = 0;
|
total = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (ac) {
|
if (ac) {
|
||||||
COPYFROMTO(new, av, ac * sizeof (char **));
|
memcpy(new, av, ac * sizeof(char **));
|
||||||
DISPOSE(av);
|
free(av);
|
||||||
}
|
}
|
||||||
*avp = av = new;
|
*avp = av = new;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((av[ac] = strdup(p)) == NULL) {
|
if ((av[ac] = strdup(p)) == NULL) {
|
||||||
if (ac == 0)
|
if (ac == 0)
|
||||||
DISPOSE(av);
|
free(av);
|
||||||
total = 0;
|
total = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -98,8 +91,8 @@ FindMatches(dir, file, avp)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Clean up and return. */
|
/* Clean up and return. */
|
||||||
(void)closedir(dp);
|
closedir(dp);
|
||||||
if (total > MAX_TOTAL) {
|
if (total > MAX_TOTAL_MATCHES) {
|
||||||
char many[sizeof(total) * 3];
|
char many[sizeof(total) * 3];
|
||||||
p = many + sizeof(many);
|
p = many + sizeof(many);
|
||||||
*--p = '\0';
|
*--p = '\0';
|
||||||
@@ -114,17 +107,12 @@ FindMatches(dir, file, avp)
|
|||||||
if (ac)
|
if (ac)
|
||||||
qsort(av, ac, sizeof (char **), compare);
|
qsort(av, ac, sizeof (char **), compare);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ac;
|
return ac;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/* Split a pathname into allocated directory and trailing filename parts. */
|
||||||
** Split a pathname into allocated directory and trailing filename parts.
|
static int SplitPath(char *path, char **dirpart, char **filepart)
|
||||||
*/
|
|
||||||
static int
|
|
||||||
SplitPath(path, dirpart, filepart)
|
|
||||||
char *path;
|
|
||||||
char **dirpart;
|
|
||||||
char **filepart;
|
|
||||||
{
|
{
|
||||||
static char DOT[] = ".";
|
static char DOT[] = ".";
|
||||||
char *dpart;
|
char *dpart;
|
||||||
@@ -134,49 +122,56 @@ SplitPath(path, dirpart, filepart)
|
|||||||
if ((dpart = strdup(DOT)) == NULL)
|
if ((dpart = strdup(DOT)) == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
if ((fpart = strdup(path)) == NULL) {
|
if ((fpart = strdup(path)) == NULL) {
|
||||||
DISPOSE(dpart);
|
free(dpart);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
if ((dpart = strdup(path)) == NULL)
|
if ((dpart = strdup(path)) == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
dpart[fpart - path + 1] = '\0';
|
dpart[fpart - path + 1] = '\0';
|
||||||
if ((fpart = strdup(++fpart)) == NULL) {
|
if ((fpart = strdup(fpart + 1)) == NULL) {
|
||||||
DISPOSE(dpart);
|
free(dpart);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*dirpart = dpart;
|
*dirpart = dpart;
|
||||||
*filepart = fpart;
|
*filepart = fpart;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
static rl_complete_func_t *el_complete_func = NULL;
|
||||||
** Attempt to complete the pathname, returning an allocated copy.
|
|
||||||
** Fill in *unique if we completed it, or set it to 0 if ambiguous.
|
/* For compatibility with the Heimdal project. */
|
||||||
*/
|
rl_complete_func_t *rl_set_complete_func(rl_complete_func_t *func)
|
||||||
char *
|
{
|
||||||
default_rl_complete(pathname, unique)
|
rl_complete_func_t *old = el_complete_func;
|
||||||
char *pathname;
|
el_complete_func = func;
|
||||||
int *unique;
|
return old;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Attempt to complete the pathname, returning an allocated copy.
|
||||||
|
* Fill in *match if we completed it, or set it to 0 if ambiguous. */
|
||||||
|
char *el_filename_complete(char *pathname, int *match)
|
||||||
{
|
{
|
||||||
char **av;
|
char **av;
|
||||||
char *dir;
|
char *dir;
|
||||||
char *file;
|
char *file;
|
||||||
char *new;
|
char *new;
|
||||||
char *p;
|
char *p;
|
||||||
SIZE_T ac;
|
size_t ac;
|
||||||
SIZE_T end;
|
size_t end;
|
||||||
SIZE_T i;
|
size_t i;
|
||||||
SIZE_T j;
|
size_t j;
|
||||||
SIZE_T len;
|
size_t len;
|
||||||
|
|
||||||
if (SplitPath(pathname, &dir, &file) < 0)
|
if (SplitPath(pathname, &dir, &file) < 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if ((ac = FindMatches(dir, file, &av)) == 0) {
|
if ((ac = FindMatches(dir, file, &av)) == 0) {
|
||||||
DISPOSE(dir);
|
free(dir);
|
||||||
DISPOSE(file);
|
free(file);
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -184,21 +179,21 @@ default_rl_complete(pathname, unique)
|
|||||||
len = strlen(file);
|
len = strlen(file);
|
||||||
if (ac == 1) {
|
if (ac == 1) {
|
||||||
/* Exactly one match -- finish it off. */
|
/* Exactly one match -- finish it off. */
|
||||||
*unique = 1;
|
*match = 1;
|
||||||
j = strlen(av[0]) - len + 2;
|
j = strlen(av[0]) - len + 2;
|
||||||
if ((p = NEW(char, j + 1)) != NULL) {
|
p = malloc(sizeof(char) * (j + 1));
|
||||||
COPYFROMTO(p, av[0] + len, j);
|
if (p) {
|
||||||
if ((new = NEW(char, strlen(dir) + strlen(av[0]) + 2)) != NULL) {
|
memcpy(p, av[0] + len, j);
|
||||||
(void)strcpy(new, dir);
|
len = strlen(dir) + strlen(av[0]) + 2;
|
||||||
(void)strcat(new, "/");
|
new = malloc(sizeof(char) * len);
|
||||||
(void)strcat(new, av[0]);
|
if (new) {
|
||||||
|
snprintf(new, len, "%s/%s", dir, av[0]);
|
||||||
rl_add_slash(new, p);
|
rl_add_slash(new, p);
|
||||||
DISPOSE(new);
|
free(new);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else {
|
*match = 0;
|
||||||
*unique = 0;
|
|
||||||
if (len) {
|
if (len) {
|
||||||
/* Find largest matching substring. */
|
/* Find largest matching substring. */
|
||||||
for (i = len, end = strlen(av[0]); i < end; i++)
|
for (i = len, end = strlen(av[0]); i < end; i++)
|
||||||
@@ -208,8 +203,9 @@ default_rl_complete(pathname, unique)
|
|||||||
breakout:
|
breakout:
|
||||||
if (i > len) {
|
if (i > len) {
|
||||||
j = i - len + 1;
|
j = i - len + 1;
|
||||||
if ((p = NEW(char, j)) != NULL) {
|
p = malloc(sizeof(char) * j);
|
||||||
COPYFROMTO(p, av[0] + len, j);
|
if (p) {
|
||||||
|
memcpy(p, av[0] + len, j);
|
||||||
p[j - 1] = '\0';
|
p[j - 1] = '\0';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -217,21 +213,39 @@ default_rl_complete(pathname, unique)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Clean up and return. */
|
/* Clean up and return. */
|
||||||
DISPOSE(dir);
|
free(dir);
|
||||||
DISPOSE(file);
|
free(file);
|
||||||
for (i = 0; i < ac; i++)
|
for (i = 0; i < ac; i++)
|
||||||
DISPOSE(av[i]);
|
free(av[i]);
|
||||||
DISPOSE(av);
|
free(av);
|
||||||
|
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
char *rl_complete(char *token, int *match)
|
||||||
** Return all possible completions.
|
{
|
||||||
*/
|
if (el_complete_func)
|
||||||
int
|
return el_complete_func(token, match);
|
||||||
default_rl_list_possib(pathname, avp)
|
|
||||||
char *pathname;
|
#ifdef CONFIG_DEFAULT_COMPLETE
|
||||||
char ***avp;
|
return el_filename_complete(token, match);
|
||||||
|
#else
|
||||||
|
return NULL;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
static rl_list_possib_func_t *el_list_possib_func = NULL;
|
||||||
|
|
||||||
|
/* For compatibility with the Heimdal project. */
|
||||||
|
rl_list_possib_func_t *rl_set_list_possib_func(rl_list_possib_func_t *func)
|
||||||
|
{
|
||||||
|
rl_list_possib_func_t *old = el_list_possib_func;
|
||||||
|
el_list_possib_func = func;
|
||||||
|
return old;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Default possible completions. */
|
||||||
|
int el_filename_list_possib(char *pathname, char ***av)
|
||||||
{
|
{
|
||||||
char *dir;
|
char *dir;
|
||||||
char *file;
|
char *file;
|
||||||
@@ -239,12 +253,33 @@ default_rl_list_possib(pathname, avp)
|
|||||||
|
|
||||||
if (SplitPath(pathname, &dir, &file) < 0)
|
if (SplitPath(pathname, &dir, &file) < 0)
|
||||||
return 0;
|
return 0;
|
||||||
ac = FindMatches(dir, file, avp);
|
|
||||||
DISPOSE(dir);
|
ac = FindMatches(dir, file, av);
|
||||||
DISPOSE(file);
|
free(dir);
|
||||||
|
free(file);
|
||||||
|
|
||||||
return ac;
|
return ac;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/* Return all possible completions. */
|
||||||
* $PchId: complete.c,v 1.3 1996/02/22 21:18:51 philip Exp $
|
int rl_list_possib(char *token, char ***av)
|
||||||
|
{
|
||||||
|
if (el_list_possib_func)
|
||||||
|
return el_list_possib_func(token, av);
|
||||||
|
|
||||||
|
#ifdef CONFIG_DEFAULT_COMPLETE
|
||||||
|
return el_filename_list_possib(token, av);
|
||||||
|
#else
|
||||||
|
return 0;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Local Variables:
|
||||||
|
* version-control: t
|
||||||
|
* indent-tabs-mode: t
|
||||||
|
* c-file-style: "ellemtel"
|
||||||
|
* c-basic-offset: 4
|
||||||
|
* End:
|
||||||
*/
|
*/
|
||||||
|
1283
src/editline.c
Executable file → Normal file
1283
src/editline.c
Executable file → Normal file
File diff suppressed because it is too large
Load Diff
102
src/editline.h
Executable file → Normal file
102
src/editline.h
Executable file → Normal file
@@ -1,7 +1,24 @@
|
|||||||
/* $Revision: 5 $
|
/* Internal header file for editline library.
|
||||||
**
|
*
|
||||||
** Internal header file for editline library.
|
* Copyright (c) 1992, 1993 Simmule Turner and Rich Salz. All rights reserved.
|
||||||
*/
|
*
|
||||||
|
* This software is not subject to any license of the American Telephone
|
||||||
|
* and Telegraph Company or of the Regents of the University of California.
|
||||||
|
*
|
||||||
|
* Permission is granted to anyone to use this software for any purpose on
|
||||||
|
* any computer system, and to alter it and redistribute it freely, subject
|
||||||
|
* to the following restrictions:
|
||||||
|
* 1. The authors are not responsible for the consequences of use of this
|
||||||
|
* software, no matter how awful, even if they arise from flaws in it.
|
||||||
|
* 2. The origin of this software must not be misrepresented, either by
|
||||||
|
* explicit claim or by omission. Since few users ever read sources,
|
||||||
|
* credits must appear in the documentation.
|
||||||
|
* 3. Altered versions must be plainly marked as such, and must not be
|
||||||
|
* misrepresented as being the original software. Since few users
|
||||||
|
* ever read sources, credits must appear in the documentation.
|
||||||
|
* 4. This notice may not be removed or altered.
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef __PRIVATE_EDITLINE_H__
|
#ifndef __PRIVATE_EDITLINE_H__
|
||||||
#define __PRIVATE_EDITLINE_H__
|
#define __PRIVATE_EDITLINE_H__
|
||||||
|
|
||||||
@@ -24,28 +41,23 @@
|
|||||||
#endif
|
#endif
|
||||||
#ifdef SYS_UNIX
|
#ifdef SYS_UNIX
|
||||||
#include "unix.h"
|
#include "unix.h"
|
||||||
#endif /* defined(SYS_UNIX) */
|
#endif
|
||||||
#if defined(SYS_OS9)
|
#ifdef SYS_OS9
|
||||||
#include "os9.h"
|
#include "os9.h"
|
||||||
#endif /* defined(SYS_OS9) */
|
#endif
|
||||||
|
/* The following two are for TIOCGWINSZ */
|
||||||
|
#ifdef HAVE_TERMIOS_H
|
||||||
|
# include <termios.h>
|
||||||
|
#endif
|
||||||
|
#ifdef GWINSZ_IN_SYS_IOCTL
|
||||||
|
# include <sys/ioctl.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(SIZE_T)
|
#define MEM_INC 64
|
||||||
#define SIZE_T unsigned int
|
#define SCREEN_INC 256
|
||||||
#endif /* !defined(SIZE_T) */
|
|
||||||
|
|
||||||
typedef unsigned char CHAR;
|
|
||||||
|
|
||||||
#define MEM_INC 64
|
|
||||||
#define SCREEN_INC 256
|
|
||||||
|
|
||||||
#define DISPOSE(p) free((char *)(p))
|
|
||||||
#define NEW(T, c) \
|
|
||||||
((T *)malloc((unsigned int)(sizeof (T) * (c))))
|
|
||||||
#define RENEW(p, T, c) \
|
|
||||||
(p = (T *)realloc((char *)(p), (unsigned int)(sizeof (T) * (c))))
|
|
||||||
#define COPYFROMTO(new, p, len) \
|
|
||||||
(void)memcpy((char *)(new), (char *)(p), (int)(len))
|
|
||||||
|
|
||||||
|
/* http://stackoverflow.com/questions/1598773/is-there-a-standard-function-in-c-that-would-return-the-length-of-an-array/1598827#1598827 */
|
||||||
|
#define ARRAY_ELEMENTS(arr) ((sizeof(arr)/sizeof(0[arr])) / ((size_t)(!(sizeof(arr) % sizeof(0[arr])))))
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Variables and routines internal to this package.
|
** Variables and routines internal to this package.
|
||||||
@@ -55,33 +67,31 @@ extern int rl_erase;
|
|||||||
extern int rl_intr;
|
extern int rl_intr;
|
||||||
extern int rl_kill;
|
extern int rl_kill;
|
||||||
extern int rl_quit;
|
extern int rl_quit;
|
||||||
#if defined(DO_SIGTSTP)
|
#ifdef CONFIG_SIGSTOP
|
||||||
extern int rl_susp;
|
extern int rl_susp;
|
||||||
#endif /* defined(DO_SIGTSTP) */
|
|
||||||
#ifdef COMPLETE
|
|
||||||
extern char *default_rl_complete();
|
|
||||||
extern int default_rl_list_possib(char *pathname, char ***avp);
|
|
||||||
#endif
|
#endif
|
||||||
extern void rl_ttyset();
|
void rl_ttyset(int Reset);
|
||||||
extern void rl_add_slash();
|
void rl_add_slash(char *path, char *p);
|
||||||
|
char *rl_complete(char *token, int *match);
|
||||||
|
int rl_list_possib(char *token, char ***av);
|
||||||
|
|
||||||
#if !defined(HAVE_STDLIB_H)
|
#ifndef HAVE_STDLIB_H
|
||||||
extern char *getenv();
|
extern char *getenv(const char *name);
|
||||||
extern char *malloc();
|
extern char *malloc(size_t size);
|
||||||
extern char *realloc();
|
extern char *realloc(void *ptr, size_t size);
|
||||||
extern char *memcpy();
|
extern char *memcpy(void *dest, const void *src, size_t n);
|
||||||
extern char *strcat();
|
extern char *strcat(char *dest, const char *src);
|
||||||
extern char *strchr();
|
extern char *strchr(const char *s, int c);
|
||||||
extern char *strrchr();
|
extern char *strrchr(const char *s, int c);
|
||||||
extern char *strcpy();
|
extern char *strcpy(char *dest, const char *src);
|
||||||
extern char *strdup();
|
extern char *strdup(const char *s);
|
||||||
extern int strcmp();
|
extern int strcmp(const char *s1, const char *s2);
|
||||||
extern int strlen();
|
extern int strlen(const char *s);
|
||||||
extern int strncmp();
|
extern int strncmp(const char *s1, const char *s2, size_t n);
|
||||||
#endif /* !defined(HAVE_STDLIB) */
|
#endif/* !HAVE_STDLIB_H */
|
||||||
|
|
||||||
#if defined(NEED_STRDUP)
|
#ifndef HAVE_STRDUP
|
||||||
extern char *strdup();
|
extern char *strdup(const char *s);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../include/editline.h"
|
#include "../include/editline.h"
|
||||||
|
25
src/os9.h
Normal file
25
src/os9.h
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
/* Editline system header file for OS-9 (on 68k).
|
||||||
|
*
|
||||||
|
* Copyright (c) 1992, 1993 Simmule Turner and Rich Salz. All rights reserved.
|
||||||
|
*
|
||||||
|
* This software is not subject to any license of the American Telephone
|
||||||
|
* and Telegraph Company or of the Regents of the University of California.
|
||||||
|
*
|
||||||
|
* Permission is granted to anyone to use this software for any purpose on
|
||||||
|
* any computer system, and to alter it and redistribute it freely, subject
|
||||||
|
* to the following restrictions:
|
||||||
|
* 1. The authors are not responsible for the consequences of use of this
|
||||||
|
* software, no matter how awful, even if they arise from flaws in it.
|
||||||
|
* 2. The origin of this software must not be misrepresented, either by
|
||||||
|
* explicit claim or by omission. Since few users ever read sources,
|
||||||
|
* credits must appear in the documentation.
|
||||||
|
* 3. Altered versions must be plainly marked as such, and must not be
|
||||||
|
* misrepresented as being the original software. Since few users
|
||||||
|
* ever read sources, credits must appear in the documentation.
|
||||||
|
* 4. This notice may not be removed or altered.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define CRLF "\r\l"
|
||||||
|
|
||||||
|
#include <dir.h>
|
||||||
|
typedef struct direct DIRENTRY;
|
65
src/sysos9.c
Normal file
65
src/sysos9.c
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
/* OS-9 (on 68k) system-dependant routines for editline library.
|
||||||
|
*
|
||||||
|
* Copyright (c) 1992, 1993 Simmule Turner and Rich Salz. All rights reserved.
|
||||||
|
*
|
||||||
|
* This software is not subject to any license of the American Telephone
|
||||||
|
* and Telegraph Company or of the Regents of the University of California.
|
||||||
|
*
|
||||||
|
* Permission is granted to anyone to use this software for any purpose on
|
||||||
|
* any computer system, and to alter it and redistribute it freely, subject
|
||||||
|
* to the following restrictions:
|
||||||
|
* 1. The authors are not responsible for the consequences of use of this
|
||||||
|
* software, no matter how awful, even if they arise from flaws in it.
|
||||||
|
* 2. The origin of this software must not be misrepresented, either by
|
||||||
|
* explicit claim or by omission. Since few users ever read sources,
|
||||||
|
* credits must appear in the documentation.
|
||||||
|
* 3. Altered versions must be plainly marked as such, and must not be
|
||||||
|
* misrepresented as being the original software. Since few users
|
||||||
|
* ever read sources, credits must appear in the documentation.
|
||||||
|
* 4. This notice may not be removed or altered.
|
||||||
|
*/
|
||||||
|
#include "editline.h"
|
||||||
|
#include <sgstat.h>
|
||||||
|
#include <modes.h>
|
||||||
|
|
||||||
|
void rl_ttyset(int Reset)
|
||||||
|
{
|
||||||
|
static struct sgbuf old;
|
||||||
|
struct sgbuf new;
|
||||||
|
|
||||||
|
if (Reset == 0) {
|
||||||
|
_gs_opt(0, &old);
|
||||||
|
_gs_opt(0, &new);
|
||||||
|
new.sg_backsp = 0; new.sg_delete = 0; new.sg_echo = 0;
|
||||||
|
new.sg_alf = 0; new.sg_nulls = 0; new.sg_pause = 0;
|
||||||
|
new.sg_page = 0; new.sg_bspch = 0; new.sg_dlnch = 0;
|
||||||
|
new.sg_eorch = 0; new.sg_eofch = 0; new.sg_rlnch = 0;
|
||||||
|
new.sg_dulnch = 0; new.sg_psch = 0; new.sg_kbich = 0;
|
||||||
|
new.sg_kbach = 0; new.sg_bsech = 0; new.sg_bellch = 0;
|
||||||
|
new.sg_xon = 0; new.sg_xoff = 0; new.sg_tabcr = 0;
|
||||||
|
new.sg_tabsiz = 0;
|
||||||
|
_ss_opt(0, &new);
|
||||||
|
rl_erase = old.sg_bspch;
|
||||||
|
rl_kill = old.sg_dlnch;
|
||||||
|
rl_eof = old.sg_eofch;
|
||||||
|
rl_intr = old.sg_kbich;
|
||||||
|
rl_quit = -1;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
_ss_opt(0, &old);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void rl_add_slash(char *path, char *p)
|
||||||
|
{
|
||||||
|
strcat(p, access(path, S_IREAD | S_IFDIR) ? " " : "/");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Local Variables:
|
||||||
|
* version-control: t
|
||||||
|
* indent-tabs-mode: t
|
||||||
|
* c-file-style: "ellemtel"
|
||||||
|
* c-basic-offset: 4
|
||||||
|
* End:
|
||||||
|
*/
|
224
src/sysunix.c
Executable file → Normal file
224
src/sysunix.c
Executable file → Normal file
@@ -1,136 +1,240 @@
|
|||||||
/* $Revision: 5 $
|
/* Unix system-dependant routines for editline library.
|
||||||
**
|
*
|
||||||
** Unix system-dependant routines for editline library.
|
* Copyright (c) 1992, 1993 Simmule Turner and Rich Salz. All rights reserved.
|
||||||
*/
|
*
|
||||||
|
* This software is not subject to any license of the American Telephone
|
||||||
|
* and Telegraph Company or of the Regents of the University of California.
|
||||||
|
*
|
||||||
|
* Permission is granted to anyone to use this software for any purpose on
|
||||||
|
* any computer system, and to alter it and redistribute it freely, subject
|
||||||
|
* to the following restrictions:
|
||||||
|
* 1. The authors are not responsible for the consequences of use of this
|
||||||
|
* software, no matter how awful, even if they arise from flaws in it.
|
||||||
|
* 2. The origin of this software must not be misrepresented, either by
|
||||||
|
* explicit claim or by omission. Since few users ever read sources,
|
||||||
|
* credits must appear in the documentation.
|
||||||
|
* 3. Altered versions must be plainly marked as such, and must not be
|
||||||
|
* misrepresented as being the original software. Since few users
|
||||||
|
* ever read sources, credits must appear in the documentation.
|
||||||
|
* 4. This notice may not be removed or altered.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <errno.h>
|
||||||
#include "editline.h"
|
#include "editline.h"
|
||||||
|
|
||||||
#if defined(HAVE_TCGETATTR)
|
#ifndef HAVE_TCGETATTR
|
||||||
|
/* Wrapper for ioctl syscalls to restart on signal */
|
||||||
|
static int ioctl_wrap(int fd, int req, void *arg)
|
||||||
|
{
|
||||||
|
int result, retries = 3;
|
||||||
|
|
||||||
|
while (-1 == (result = ioctl(fd, req, arg)) && retries > 0) {
|
||||||
|
retries--;
|
||||||
|
|
||||||
|
if (EINTR == errno)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Prefer termios over the others since it is likely the most portable. */
|
||||||
|
#if defined(HAVE_TCGETATTR)
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
|
|
||||||
void
|
/* Wrapper for tcgetattr */
|
||||||
rl_ttyset(Reset)
|
static int getattr(int fd, struct termios *arg)
|
||||||
int Reset;
|
{
|
||||||
|
int result, retries = 3;
|
||||||
|
|
||||||
|
while (-1 == (result = tcgetattr(fd, arg)) && retries > 0) {
|
||||||
|
retries--;
|
||||||
|
|
||||||
|
if (EINTR == errno)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Wrapper for tcgetattr */
|
||||||
|
static int setattr(int fd, int opt, const struct termios *arg)
|
||||||
|
{
|
||||||
|
int result, retries = 3;
|
||||||
|
|
||||||
|
while (-1 == (result = tcsetattr(fd, opt, arg)) && retries > 0) {
|
||||||
|
retries--;
|
||||||
|
|
||||||
|
if (EINTR == errno)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
void rl_ttyset(int Reset)
|
||||||
{
|
{
|
||||||
static struct termios old;
|
static struct termios old;
|
||||||
struct termios new;
|
struct termios new;
|
||||||
|
|
||||||
if (Reset == 0) {
|
if (!Reset) {
|
||||||
if (tcgetattr(0, &old) < 0) perror("tcgetattr");
|
if (-1 == getattr(0, &old))
|
||||||
|
perror("Failed tcgetattr()");
|
||||||
rl_erase = old.c_cc[VERASE];
|
rl_erase = old.c_cc[VERASE];
|
||||||
rl_kill = old.c_cc[VKILL];
|
rl_kill = old.c_cc[VKILL];
|
||||||
rl_eof = old.c_cc[VEOF];
|
rl_eof = old.c_cc[VEOF];
|
||||||
rl_intr = old.c_cc[VINTR];
|
rl_intr = old.c_cc[VINTR];
|
||||||
rl_quit = old.c_cc[VQUIT];
|
rl_quit = old.c_cc[VQUIT];
|
||||||
#if defined(DO_SIGTSTP)
|
#ifdef CONFIG_SIGSTOP
|
||||||
rl_susp = old.c_cc[VSUSP];
|
rl_susp = old.c_cc[VSUSP];
|
||||||
#endif /* defined(DO_SIGTSTP) */
|
#endif
|
||||||
|
|
||||||
new = old;
|
new = old;
|
||||||
new.c_lflag &= ~(ECHO | ICANON | ISIG);
|
new.c_lflag &= ~(ECHO | ICANON | ISIG);
|
||||||
new.c_iflag &= ~(ISTRIP | INPCK);
|
new.c_iflag &= ~INPCK;
|
||||||
|
if (rl_meta_chars)
|
||||||
|
new.c_iflag |= ISTRIP;
|
||||||
|
else
|
||||||
|
new.c_iflag &= ~ISTRIP;
|
||||||
new.c_cc[VMIN] = 1;
|
new.c_cc[VMIN] = 1;
|
||||||
new.c_cc[VTIME] = 0;
|
new.c_cc[VTIME] = 0;
|
||||||
if (tcsetattr(0, TCSADRAIN, &new) < 0) perror("tcsetattr");
|
if (-1 == setattr(0, TCSADRAIN, &new))
|
||||||
|
perror("Failed tcsetattr(TCSADRAIN)");
|
||||||
|
} else {
|
||||||
|
if (-1 == setattr(0, TCSADRAIN, &old))
|
||||||
|
perror("Failed tcsetattr(TCSADRAIN)");
|
||||||
}
|
}
|
||||||
else
|
|
||||||
(void)tcsetattr(0, TCSADRAIN, &old);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#elif defined(HAVE_TERMIO_H)
|
||||||
#if defined(HAVE_TERMIO_H)
|
|
||||||
#include <termio.h>
|
#include <termio.h>
|
||||||
|
|
||||||
void
|
void rl_ttyset(int Reset)
|
||||||
rl_ttyset(Reset)
|
|
||||||
int Reset;
|
|
||||||
{
|
{
|
||||||
static struct termio old;
|
static struct termio old;
|
||||||
struct termio new;
|
struct termio new;
|
||||||
|
|
||||||
if (Reset == 0) {
|
if (!Reset) {
|
||||||
(void)ioctl(0, TCGETA, &old);
|
if (-1 == ioctl_wrap(0, TCGETA, &old))
|
||||||
|
perror("Failed ioctl(TCGETA)");
|
||||||
rl_erase = old.c_cc[VERASE];
|
rl_erase = old.c_cc[VERASE];
|
||||||
rl_kill = old.c_cc[VKILL];
|
rl_kill = old.c_cc[VKILL];
|
||||||
rl_eof = old.c_cc[VEOF];
|
rl_eof = old.c_cc[VEOF];
|
||||||
rl_intr = old.c_cc[VINTR];
|
rl_intr = old.c_cc[VINTR];
|
||||||
rl_quit = old.c_cc[VQUIT];
|
rl_quit = old.c_cc[VQUIT];
|
||||||
#if defined(DO_SIGTSTP)
|
#ifdef CONFIG_SIGSTOP
|
||||||
rl_susp = old.c_cc[VSUSP];
|
rl_susp = old.c_cc[VSUSP];
|
||||||
#endif /* defined(DO_SIGTSTP) */
|
#endif
|
||||||
|
|
||||||
new = old;
|
new = old;
|
||||||
new.c_lflag &= ~(ECHO | ICANON | ISIG);
|
new.c_lflag &= ~(ECHO | ICANON | ISIG);
|
||||||
new.c_iflag &= ~(ISTRIP | INPCK);
|
new.c_iflag &= ~INPCK;
|
||||||
|
if (rl_meta_chars)
|
||||||
|
new.c_iflag |= ISTRIP;
|
||||||
|
else
|
||||||
|
new.c_iflag &= ~ISTRIP;
|
||||||
|
|
||||||
new.c_cc[VMIN] = 1;
|
new.c_cc[VMIN] = 1;
|
||||||
new.c_cc[VTIME] = 0;
|
new.c_cc[VTIME] = 0;
|
||||||
(void)ioctl(0, TCSETAW, &new);
|
if (-1 == ioctl_wrap(0, TCSETAW, &new))
|
||||||
|
perror("Failed ioctl(TCSETAW)");
|
||||||
|
} else {
|
||||||
|
if (-1 == ioctl_wrap(0, TCSETAW, &old))
|
||||||
|
perror("Failed ioctl(TCSETAW)");
|
||||||
}
|
}
|
||||||
else
|
|
||||||
(void)ioctl(0, TCSETAW, &old);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#elif defined(HAVE_SGTTY_H)
|
||||||
#include <sgtty.h>
|
#include <sgtty.h>
|
||||||
|
|
||||||
void
|
void rl_ttyset(int Reset)
|
||||||
rl_ttyset(Reset)
|
|
||||||
int Reset;
|
|
||||||
{
|
{
|
||||||
static struct sgttyb old_sgttyb;
|
static struct sgttyb old_sgttyb;
|
||||||
static struct tchars old_tchars;
|
static struct tchars old_tchars;
|
||||||
struct sgttyb new_sgttyb;
|
struct sgttyb new_sgttyb;
|
||||||
struct tchars new_tchars;
|
struct tchars new_tchars;
|
||||||
#if defined(DO_SIGTSTP)
|
#ifdef CONFIG_SIGSTOP
|
||||||
struct ltchars old_ltchars;
|
struct ltchars old_ltchars;
|
||||||
#endif /* defined(DO_SIGTSTP) */
|
#endif
|
||||||
|
|
||||||
if (Reset == 0) {
|
if (!Reset) {
|
||||||
(void)ioctl(0, TIOCGETP, &old_sgttyb);
|
if (-1 == ioctl_wrap(0, TIOCGETP, &old_sgttyb))
|
||||||
|
perror("Failed TIOCGETP");
|
||||||
rl_erase = old_sgttyb.sg_erase;
|
rl_erase = old_sgttyb.sg_erase;
|
||||||
rl_kill = old_sgttyb.sg_kill;
|
rl_kill = old_sgttyb.sg_kill;
|
||||||
|
|
||||||
(void)ioctl(0, TIOCGETC, &old_tchars);
|
if (-1 == ioctl_wrap(0, TIOCGETC, &old_tchars))
|
||||||
|
perror("Failed TIOCGETC");
|
||||||
rl_eof = old_tchars.t_eofc;
|
rl_eof = old_tchars.t_eofc;
|
||||||
rl_intr = old_tchars.t_intrc;
|
rl_intr = old_tchars.t_intrc;
|
||||||
rl_quit = old_tchars.t_quitc;
|
rl_quit = old_tchars.t_quitc;
|
||||||
|
|
||||||
#if defined(DO_SIGTSTP)
|
#ifdef CONFIG_SIGSTOP
|
||||||
(void)ioctl(0, TIOCGLTC, &old_ltchars);
|
if (-1 == ioctl_wrap(0, TIOCGLTC, &old_ltchars))
|
||||||
|
perror("Failed TIOCGLTC");
|
||||||
rl_susp = old_ltchars.t_suspc;
|
rl_susp = old_ltchars.t_suspc;
|
||||||
#endif /* defined(DO_SIGTSTP) */
|
#endif
|
||||||
|
|
||||||
new_sgttyb = old_sgttyb;
|
new_sgttyb = old_sgttyb;
|
||||||
new_sgttyb.sg_flags &= ~ECHO;
|
new_sgttyb.sg_flags &= ~ECHO;
|
||||||
new_sgttyb.sg_flags |= RAW;
|
new_sgttyb.sg_flags |= RAW;
|
||||||
#if defined(PASS8)
|
if (rl_meta_chars)
|
||||||
new_sgttyb.sg_flags |= PASS8;
|
new_sgttyb.sg_flags &= ~PASS8;
|
||||||
#endif /* defined(PASS8) */
|
else
|
||||||
(void)ioctl(0, TIOCSETP, &new_sgttyb);
|
new_sgttyb.sg_flags |= PASS8;
|
||||||
|
if (-1 == ioctl_wrap(0, TIOCSETP, &new_sgttyb))
|
||||||
|
perror("Failed TIOCSETP");
|
||||||
new_tchars = old_tchars;
|
new_tchars = old_tchars;
|
||||||
new_tchars.t_intrc = -1;
|
new_tchars.t_intrc = -1;
|
||||||
new_tchars.t_quitc = -1;
|
new_tchars.t_quitc = -1;
|
||||||
(void)ioctl(0, TIOCSETC, &new_tchars);
|
if (-1 == ioctl_wrap(0, TIOCSETC, &new_tchars))
|
||||||
}
|
perror("Failed TIOCSETC");
|
||||||
else {
|
} else {
|
||||||
(void)ioctl(0, TIOCSETP, &old_sgttyb);
|
if (-1 == ioctl_wrap(0, TIOCSETP, &old_sgttyb))
|
||||||
(void)ioctl(0, TIOCSETC, &old_tchars);
|
perror("Failed TIOCSETP");
|
||||||
|
if (-1 == ioctl_wrap(0, TIOCSETC, &old_tchars))
|
||||||
|
perror("Failed TIOCSETC");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif /* defined(HAVE_TERMIO_H) */
|
#else /* Neither HAVE_SGTTY_H, HAVE_TERMIO_H or HAVE_TCGETATTR */
|
||||||
#endif /* defined(HAVE_TCGETATTR) */
|
#error Unsupported platform, missing tcgetattr(), termio.h and sgtty.h
|
||||||
|
#endif /* Neither HAVE_SGTTY_H, HAVE_TERMIO_H or HAVE_TCGETATTR */
|
||||||
|
|
||||||
void
|
#ifndef HAVE_STRDUP
|
||||||
rl_add_slash(path, p)
|
/* Return an allocated copy of a string. */
|
||||||
char *path;
|
char *strdup(const char *p)
|
||||||
char *p;
|
{
|
||||||
|
char *new = malloc(sizeof(char) * strlen(p));
|
||||||
|
|
||||||
|
if (new) {
|
||||||
|
strcpy(new, p);
|
||||||
|
return new;
|
||||||
|
}
|
||||||
|
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
void rl_add_slash(char *path, char *p)
|
||||||
{
|
{
|
||||||
struct stat Sb;
|
struct stat Sb;
|
||||||
|
|
||||||
if (stat(path, &Sb) >= 0)
|
if (stat(path, &Sb) >= 0)
|
||||||
(void)strcat(p, S_ISDIR(Sb.st_mode) ? "/" : " ");
|
strcat(p, S_ISDIR(Sb.st_mode) ? "/" : " ");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* $PchId: sysunix.c,v 1.4 1996/02/22 21:16:56 philip Exp $
|
* Local Variables:
|
||||||
|
* version-control: t
|
||||||
|
* indent-tabs-mode: t
|
||||||
|
* c-file-style: "ellemtel"
|
||||||
|
* c-basic-offset: 4
|
||||||
|
* End:
|
||||||
*/
|
*/
|
||||||
|
40
src/unix.h
Executable file → Normal file
40
src/unix.h
Executable file → Normal file
@@ -1,7 +1,26 @@
|
|||||||
/* $Revision: 5 $
|
/* Editline system header file for Unix.
|
||||||
**
|
*
|
||||||
** Editline system header file for Unix.
|
* Copyright (c) 1992, 1993 Simmule Turner and Rich Salz. All rights reserved.
|
||||||
*/
|
*
|
||||||
|
* This software is not subject to any license of the American Telephone
|
||||||
|
* and Telegraph Company or of the Regents of the University of California.
|
||||||
|
*
|
||||||
|
* Permission is granted to anyone to use this software for any purpose on
|
||||||
|
* any computer system, and to alter it and redistribute it freely, subject
|
||||||
|
* to the following restrictions:
|
||||||
|
* 1. The authors are not responsible for the consequences of use of this
|
||||||
|
* software, no matter how awful, even if they arise from flaws in it.
|
||||||
|
* 2. The origin of this software must not be misrepresented, either by
|
||||||
|
* explicit claim or by omission. Since few users ever read sources,
|
||||||
|
* credits must appear in the documentation.
|
||||||
|
* 3. Altered versions must be plainly marked as such, and must not be
|
||||||
|
* misrepresented as being the original software. Since few users
|
||||||
|
* ever read sources, credits must appear in the documentation.
|
||||||
|
* 4. This notice may not be removed or altered.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef __EDITLINE_UNIX_H__
|
||||||
|
#define __EDITLINE_UNIX_H__
|
||||||
|
|
||||||
#define CRLF "\r\n"
|
#define CRLF "\r\n"
|
||||||
#define FORWARD STATIC
|
#define FORWARD STATIC
|
||||||
@@ -10,18 +29,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#if defined(USE_DIRENT)
|
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
typedef struct dirent DIRENTRY;
|
typedef struct dirent DIRENTRY;
|
||||||
#else
|
|
||||||
#include <sys/dir.h>
|
|
||||||
typedef struct direct DIRENTRY;
|
|
||||||
#endif /* defined(USE_DIRENT) */
|
|
||||||
|
|
||||||
#if !defined(S_ISDIR)
|
#endif /* __EDITLINE_UNIX_H__ */
|
||||||
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
|
|
||||||
#endif /* !defined(S_ISDIR) */
|
|
||||||
|
|
||||||
/*
|
|
||||||
* $PchId: unix.h,v 1.3 1996/02/22 21:18:51 philip Exp $
|
|
||||||
*/
|
|
||||||
|
Reference in New Issue
Block a user