8c305dbaeddcd80fee308ecfaa6be78bf507be23
[vlc.git] / extras / contrib / src / Patches / gettext-macosx.patch
1 diff -ruN gettext/gettext-runtime/m4/gettext.m4 gettext-0.14.5/gettext-runtime/m4/gettext.m4
2 --- gettext/gettext-runtime/m4/gettext.m4       2005-04-07 13:37:04.000000000 +0200
3 +++ gettext-0.14.5/gettext-runtime/m4/gettext.m4        2006-04-05 23:21:45.000000000 +0200
4 @@ -445,7 +445,7 @@
5    fi
6  
7    if test -n "$INTL_MACOSX_LIBS"; then
8 -    CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
9 +    CPPFLAGS="$CPPFLAGS -framework CoreFoundation"
10    fi
11  
12    dnl intl/plural.c is generated from intl/plural.y. It requires bison,
13 @@ -489,7 +489,7 @@
14    AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
15      gt_cv_func_CFPreferencesCopyAppValue,
16      [gt_save_CPPFLAGS="$CPPFLAGS"
17 -     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18 +     CPPFLAGS="$CPPFLAGS -framework CoreFoundation"
19       gt_save_LIBS="$LIBS"
20       LIBS="$LIBS -framework CoreFoundation"
21       AC_TRY_LINK([#include <CFPreferences.h>],
22 @@ -505,7 +505,7 @@
23    dnl Check for API introduced in MacOS X 10.3.
24    AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent,
25      [gt_save_CPPFLAGS="$CPPFLAGS"
26 -     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
27 +     CPPFLAGS="$CPPFLAGS -framework CoreFoundation"
28       gt_save_LIBS="$LIBS"
29       LIBS="$LIBS -framework CoreFoundation"
30       AC_TRY_LINK([#include <CFLocale.h>], [CFLocaleCopyCurrent();],