git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35206
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
USE_BSD=1
USE_DARWIN=1
SO_SUFFIX=dylib
USE_BSD=1
USE_DARWIN=1
SO_SUFFIX=dylib
INSTALL_PROGRAM="cp -fp"
INSTALL_DATA="cp -fp"
;;
INSTALL_PROGRAM="cp -fp"
INSTALL_DATA="cp -fp"
;;
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+ ;;
+esac
+
+case "${host}" in
+ *-*-darwin* )
echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
install_name_tool=`which install_name_tool`
if test "$install_name_tool" -a -x "$install_name_tool"; then
SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
install_name_tool=`which install_name_tool`
if test "$install_name_tool" -a -x "$install_name_tool"; then
SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
case "${host}" in
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
case "${host}" in
GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
;;
*-*-mingw32* )
GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
;;
*-*-mingw32* )
- powerpc-*-darwin* )
- dnl PowerPC Darwin based distributions (including Mac OS X)
+ *-*-darwin* )
+ dnl Darwin based distributions (including Mac OS X)
USE_BSD=1
USE_DARWIN=1
SO_SUFFIX=dylib
USE_BSD=1
USE_DARWIN=1
SO_SUFFIX=dylib
dnl The other BSD's should probably go in here too, since this is
dnl to workaround a strange static lib BSDism.
dnl Mac OS X install seems to ignore -p option...
dnl The other BSD's should probably go in here too, since this is
dnl to workaround a strange static lib BSDism.
dnl Mac OS X install seems to ignore -p option...
INSTALL_PROGRAM="cp -fp"
INSTALL_DATA="cp -fp"
;;
INSTALL_PROGRAM="cp -fp"
INSTALL_DATA="cp -fp"
;;
-dnl This case is for OS X vs. everything else
+dnl This case is for PowerPC OS X vs. everything else
case "${host}" in
powerpc-*-darwin* )
AC_MSG_CHECKING([if __POWERPC__ is already defined])
case "${host}" in
powerpc-*-darwin* )
AC_MSG_CHECKING([if __POWERPC__ is already defined])
[AC_MSG_RESULT([no])
AC_DEFINE(__POWERPC__)
])
[AC_MSG_RESULT([no])
AC_DEFINE(__POWERPC__)
])
+ ;;
+esac
+
+dnl This case is for OS X vs. everything else
+case "${host}" in
+ *-*-darwin* )
AC_MSG_CHECKING([if CoreFoundation/CFBase.h is usable])
AC_TRY_COMPILE([#include <CoreFoundation/CFBase.h>
],[],
AC_MSG_CHECKING([if CoreFoundation/CFBase.h is usable])
AC_TRY_COMPILE([#include <CoreFoundation/CFBase.h>
],[],
install_name_tool=`which install_name_tool`
if test "$install_name_tool" -a -x "$install_name_tool"; then
SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
install_name_tool=`which install_name_tool`
if test "$install_name_tool" -a -x "$install_name_tool"; then
SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no])
case "${host}" in
AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no])
case "${host}" in
dnl Some Apple's GCC version are broken and can't handle the
dnl pragmas:
GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
dnl Some Apple's GCC version are broken and can't handle the
dnl pragmas:
GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"