source: icXML/icXML-devel/m4/xerces_link_darwin_framework.m4 @ 2723

Last change on this file since 2723 was 2723, checked in by cameron, 6 years ago

Add Xerces build system scripts

File size: 622 bytes
Line 
1dnl @synopsis XERCES_LINK_DARWIN_FRAMEWORK
2dnl
3dnl Adds the specified framework to LIBS if it's not already there.
4dnl
5dnl @category C
6dnl @author James Berry
7dnl @version 2005-02-20
8dnl @license AllPermissive
9dnl
10dnl $Id: xerces_link_darwin_framework.m4 190921 2005-06-16 14:18:12Z jberry $
11
12AC_DEFUN([XERCES_LINK_DARWIN_FRAMEWORK], [
13        case $host_os in
14        darwin*)
15                test -z "${xerces_darwin_frameworks}" && xerces_darwin_frameworks="-"
16                case ${xerces_darwin_frameworks} in
17                *-$1-*)
18                        ;;
19                *)
20                        xerces_darwin_frameworks="-$1${xerces_darwin_frameworks}"
21                        LIBS="-Wl,-framework -Wl,$1 $LIBS"
22                        ;;
23                esac
24                ;;
25        esac
26])
27
Note: See TracBrowser for help on using the repository browser.