Do not let macros/ac_python_devel.m4 trash CPPFLAGS and LIBS

A macro here seems to expect ac_save_LIBS and ac_save_CPPFLAGS to
be set on entry (by configure?) but configure doesn't do any such
thing, so that would trash any pre-set CPPFLAGS and LIBS when it
runs (making ./configure CPPFLAGS=something fail to work).
(cherry picked from commit 790ac8075d)
Hamlib-1.2.15
Kamal Mostafa 2012-08-21 16:45:13 -07:00
rodzic 059959269a
commit 4b54e83657
1 zmienionych plików z 9 dodań i 0 usunięć

Wyświetl plik

@ -287,6 +287,15 @@ EOD`
#
AC_MSG_CHECKING([consistency of all components of python development environment])
# save current global flags
####
#### Why does this macro expect ac_save_LIBS and ac_save_CPPFLAGS to
#### be set? configure doesn't appear to set them automatically,
#### so this macro trashes any pre-set CPPFLAGS and LIBS when it runs!
#### Hack to fix that:
ac_save_LIBS="$LIBS"
ac_save_CPPFLAGS="$CPPFLAGS"
####
####
LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
AC_LANG_PUSH([C])