131 Lib/distutils/command/install.py |
131 Lib/distutils/command/install.py |
132 %{l_shtool} subst \ |
132 %{l_shtool} subst \ |
133 -e 's;python{py_version_short};python;g' \ |
133 -e 's;python{py_version_short};python;g' \ |
134 Lib/sysconfig.py |
134 Lib/sysconfig.py |
135 %if "%{with_readline}" == "yes" |
135 %if "%{with_readline}" == "yes" |
136 ( echo "readline readline.c %{l_cppflags} %{l_ldflags} -lreadline -ltermcap" |
136 ( echo "readline readline.c %{l_cppflags} %{l_ldflags} -lreadline" |
137 ) >>Modules/Setup.local |
137 ) >>Modules/Setup.local |
138 %endif |
138 %endif |
139 %if "%{with_db}" == "yes" |
139 %if "%{with_db}" == "yes" |
140 ( echo "_bsddb _bsddb.c %{l_cppflags} %{l_ldflags} -ldb" |
140 ( echo "_bsddb _bsddb.c %{l_cppflags} %{l_ldflags} -ldb" |
141 ) >>Modules/Setup.local |
141 ) >>Modules/Setup.local |
171 echo "SSL=%{l_prefix}" |
171 echo "SSL=%{l_prefix}" |
172 echo "_ssl _ssl.c -DUSE_SSL %{l_cppflags openssl .} %{l_ldflags} -lssl -lcrypto" |
172 echo "_ssl _ssl.c -DUSE_SSL %{l_cppflags openssl .} %{l_ldflags} -lssl -lcrypto" |
173 ) >>Modules/Setup.local |
173 ) >>Modules/Setup.local |
174 %endif |
174 %endif |
175 |
175 |
|
176 l_cppflags="%{l_cppflags}" |
|
177 %if "%{with_curses}" == "yes" |
|
178 l_cppflags="%{l_cppflags ncurses}" |
|
179 %endif |
176 CC="%{l_prefix}/bin/gcc" \ |
180 CC="%{l_prefix}/bin/gcc" \ |
177 CXX="%{l_cxx}" \ |
181 CXX="%{l_cxx}" \ |
178 CFLAGS="%{l_cflags -O}" \ |
182 CFLAGS="%{l_cflags -O}" \ |
179 OPT="%{l_cflags -O}" \ |
183 OPT="%{l_cflags -O}" \ |
180 CXXFLAGS="%{l_cxxflags -O}" \ |
184 CXXFLAGS="%{l_cxxflags -O}" \ |
|
185 CPPFLAGS="$l_cppflags" \ |
181 LDFLAGS="%{l_ldflags}" \ |
186 LDFLAGS="%{l_ldflags}" \ |
182 ./configure \ |
187 ./configure \ |
183 --prefix=%{l_prefix} \ |
188 --prefix=%{l_prefix} \ |
184 --mandir=%{l_prefix}/man \ |
189 --mandir=%{l_prefix}/man \ |
185 --with-dbmliborder=ndbm \ |
190 --with-dbmliborder=ndbm \ |