Ignore:
Timestamp:
Apr 7, 2005, 3:07:25 AM (15 years ago)
Author:
landonf (Landon Fuller)
Message:

Remove proof-of-concept Mac software receipt support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/aclocal.m4

    r10525 r11663  
    11builtin(include,tcl.m4)
    2 
    3 #------------------------------------------------------------------------
    4 # OD_COREFOUNDATION --
    5 #
    6 #       Check if CoreFoundation is available, and if so, use it.
    7 #
    8 # Arguments:
    9 #       None.
    10 #
    11 # Requires:
    12 #       None.
    13 #
    14 # Depends:
    15 #       AC_PROG_CC
    16 #
    17 # Results:
    18 #
    19 #       Result is cached.
    20 #
    21 #       If CoreFoundation is available, defines the following variables:
    22 #               CFOUNDATION_ENABLE
    23 #       Substitutes the following vars:
    24 #               CFOUNDATION_LIBS
    25 #
    26 #------------------------------------------------------------------------
    27 
    28 dnl Test for check, and define CHECK_CFLAGS and CHECK_LIBS
    29 dnl
    30 
    31 AC_DEFUN(OD_COREFOUNDATION, [
    32         CFOUNDATION_LIBS="-framework CoreFoundation"
    33 
    34         AC_MSG_CHECKING([for CoreFoundation])
    35 
    36         AC_CACHE_VAL(od_cv_cfoundation, [
    37 
    38                 ac_save_LIBS="$LIBS"
    39 
    40                 LIBS="$CFOUNDATION_LIBS $LIBS"
    41                
    42                 AC_LINK_IFELSE([
    43                         AC_LANG_PROGRAM([
    44                                         #include <CoreFoundation/CoreFoundation.h>
    45                                 ], [
    46                                         CFURLRef url = CFURLCreateWithFileSystemPath(NULL, CFSTR("/testing"), kCFURLPOSIXPathStyle, 1);
    47                                         CFArrayRef bundles = CFBundleCreateBundlesFromDirectory(NULL, url, CFSTR("pkg"));
    48                         ])
    49                         ], [
    50                                 od_cv_cfoundation="yes"
    51                         ], [
    52                                 od_cv_cfoundation="no"
    53                         ]
    54                 )
    55 
    56                 LIBS="$ac_save_LIBS"
    57 
    58         ])
    59 
    60         AC_MSG_RESULT(${od_cv_cfoundation})
    61 
    62         if test x"${od_cv_cfoundation}" = "xyes"; then
    63                 AC_DEFINE([CFOUNDATION_ENABLE], [], [Define if the CoreFoundation is available and to be used])
    64         else
    65                 CHECK_DIRS=""
    66         fi
    67                        
    68 
    69         AC_SUBST(CFOUNDATION_LIBS)
    70 ])
    712
    723dnl This macro checks if the user specified a dports tree
Note: See TracChangeset for help on using the changeset viewer.