Changeset 23787
- Timestamp:
- Apr 9, 2009, 5:22:35 PM (17 years ago)
- Location:
- trunk/psLib
- Files:
-
- 3 edited
-
configure.ac (modified) (1 diff)
-
m4/ipp_stdopts.m4 (modified) (1 diff)
-
src/sys/Makefile.am (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/configure.ac
r23182 r23787 340 340 LDFLAGS=${TMP_LDFLAGS} 341 341 CPPFLAGS=${TMP_CPPFLAGS} 342 343 IPP_VERSION(PSLIB) 344 AC_SUBST(PSLIB_VERSION,[$PSLIB_VERSION]) 345 AC_SUBST(PSLIB_BRANCH,[$PSLIB_BRANCH]) 346 AC_SUBST(PSLIB_SOURCE,[$PSLIB_SOURCE]) 342 347 343 348 dnl ------- enable -Werror after all of the probes have run --------- -
trunk/psLib/m4/ipp_stdopts.m4
r18891 r23787 37 37 ) 38 38 ]) 39 40 41 AC_DEFUN([IPP_VERSION], 42 [ 43 AC_ARG_ENABLE(version, 44 [AS_HELP_STRING(--disable-version,Disable dynamic version information)], 45 [case "${enableval}" in 46 yes) enable_version=true ;; 47 no) enable_version=false ;; 48 *) AC_MSG_ERROR(bad value ${enableval} for --disable-version) ;; 49 esac], [enable_version=true] 50 ) 51 52 [$1]_VERSION="UNKNOWN" 53 [$1]_BRANCH="UNKNOWN" 54 [$1]_SOURCE="UNKNOWN" 55 AS_IF([test "x$enable_version" = xtrue], 56 [AC_PATH_PROG([SVNVERSION], [svnversion]) 57 AC_PATH_PROG([SVN], [svn]) 58 AC_PROG_SED 59 AS_IF([test "x$SVNVERSION" != x], [$1]_VERSION=`$SVNVERSION`) 60 AS_IF([test "x$SVN" != x], 61 [[$1]_BRANCH=`$SVN info | $SED -n -e '/URL:/ h' -e '/Repository Root:/ { x; H; x; s|Repository Root: \(.*\)\nURL: \1\(.*\)|\2| ; s|^/|| ; s|/[a-zA-Z]*/src.*|| ; p }'` 62 [$1]_SOURCE=`$SVN info | $SED -n -e 's/Repository UUID: // p'`]) 63 ] 64 ) 65 66 dnl AC_SUBST([$1]_VERSION,[[$1]_VERSION]) 67 dnl AC_SUBST([$1]_BRANCH,[[$1]_BRANCH]) 68 dnl AC_SUBST([$1]_SOURCE,[[$1]_SOURCE]) 69 ]) -
trunk/psLib/src/sys/Makefile.am
r23229 r23787 2 2 # 3 3 noinst_LTLIBRARIES = libpslibsys.la 4 5 # PSLIB_VERSION=`if [ -e ../../VERSION ]; then cat ../../VERSION; else svnversion; fi`6 # PSLIB_BRANCH=`if [ -e ../../BRANCH ]; then cat ../../BRANCH; else svn info | sed -n -e '/URL:/ h' -e '/Repository Root:/ { x; H; x; s|Repository Root: \(.*\)\nURL: \1\(.*\)|\2| ; s|^/|| ; s|/[a-zA-Z]*/src.*|| ; p }'; fi`7 # PSLIB_SOURCE=`if [ -e ../../SOURCE ]; then cat ../../SOURCE; else svn info | sed -n -e 's/Repository UUID: // p'; fi`8 4 9 5 # Force recompilation of psConfigure.c, since it gets the version information … … 12 8 FORCE: ; 13 9 14 libpslibsys_la_CPPFLAGS = $(SRCINC) $(PSLIB_CFLAGS) $(CFITSIO_CFLAGS) -DPSLIB_VERSION=$( SVN_VERSION) -DPSLIB_BRANCH=$(SVN_BRANCH) -DPSLIB_SOURCE=$(SVN_SOURCE)10 libpslibsys_la_CPPFLAGS = $(SRCINC) $(PSLIB_CFLAGS) $(CFITSIO_CFLAGS) -DPSLIB_VERSION=$(PSLIB_VERSION) -DPSLIB_BRANCH=$(PSLIB_BRANCH) -DPSLIB_SOURCE=$(PSLIB_SOURCE) 15 11 libpslibsys_la_SOURCES = \ 16 12 psAbort.c \
Note:
See TracChangeset
for help on using the changeset viewer.
