IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5025


Ignore:
Timestamp:
Sep 13, 2005, 10:27:21 AM (21 years ago)
Author:
desonia
Message:

added an option to get the build location of headers and library.

Location:
trunk/psLib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/configure.ac

    r5002 r5025  
    2222SUBDIR="etc src test" dnl don't include 'swig', as it is optional
    2323
    24 SRCPATH='$(top_srcdir)/src'
     24SRCPATH='${top_srcdir}/src'
    2525SRCDIRS="sys astro db fft fits imageops math mathtypes types xml"
    2626SRCINC=`echo "${SRCDIRS=}" | ${SED} "s|\(\\w\+\)|-I\${SRCPATH=}/\1|g"`
     
    2929AC_SUBST(SRCSUBLIBS,${SRCSUBLIBS=})
    3030AC_SUBST(SRCINC,${SRCINC=})
    31 
     31AC_SUBST(ABS_SRCDIR,`pwd`) dnl assuming configure is run in top directory -- is there something better?
    3232AC_DISABLE_STATIC
    3333AC_PROG_MAKE_SET
  • trunk/psLib/pslib-config.in

    r4981 r5025  
    44exec_prefix=@exec_prefix@
    55includedir=@includedir@
     6top_srcdir=@ABS_SRCDIR@
    67@PERL_INSTALLSYTLE@
    78
     
    1718  --libs                print library linking information
    1819  --cflags              print pre-processor and compiler flags
     20  --build-libs          print library linking information to the build (non-installed) version
     21  --build-cflags        print pre-processor and compiler flags to the build (non-installed) version
    1922  --help                display this help and exit
    2023  --version             output version information
     
    6467        ;;
    6568
     69    --build-cflags)
     70        echo @SRCINC@ @PSLIB_CFLAGS@
     71        ;;
     72
     73    --build-libs)
     74        echo -L@ABS_SRCDIR@/src/.libs -lpslib @PSLIB_LIBS@
     75        ;;
     76
    6677    --deps)
    6778        echo @PSLIB_LIBS@
Note: See TracChangeset for help on using the changeset viewer.