Skip to content

Commit

Permalink
wrap ./configure in a wrapper saving conftest.py
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dimpase committed Jan 22, 2025
1 parent 503a0a0 commit c68d07a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
/config.log
/config.status
/configure
/real_configure
/confdefs.h

/m4/sage_spkg_configures.m4
Expand Down
2 changes: 2 additions & 0 deletions bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -329,3 +329,5 @@ fi
if [ $SAVE = yes ]; then
save
fi
mv configure real_configure
cp configure_wrapper configure
4 changes: 4 additions & 0 deletions configure_wrapper
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#! /bin/sh
cp conftest.py bak_conftest.py
./real_configure $@
mv bak_conftest.py conftest.py

0 comments on commit c68d07a

Please sign in to comment.