Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
3b4931c0
Commit
3b4931c0
authored
Sep 21, 1998
by
Kurt Zeilenga
Browse files
Added termcap and ncurses detection.
parent
088ff280
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
clients/ud/Makefile.in
View file @
3b4931c0
...
...
@@ -9,7 +9,8 @@ PROGRAMS= ud
LDAP_INCDIR
=
../../include
LDAP_LIBDIR
=
../../libraries
XLIBS
=
$(LIBTERMCAP)
XDEFS
=
$(TERMCAP_DEFS)
XLIBS
=
$(TERMCAP_LIBS)
ud
:
version.o
$(CC)
$(LDFLAGS)
-o
$@
version.o
$(OBJS)
$(LIBS)
...
...
configure
View file @
3b4931c0
This diff is collapsed.
Click to expand it.
configure.in
View file @
3b4931c0
...
...
@@ -452,8 +452,36 @@ dnl AC_DEFINE(HAVE_TCPD)
fi
# ud needs termcap (should insert check here)
LIBTERMCAP="-ltermcap"
AC_SUBST(LIBTERMCAP)
ol_link_termcap=no
TERMCAP_DEFS=
TERMCAP_LIBS=
AC_CHECK_HEADERS(termcap.h ncurses.h)
if test $ol_link_termcap = no ; then
AC_CHECK_LIB(termcap, tputs, [have_termcap=yes], [have_termcap=no])
if test $have_termcap = yes ; then
ol_link_termcap=yes
TERMCAP_LIBS=-ltermcap
fi
fi
if test $ol_link_termcap = no ; then
AC_CHECK_LIB(ncurses, initscr, [have_ncurses=yes], [have_ncurses=no])
if test $have_ncurses = yes ; then
ol_link_termcap=yes
TERMCAP_LIBS=-lncurses
fi
fi
if test $ol_link_termcap = no ; then
TERMCAP_DEFS="-DNOTERMCAP"
TERMCAP_LIBS=
fi
AC_SUBST(TERMCAP_DEFS)
AC_SUBST(TERMCAP_LIBS)
# FreeBSD (and others) have crypt(3) in -lcrypt
if test $ol_enable_crypt != no ; then
...
...
include/portable.h.in
View file @
3b4931c0
...
...
@@ -145,6 +145,9 @@
/* Define if you have the <malloc.h> header file. */
#undef HAVE_MALLOC_H
/* Define if you have the <ncurses.h> header file. */
#undef HAVE_NCURSES_H
/* Define if you have the <ndbm.h> header file. */
#undef HAVE_NDBM_H
...
...
@@ -181,6 +184,9 @@
/* Define if you have the <syslog.h> header file. */
#undef HAVE_SYSLOG_H
/* Define if you have the <termcap.h> header file. */
#undef HAVE_TERMCAP_H
/* Define if you have the <termio.h> header file. */
#undef HAVE_TERMIO_H
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment