~brianaker/libmemcached/1164440

« back to all changes in this revision

Viewing changes to m4/pandora_optimize.m4

  • Committer: Monty Taylor
  • Date: 2009-07-16 02:28:54 UTC
  • mto: (559.1.1 sol-build-fixes)
  • mto: This revision was merged to the branch mainline in revision 560.
  • Revision ID: mordred@inaugust.com-20090716022854-bdr5spgxerpees25
pandora-build v0.20
Turned off inllargeuse warning in sun studio

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
AC_DEFUN([PANDORA_OPTIMIZE],[
7
7
  dnl Build optimized or debug version ?
8
8
  dnl First check for gcc and g++
9
 
  AS_IF([test "$GCC" = "yes"],[
 
9
  AS_IF([test "$GCC" = "yes" -a "$INTELCC" = "no"],[
10
10
 
11
11
    dnl The following is required for portable results of floating point 
12
12
    dnl calculations on PowerPC. The same must also be done for IA-64, but 
30
30
    OPTIMIZE_CFLAGS="-O3"
31
31
    OPTIMIZE_CXXFLAGS="-O3"
32
32
  ])
 
33
  AS_IF([test "$INTELCC" = "yes"],[
 
34
    dnl Once we can use a modern autoconf, we can replace the std=gnu99 here
 
35
    dnl with using AC_CC_STD_C99 above
 
36
    CC="${CC} -std=c99"
 
37
 
 
38
    AM_CPPFLAGS="-g ${AM_CPPFLAGS}"
 
39
 
 
40
    DEBUG_CFLAGS="-O0"
 
41
    DEBUG_CXXFLAGS="-O0"
 
42
 
 
43
    OPTIMIZE_CFLAGS="-xHOST -O3 -no-prec-div -static"
 
44
    OPTIMIZE_CXXFLAGS="${OPTIMIZE_CFLAGS}"
 
45
 
 
46
  ])
33
47
  AS_IF([test "$SUNCC" = "yes"],[
34
48
    dnl Once we can use a modern autoconf, we can replace the -xc99=all here
35
49
    dnl with using AC_CC_STD_C99 above