IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 14, 2005, 4:16:45 PM (21 years ago)
Author:
desonia
Message:

made compiler optimization an explicit option. Also made default perl
installation prefix be PREFIX.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/configure.ac

    r3218 r3219  
    77
    88dnl Setup CFLAGS with project-particulars
    9 CFLAGS="${CFLAGS=} -std=c99"
     9CFLAGS="${CFLAGS=} -std=c99 -D_GNU_SOURCE"
    1010SUBDIR="etc src test" dnl don't include 'swig', as it is optional
    1111AH_VERBATIM([_GNU_SOURCE],
     
    2020
    2121dnl handle debug building
    22 AC_ARG_ENABLE(debug,
    23   [AC_HELP_STRING([--enable-debug],[enable debug information])],
    24   [AC_MSG_RESULT(debug information enabled)
    25    AC_DEFINE(DEBUG,[], [debug information requested])
    26    CFLAGS="${CFLAGS=} -O0 -g"],
    27   [AC_MSG_RESULT(debug information disabled)
    28    CFLAGS="${CFLAGS=} -O "]
     22AC_ARG_ENABLE(optimize,
     23  [AC_HELP_STRING([--enable-optimize],[enable compiler optimization])],
     24  [AC_MSG_RESULT(compile optimization enabled)
     25   CFLAGS="${CFLAGS=} -O2"],
     26  [AC_MSG_RESULT([compile optimization disabled])
     27   CFLAGS="${CFLAGS=} -O0 -g"]
    2928)
    3029
     
    3635AC_PROG_INSTALL
    3736AC_PROG_LIBTOOL
    38 AC_CHECK_FUNC(strtoll)
    39 AC_CHECK_FUNC(strtoull)
    4037
    4138AC_PREFIX_DEFAULT([`pwd`])
     
    138135dnl ---------------- PERLPREFIX option -------------------
    139136  AC_ARG_WITH(perlprefix,
    140     [AC_HELP_STRING([--with-perlprefix=DIR],[Specify prefix of Perl Module's installation.])],
     137    [AC_HELP_STRING([--with-perlprefix=DIR],[Specify prefix of Perl Module's installation. (default=PREFIX)])],
    141138    [PERL_PREFIX="$withval"],
    142     [PERL_PREFIX=""])
     139    [PERL_PREFIX="$prefix"])
    143140    AC_SUBST(PERL_PREFIX,$PERL_PREFIX)
    144141fi
     
    153150
    154151CFLAGS="${CFLAGS=} -Wall -Werror"
    155 CFLAGS="${CFLAGS=}  -DCONFIG_FILE=\\"$sysconfdir/pslib/psTime.config\\""
    156 CFLAGS="${CFLAGS=}  -DXML_CONFIG_FILE=\\"$sysconfdir/pslib/psTime.xml\\""
    157 CFLAGS="${CFLAGS=}  -DUTC_DAT_FILE=\\"$datadir/pslib/tai_utc.dat\\""
     152CFLAGS="${CFLAGS=}  -DCONFIG_FILE=\\\"$sysconfdir/pslib/psTime.config\\\""
     153CFLAGS="${CFLAGS=}  -DXML_CONFIG_FILE=\\\"$sysconfdir/pslib/psTime.xml\\\""
     154CFLAGS="${CFLAGS=}  -DUTC_DAT_FILE=\\\"$datadir/pslib/tai_utc.dat\\\""
    158155
    159156
Note: See TracChangeset for help on using the changeset viewer.