Changeset 11505
- Timestamp:
- Jan 31, 2007, 3:15:36 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/configure.ac (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/configure.ac
r11395 r11505 11 11 AM_MAINTAINER_MODE 12 12 13 dnl otherise AC_PROG_CC will default CFLAGS to "-g -02" 14 if test -z ${CFLAGS} ; then 15 CFLAGS="" 16 fi 17 AC_SUBST([CFLAGS]) 13 IPP_STDOPTS 18 14 19 15 AC_LANG(C) … … 29 25 30 26 AC_PREFIX_DEFAULT([`pwd`]) 31 32 dnl cflags --------------------------------------------------------------------33 dnl FIXME document why -std=gnu99 is being set34 35 AC_MSG_CHECKING([C99 flag])36 if test "$GCC" = "yes" ; then37 AM_CFLAGS="-std=gnu99"38 AC_MSG_RESULT([-std=gnu99])39 else40 AM_CFLAGS="-std=c99"41 AC_MSG_RESULT([-std=c99])42 fi43 AM_CFLAGS="${AM_CFLAGS=} -Wall -Werror"44 AC_SUBST([AM_CFLAGS])45 27 46 28 dnl ------------------- PERL options --------------------- … … 64 46 AC_SUBST(SRCINC,${SRCINC=}) 65 47 AC_SUBST([SRCDIRS],${SRCDIRS=}) 66 67 dnl handle optimized building68 AC_ARG_ENABLE(optimize,69 [AS_HELP_STRING(--enable-optimize,enable compiler optimization)],70 [AC_MSG_RESULT(compile optimization enabled)71 CFLAGS="${CFLAGS=} -pipe -O2 -g"72 PSLIB_CFLAGS="${PSLIB_CFLAGS=} -DPS_NO_TRACE"],73 [AC_MSG_RESULT([compile optimization disabled])74 if test x"${CFLAGS}" == x; then75 CFLAGS="-pipe -O0 -g"76 fi77 ]78 )79 80 dnl handle profiler building81 AC_ARG_ENABLE(profile,82 [AS_HELP_STRING(--enable-profile,enable compiler profiler information inclusion)],83 [AC_MSG_RESULT(compile optimization enabled)84 CFLAGS="${CFLAGS=} -pg -g"85 LDFLAGS="${LDFLAGS=} -pg"]86 )87 88 dnl handle path coverage checking89 AC_ARG_ENABLE(coverage,90 [AS_HELP_STRING(--enable-coverage,enable path coverage checking)],91 [AC_MSG_RESULT(path coverage enabled)92 CFLAGS="${CFLAGS=} -fprofile-arcs -ftest-coverage -pg"]93 )94 95 dnl CFLAGS="${CFLAGS=} -fprofile-arcs -ftest-coverage -pg"]96 48 97 49 dnl doxygen ------------------------------------------------------------------- … … 344 296 echo "PSMODULE_LIBS: $PSMODULES_LIBS" 345 297 346 dnl --------------------------------------------------------------------------- 298 dnl ------- enable -Werror after all of the probes have run --------- 299 CFLAGS="${CFLAGS} -Wall -Werror" 300 dnl enable POSIX/XSI and C99 compliance 301 CFLAGS="${CFLAGS=} -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200112L -std=c99" 302 303 dnl ---------------- export variables -------------------- 304 347 305 348 306 AC_SUBST([PSMODULES_CFLAGS])
Note:
See TracChangeset
for help on using the changeset viewer.
