IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11493


Ignore:
Timestamp:
Jan 31, 2007, 12:18:49 PM (19 years ago)
Author:
jhoblitt
Message:

move --enable-[optimize|coverage|profile] off into there own m4 macro

Location:
trunk/psLib
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/Makefile.am

    r9801 r11493  
    1 SUBDIRS = $(SUBDIR)
     1SUBDIRS = m4 $(SUBDIR)
    22
    33bin_SCRIPTS = pslib-config
     
    99    pslib-config.in \
    1010    pslib.pc.in \
    11     autogen.sh \
    12         m4/acx_pthread.m4 \
    13         m4/ax_lib_mysql.m4
     11    autogen.sh
    1412
    1513if HAVE_DOXYGEN
  • trunk/psLib/configure.ac

    r11013 r11493  
    3939AC_PROG_MAKE_SET
    4040
    41 dnl handle optimized building
    42 AC_ARG_ENABLE(optimize,
    43   [AS_HELP_STRING(--enable-optimize,enable compiler optimization)],
    44   [AC_MSG_RESULT(compile optimization enabled)
    45    CFLAGS="${CFLAGS=} -pipe -O2 -g"
    46    PSLIB_CFLAGS="${PSLIB_CFLAGS=} -DPS_NO_TRACE"],
    47   [AC_MSG_RESULT([compile optimization disabled])
    48     if test x"${CFLAGS}" == x; then
    49       CFLAGS="-pipe -O0 -g"
    50     fi
    51   ]
    52 )
    53 
    54 dnl handle profiler building
    55 AC_ARG_ENABLE(profile,
    56   [AS_HELP_STRING(--enable-profile,enable compiler profiler information inclusion)],
    57   [AC_MSG_RESULT(compile optimization enabled)
    58    CFLAGS="${CFLAGS=} -pg -g"
    59    LDFLAGS="${LDFLAGS=} -pg"]
    60 )
    61 
    62 dnl handle path coverage checking
    63 AC_ARG_ENABLE(coverage,
    64   [AS_HELP_STRING(--enable-coverage,enable path coverage checking)],
    65   [AC_MSG_RESULT(path coverage enabled)
    66    CFLAGS="${CFLAGS=} -lgcov -fprofile-arcs -ftest-coverage -pg"]
    67 )
    68 
    69 dnl turn off trace messages
    70 AC_ARG_ENABLE(trace,
    71   [AS_HELP_STRING(--disable-trace,disable psTrace functionality)],
    72   [AC_MSG_RESULT(psTrace disabled)
    73    PSLIB_CFLAGS="${PSLIB_CFLAGS=} -DPS_NO_TRACE"]
    74 )
     41IPP_STDOPTS
    7542
    7643dnl build tests at the same time as the source code
     
    486453
    487454AC_CONFIG_FILES([
     455  Doxyfile
    488456  Makefile
     457  etc/Makefile
     458  m4/Makefile
     459  pslib-config
     460  pslib.pc
     461  share/Makefile
    489462  src/Makefile
    490   src/sys/Makefile
    491463  src/astro/Makefile
    492464  src/db/Makefile
     
    497469  src/math/Makefile
    498470  src/mathtypes/Makefile
     471  src/sys/Makefile
    499472  src/types/Makefile
    500473  test/Makefile
    501   test/sys/Makefile
    502474  test/astro/Makefile
    503475  test/db/Makefile
     
    508480  test/math/Makefile
    509481  test/mathtypes/Makefile
    510   test/types/Makefile
    511482  test/pstap/Makefile
    512483  test/pstap/src/Makefile
     484  test/sys/Makefile
     485  test/types/Makefile
    513486  utils/Makefile
    514   etc/Makefile
    515   share/Makefile
    516   pslib-config
    517   pslib.pc
    518   Doxyfile
    519487])
    520488dnl src/xml/Makefile
Note: See TracChangeset for help on using the changeset viewer.