On Thu, Jan 21, 2010 at 12:28 AM, Chia-I Wu <olva...@gmail.com> wrote:
> On Sun, Jan 17, 2010 at 1:41 PM, Alan Coopersmith
> <alan.coopersm...@sun.com> wrote:
>> Signed-off-by: Alan Coopersmith <alan.coopersm...@sun.com>
>> ---
>>  configure.ac |    9 ++++++++-
>>  1 files changed, 8 insertions(+), 1 deletions(-)
>>
>> diff --git a/configure.ac b/configure.ac
>> index d01d0f1..f121002 100644
>> --- a/configure.ac
>> +++ b/configure.ac
>> @@ -96,7 +96,14 @@ esac
>>
>>  dnl Add flags for gcc and g++
>>  if test "x$GCC" = xyes; then
>> -    CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -std=c99 -ffast-math 
>> -fvisibility=hidden"
>> +    CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -std=c99 -ffast-math"
>> +
>> +    # Enable -fvisibility=hidden if using a gcc that supports it
>> +    save_CFLAGS="$CFLAGS"
>> +    AC_MSG_CHECKING([whether $(CC) supports -fvisibility=hidden])
>> +    CFLAGS="$CFLAGS -fvisibility=hidden"
>> +    AC_LINK_IFELSE([AC_LANG_PROGRAM()], AC_MSG_RESULT([yes]),
>> +                  [CFLAGS="$save_CFLAGS" ; AC_MSG_RESULT([no])]);
> I am getting
> ...
> checking pkg-config is at least version 0.9.0... yes
> ./configure: line 4644: CC: command not found
> ./configure: line 4645: CC: command not found
> checking whether  supports -fvisibility=hidden... yes
> checking whether to enable assembly... yes, x86_64

RIght. It's using $(CC), a make variable, in the message "whether
$(CC) supports -fvisibility=hidden". That should be $CC for a shell
variable.

--
Dan

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to