IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 9, 2005, 4:36:42 PM (21 years ago)
Author:
desonia
Message:

prepared the config/data directories to be installed into standard areas.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/configure.in

    r3153 r3182  
    66AC_SUBST(PSLIB_LT_VERSION,$PSLIB_LT_VERSION)
    77
     8dnl Setup CFLAGS with project-particulars
     9CFLAGS="${CFLAGS=} -Wall -Werror -std=c99 -D_GNU_SOURCE"
     10
    811AC_DISABLE_STATIC
    912AC_PROG_MAKE_SET
     13
     14dnl handle debug building
     15AC_ARG_ENABLE(debug,
     16  [AC_HELP_STRING([--enable-debug],[Enable debug information in compilation])],
     17  [AC_MSG_RESULT(debug information enabled)
     18   AC_DEFINE(DEBUG)
     19   CFLAGS="${CFLAGS=} -O0 -g2"],
     20  [AC_MSG_RESULT(debug information disabled)]
     21)
    1022
    1123AC_LANG(C)
     
    1628AC_PROG_INSTALL
    1729AC_PROG_LIBTOOL
     30AC_CHECK_FUNC(strtoll)
     31AC_CHECK_FUNC(strtoull)
    1832
    1933AC_PREFIX_DEFAULT([`pwd`])
    2034test "$prefix" = NONE && prefix=`pwd`
    2135
    22 dnl Setup CFLAGS/FFLAGS/LDFLAGS with project-particulars
    23 CFLAGS="${CFLAGS=} -Wall -std=c99 -D_GNU_SOURCE"
    2436
    2537dnl Setup the info for psLib for pkg-config
     
    112124AC_SUBST(PERL_PREFIX,$PERL_PREFIX)
    113125
    114 dnl ---------------- config dir options ------------------
    115 AC_ARG_WITH(configdir,
    116 [AS_HELP_STRING([--with-configdir=DIR],[Specify location of psLib's config directory. [default=PREFIX/config]])],
    117 [CONFIG_FILE="$withval/psTime.config"
    118  XML_CONFIG_FILE="$withval/psTime.xml"],
    119 [CONFIG_FILE="${prefix}/config/psTime.config"
    120  XML_CONFIG_FILE="${prefix}/config/psTime.xml"])
    121 AC_DEFINE_UNQUOTED(CONFIG_FILE, "$CONFIG_FILE", [Location of the psTime.config file])
    122 AC_DEFINE_UNQUOTED(XML_CONFIG_FILE, "$XML_CONFIG_FILE", [Location of the psTime.xml file])
    123 
    124 dnl ----------------- data dir options -------------------
    125 AC_ARG_WITH(datadir,
    126 [AS_HELP_STRING([--with-datadir=DIR],[Specify location of psLib's data directory. [default=PREFIX/data]])],
    127 [UTC_DAT_FILE="$withval/tai_utc.dat"],
    128 [UTC_DAT_FILE="${prefix}/data/tai_utc.dat"])
    129 AC_DEFINE_UNQUOTED(UTC_DAT_FILE, "$UTC_DAT_FILE", [Location of the tai_utc.dat file])
     126dnl --------- set config/data file location --------------
     127AC_DEFINE_UNQUOTED(CONFIG_FILE, "$sysconfdir/psTime.config", [Location of the psTime.config file])
     128AC_DEFINE_UNQUOTED(XML_CONFIG_FILE, "$sysconfdir/psTime.xml", [Location of the psTime.xml file])
     129AC_DEFINE_UNQUOTED(UTC_DAT_FILE, "$datadir/tai_utc.dat", [Location of the tai_utc.dat file])
    130130
    131131dnl for MacOSX, where sqrtf is in mx
     
    158158AC_CONFIG_FILES([ test/image/Makefile ])
    159159AC_CONFIG_FILES([ test/sysUtils/Makefile ])
    160 AC_CONFIG_FILES([ config/Makefile ])
     160AC_CONFIG_FILES([ etc/pslib/Makefile ])
    161161AC_CONFIG_FILES([ pslib-config ])
    162162AC_CONFIG_FILES([ pslib.pc ])
Note: See TracChangeset for help on using the changeset viewer.