From 428a7f752cebf17f61a39f08d908c163762521c3 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Tue, 6 Jun 2006 07:23:35 +0000 Subject: [PATCH] * configure.in (LINK_GXX_STATICALLY): use readlink.py to resolve links. * buildscripts/readlink.py: add file. --- ChangeLog | 6 ++++++ buildscripts/readlink.py | 6 ++++++ configure.in | 4 +++- 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 buildscripts/readlink.py diff --git a/ChangeLog b/ChangeLog index b300dac2c4..52aa30b761 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-06-06 Han-Wen Nienhuys + + * configure.in (LINK_GXX_STATICALLY): use readlink.py to resolve links. + + * buildscripts/readlink.py: add file. + 2006-06-06 Joe Neeman * lily/tuplet-number.cc (print): prevent stencil from being diff --git a/buildscripts/readlink.py b/buildscripts/readlink.py new file mode 100644 index 0000000000..41be20b56c --- /dev/null +++ b/buildscripts/readlink.py @@ -0,0 +1,6 @@ +#!/usr/bin/python +import os +import sys + +for i in sys.argv[1:]: + print os.path.realpath(i) diff --git a/configure.in b/configure.in index ce169f0d66..00f3e75e5c 100644 --- a/configure.in +++ b/configure.in @@ -53,6 +53,8 @@ AC_SUBST(LINK_GXX_STATICALLY) # must come before any header checks STEPMAKE_COMPILE +# os.path.realpath() requires python 2.2 and unix +STEPMAKE_PYTHON(REQUIRED, 2.2) AC_CHECK_PROG(FCMATCH, fc-match, fc-match) AC_MSG_CHECKING([New Century Schoolbook PFB files]) AC_SUBST(NCSB_SOURCE_FILES) @@ -71,7 +73,7 @@ else NCSB_FILE=`$FCMATCH --verbose "Century Schoolbook L:style=$style" | grep 'file:'` NCSB_FILE=`echo $NCSB_FILE | sed 's/^.*"\(.*\)".*$/\1/g'` - NCSB_FILE=`readlink -f $NCSB_FILE` + NCSB_FILE=`$PYTHON buildscripts/readlink.py $NCSB_FILE` NCSB_SOURCE_FILES="$NCSB_FILE $NCSB_SOURCE_FILES" done else -- 2.39.2