Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
5610b6d9
Commit
5610b6d9
authored
24 years ago
by
Peter Eisentraut
Browse files
Options
Downloads
Patches
Plain Diff
Only use termcap xor [n]curses, depending on what readline needs. Solaris
has problems when linking with both.
parent
659a1d65
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
config/programs.m4
+33
-1
33 additions, 1 deletion
config/programs.m4
configure
+311
-457
311 additions, 457 deletions
configure
configure.in
+1
-3
1 addition, 3 deletions
configure.in
with
345 additions
and
461 deletions
config/programs.m4
+
33
−
1
View file @
5610b6d9
# $Header: /cvsroot/pgsql/config/programs.m4,v 1.
2
200
0/10/2
6 1
6
:2
8:00
petere Exp $
# $Header: /cvsroot/pgsql/config/programs.m4,v 1.
3
200
1/02/0
6 1
9
:2
0:16
petere Exp $
# PGAC_PATH_FLEX
# PGAC_PATH_FLEX
...
@@ -70,3 +70,35 @@ fi
...
@@ -70,3 +70,35 @@ fi
AC_SUBST(FLEX)
AC_SUBST(FLEX)
AC_SUBST(FLEXFLAGS)
AC_SUBST(FLEXFLAGS)
])# PGAC_PATH_FLEX
])# PGAC_PATH_FLEX
# PGAC_CHECK_READLINE
# -------------------
# Check for the readline library and dependent libraries, either
# termcap or curses. Also try libedit, since NetBSD's is compatible.
# Add the required flags to LIBS, define HAVE_LIBREADLINE.
AC_DEFUN([PGAC_CHECK_READLINE],
[AC_MSG_CHECKING([for readline])
AC_CACHE_VAL([pgac_cv_check_readline],
[pgac_cv_check_readline=no
for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
for pgac_rllib in -lreadline -ledit ; do
pgac_save_LIBS=$LIBS
LIBS="${pgac_rllib}${pgac_lib} $LIBS"
AC_TRY_LINK_FUNC([readline], [pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"; break 2])
LIBS=$pgac_save_LIBS
done
done
LIBS=$pgac_save_LIBS
])[]dnl AC_CACHE_VAL
if test "$pgac_cv_check_readline" != no ; then
AC_DEFINE(HAVE_LIBREADLINE)
LIBS="$pgac_cv_check_readline $LIBS"
AC_MSG_RESULT([yes ($pgac_cv_check_readline)])
else
AC_MSG_RESULT(no)
fi])# PGAC_CHECK_READLINE
This diff is collapsed.
Click to expand it.
configure
+
311
−
457
View file @
5610b6d9
This diff is collapsed.
Click to expand it.
configure.in
+
1
−
3
View file @
5610b6d9
...
@@ -654,9 +654,7 @@ fi
...
@@ -654,9 +654,7 @@ fi
##
##
AC_CHECK_LIB(sfio, main)
AC_CHECK_LIB(sfio, main)
AC_CHECK_LIB(ncurses, main, [], [AC_CHECK_LIB(curses, main)])
PGAC_CHECK_READLINE
AC_CHECK_LIB(termcap, main)
AC_SEARCH_LIBS(readline, [readline edit], [AC_DEFINE(HAVE_LIBREADLINE)])
AC_SEARCH_LIBS(using_history, history, [AC_DEFINE(HAVE_HISTORY_FUNCTIONS)])
AC_SEARCH_LIBS(using_history, history, [AC_DEFINE(HAVE_HISTORY_FUNCTIONS)])
if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment