1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
dnl @synopsis XERCES_LINK_DARWIN_FRAMEWORK
dnl
dnl Adds the specified framework to LIBS if it's not already there.
dnl
dnl @category C
dnl @author James Berry
dnl @version 2005-02-20
dnl @license AllPermissive
dnl
dnl $Id$
AC_DEFUN([XERCES_LINK_DARWIN_FRAMEWORK], [
case $host_os in
darwin*)
test -z "${xerces_darwin_frameworks}" && xerces_darwin_frameworks="-"
case ${xerces_darwin_frameworks} in
*-$1-*)
;;
*)
xerces_darwin_frameworks="-$1${xerces_darwin_frameworks}"
LIBS="-Wl,-framework -Wl,$1 $LIBS"
;;
esac
;;
esac
])
|