[Python-checkins] CVS: python/dist/src/Modules Setup.config.in,1.7,1.8 Setup.dist,1.7,1.8

Eric S. Raymond esr@users.sourceforge.net
Wed, 17 Jan 2001 00:25:13 -0800


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv14099/Modules

Modified Files:
	Setup.config.in Setup.dist 
Log Message:
Eric the half-a-wit, driven to berserk rage after repeatedly doing
builds during which he forgot to uncomment crucial library lines in
Setup, walks into Guido's East End nightclub with a tactical nuclear
weapon on his shoulder.  Said nuclear weapon is promptly deployed
exactly where it will do the most good, right in the middle of
configure.in.

With this patch, the set of libraries autoconfigured in is extended to 
include ndbm, gdbm, and crypt.  This essentially eliminates any need to
tweak Setup for a normal Linux build.

"'E was a fair man.  Cruel, but fair."


Index: Setup.config.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/Setup.config.in,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** Setup.config.in	2001/01/15 17:07:21	1.7
--- Setup.config.in	2001/01/17 08:25:11	1.8
***************
*** 21,27 ****
  @USE_NCURSES_MODULE@_curses _cursesmodule.c -lncurses -ltermcap
  
! # bsddb module enabled by --with-libdb or presence of db.h
  @USE_BSDDB_MODULE@bsddb bsddbmodule.c @HAVE_LIBDB@
  
  # dbm(3) may require -lndbm or similar
  @USE_DBM_MODULE@dbm dbmmodule.c @HAVE_LIBNDBM@
--- 21,37 ----
  @USE_NCURSES_MODULE@_curses _cursesmodule.c -lncurses -ltermcap
  
! # bsddb(3) module enabled by --with-libdb or presence of db.h
  @USE_BSDDB_MODULE@bsddb bsddbmodule.c @HAVE_LIBDB@
  
  # dbm(3) may require -lndbm or similar
  @USE_DBM_MODULE@dbm dbmmodule.c @HAVE_LIBNDBM@
+ 
+ # ndbm(3) may require -lndbm or similar
+ @USE_NDBM_MODULE@ndbm ndbmmodule.c @HAVE_LIBNDBM@
+ 
+ # gdbm(3) may require -lgdbm or similar
+ @USE_GDBM_MODULE@gdbm gdbmmodule.c @HAVE_LIBGDBM@
+ 
+ # crypt(3) may require -lcrypt or similar
+ @USE_CRYPT_MODULE@crypt cryptmodule.c @HAVE_LIBCRYPT@
+ 

Index: Setup.dist
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/Setup.dist,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** Setup.dist	2001/01/15 17:07:21	1.7
--- Setup.dist	2001/01/17 08:25:11	1.8
***************
*** 173,176 ****
--- 173,179 ----
  # The crypt module is now disabled by default because it breaks builds
  # on many systems (where -lcrypt is needed), e.g. Linux (I believe).
+ #
+ # First, look at Setup.config; configure may have set this for you.
+ 
  #crypt cryptmodule.c # -lcrypt	# crypt(3); needs -lcrypt on some systems
  
***************
*** 360,367 ****
--- 363,374 ----
  # a built-in module causes conflicts with the pybsddb3 module since it
  # creates a static dependency on an out-of-date version of db.so.
+ #
+ # First, look at Setup.config; configure may have set this for you.
  
  #dbm dbmmodule.c 	# dbm(3) may require -lndbm or similar
  
  # Anthony Baxter's gdbm module.  GNU dbm(3) will require -lgdbm:
+ #
+ # First, look at Setup.config; configure may have set this for you.
  
  #gdbm gdbmmodule.c -I/usr/local/include -L/usr/local/lib -lgdbm