Skip to content

Commit d907753

Browse files
committed
wrap ./configure in a wrapper saving conftest.py
as autoconf's generated configure clobbers conftest*, we are saving conftest.py from it by making a backup copy and then restoring it after the real configure was run.
1 parent 7a25b36 commit d907753

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
/config.log
1919
/config.status
2020
/configure
21+
/real_configure
2122
/confdefs.h
2223

2324
/m4/sage_spkg_configures.m4

bootstrap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,3 +329,5 @@ fi
329329
if [ $SAVE = yes ]; then
330330
save
331331
fi
332+
mv configure real_configure
333+
cp configure_wrapper configure

configure_wrapper

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#! /bin/sh
2+
cp conftest.py bak_conftest.py
3+
./real_configure $@
4+
mv bak_conftest.py conftest.py

0 commit comments

Comments
 (0)