IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 17, 2006, 8:01:05 AM (20 years ago)
Author:
magnier
Message:

updates relative to rel10_ifa_1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/configure.ac

    r6298 r6872  
    88AM_MAINTAINER_MODE
    99
    10 dnl handle debug building
    11 AC_ARG_ENABLE(optimize,
    12   [AS_HELP_STRING(--enable-optimize,enable compiler optimization)],
    13   [AC_MSG_RESULT(compile optimization enabled)
    14    CFLAGS="${CFLAGS=} -O2"],
    15   [AC_MSG_RESULT([compile optimization disabled])
    16    CFLAGS="${CFLAGS=} -O0 -g"]
    17 )
    18 
    19 dnl handle profiler building
    20 AC_ARG_ENABLE(profile,
    21   [AS_HELP_STRING(--enable-profile,enable compiler profiler information inclusion)],
    22   [AC_MSG_RESULT(compile optimization enabled)
    23    CFLAGS="${CFLAGS=} -fprofile-arcs -ftest-coverage -pg"]
    24 )
    25 
     10dnl otherise AC_PROG_CC will default CFLAGS to "-g -02"
     11if test -z ${CFLAGS} ; then
     12  CFLAGS=""
     13fi
    2614AC_SUBST([CFLAGS])
    2715
     
    2917AC_PROG_CC
    3018dnl FIXME document why GNU_SOURCE is being set
    31 dnl AC_GNU_SOURCE
     19AC_GNU_SOURCE
    3220AC_PROG_INSTALL
    3321AM_PROG_LIBTOOL
    34 AC_SYS_LARGEFILE
    3522
    3623AC_PREFIX_DEFAULT([`pwd`])
     
    6249
    6350SRCPATH='${top_srcdir}/src'
    64 SRCDIRS="astrom camera config detrend imcombine imsubtract objects photom"
     51SRCDIRS="astrom config detrend imcombine imsubtract objects pslib"
    6552# escape two escapes at this level so \\ gets passed to the shell and \ to perl
    6653SRCINC=`echo "${SRCDIRS=}" | ${PERL} -pe "s|(\w+)|-I\\\\${SRCPATH=}/\1|g"`
    6754SRCINC="-I${SRCPATH=} ${SRCINC=}"
    6855SRCSUBLIBS=`echo "${SRCDIRS=}" | ${PERL} -pe "s|(\w+)|\1/libpsmodule\1.la|g"`
    69 AC_SUBST([SRCSUBLIBS],${SRCSUBLIBS=})
    70 AC_SUBST([SRCINC],${SRCINC=})
     56AC_SUBST(SRCSUBLIBS,${SRCSUBLIBS=})
     57AC_SUBST(SRCINC,${SRCINC=})
    7158AC_SUBST([SRCDIRS],${SRCDIRS=})
     59
     60dnl handle debug building
     61AC_ARG_ENABLE(optimize,
     62  [AS_HELP_STRING(--enable-optimize,enable compiler optimization)],
     63  [AC_MSG_RESULT(compile optimization enabled)
     64   CFLAGS="${CFLAGS=} -O2"],
     65  [AC_MSG_RESULT([compile optimization disabled])
     66   CFLAGS="${CFLAGS=} -O0 -g"]
     67)
     68
     69dnl handle profiler building
     70AC_ARG_ENABLE(profile,
     71  [AS_HELP_STRING(--enable-profile,enable compiler profiler information inclusion)],
     72  [AC_MSG_RESULT(compile optimization enabled)
     73   CFLAGS="${CFLAGS=} -pg"]
     74)
     75
     76dnl CFLAGS="${CFLAGS=} -fprofile-arcs -ftest-coverage -pg"]
    7277
    7378dnl doxygen -------------------------------------------------------------------
     
    7580AC_CHECK_PROG([doxygen], [doxygen], [true], [false])
    7681AM_CONDITIONAL(DOXYGEN, test x$doxygen = xtrue)
     82
     83dnl libjpeg -------------------------------------------------------------------
     84
     85AC_CHECK_LIB(jpeg,jpeg_CreateCompress,[],[AC_MSG_ERROR([jpeg library not found.])])
    7786
    7887dnl pslib ---------------------------------------------------------------------
     
    8291
    8392if test -z ${PSLIB_CONFIG} ; then
    84   PKG_CHECK_MODULES([PSLIB], [pslib >= 0.10.0])
     93  PKG_CHECK_MODULES([PSLIB], [pslib >= 0.9.0])
    8594else
    8695  AC_CHECK_FILE($PSLIB_CONFIG,[],
     
    105114  src/Makefile
    106115  src/astrom/Makefile
    107   src/camera/Makefile
    108116  src/config/Makefile
    109117  src/detrend/Makefile
     
    111119  src/imsubtract/Makefile
    112120  src/objects/Makefile
    113   src/photom/Makefile
     121  src/pslib/Makefile
    114122  test/Makefile
    115123  test/astrom/Makefile
    116   test/camera/Makefile
    117124  test/config/Makefile
    118125  test/detrend/Makefile
     
    120127  test/imsubtract/Makefile
    121128  test/objects/Makefile
    122   test/photom/Makefile
     129  test/pslib/Makefile
    123130  Doxyfile
    124131  psmodule-config
Note: See TracChangeset for help on using the changeset viewer.