summaryrefslogtreecommitdiff
path: root/fltk-config.in
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2005-08-08 01:09:39 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2005-08-08 01:09:39 +0000
commit3b659149e6a0f9d3bf0134a368fc870ee98a1038 (patch)
treeb0b0914a4ba930797661752fdf48bb276000d63b /fltk-config.in
parent1eba6eb14b9cfec8c916544fe932c30445ade57e (diff)
The fltk-config script now handles invocation via a symlink (STR
#869) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4477 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fltk-config.in')
-rwxr-xr-xfltk-config.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/fltk-config.in b/fltk-config.in
index f87d5e93d..92aa6760f 100755
--- a/fltk-config.in
+++ b/fltk-config.in
@@ -35,8 +35,13 @@ VERSION="$MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION"
APIVERSION="$MAJOR_VERSION.$MINOR_VERSION"
### BEGIN fltk-config
+symlink=`readlink $0`
+if test -n "$symlink"; then
+ selfdir=`dirname $symlink`
+else
+ selfdif=`dirname $0`
+fi
-selfdir=`dirname $0`
prefix=@prefix@
exec_prefix=@exec_prefix@
exec_prefix_set=no