From d555bd3f9f1b9f2aeba47567bc3a2e4879283de5 Mon Sep 17 00:00:00 2001 From: Linas Vepstas Date: Thu, 6 Aug 1998 04:25:31 +0000 Subject: [PATCH] ugly hack git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@932 57a11ea4-9604-0410-9ed3-97b8803252fd --- xacc.in | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/xacc.in b/xacc.in index a17db778d7..c186711a24 100644 --- a/xacc.in +++ b/xacc.in @@ -3,4 +3,12 @@ XACC_HELP=${XACC_HELP}:./Docs:@prefix@/share/xacc/Docs export XACC_HELP -exec xacc.bin $@ + +# hack alert -- we should really be using ldconfig to look for +# the motif library. We should also do something to auto-detect +# and load the gtk version. +if [ -f /usr/X11R6/lib/libXm.so -o -L /usr/X11R6/lib/libXm.so ]; then + exec xacc.bin $@ +else + exec xacc-static.bin $@ +fi