Skip to content

Commit 310c4e3

Browse files
committed
Use AM_CONDITIONALs in Modules/Setup.in
1 parent 32583fa commit 310c4e3

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

Modules/Setup.in

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -199,21 +199,21 @@ time timemodule.c
199199
# Some more UNIX dependent modules -- off by default, since these
200200
# are not supported by all UNIX systems:
201201

202-
#_crypt _cryptmodule.c $(CRYPT_CFLAGS) $(CRYPT_LIBS) # crypt(3); breaks many builds.
203-
#nis nismodule.c $(NIS_CFLAGS) $(NIS_LIBS) # Sun yellow pages -- not everywhere
202+
#@HAVE_CURSES_TRUE@_crypt _cryptmodule.c $(CRYPT_CFLAGS) $(CRYPT_LIBS) # crypt(3); breaks many builds.
203+
#@HAVE_NIS_TRUE@nis nismodule.c $(NIS_CFLAGS) $(NIS_LIBS) # Sun yellow pages -- not everywhere
204204
#termios termios.c # Steen Lumholt's termios module
205205
#resource resource.c # Jeremy Hylton's rlimit interface
206206

207207
# Modules that require external libraries.
208208

209-
#_bz2 _bz2module.c $(BZ2_CFLAGS) $(BZ2_LIBS)
210-
#_ctypes _ctypes/_ctypes.c _ctypes/callbacks.c _ctypes/callproc.c _ctypes/stgdict.c _ctypes/cfield.c $(FFI_CFLAGS) $(FFI_LIBS) -DHAVE_FFI_PREP_CIF_VAR -DHAVE_FFI_PREP_CLOSURE_LOC -DHAVE_FFI_CLOSURE_ALLOC
211-
# _dbm _dbmmodule.c # -lndbm # dbm(3)
212-
#_gdbm _gdbmmodule.c -lgdbm
213-
#_lzma _lzmamodule.c $(LZMA_CFLAGS) $(LZMA_LIBS)
214-
#_sqlite3 _sqlite/connection.c _sqlite/cursor.c _sqlite/microprotocols.c _sqlite/module.c _sqlite/prepare_protocol.c _sqlite/row.c _sqlite/statement.c _sqlite/util.c $(SQLITE3_CFLAGS) $(SQLITE3_LIBS)
215-
#_uuid _uuidmodule.c $(UUID_CFLAGS) $(UUID_LIBS)
216-
#zlib zlibmodule.c $(ZLIB_CFLAGS) $(ZLIB_LIBS)
209+
#@HAVE_BZ2_TRUE@_bz2 _bz2module.c $(BZ2_CFLAGS) $(BZ2_LIBS)
210+
#@HAVE_FFI_TRUE@_ctypes _ctypes/_ctypes.c _ctypes/callbacks.c _ctypes/callproc.c _ctypes/stgdict.c _ctypes/cfield.c $(FFI_CFLAGS) $(FFI_LIBS) -DHAVE_FFI_PREP_CIF_VAR -DHAVE_FFI_PREP_CLOSURE_LOC -DHAVE_FFI_CLOSURE_ALLOC
211+
#@HAVE_DBM_TRUE@_dbm _dbmmodule.c # -lndbm # dbm(3)
212+
#@HAVE_GDBM_TRUE@_gdbm _gdbmmodule.c -lgdbm
213+
#@HAVE_LZMA_TRUE@_lzma _lzmamodule.c $(LZMA_CFLAGS) $(LZMA_LIBS)
214+
#@HAVE_SQLITE3_TRUE@_sqlite3 _sqlite/connection.c _sqlite/cursor.c _sqlite/microprotocols.c _sqlite/module.c _sqlite/prepare_protocol.c _sqlite/row.c _sqlite/statement.c _sqlite/util.c $(SQLITE3_CFLAGS) $(SQLITE3_LIBS)
215+
#@HAVE_UUID_TRUE@_uuid _uuidmodule.c $(UUID_CFLAGS) $(UUID_LIBS)
216+
#@HAVE_ZLIB_TRUE@zlib zlibmodule.c $(ZLIB_CFLAGS) $(ZLIB_LIBS)
217217

