Changeset 11533 for trunk/pswarp/configure.ac
- Timestamp:
- Jan 31, 2007, 5:46:12 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/pswarp/configure.ac (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pswarp/configure.ac
r10947 r11533 8 8 AM_CONFIG_HEADER([src/config.h]) 9 9 AM_MAINTAINER_MODE 10 11 dnl otherwise AC_PROG_CC will default CFLAGS to "-g -02"12 if test -z ${CFLAGS} ; then13 CFLAGS=""14 fi15 AC_SUBST([CFLAGS])16 10 17 11 AC_LANG(C) … … 20 14 AC_PROG_INSTALL 21 15 AC_PROG_LIBTOOL 22 23 dnl enable largefile supports24 16 AC_SYS_LARGEFILE 25 26 dnl handle debug building27 AC_ARG_ENABLE(optimize,28 [AS_HELP_STRING(--enable-optimize,enable compiler optimization)],29 [AC_MSG_RESULT(compile optimization enabled)30 CFLAGS="${CFLAGS=} -O2 -g"],31 [AC_MSG_RESULT([compile optimization disabled])32 if test x"${CFLAGS}" == x; then33 CFLAGS="-O0 -g"34 fi35 ]36 )37 38 dnl handle profiler building39 AC_ARG_ENABLE(profile,40 [AS_HELP_STRING(--enable-profile,enable compiler profiler information inclusion)],41 [AC_MSG_RESULT(compile optimization enabled)42 CFLAGS="${CFLAGS=} -pg -g"43 LDFLAGS="${LDFLAGS=} -pg"]44 )45 46 dnl turn off trace messages47 AC_ARG_ENABLE(trace,48 [AS_HELP_STRING(--disable-trace,disable psTrace functionality)],49 [AC_MSG_RESULT(psTrace disabled)50 PSWARP_CFLAGS="${PSWARP_CFLAGS=} -DPS_NO_TRACE"]51 )52 17 53 18 dnl ------------------------------------------------------------ … … 220 185 221 186 dnl Set CFLAGS for build 187 IPP_STDOPTS 222 188 CFLAGS="${CFLAGS} -Wall -Werror -std=c99" 223 189 echo "PSWARP_CFLAGS: $PSWARP_CFLAGS"
Note:
See TracChangeset
for help on using the changeset viewer.
