The R Project SVN R

Rev

Rev 10860 | Rev 29912 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10860 Rev 10973
Line 4... Line 4...
4
 
4
 
5
echo "/* Rconfig.h.  Generated automatically */"
5
echo "/* Rconfig.h.  Generated automatically */"
6
echo "#ifndef R_CONFIG_H"
6
echo "#ifndef R_CONFIG_H"
7
echo "#define R_CONFIG_H"
7
echo "#define R_CONFIG_H"
8
echo
8
echo
9
us=`sed -n /HAVE_F77_UNDERSCORE/p config.h | sed -n 1p | sed -e s/\ HAVE_F77_UNDERSCORE.\*//`
-
 
10
if [ "${us}" = "#define" ] ; then
-
 
11
  echo "#define F77_SYMBOL(x)	x ## _"
-
 
12
else
-
 
13
  echo "#define F77_SYMBOL(x)	x"
9
echo "#ifndef _CONFIG_H"
14
fi
-
 
15
echo
10
echo
16
ieeea=`sed -n /HAVE_ISNAN/p config.h | sed -n 1p | sed -e s/\ HAVE_ISNAN.\*//`
-
 
17
ieeeb=`sed -n /HAVE_FINITE/p config.h | sed -n 1p | sed -e s/\ HAVE_FINITE.\*//`
11
line=`grep "HAVE_F77_UNDERSCORE" config.h`
18
if [ "${ieeea}" = "#define" -a "${ieeeb}" = "#define" ] ; then
12
echo "${line}"
19
  echo "#define IEEE_754 1"
13
line=`grep "IEEE_754" config.h`
20
else
14
echo "${line}"
21
  echo "/* #undef IEEE_754 */"
15
line=`grep "WORDS_BIGENDIAN" config.h`
22
fi
16
echo "${line}"
23
echo
17
echo
24
echo "#ifndef _CONFIG_H"
-
 
25
endian=`grep "WORDS_BIGENDIAN" config.h`
-
 
26
echo "${endian}"
-
 
27
echo "#endif /* not _CONFIG_H */"
18
echo "#endif /* not _CONFIG_H */"
28
echo
19
echo
29
echo "#endif /* not R_CONFIG_H */"
20
echo "#endif /* not R_CONFIG_H */"