dnl dnl Filename : runldpath.m4 dnl Description : Autoconf macro to set special variable RUN_LDPATH dnl Author(s) : Mike Hucka dnl Created : 2005-04-30 dnl Revision : $Id: runldpath.m4 8704 2009-01-04 02:26:05Z mhucka $ dnl $HeadURL: https://sbml.svn.sourceforge.net/svnroot/sbml/trunk/libsbml/config/runldpath.m4 $ dnl dnl */ dnl CONFIG_LDPATH needs to be called from configure.ac to initialize the dnl internal variable. It needs to be called fairly early. AC_DEFUN([CONFIG_LDPATH], [ AC_DEFINE([RUN_LDPATH]) dnl The initial value is the user's LD_LIBRARY_PATH or DYLD_LIBRARY_PATH case $host in *darwin*) RUN_LDPATH="$DYLD_LIBRARY_PATH" ;; *) RUN_LDPATH="$LD_LIBRARY_PATH" ;; esac AC_SUBST(RUN_LDPATH) ]) dnl CONFIG_ADD_LDPATH(path) adds "path" to list of paths used to set dnl LD_LIBRARY_PATH. AC_DEFUN([CONFIG_ADD_LDPATH], [ RUN_LDPATH="$RUN_LDPATH:$1" ])