Commit 75b5a697ed5dbfd9bef2eeddf82032ecfeb169f8

Authored by Juan Quintela
Committed by Anthony Liguori
1 parent 2880bc32

rename NEEDS_LIBSUNMATH to CONFIG_NEEDS_LIBSUNMATH

Once there fix a place where it was misspelled

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Makefile.target
@@ -60,7 +60,7 @@ LIBS+=-lwinmm -lws2_32 -liphlpapi @@ -60,7 +60,7 @@ LIBS+=-lwinmm -lws2_32 -liphlpapi
60 endif 60 endif
61 ifdef CONFIG_SOLARIS 61 ifdef CONFIG_SOLARIS
62 LIBS+=-lsocket -lnsl -lresolv 62 LIBS+=-lsocket -lnsl -lresolv
63 -ifdef NEEDS_LIBSUNMATH 63 +ifdef CONFIG_NEEDS_LIBSUNMATH
64 LIBS+=-lsunmath 64 LIBS+=-lsunmath
65 LDFLAGS+=-L/opt/SUNWspro/prod/lib -R/opt/SUNWspro/prod/lib 65 LDFLAGS+=-L/opt/SUNWspro/prod/lib -R/opt/SUNWspro/prod/lib
66 CFLAGS+=-I/opt/SUNWspro/prod/include/cc 66 CFLAGS+=-I/opt/SUNWspro/prod/include/cc
configure
@@ -1558,8 +1558,8 @@ if test &quot;$solaris&quot; = &quot;yes&quot; ; then @@ -1558,8 +1558,8 @@ if test &quot;$solaris&quot; = &quot;yes&quot; ; then
1558 echo "#define CONFIG_SOLARIS 1" >> $config_host_h 1558 echo "#define CONFIG_SOLARIS 1" >> $config_host_h
1559 echo "#define CONFIG_SOLARIS_VERSION $solarisrev" >> $config_host_h 1559 echo "#define CONFIG_SOLARIS_VERSION $solarisrev" >> $config_host_h
1560 if test "$needs_libsunmath" = "yes" ; then 1560 if test "$needs_libsunmath" = "yes" ; then
1561 - echo "NEEDS_LIBSUNMATH=yes" >> $config_host_mak  
1562 - echo "#define NEEDS_LIBSUNMATH 1" >> $config_host_h 1561 + echo "CONFIG_NEEDS_LIBSUNMATH=y" >> $config_host_mak
  1562 + echo "#define CONFIG_NEEDS_LIBSUNMATH 1" >> $config_host_h
1563 fi 1563 fi
1564 fi 1564 fi
1565 if test -n "$sparc_cpu"; then 1565 if test -n "$sparc_cpu"; then
fpu/softfloat-native.h
@@ -62,7 +62,7 @@ @@ -62,7 +62,7 @@
62 #define isunordered(x,y) unordered(x, y) 62 #define isunordered(x,y) unordered(x, y)
63 #endif 63 #endif
64 64
65 -#if defined(__sun__) && !defined(NEED_LIBSUNMATH) 65 +#if defined(__sun__) && !defined(CONFIG_NEEDS_LIBSUNMATH)
66 66
67 #ifndef isnan 67 #ifndef isnan
68 # define isnan(x) \ 68 # define isnan(x) \
fpu/softfloat.h
@@ -32,7 +32,7 @@ these four paragraphs for those parts of this code that are retained. @@ -32,7 +32,7 @@ these four paragraphs for those parts of this code that are retained.
32 #ifndef SOFTFLOAT_H 32 #ifndef SOFTFLOAT_H
33 #define SOFTFLOAT_H 33 #define SOFTFLOAT_H
34 34
35 -#if defined(CONFIG_SOLARIS) && defined(NEEDS_LIBSUNMATH) 35 +#if defined(CONFIG_SOLARIS) && defined(CONFIG_NEEDS_LIBSUNMATH)
36 #include <sunmath.h> 36 #include <sunmath.h>
37 #endif 37 #endif
38 38