diff options
author | Jonathan Kew <jfkthame@googlemail.com> | 2006-12-08 10:27:34 +0000 |
---|---|---|
committer | Jonathan Kew <jfkthame@googlemail.com> | 2006-12-08 10:27:34 +0000 |
commit | 70059651ad92bb2070716a3ad9a7088f43293ab8 (patch) | |
tree | 1e1f09d952144dcf69e934cc0efc042199c4c334 | |
parent | e9bcc0abdfe85f20f9cbac88623a8bb52f67c4b4 (diff) |
dvipng configure update for Mac OS X compatibility
git-svn-id: svn://tug.org/texlive/trunk@2635 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-x | Build/source/texk/dvipng/configure | 98 | ||||
-rw-r--r-- | Build/source/texk/dvipng/configure.ac | 32 |
2 files changed, 111 insertions, 19 deletions
diff --git a/Build/source/texk/dvipng/configure b/Build/source/texk/dvipng/configure index 68be3a5de68..5d432b4ee34 100755 --- a/Build/source/texk/dvipng/configure +++ b/Build/source/texk/dvipng/configure @@ -6510,20 +6510,6 @@ fi -LIBS="../kpathsea/.libs/libkpathsea.a $LIBS" -cat >>confdefs.h <<\_ACEOF -#define HAVE_KPATHSEA_KPATHSEA_H 1 -_ACEOF - -cat >>confdefs.h <<\_ACEOF -#define HAVE_KPSE_ENC_FORMATS 1 -_ACEOF - -cat >>confdefs.h <<\_ACEOF -#define HAVE_LIBKPATHSEA 1 -_ACEOF - - cat >>confdefs.h <<\_ACEOF #define HAVE_GDIMAGEPNGEX 1 _ACEOF @@ -6703,6 +6689,90 @@ _ACEOF fi +LIBS="../kpathsea/.libs/libkpathsea.a $LIBS" +cat >>confdefs.h <<\_ACEOF +#define HAVE_KPATHSEA_KPATHSEA_H 1 +_ACEOF + +cat >>confdefs.h <<\_ACEOF +#define HAVE_KPSE_ENC_FORMATS 1 +_ACEOF + +cat >>confdefs.h <<\_ACEOF +#define HAVE_LIBKPATHSEA 1 +_ACEOF + + +# +# Check for ApplicationServices framework (Mac OS X) +# + + + + _cppflags=$CPPFLAGS _ldflags=$LDFLAGS + echo "$as_me:$LINENO: checking for Mac OS X ApplicationServices framework" >&5 +echo $ECHO_N "checking for Mac OS X ApplicationServices framework... $ECHO_C" >&6 + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +#include <ApplicationServices/ApplicationServices.h> + +int +main () +{ + +ATSFontRef fontRef; + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + +cat >>confdefs.h <<\_ACEOF +#define HAVE_APP_SERVICES 1 +_ACEOF + + LIBS="$LIBS -framework ApplicationServices" + +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 + +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + + ac_config_headers="$ac_config_headers config.h" ac_config_files="$ac_config_files Makefile" diff --git a/Build/source/texk/dvipng/configure.ac b/Build/source/texk/dvipng/configure.ac index cdfb741bbcf..839ec1b0abc 100644 --- a/Build/source/texk/dvipng/configure.ac +++ b/Build/source/texk/dvipng/configure.ac @@ -167,11 +167,6 @@ sinclude(../../libs/freetype2/withenable.ac) sinclude(../../libs/freetype2/freetype2.ac) sinclude(../kpathsea/withenable.ac) -LIBS="../kpathsea/.libs/libkpathsea.a $LIBS" -AC_DEFINE(HAVE_KPATHSEA_KPATHSEA_H) -AC_DEFINE(HAVE_KPSE_ENC_FORMATS) -AC_DEFINE(HAVE_LIBKPATHSEA) - dnl -- gd jpeg fn not defined? AC_DEFINE(HAVE_GDIMAGECREATETRUECOLOR) dnl then we get a warning about gdImageAlpha, but so what. AC_DEFINE(HAVE_GDIMAGEPNGEX) @@ -189,6 +184,33 @@ AC_DEFINE(HAVE_LIBZ) AC_CHECK_LIB(m, main) AC_CHECK_LIB(gen, basename) +LIBS="../kpathsea/.libs/libkpathsea.a $LIBS" +AC_DEFINE(HAVE_KPATHSEA_KPATHSEA_H) +AC_DEFINE(HAVE_KPSE_ENC_FORMATS) +AC_DEFINE(HAVE_LIBKPATHSEA) + +# +# Check for ApplicationServices framework (Mac OS X) +# +AC_DEFUN([AC_HAS_APP_SERVICES], [ + _cppflags=$CPPFLAGS _ldflags=$LDFLAGS + AC_MSG_CHECKING([for Mac OS X ApplicationServices framework]) + AC_TRY_COMPILE( + [ +#include <ApplicationServices/ApplicationServices.h> + ], [ +ATSFontRef fontRef; + ], + [ AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_APP_SERVICES, 1, [Define if you have ApplicationServices (Mac OS X)]) + LIBS="$LIBS -framework ApplicationServices" + ], + [ AC_MSG_RESULT(no) ] + ) +]) + +AC_HAS_APP_SERVICES + AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES(Makefile) AC_OUTPUT |