[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Patch-gnuradio] Fwd: configure should use CC to check for Python.h
From: |
Szymon Jakubczak |
Subject: |
Re: [Patch-gnuradio] Fwd: configure should use CC to check for Python.h |
Date: |
Thu, 3 Sep 2009 19:34:44 -0400 |
Hi Eric,
No, this didn't work for me. After a bit of reading on the issue I
found out that autoconf generally does not work well with AC_PROG_XXX
within a shell if then else. It's in fact considered to be a feature
of autoconf (as the designers can't imagine why would the package
conditionally depend on a compiler) that the macro is expanded outside
of the if/then/else.
However, after removing AC_PROG_F77 from config/gr_fortran.m4,
--disable-fortan still does nothing, but at least Python.h succeeds.
I think it should be noted that I'm using autoconf 2.64 with libtool 2.2.6a.
--Szymon
On Thu, Sep 3, 2009 at 4:21 PM, Eric Blossom<address@hidden> wrote:
>
> Thanks.
>
> I think a better fix may be in gr_fortran.m4 :
>
> Can you try this please?
>
>
>
> AC_DEFUN([GR_FORTRAN],[
> dnl if you want to generate a different table of interpolator taps, you
> need fortran.
> dnl we default to off, since almost no one wants to do this.
> AC_ARG_ENABLE(fortran, AC_HELP_STRING([--enable-fortran],[enable fortran
> (no)]),
> [], [enable_fortran=no])
> AM_CONDITIONAL(ENABLE_FORTRAN, test "x$enable_fortran" = xyes)
>
> if test "x$enable_fortran" = xyes
> then
> AC_LANG_PUSH(Fortran 77)
> AC_PROG_F77
> AC_F77_LIBRARY_LDFLAGS
> AC_LANG_POP(Fortran 77)
> fi
> ])
>
>
> Thanks!
> Eric
>