Attachment 'configure-ac-test-for-sunpro-cc.txt'

Download

   1 dnl let's try to understand what is the right flag for -Werror
   2 dnl set in $squid_cv_werror_flag
   3 AC_MSG_CHECKING(how to instruct the compiler to be strict on errors)
   4 dnl gcc
   5 if test "x${squid_cv_werror_flag}" = "x"
   6 then
   7        if test "$GCC" = "yes" ; then
   8                squid_cv_werror_flag="-Werror"
   9        fi
  10 fi
  11 dnl sunpro-cc
  12 dnl also includes ugly hack for -fhuge-objects
  13 if test "x$squid_cv_werror_flag" = "x"
  14 then
  15        AC_RUN_IFELSE([AC_LANG_PROGRAM([#include <stdio.h>],[return __SUNPRO_CC;])],
  16        [squid_cv_werror_flag="-errwarn=%all"
  17          HUGE_OBJECT_FLAG=""
  18         ], [ ])
  19 fi
  20 AC_MSG_RESULT($squid_cv_werror_flag)

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2009-11-20 18:55:56, 0.6 KB) [[attachment:configure-ac-test-for-sunpro-cc.txt]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.