Re: [GENERAL] problem compiling under suse 5.1

Karl Eichwalder <ke@suse.de>

From: Karl Eichwalder <ke@suse.de>
To: "Christian Steindl" <e9425178@student.tuwien.ac.at>
Cc: <pgsql-general@postgreSQL.org>
Date: 1998-06-02T08:25:50Z
Lists: pgsql-general
"Christian Steindl" <e9425178@student.tuwien.ac.at> writes:

|   i use suse distribution of linux 2.0.32, but there comes these error
|   when compiling psql does anyone know what to do?  how can i
|   deactivate the readline option according to Linux-FAQ 1.2)?

Don't do this -- readline is quite handy.

The following patch should do the trick (already mailed by me to the
pg patch list); after patching invoke autoconf to produce a new
configure script.

*** postgresql-6.3.2/src/configure.in~	Fri Apr 17 09:00:46 1998
--- postgresql-6.3.2/src/configure.in	Mon May 11 17:37:34 1998
***************
*** 400,406 ****
  fi
  
  AC_CHECK_LIB(sfio,     main)
! AC_CHECK_LIB(curses,   main)
  AC_CHECK_LIB(termcap,  main)
  AC_CHECK_LIB(history,  main)
  AC_CHECK_LIB(readline, main)
--- 400,409 ----
  fi
  
  AC_CHECK_LIB(sfio,     main)
! for curses in ncurses curses ; do
!    AC_CHECK_LIB(${curses}, main,
!      [LIBS="-l${curses} $LIBS"; break])
! done
  AC_CHECK_LIB(termcap,  main)
  AC_CHECK_LIB(history,  main)
  AC_CHECK_LIB(readline, main)