aboutsummaryrefslogtreecommitdiffstats
path: root/macros/gnome-objc-checks.m4
diff options
context:
space:
mode:
authornobody <nobody@localhost>1998-04-11 09:18:21 +0800
committernobody <nobody@localhost>1998-04-11 09:18:21 +0800
commit25e80fefdca127ba94937349320fc202b71ef0da (patch)
treecad08d54143e167db2da0793ece784a467fcf025 /macros/gnome-objc-checks.m4
parent6caeba284969e0a0ea6b901b559c3078e2444c62 (diff)
downloadgsoc2013-evolution-BUGGY_ALLOC.tar
gsoc2013-evolution-BUGGY_ALLOC.tar.gz
gsoc2013-evolution-BUGGY_ALLOC.tar.bz2
gsoc2013-evolution-BUGGY_ALLOC.tar.lz
gsoc2013-evolution-BUGGY_ALLOC.tar.xz
gsoc2013-evolution-BUGGY_ALLOC.tar.zst
gsoc2013-evolution-BUGGY_ALLOC.zip
This commit was manufactured by cvs2svn to create tag 'BUGGY_ALLOC'.BUGGY_ALLOC
svn path=/tags/BUGGY_ALLOC/; revision=124
Diffstat (limited to 'macros/gnome-objc-checks.m4')
-rw-r--r--macros/gnome-objc-checks.m465
1 files changed, 0 insertions, 65 deletions
diff --git a/macros/gnome-objc-checks.m4 b/macros/gnome-objc-checks.m4
deleted file mode 100644
index 3691bc5dc0..0000000000
--- a/macros/gnome-objc-checks.m4
+++ /dev/null
@@ -1,65 +0,0 @@
-AC_DEFUN([GNOME_CHECK_OBJC],
-[
-dnl Look for an ObjC compiler.
-dnl FIXME: extend list of possible names of ObjC compilers.
- AC_CHECK_PROGS(OBJC, $OBJC gcc, "")
-
- AC_REQUIRE([GNOME_PTHREAD_CHECK])
-
- OBJC_LIBS="-lobjc $PTHREAD_LIB"
- AC_CHECK_FUNC(sched_yield,,[
- AC_CHECK_LIB(posix4,sched_yield,
- OBJC_LIBS="$OBJC_LIBS -lposix4",, $OBJC_LIBS)])
- AC_SUBST(OBJC_LIBS)
-
- AC_CACHE_CHECK([if Objective C compiler ($OBJC) works],
- ac_cv_prog_objc_works, [
- if test -n "$OBJC"; then
- cat > conftest.m <<EOF
-#include <objc/Object.h>
-@interface myRandomObj : Object
-{
-}
-@end
-@implementation myRandomObj
-@end
-int main () {
- /* No, you are not seeing double. Remember that square brackets
- are the autoconf m4 quotes. */
- id myid = [[myRandomObj alloc]];
- [[myid free]];
- return 0;
-}
-EOF
-
- $OBJC -o conftest $LDFLAGS conftest.m $OBJC_LIBS 1>&AC_FD_CC 2>&1
- result=$?
- rm -f conftest*
-
- if test $result -eq 0; then
- ac_cv_prog_objc_works=yes
- fi
- else
- ac_cv_prog_objc_works=no
- fi
- ])
-
- AM_CONDITIONAL(OBJECTIVE_C, test x$ac_cv_prog_objc_works = xyes)
- dnl Also set the shell variable OBJECTIVE_C to "yes" or "no".
- OBJECTIVE_C=$ac_cv_prog_objc_works
-])
-
-AC_DEFUN([GNOME_INIT_OBJC],
-[
- AC_MSG_CHECKING(for obGnomeConf.sh file in $gnome_prefix)
- if test -f $gnome_prefix/obGnomeConf.sh; then
- . $gnome_prefix/obGnomeConf.sh
- AC_MSG_RESULT(found)
- else
- AC_MSG_RESULT(not found)
- AC_MSG_ERROR(Could not find the obGnomeConf.sh file that is generated by gnome-objc install)
- fi
- AC_SUBST(OBGNOME_INCLUDEDIR)
- AC_SUBST(OBGNOME_LIBS)
- AC_SUBST(OBGTK_LIBS)
-])