218218

219219
# GNU readline. Unlike previous Python incarnations, GNU readline is
@@ -228,8 +228,8 @@ time timemodule.c
228228
#readline readline.c $(READLINE_CFLAGS) $(READLINE_LIBS)
229229

230230
# To dynamically link OpenSSL:
231-
#_ssl _ssl.c $(OPENSSL_INCLUDES) $(OPENSSL_LDFLAGS) $(OPENSSL_LIBS)
232-
#_hashlib _hashopenssl.c $(OPENSSL_INCLUDES) $(OPENSSL_LDFLAGS) -lcrypto
231+
#@HAVE_OPENSSL_TRUE@_ssl _ssl.c $(OPENSSL_INCLUDES) $(OPENSSL_LDFLAGS) $(OPENSSL_LIBS)
232+
#@HAVE_OPENSSL_TRUE@_hashlib _hashopenssl.c $(OPENSSL_INCLUDES) $(OPENSSL_LDFLAGS) -lcrypto
233233

234234
# To statically link OpenSSL:
235235
# _ssl _ssl.c $(OPENSSL_INCLUDES) $(OPENSSL_LDFLAGS) \
@@ -250,7 +250,7 @@ time timemodule.c
250250
# every system.
251251

252252
# *** Always uncomment this (leave the leading underscore in!):
253-
#_tkinter _tkinter.c tkappinit.c -DWITH_APPINIT $(TCLTK_INCLUDES) $(TCLTK_LIBS) \
253+
#@HAVE_TCLTK_TRUE@_tkinter _tkinter.c tkappinit.c -DWITH_APPINIT $(TCLTK_INCLUDES) $(TCLTK_LIBS) \
254254
# *** Uncomment and edit to reflect where your Tcl/Tk libraries are:
255255
# -L/usr/local/lib \
256256
# *** Uncomment and edit to reflect where your Tcl/Tk headers are:
@@ -283,13 +283,13 @@ time timemodule.c
283283
# provided by the ncurses library. e.g. on Linux, link with -lncurses
284284
# instead of -lcurses).
285285

286-
#_curses _cursesmodule.c $(NCURSESW_CFLAGS) $(NCURSESW_LIBS) $(CURSES_CFLAGS) $(CURSES_LIBS)
286+
#@HAVE_CURSES_TRUE@_curses _cursesmodule.c $(NCURSESW_CFLAGS) $(NCURSESW_LIBS) $(CURSES_CFLAGS) $(CURSES_LIBS)
287287

288288
# Wrapper for the panel library that's part of ncurses and SYSV curses.
289-
#_curses_panel _curses_panel.c $(CURSES_PANEL_CFLAGS) $(CURSES_PANEL_LIBS)
289+
#@HAVE_CURSES_PANEL_TRUE@_curses_panel _curses_panel.c $(CURSES_PANEL_CFLAGS) $(CURSES_PANEL_LIBS)
290290

291291
# macOS specific modules
292-
# _scproxy _scproxy.c -framework SystemConfiguration -framework CoreFoundation
292+
#@HAVE_SCPROXY_TRUE@_scproxy _scproxy.c -framework SystemConfiguration -framework CoreFoundation
293293

294294
# Examples
295295

@@ -302,7 +302,7 @@ xxsubtype xxsubtype.c # Required for the test suite to pass!
302302

303303
#_xxsubinterpreters _xxsubinterpretersmodule.c
304304
#_xxtestfuzz _xxtestfuzz/_xxtestfuzz.c _xxtestfuzz/fuzzer.c
305-
#_ctypes_test _ctypes/_ctypes_test.c
305+
#@HAVE_FFI_TRUE@_ctypes_test _ctypes/_ctypes_test.c
306306
#_testbuffer _testbuffer.c
307307
#_testimportmultiple _testimportmultiple.c
308308
#_testinternalcapi _testinternalcapi.c

0 commit comments

Comments
 (0)